From 975bcb6ad7f1a58c982a223f96d6b994a4571198 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 21 Dec 2021 12:30:22 -0500 Subject: [PATCH 01/27] feat(ui): Enable additional scopes usage * Store scopes in user auth object/sessions * Implement requesting additional scopes through login route --- src/Web/Client/index.ts | 20 ++++-- src/Web/Common/middleware.ts | 72 +++++++++++++------ .../Server/routes/authenticated/user/index.ts | 2 +- 3 files changed, 66 insertions(+), 28 deletions(-) diff --git a/src/Web/Client/index.ts b/src/Web/Client/index.ts index 9c36767..cb4890e 100644 --- a/src/Web/Client/index.ts +++ b/src/Web/Client/index.ts @@ -39,12 +39,13 @@ import {prettyPrintJson} from "pretty-print-json"; import DelimiterStream from 'delimiter-stream'; import {pipeline} from 'stream/promises'; import {defaultBotStatus} from "../Common/defaults"; -import {booleanMiddle} from "../Common/middleware"; +import {arrayMiddle, booleanMiddle} from "../Common/middleware"; import {BotInstance, CMInstance} from "../interfaces"; import { URL } from "url"; import {MESSAGE} from "triple-beam"; import Autolinker from "autolinker"; import path from "path"; +import {ExtendedSnoowrap} from "../../Utils/SnoowrapClients"; const emitter = new EventEmitter(); @@ -70,6 +71,7 @@ declare module 'express-session' { sort?: string, level?: string, state?: string, + scope?: string[], botId?: string, authBotId?: string, } @@ -183,9 +185,9 @@ const webClient = async (options: OperatorConfig) => { * */ passport.serializeUser(async function (data: any, done) { - const {user, subreddits} = data; + const {user, subreddits, scope} = data; //await webCache.set(`userSession-${user}`, { subreddits: subreddits.map((x: Subreddit) => x.display_name), isOperator: webOps.includes(user.toLowerCase()) }, {ttl: provider.ttl as number}); - done(null, { subreddits: subreddits.map((x: Subreddit) => x.display_name), isOperator: webOps.includes(user.toLowerCase()), name: user }); + done(null, { subreddits: subreddits.map((x: Subreddit) => x.display_name), isOperator: webOps.includes(user.toLowerCase()), name: user, scope }); }); passport.deserializeUser(async function (obj, done) { @@ -214,7 +216,7 @@ const webClient = async (options: OperatorConfig) => { } else if (req.session.state !== state) { return done('Unexpected state value returned'); } - const client = await Snoowrap.fromAuthCode({ + const client = await ExtendedSnoowrap.fromAuthCode({ userAgent: `web:contextBot:web`, clientId, clientSecret, @@ -223,7 +225,7 @@ const webClient = async (options: OperatorConfig) => { }); const user = await client.getMe().name as string; const subs = await client.getModeratedSubreddits(); - return done(null, {user, subreddits: subs}); + return done(null, {user, subreddits: subs, scope: req.session.scope}); } )); @@ -256,14 +258,18 @@ const webClient = async (options: OperatorConfig) => { } } - app.getAsync('/login', async (req, res, next) => { + const scopeMiddle = arrayMiddle(['scope']); + app.getAsync('/login', scopeMiddle, async (req, res, next) => { if (redirectUri === undefined) { return res.render('error', {error: `No redirectUri was specified through environmental variables or program argument. This must be provided in order to use the web interface.`}); } + const {query: { scope: reqScopes = [] }} = req; + const scope = [...new Set(['identity', 'mysubreddits', ...(reqScopes as string[])])]; req.session.state = randomId(); + req.session.scope = scope; const authUrl = Snoowrap.getAuthUrl({ clientId, - scope: ['identity', 'mysubreddits'], + scope: scope, redirectUri: redirectUri as string, permanent: false, state: req.session.state, diff --git a/src/Web/Common/middleware.ts b/src/Web/Common/middleware.ts index fd2850b..d639a98 100644 --- a/src/Web/Common/middleware.ts +++ b/src/Web/Common/middleware.ts @@ -1,33 +1,65 @@ import {Request, Response} from 'express'; -export interface boolOptions { +export interface defaultOptions { name: string, defaultVal: any + required?: boolean } -export const booleanMiddle = (boolParams: (string | boolOptions)[] = []) => async (req: Request, res: Response, next: Function) => { - for (const b of boolParams) { - const opts = typeof b === 'string' ? {name: b, defaultVal: undefined} : b as boolOptions; +export type QueryTransformFunc = (name: string, val: any) => any - const bVal = req.query[opts.name] as any; - if (bVal !== undefined) { - let truthyVal: boolean; - if (bVal === 'true' || bVal === true || bVal === 1 || bVal === '1') { - truthyVal = true; - } else if (bVal === 'false' || bVal === false || bVal === 0 || bVal === '0') { - truthyVal = false; - } else { - res.status(400); - return res.send(`Expected query parameter ${opts.name} to be a truthy value. Got "${bVal}" but must be one of these: true/false, 1/0`); +export const queryDataTransformer = (transform: QueryTransformFunc) => (params: (string | defaultOptions)[] = [], defaultRequired: boolean = false) => async (req: Request, res: Response, next: Function) => { + for (const p of params) { + const opts = typeof p === 'string' ? { + name: p, + defaultVal: undefined, + required: defaultRequired + } : p as defaultOptions; + + const { + name, + defaultVal, + required = defaultRequired + } = opts; + + const pVal = req.query[name] as any; + if (pVal !== undefined) { + try { + req.query[name] = transform(name, pVal); + } catch (err: any) { + const {code = 400, message} = err; + res.status(code); + return res.send(message); } - // @ts-ignore - req.query[opts.name] = truthyVal; - } else if (opts.defaultVal !== undefined) { - req.query[opts.name] = opts.defaultVal; - } else { + } else if (defaultVal !== undefined) { + req.query[name] = defaultVal; + } else if (required) { res.status(400); - return res.send(`Expected query parameter ${opts.name} to be a truthy value but it was missing. Must be one of these: true/false, 1/0`); + return res.send(`Expected query parameter ${name} to be set but it was missing`); } } next(); } + +export const booleanMiddle = queryDataTransformer((name:string, val: any) => { + let truthyVal: boolean; + if (val === 'true' || val === true || val === 1 || val === '1') { + truthyVal = true; + } else if (val === 'false' || val === false || val === 0 || val === '0') { + truthyVal = false; + } else { + throw new Error(`Expected query parameter ${name} to be a truthy value. Got "${val}" but must be one of these: true/false, 1/0`) + } + return truthyVal; +}); + +export const arrayMiddle = queryDataTransformer((name, val: any) => { + if(Array.isArray(val)) { + return val; + } + let strVal = val; + if(typeof strVal === 'number') { + strVal = val.toString(); + } + return strVal.split(',').map((x: string) => x.trim()); +}); diff --git a/src/Web/Server/routes/authenticated/user/index.ts b/src/Web/Server/routes/authenticated/user/index.ts index af93e74..3367bdd 100644 --- a/src/Web/Server/routes/authenticated/user/index.ts +++ b/src/Web/Server/routes/authenticated/user/index.ts @@ -50,7 +50,7 @@ export const actionedEventsRoute = [authUserCheck(), botRoute(), subredditRoute( const action = async (req: Request, res: Response) => { const bot = req.serverBot; - const {url, dryRun, subreddit} = req.query as any; + const {url, dryRun = false, subreddit} = req.query as any; const {name: userName, realManagers = [], isOperator} = req.user as Express.User; let a; From 2d67f9f57d2b53e80bf559873ce5375184e9ea33 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 21 Dec 2021 14:22:26 -0500 Subject: [PATCH 02/27] refactor(ui): Migrate all editor usage to monaco-yaml base * monaco-yaml can also do json validation since its just normal monaco * simplifies config.ejs greatly not having to maintain two different monaco implementation, at the expense of a larger project --- src/Web/Client/index.ts | 3 +- src/Web/assets/public/yaml/1565.entry.js | 3 +- src/Web/assets/public/yaml/1569.entry.js | 3 +- src/Web/assets/public/yaml/1585.entry.js | 3 +- src/Web/assets/public/yaml/1593.entry.js | 3 +- src/Web/assets/public/yaml/1594.entry.js | 3 +- src/Web/assets/public/yaml/162.entry.js | 3 +- src/Web/assets/public/yaml/1623.entry.js | 3 +- src/Web/assets/public/yaml/1649.entry.js | 3 +- src/Web/assets/public/yaml/1941.entry.js | 3 +- src/Web/assets/public/yaml/2014.entry.js | 3 +- src/Web/assets/public/yaml/2271.entry.js | 3 +- src/Web/assets/public/yaml/2287.entry.js | 3 +- src/Web/assets/public/yaml/2388.entry.js | 3 +- src/Web/assets/public/yaml/2501.entry.js | 3 +- src/Web/assets/public/yaml/2583.entry.js | 3 +- src/Web/assets/public/yaml/2862.entry.js | 3 +- src/Web/assets/public/yaml/2906.entry.js | 3 +- src/Web/assets/public/yaml/300.entry.js | 3 +- src/Web/assets/public/yaml/3008.entry.js | 3 +- src/Web/assets/public/yaml/3315.entry.js | 3 +- src/Web/assets/public/yaml/3399.entry.js | 3 +- src/Web/assets/public/yaml/3504.entry.js | 3 +- src/Web/assets/public/yaml/3553.entry.js | 3 +- src/Web/assets/public/yaml/3673.entry.js | 3 +- src/Web/assets/public/yaml/3734.entry.js | 1 + src/Web/assets/public/yaml/3855.entry.js | 3 +- src/Web/assets/public/yaml/4035.entry.js | 3 +- src/Web/assets/public/yaml/4073.entry.js | 3 +- src/Web/assets/public/yaml/4200.entry.js | 3 +- src/Web/assets/public/yaml/4369.entry.js | 3 +- src/Web/assets/public/yaml/4454.entry.js | 3 +- src/Web/assets/public/yaml/4511.entry.js | 3 +- src/Web/assets/public/yaml/4558.entry.js | 3 +- src/Web/assets/public/yaml/4610.entry.js | 3 +- src/Web/assets/public/yaml/471.entry.js | 3 +- src/Web/assets/public/yaml/4755.entry.js | 3 +- src/Web/assets/public/yaml/4858.entry.js | 3 +- src/Web/assets/public/yaml/4896.entry.js | 3 +- src/Web/assets/public/yaml/491.entry.js | 3 +- src/Web/assets/public/yaml/5257.entry.js | 3 +- src/Web/assets/public/yaml/5454.entry.js | 3 +- src/Web/assets/public/yaml/5524.entry.js | 3 +- src/Web/assets/public/yaml/5669.entry.js | 3 +- src/Web/assets/public/yaml/5881.entry.js | 3 +- src/Web/assets/public/yaml/5900.entry.js | 3 +- src/Web/assets/public/yaml/5924.entry.js | 3 +- src/Web/assets/public/yaml/5925.entry.js | 3 +- src/Web/assets/public/yaml/5972.entry.js | 3 +- src/Web/assets/public/yaml/5974.entry.js | 3 +- src/Web/assets/public/yaml/6022.entry.js | 3 +- src/Web/assets/public/yaml/6162.entry.js | 3 +- src/Web/assets/public/yaml/6175.entry.js | 3 +- src/Web/assets/public/yaml/622.entry.js | 3 +- src/Web/assets/public/yaml/6223.entry.js | 3 +- .../yaml/{3389.entry.js => 6327.entry.js} | 3 +- src/Web/assets/public/yaml/6330.entry.js | 3 +- src/Web/assets/public/yaml/6331.entry.js | 3 +- src/Web/assets/public/yaml/6354.entry.js | 3 +- src/Web/assets/public/yaml/6751.entry.js | 3 +- src/Web/assets/public/yaml/6792.entry.js | 3 +- src/Web/assets/public/yaml/6844.entry.js | 3 +- src/Web/assets/public/yaml/7125.entry.js | 3 +- src/Web/assets/public/yaml/7127.entry.js | 3 +- src/Web/assets/public/yaml/7135.entry.js | 3 +- src/Web/assets/public/yaml/7148.entry.js | 3 +- src/Web/assets/public/yaml/7447.entry.js | 3 +- src/Web/assets/public/yaml/7453.entry.js | 3 +- src/Web/assets/public/yaml/7483.entry.js | 3 +- src/Web/assets/public/yaml/7604.entry.js | 3 +- src/Web/assets/public/yaml/7792.entry.js | 3 +- src/Web/assets/public/yaml/7971.entry.js | 3 +- src/Web/assets/public/yaml/8147.entry.js | 3 +- src/Web/assets/public/yaml/8308.entry.js | 3 +- src/Web/assets/public/yaml/8309.entry.js | 3 +- src/Web/assets/public/yaml/8327.entry.js | 3 +- src/Web/assets/public/yaml/849.entry.js | 3 +- src/Web/assets/public/yaml/8677.entry.js | 3 +- src/Web/assets/public/yaml/868.entry.js | 3 +- src/Web/assets/public/yaml/8947.entry.js | 3 +- src/Web/assets/public/yaml/8975.entry.js | 3 +- src/Web/assets/public/yaml/9342.entry.js | 3 +- src/Web/assets/public/yaml/9482.entry.js | 3 +- src/Web/assets/public/yaml/9538.entry.js | 3 +- src/Web/assets/public/yaml/9596.entry.js | 1 + src/Web/assets/public/yaml/9741.entry.js | 3 +- src/Web/assets/public/yaml/9953.entry.js | 3 +- src/Web/assets/public/yaml/entry.css | 3 +- src/Web/assets/public/yaml/entry.js | 3 +- src/Web/assets/views/config.ejs | 390 +++++++----------- src/Web/types/express/index.d.ts | 1 + 91 files changed, 233 insertions(+), 421 deletions(-) create mode 100644 src/Web/assets/public/yaml/3734.entry.js rename src/Web/assets/public/yaml/{3389.entry.js => 6327.entry.js} (64%) create mode 100644 src/Web/assets/public/yaml/9596.entry.js diff --git a/src/Web/Client/index.ts b/src/Web/Client/index.ts index cb4890e..c9163b0 100644 --- a/src/Web/Client/index.ts +++ b/src/Web/Client/index.ts @@ -818,11 +818,12 @@ const webClient = async (options: OperatorConfig) => { }); }); - app.getAsync('/config', async (req: express.Request, res: express.Response) => { + app.getAsync('/config', defaultSession, async (req: express.Request, res: express.Response) => { const {format = 'json'} = req.query as any; res.render('config', { title: `Configuration Editor`, format, + canSave: req.user?.scope?.includes('wikiedit') }); }); diff --git a/src/Web/assets/public/yaml/1565.entry.js b/src/Web/assets/public/yaml/1565.entry.js index eb18c15..5a49823 100644 --- a/src/Web/assets/public/yaml/1565.entry.js +++ b/src/Web/assets/public/yaml/1565.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1565],{1565:(e,n,t)=>{t.r(n),t.d(n,{setupMode:()=>Le});var r,i,o,a,s,u,c,d,f,g,l,h,p,v,m,_,w,b,y,k,C,E,x,I,A,j,M=t(5244),S=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=M.j6.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r0&&(i.arguments=t),i},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.title)&&de.string(n.command)}}(w||(w={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var n=e;return de.objectLiteral(n)&&de.string(n.newText)&&a.is(n.range)}}(b||(b={})),function(e){e.create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},e.is=function(e){var n=e;return void 0!==n&&de.objectLiteral(n)&&de.string(n.label)&&(de.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(de.string(n.description)||void 0===n.description)}}(y||(y={})),function(e){e.is=function(e){return"string"==typeof e}}(k||(k={})),function(e){e.replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},e.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},e.del=function(e,n){return{range:e,newText:"",annotationId:n}},e.is=function(e){var n=e;return b.is(n)&&(y.is(n.annotationId)||k.is(n.annotationId))}}(C||(C={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return de.defined(n)&&L.is(n.textDocument)&&Array.isArray(n.edits)}}(E||(E={})),function(e){e.create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"create"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(x||(x={})),function(e){e.create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var n=e;return n&&"rename"===n.kind&&de.string(n.oldUri)&&de.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(I||(I={})),function(e){e.create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"delete"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||de.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||de.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(A||(A={})),function(e){e.is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return de.string(e.kind)?x.is(e)||I.is(e)||A.is(e):E.is(e)})))}}(j||(j={}));var T,R,L,D,P,F,N,O,U,W,V,H,K,z,X,Z,B,$,q,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=b.insert(e,n):k.is(t)?(i=t,r=C.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=b.replace(e,n):k.is(t)?(i=t,r=C.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=b.del(e):k.is(n)?(r=n,t=C.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=C.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(k.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var t=new ue(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new ue(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(L.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new ue(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ue(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(y.is(n)||k.is(n)?r=n:t=n,void 0===r?i=x.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=x.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(y.is(t)||k.is(t)?i=t:r=t,void 0===i?o=I.create(e,n,r):(a=k.is(i)?i:this._changeAnnotations.manage(i),o=I.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(y.is(n)||k.is(n)?r=n:t=n,void 0===r?i=A.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)}}(T||(T={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.integer(n.version)}}(R||(R={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&(null===n.version||de.integer(n.version))}}(L||(L={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.string(n.languageId)&&de.integer(n.version)&&de.string(n.text)}}(D||(D={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(P||(P={})),function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(P||(P={})),function(e){e.is=function(e){var n=e;return de.objectLiteral(e)&&P.is(n.kind)&&de.string(n.value)}}(F||(F={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(N||(N={})),function(e){e.PlainText=1,e.Snippet=2}(O||(O={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e,n,t){return{newText:e,insert:n,replace:t}},e.is=function(e){var n=e;return n&&de.string(n.newText)&&a.is(n.insert)&&a.is(n.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(H||(H={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(K||(K={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var n=e;return de.string(n)||de.objectLiteral(n)&&de.string(n.language)&&de.string(n.value)}}(z||(z={})),function(e){e.is=function(e){var n=e;return!!n&&de.objectLiteral(n)&&(F.is(n.contents)||z.is(n.contents)||de.typedArray(n.contents,z.is))&&(void 0===e.range||a.is(e.range))}}(X||(X={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(Z||(Z={})),function(e){e.create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(se||(se={}));var de,fe=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return o.create(0,e);for(;te?r=i:t=i+1}var a=t-1;return o.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1{t.r(n),t.d(n,{setupMode:()=>Le});var r,i,o,a,s,u,c,d,f,g,l,h,p,v,m,_,w,b,y,k,C,E,x,I,A,j,M=t(5244),S=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=M.j6.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r0&&(i.arguments=t),i},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.title)&&de.string(n.command)}}(w||(w={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var n=e;return de.objectLiteral(n)&&de.string(n.newText)&&a.is(n.range)}}(b||(b={})),function(e){e.create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},e.is=function(e){var n=e;return void 0!==n&&de.objectLiteral(n)&&de.string(n.label)&&(de.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(de.string(n.description)||void 0===n.description)}}(y||(y={})),function(e){e.is=function(e){return"string"==typeof e}}(k||(k={})),function(e){e.replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},e.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},e.del=function(e,n){return{range:e,newText:"",annotationId:n}},e.is=function(e){var n=e;return b.is(n)&&(y.is(n.annotationId)||k.is(n.annotationId))}}(C||(C={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return de.defined(n)&&L.is(n.textDocument)&&Array.isArray(n.edits)}}(E||(E={})),function(e){e.create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"create"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(x||(x={})),function(e){e.create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var n=e;return n&&"rename"===n.kind&&de.string(n.oldUri)&&de.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(I||(I={})),function(e){e.create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"delete"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||de.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||de.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}}(A||(A={})),function(e){e.is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return de.string(e.kind)?x.is(e)||I.is(e)||A.is(e):E.is(e)})))}}(j||(j={}));var T,R,L,D,P,F,N,O,U,W,V,H,K,z,X,Z,B,$,q,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=b.insert(e,n):k.is(t)?(i=t,r=C.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=b.replace(e,n):k.is(t)?(i=t,r=C.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=b.del(e):k.is(n)?(r=n,t=C.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=C.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(k.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var t=new ue(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new ue(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(L.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new ue(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ue(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(y.is(n)||k.is(n)?r=n:t=n,void 0===r?i=x.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=x.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(y.is(t)||k.is(t)?i=t:r=t,void 0===i?o=I.create(e,n,r):(a=k.is(i)?i:this._changeAnnotations.manage(i),o=I.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(y.is(n)||k.is(n)?r=n:t=n,void 0===r?i=A.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)}}(T||(T={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.integer(n.version)}}(R||(R={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&(null===n.version||de.integer(n.version))}}(L||(L={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.string(n.languageId)&&de.integer(n.version)&&de.string(n.text)}}(D||(D={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(P||(P={})),function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(P||(P={})),function(e){e.is=function(e){var n=e;return de.objectLiteral(e)&&P.is(n.kind)&&de.string(n.value)}}(F||(F={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(N||(N={})),function(e){e.PlainText=1,e.Snippet=2}(O||(O={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e,n,t){return{newText:e,insert:n,replace:t}},e.is=function(e){var n=e;return n&&de.string(n.newText)&&a.is(n.insert)&&a.is(n.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(H||(H={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(K||(K={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var n=e;return de.string(n)||de.objectLiteral(n)&&de.string(n.language)&&de.string(n.value)}}(z||(z={})),function(e){e.is=function(e){var n=e;return!!n&&de.objectLiteral(n)&&(F.is(n.contents)||z.is(n.contents)||de.typedArray(n.contents,z.is))&&(void 0===e.range||a.is(e.range))}}(X||(X={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(Z||(Z={})),function(e){e.create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(se||(se={}));var de,fe=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return o.create(0,e);for(;te?r=i:t=i+1}var a=t-1;return o.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"#"}},o={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]); -//# sourceMappingURL=1569.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1569],{1569:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"#"}},o={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/1585.entry.js b/src/Web/assets/public/yaml/1585.entry.js index f065044..3b80005 100644 --- a/src/Web/assets/public/yaml/1585.entry.js +++ b/src/Web/assets/public/yaml/1585.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1585],{1585:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>n,language:()=>l});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},l={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]); -//# sourceMappingURL=1585.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1585],{1585:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>n,language:()=>l});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},l={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/1593.entry.js b/src/Web/assets/public/yaml/1593.entry.js index ee8132c..4fca511 100644 --- a/src/Web/assets/public/yaml/1593.entry.js +++ b/src/Web/assets/public/yaml/1593.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1593],{1593:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>E});var t={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},E={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}}}]); -//# sourceMappingURL=1593.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1593],{1593:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>E});var t={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},E={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/1594.entry.js b/src/Web/assets/public/yaml/1594.entry.js index 8d97547..c369686 100644 --- a/src/Web/assets/public/yaml/1594.entry.js +++ b/src/Web/assets/public/yaml/1594.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1594],{1594:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]); -//# sourceMappingURL=1594.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1594],{1594:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/162.entry.js b/src/Web/assets/public/yaml/162.entry.js index 250ec2f..4ae62f6 100644 --- a/src/Web/assets/public/yaml/162.entry.js +++ b/src/Web/assets/public/yaml/162.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[162],{162:(e,s,t)=>{t.r(s),t.d(s,{conf:()=>n,language:()=>r});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},r={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}}}]); -//# sourceMappingURL=162.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[162],{162:(e,s,t)=>{t.r(s),t.d(s,{conf:()=>n,language:()=>r});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},r={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/1623.entry.js b/src/Web/assets/public/yaml/1623.entry.js index f1b5d0a..2ba5604 100644 --- a/src/Web/assets/public/yaml/1623.entry.js +++ b/src/Web/assets/public/yaml/1623.entry.js @@ -1,2 +1 @@ -(()=>{"use strict";var e,t,r={1623:(e,t,r)=>{var n,i=r(8975),o=r(4881),s=r(6761),a=r(4767),c=r(3262),l=r(1023),u=r(9691),h=r(6060);n=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var n={resolve:function(){for(var e,n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(n=s+"/"+n,i=47===s.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;il){if(47===r.charCodeAt(a+h))return r.slice(a+h+1);if(0===h)return r.slice(a+h)}else s>l&&(47===e.charCodeAt(i+h)?u=h:0===h&&(u=0));break}var m=e.charCodeAt(i+h);if(m!==r.charCodeAt(a+h))break;47===m&&(u=h)}var f="";for(h=i+u+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(a+u):(a+=u,47===r.charCodeAt(a)&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var a=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!s){i=n+1;break}}else-1===c&&(s=!1,c=n+1),a>=0&&(l===r.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===r?r=a:1!==s&&(s=1):-1!==r&&(s=-1);else if(!o){n=a+1;break}}return-1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),r?r===t.root?r+n:r+"/"+n:n;var t,r,n},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var s=-1,a=0,c=-1,l=!0,u=e.length-1,h=0;u>=n;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===s?s=u:1!==h&&(h=1):-1!==s&&(h=-1);else if(!l){a=u+1;break}return-1===s||-1===c||0===h||1===h&&s===c-1&&s===a+1?-1!==c&&(r.base=r.name=0===a&&o?e.slice(1,c):e.slice(a,c)):(0===a&&o?(r.name=e.slice(1,s),r.base=e.slice(1,c)):(r.name=e.slice(a,s),r.base=e.slice(a,c)),r.ext=e.slice(s,c)),a>0?r.dir=e.slice(0,a-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},447:(e,t,r)=>{var n;if(r.r(t),r.d(t,{URI:()=>p,Utils:()=>P}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;n=i.indexOf("Windows")>=0}var o,s,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//,h="",m="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function e(e,t,r,n,i,o){var s;void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=(s=e)||o?s:"file",this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==m&&(t=m+t):t=m}return t}(this.scheme,r||h),this.query=n||h,this.fragment=i||h,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,r=e.authority,n=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===r?r=this.authority:null===r&&(r=h),void 0===n?n=this.path:null===n&&(n=h),void 0===i?i=this.query:null===i&&(i=h),void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&o===this.fragment?this:new g(t,r,n,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var r=f.exec(e);return r?new g(r[2]||h,O(r[4]||h),O(r[5]||h),O(r[7]||h),O(r[9]||h),t):new g(h,h,h,h,h)},e.file=function(e){var t=h;if(n&&(e=e.replace(/\\/g,m)),e[0]===m&&e[1]===m){var r=e.indexOf(m,2);-1===r?(t=e.substring(2),e=m):(t=e.substring(2,r),e=e.substring(r)||m)}return new g("file",t,e,h,h)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var r=new g(t);return r._formatted=t.external,r._fsPath=t._sep===d?t.fsPath:null,r}return t},e}(),d=n?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),y=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function v(e,t){for(var r=void 0,n=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var s=y[o];void 0!==s?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=s):-1===n&&(n=i)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function b(e){for(var t=void 0,r=0;r1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n&&(r=r.replace(/\//g,"\\")),r}function S(e,t){var r=t?b:v,n="",i=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(i&&(n+=i,n+=":"),(o||"file"===i)&&(n+=m,n+=m),o){var l=o.indexOf("@");if(-1!==l){var u=o.substr(0,l);o=o.substr(l+1),-1===(l=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,l),!1),n+=":",n+=r(u.substr(l+1),!1)),n+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?n+=r(o,!1):(n+=r(o.substr(0,l),!1),n+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}n+=r(s,!0)}return a&&(n+="?",n+=r(a,!1)),c&&(n+="#",n+=t?c:v(c,!1)),n}function A(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+A(e.substr(3)):e}}var w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(w)?e.replace(w,(function(e){return A(e)})):e}var P,M,T=r(470),C=function(){for(var e=0,t=0,r=arguments.length;t{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(447)})();var m,f,p,{URI:d,Utils:g}=n;function y(e,t){if(e.length0?e.lastIndexOf(t)===r:0===r&&e===t}function b(e){var t="";y(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(r){try{return new RegExp(e,t)}catch(e){return}}}function x(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r{const[n]=r;return void 0===t[n]?e:t[n]}))}(t,r)}function P(){return O}(f=m||(m={}))[f.Undefined=0]="Undefined",f[f.EnumValueMismatch=1]="EnumValueMismatch",f[f.Deprecated=2]="Deprecated",f[f.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=258]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",f[f.InvalidUnicode=260]="InvalidUnicode",f[f.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",f[f.InvalidCharacter=262]="InvalidCharacter",f[f.PropertyExpected=513]="PropertyExpected",f[f.CommaExpected=514]="CommaExpected",f[f.ColonExpected=515]="ColonExpected",f[f.ValueExpected=516]="ValueExpected",f[f.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",f[f.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",f[f.TrailingComma=519]="TrailingComma",f[f.DuplicateKey=520]="DuplicateKey",f[f.CommentNotPermitted=521]="CommentNotPermitted",f[f.SchemaResolveError=768]="SchemaResolveError",(p||(p={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[a.a4.Markdown,a.a4.PlainText],commitCharactersSupport:!0}}}};var M,T,C,j,V=(M=function(e,t){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),k=P(),I={"color-hex":{errorMessage:k("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:k("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:k("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:k("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:k("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},$=function(){function e(e,t,r){void 0===r&&(r=0),this.offset=t,this.length=r,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();function F(e){return w(e)?e?{}:{not:{}}:e}V((function(e,t){var r=j.call(this,e,t)||this;return r.type="null",r.value=null,r}),j=$),function(e){V((function(t,r,n){var i=e.call(this,t,n)||this;return i.type="boolean",i.value=r,i}),e)}($),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="array",n.items=[],n}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}($),function(e){V((function(t,r){var n=e.call(this,t,r)||this;return n.type="number",n.isInteger=!0,n.value=Number.NaN,n}),e)}($),function(e){V((function(t,r,n){var i=e.call(this,t,r,n)||this;return i.type="string",i.value="",i}),e)}($),function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.type="property",i.colonOffset=-1,i.keyNode=n,i}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}($),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="object",n.properties=[],n}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}($),(C=T||(T={}))[C.Key=0]="Key",C[C.Enum=1]="Enum";var E=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||W(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),N=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),D=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,r=e;t=e.offset&&t=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var f=0,p=Object.keys(t.properties);f0)for(var V=0,I=o;Vt.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),S(t.minProperties)&&e.properties.length=i.length&&r.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var c=i.length;ct.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var p=R(e);p.some((function(e,t){return t!==p.lastIndexOf(e)}))&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,r,n);break;case"string":!function(e,t,r,n){if(S(t.minLength)&&e.value.lengtht.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern){var i=b(t.pattern);(null==i?void 0:i.test(e.value))||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||k("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);s?s[2]||"uri"!==t.format||(o=k("uriSchemeMissing","URI with a scheme is expected.")):o=k("uriMissing","URI is expected.")}else o=k("uriEmpty","URI expected.");o&&r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||k("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=I[t.format];e.value&&a.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,r);break;case"number":!function(e,t,r,n){var i=e.value;function o(e){var t,r=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return r&&{value:Number(r[1]+(r[2]||"")),multiplier:((null===(t=r[2])||void 0===t?void 0:t.length)||0)-(parseInt(r[3])||0)}}if(S(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=i%t.multipleOf;else{var a=o(t.multipleOf),c=o(i);if(a&&c){var l=Math.pow(10,Math.abs(c.multiplier-a.multiplier));c.multiplier=f&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",f)});var p=h(t.minimum,t.exclusiveMinimum);S(p)&&id&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maximumWarning","Value is above the maximum of {0}.",d)})}(i,t,r);break;case"property":return _(i.valueNode,t,r,n)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||r.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||k("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||r.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||k("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var o=0,s=t.allOf;o0?s={schema:l,validationResult:u,matchingSchemas:h}:0===m&&(s.matchingSchemas.merge(h),s.validationResult.mergeEnumValues(u))}else s.matchingSchemas.merge(h),s.validationResult.propertiesMatches+=u.propertiesMatches,s.validationResult.propertiesValueMatches+=u.propertiesValueMatches;else s={schema:l,validationResult:u,matchingSchemas:h}}return o.length>1&&t&&r.problems.push({location:{offset:i.offset,length:1},message:k("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(r.merge(s.validationResult),r.propertiesMatches+=s.validationResult.propertiesMatches,r.propertiesValueMatches+=s.validationResult.propertiesValueMatches,n.merge(s.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&g(t.anyOf,!1),Array.isArray(t.oneOf)&&g(t.oneOf,!0);var y,v,b,S,w,O,P=function(e){var t=new D,o=n.newSub();_(i,F(e),t,o),r.merge(t),r.propertiesMatches+=t.propertiesMatches,r.propertiesValueMatches+=t.propertiesValueMatches,n.merge(o)},M=F(t.if);if(M&&(y=M,v=F(t.then),b=F(t.else),S=F(y),w=new D,O=n.newSub(),_(i,S,w,O),n.merge(O),w.hasProblems()?b&&P(b):v&&P(v)),Array.isArray(t.enum)){for(var T=R(i),C=!1,j=0,V=t.enum;j1)||"/"!==h&&void 0!==h&&"{"!==h&&","!==h||"/"!==f&&void 0!==f&&","!==f&&"}"!==f?i+="([^/]*)":("/"===f?l++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=r}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}!function(){function e(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=[]),this.root=e,this.syntaxErrors=t,this.comments=r}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return(0,s.Hk)(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(r){var n=e(r),i=r.children;if(Array.isArray(i))for(var o=0;o0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:U("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,r=0,n=this.globWrappers;r0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var r=!1,n=[e=Y(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));n.length;)for(var o=n.pop(),s=0;s1&&(r=n[1]),v(r,".")&&(r=r.substr(0,r.length-1)),new B({},[q("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Z(e),r)])}))},e.prototype.resolveSchemaContent=function(e,t,r){var n=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var s=Y(o.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new G({},[q("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&i.push(q("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,c=function(e,t,r,n){var o=n?decodeURIComponent(n):void 0,s=function(e,t){if(!t)return e;var r=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(r=r[e])})),r}(t,o);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else i.push(q("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,r))},l=function(e,t,r,o,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o)),t=Y(t);var l=n.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(n){if(s[t]=!0,n.errors.length){var o=r?t+"#"+r:t;i.push(q("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,n.errors[0]))}return c(e,n.schema,t,r),u(e,n.schema,t,l.dependencies)}))},u=function(e,t,r,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],u=function(e){for(var n=[];e.$ref;){var s=e.$ref,u=s.split("#",2);if(delete e.$ref,u[0].length>0)return void a.push(l(e,u[0],u[1],r,i));-1===n.indexOf(s)&&(c(e,t,r,u[1]),n.push(s))}!function(){for(var e=[],t=0;t=0||(s.push(h),u(h))}return n.promise.all(a)};return u(o,o,t,r).then((function(e){return new G(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var r=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(r.length>0){var n=r[0].valueNode;if(n&&"string"===n.type){var i=R(n);if(i&&y(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=Y(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],c=function(e){try{return d.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),l=0,u=this.filePatternAssociations;l0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:g},g},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(e),n={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(r,n)},e.prototype.getMatchingSchemas=function(e,t,r){if(r){var n=r.id||"schemaservice://untitled/matchingSchemas/"+z++;return this.resolveSchemaContent(new B(r),n,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),z=0;function Y(e){try{return d.parse(e).toString()}catch(t){return e}}function Z(e){try{var t=d.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function X(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function Q(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r=0;t--){var r=this.contributions[t].resolveCompletion;if(r){var n=r(e);if(n)return n}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,r){var n=this,i={items:[],isIncomplete:!1},o=e.getText(),s=e.offsetAt(t),c=r.getNodeFromOffset(s,!0);if(this.isInComment(e,c?c.offset:0,s))return Promise.resolve(i);if(c&&s===c.offset+c.length&&s>0){var l=o[s-1];("object"===c.type&&"}"===l||"array"===c.type&&"]"===l)&&(c=c.parent)}var u,h=this.getCurrentWord(e,s);if(!c||"string"!==c.type&&"number"!==c.type&&"boolean"!==c.type&&"null"!==c.type){var m=s-h.length;m>0&&'"'===o[m-1]&&m--,u=a.e6.create(e.positionAt(m),t)}else u=a.e6.create(e.positionAt(c.offset),e.positionAt(c.offset+c.length));var f={},p={add:function(e){var t=e.label,r=f[t];if(r)r.documentation||(r.documentation=e.documentation),r.detail||(r.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var n=t.substr(0,57).trim()+"...";f[n]||(t=n)}u&&void 0!==e.insertText&&(e.textEdit=a.PY.replace(u,e.insertText)),e.label=t,f[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,r).then((function(t){var l=[],m=!0,d="",g=void 0;if(c&&"string"===c.type){var y=c.parent;y&&"property"===y.type&&y.keyNode===c&&(m=!y.valueNode,g=y,d=o.substr(c.offset+1,c.length-2),y&&(c=y.parent))}if(c&&"object"===c.type){if(c.offset===s)return i;c.properties.forEach((function(e){g&&g===e||(f[e.keyNode.value]=a.FG.create("__"))}));var v="";m&&(v=n.evaluateSeparatorAfter(e,e.offsetAt(u.end))),t?n.getPropertyCompletions(t,r,c,m,v,p):n.getSchemaLessPropertyCompletions(r,c,d,p);var b=L(c);n.contributions.forEach((function(t){var r=t.collectPropertyCompletions(e.uri,b,h,m,""===v,p);r&&l.push(r)})),!t&&h.length>0&&'"'!==o.charAt(s-h.length-1)&&(p.add({kind:a.cm.Property,label:n.getLabelForValue(h),insertText:n.getInsertTextForProperty(h,void 0,!1,v),insertTextFormat:a.lO.Snippet,documentation:""}),p.setAsIncomplete())}var x={};return t?n.getValueCompletions(t,r,c,s,e,p,x):n.getSchemaLessValueCompletions(r,c,s,e,p),n.contributions.length>0&&n.getContributedValueCompletions(r,c,s,e,p,l),n.promiseConstructor.all(l).then((function(){if(0===p.getNumberOfProposals()){var t=s;!c||"string"!==c.type&&"number"!==c.type&&"boolean"!==c.type&&"null"!==c.type||(t=c.offset+c.length);var r=n.evaluateSeparatorAfter(e,t);n.addFillerValueCompletions(x,r,p)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,r,n,i,o){var s=this;t.getMatchingSchemas(e.schema,r.offset).forEach((function(e){if(e.node===r&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var r=t[e];if("object"==typeof r&&!r.deprecationMessage&&!r.doNotSuggest){var c={kind:a.cm.Property,label:e,insertText:s.getInsertTextForProperty(e,r,n,i),insertTextFormat:a.lO.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(r.markdownDescription)||r.description||""};void 0!==r.suggestSortText&&(c.sortText=r.suggestSortText),c.insertText&&v(c.insertText,"$1"+i)&&(c.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(c)}}));var c=e.schema.propertyNames;if("object"==typeof c&&!c.deprecationMessage&&!c.doNotSuggest){var l=function(e,t){void 0===t&&(t=void 0);var r={kind:a.cm.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,n,i),insertTextFormat:a.lO.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(c.markdownDescription)||c.description||""};void 0!==c.suggestSortText&&(r.sortText=c.suggestSortText),r.insertText&&v(r.insertText,"$1"+i)&&(r.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(r)};if(c.enum)for(var u=0;u(t.colonOffset||0)){var u=t.valueNode;if(u&&(r>u.offset+u.length||"object"===u.type||"array"===u.type))return;var h=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&l(e.valueNode),!0})),"$schema"===h&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(c,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var m=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===m&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(l),!0}))}else t.items.forEach(l)},e.prototype.getValueCompletions=function(e,t,r,n,i,o,s){var a=n,c=void 0,l=void 0;if(!r||"string"!==r.type&&"number"!==r.type&&"boolean"!==r.type&&"null"!==r.type||(a=r.offset+r.length,l=r,r=r.parent),r){if("property"===r.type&&n>(r.colonOffset||0)){var u=r.valueNode;if(u&&n>u.offset+u.length)return;c=r.keyNode.value,r=r.parent}if(r&&(void 0!==c||"array"===r.type)){for(var h=this.evaluateSeparatorAfter(i,a),m=0,f=t.getMatchingSchemas(e.schema,r.offset,l);m(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||r<=a.offset+a.length)&&t.parent){var c=L(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(n.uri,c,s,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(n.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,r,n){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,r),this.addDefaultValueCompletions(e,t,r),this.collectTypes(e,n),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})))},e.prototype.addDefaultValueCompletions=function(e,t,r,n){var i=this;void 0===n&&(n=0);var o=!1;if(A(e.default)){for(var s=e.type,c=e.default,l=n;l>0;l--)c=[c],s="array";r.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t),insertTextFormat:a.lO.Snippet,detail:se("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var c=e.type,l=s,u=n;u>0;u--)l=[l],c="array";r.add({kind:i.getSuggestionKind(c),label:i.getLabelForValue(l),insertText:i.getInsertTextForValue(l,t),insertTextFormat:a.lO.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var c,l,u=e.type,h=s.body,m=s.label;if(A(h)){e.type;for(var f=n;f>0;f--)h=[h];c=i.getInsertTextForSnippetValue(h,t),l=i.getFilterTextForSnippetValue(h),m=m||i.getLabelForSnippetValue(h)}else{if("string"!=typeof s.bodyText)return;var p="",d="",g="";for(f=n;f>0;f--)p=p+g+"[\n",d=d+"\n"+g+"]",g+="\t",u="array";c=p+g+s.bodyText.split("\n").join("\n"+g)+d+t,m=m||c,l=c.replace(/[\n]/g,"")}r.add({kind:i.getSuggestionKind(u),label:m,documentation:i.fromMarkup(s.markdownDescription)||s.description,insertText:c,insertTextFormat:a.lO.Snippet,filterText:l}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&n<5&&this.addDefaultValueCompletions(e.items,t,r,n+1)},e.prototype.addEnumValueCompletions=function(e,t,r){if(A(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var n=0,i=e.enum.length;n0?t[0]:void 0}if(!e)return a.cm.Value;switch(e){case"string":default:return a.cm.Value;case"object":return a.cm.Module;case"property":return a.cm.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,r){switch(e.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var n=t.getText().substr(e.offset,e.length)+r;return this.getInsertTextForPlainText(n)}},e.prototype.getInsertTextForProperty=function(e,t,r,n){var i=this.getInsertTextForValue(e,"");if(!r)return i;var o,s=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var c=t.defaultSnippets[0].body;A(c)&&(o=this.getInsertTextForSnippetValue(c,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),A(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var l=Array.isArray(t.type)?t.type[0]:t.type;switch(l||(t.properties?l="object":t.items&&(l="array")),l){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+n},e.prototype.getCurrentWord=function(e,t){for(var r=t-1,n=e.getText();r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var r=(0,s.tU)(e.getText(),!0);switch(r.setPosition(t),r.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,r){for(var n=(0,s.tU)(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var a=i[o];if(r>a.offset+a.length)return n.setPosition(a.offset+a.length),5===n.scan()&&r>=n.getTokenOffset()+n.getTokenLength()?o+1:o;if(r>=a.offset)return o}return 0},e.prototype.isInComment=function(e,t,r){var n=(0,s.tU)(e.getText(),!1);n.setPosition(t);for(var i=n.scan();17!==i&&n.getTokenOffset()+n.getTokenLength()=97&&e<=102?e-97+10:0)}function pe(e){if("#"===e[0])switch(e.length){case 4:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:17*fe(e.charCodeAt(4))/255};case 7:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:(16*fe(e.charCodeAt(7))+fe(e.charCodeAt(8)))/255}}}var de=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,r){var n=this;void 0===r&&(r={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||v(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var c=[],l=0,u=i.items;l0){o--;var s=a.Ye.create(e.uri,ge(e,t)),c=r?r+"."+t.keyNode.value:t.keyNode.value;x.push({name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),location:s,containerName:r}),g.push({node:i,containerName:c})}else b=!0}))};y0){o--;var s=ge(e,t),a=s,c={name:String(i),kind:n.getSymbolKind(t.type),range:s,selectionRange:a,children:[]};r.push(c),b.push({result:c.children,node:t})}else S=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var s=ge(e,t),a=ge(e,t.keyNode),c=[],l={name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),range:s,selectionRange:a,children:c,detail:n.getDetail(i)};r.push(l),b.push({result:c,node:i})}else S=!0}))};x=e)return r;return 1===t.documents.length?t.documents[0]:null}function Ve(e){const t=["mapping","scalar","sequence"];return e.filter((e=>{if("string"==typeof e){const r=e.split(" "),n=r[1]&&r[1].toLowerCase()||"scalar";return"map"!==n&&-1!==t.indexOf(n)}return!1}))}function ke(e,t){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--)if(e[r]!==t[r])return!1;return!0}var Ie,$e,Fe=P(),Ee={"color-hex":{errorMessage:Fe("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Fe("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Fe("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Fe("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Fe("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Ne="YAML";($e=Ie||(Ie={})).missingRequiredPropWarning="missingRequiredPropWarning",$e.typeMismatchWarning="typeMismatchWarning",$e.constWarning="constWarning";var De,Re={[Ie.missingRequiredPropWarning]:'Missing property "{0}".',[Ie.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[Ie.constWarning]:"Value must be {0}."},Le=class{constructor(e,t,r,n){this.offset=r,this.length=n,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],r=n=>{if(e>=n.offset&&e<=n.offset+n.length){const i=n.children;for(let n=0;n=e.offset&&t<=e.offset+e.length||r&&t===e.offset+e.length}(e,this.focusOffset))&&e!==this.exclude}newSub(){return new Je(-1,this.exclude)}},ze=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};ze.instance=new ze;var Ye=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=e?[]:null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===m.EnumValueMismatch&&(e.message=Fe("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map((e=>JSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){var r,n;if(null===(r=this.problems)||void 0===r?void 0:r.length)for(const r of t){const t=this.problems.filter((e=>e.problemType===r));for(const i of t){const t=null===(n=e.problems)||void 0===n?void 0:n.find((e=>e.problemType===r&&i.location.offset===e.location.offset&&(r!==Ie.missingRequiredPropWarning||ke(e.problemArgs,i.problemArgs))));t&&(t.problemArgs.length&&(t.problemArgs.filter((e=>!i.problemArgs.includes(e))).forEach((e=>i.problemArgs.push(e))),i.message=tt(i.problemType,i.problemArgs)),this.mergeSources(t,i))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const r=e.source.replace("yaml-schema: ","");t.source.includes(r)||(t.source=t.source+" | "+r),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Ze(e){return(0,s.zA)(e)}function Xe(e,t,r,n,i,o){const{isKubernetes:s}=o;if(e&&i.include(e)){switch(t.url||(t.url=r.url),t.title||(t.title=r.title),e.type){case"object":!function(e,t,n,i){var c;const l=Object.create(null),u=[],h=[...e.properties];for(;h.length>0;){const e=h.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":h.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&h.push(...e.properties)}))}else l[t]=e.valueNode,u.push(t)}if(Array.isArray(t.required))for(const i of t.required)if(!l[i]){const o=e.parent&&"property"===e.parent.type&&e.parent.keyNode,s=o?{offset:o.offset,length:o.length}:{offset:e.offset,length:1};n.problems.push({location:s,severity:a.H_.Warning,message:tt(Ie.missingRequiredPropWarning,[i]),source:Qe(t,r),schemaUri:et(t,r),problemArgs:[i],problemType:Ie.missingRequiredPropWarning})}const m=e=>{let t=u.indexOf(e);for(;t>=0;)u.splice(t,1),t=u.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){m(e);const u=t.properties[e],h=l[e];if(h)if(re(u))if(u)n.propertiesMatches++,n.propertiesValueMatches++;else{const i=h.parent;n.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Qe(t,r),schemaUri:et(t,r)})}else{u.url=null!==(c=t.url)&&void 0!==c?c:r.url;const e=new Ye(s);Xe(h,u,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const c=X(e);for(const h of u.slice(0))if(c.test(h)){m(h);const c=l[h];if(c){const l=t.patternProperties[e];if(re(l))if(l)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=c.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",h),source:Qe(t,r),schemaUri:et(t,r)})}else{const e=new Ye(s);Xe(c,l,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of u){const r=l[e];if(r){const e=new Ye(s);Xe(r,t.additionalProperties,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===o.disableAdditionalProperties)&&u.length>0)for(const e of u){const i=l[e];if(i){let o=null;"property"!==i.type?(o=i.parent,"object"===o.type&&(o=o.properties[0])):o=i,n.problems.push({location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Qe(t,r),schemaUri:et(t,r)})}}if(ee(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:Qe(t,r),schemaUri:et(t,r)}),ee(t.minProperties)&&e.properties.length=c.length&&n.propertiesValueMatches++}if(e.items.length>c.length)if("object"==typeof t.additionalItems)for(let r=c.length;r{const r=new Ye(s);return Xe(e,c,t,r,ze.instance,o),!r.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||Fe("requiredItemMissingWarning","Array does not contain required item."),source:Qe(t,r),schemaUri:et(t,r)})),ee(t.minItems)&&e.items.lengtht.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:Qe(t,r),schemaUri:et(t,r)}),!0===t.uniqueItems){const i=Ze(e);i.some(((e,t)=>t!==i.lastIndexOf(e)))&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("uniqueItemsWarning","Array has duplicate items."),source:Qe(t,r),schemaUri:et(t,r)})}}(e,t,n,i);break;case"string":!function(e,t,n){if(ee(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:Qe(t,r),schemaUri:et(t,r)}),ne(t.pattern)&&(X(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||Fe("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:Qe(t,r),schemaUri:et(t,r)})),t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{d.parse(e.value).scheme||"uri"!==t.format||(i=Fe("uriSchemeMissing","URI with a scheme is expected."))}catch(e){i=e.message}else i=Fe("uriEmpty","URI expected.");i&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||Fe("uriFormatWarning","String is not a URI: {0}",i),source:Qe(t,r),schemaUri:et(t,r)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const i=Ee[t.format];e.value&&i.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:Qe(t,r),schemaUri:et(t,r)})}}}(e,t,n);break;case"number":!function(e,t,n){const i=e.value;function o(e,t){return ee(t)?t:re(t)&&t?e:void 0}function s(e,t){if(!re(t)||!t)return e}ee(t.multipleOf)&&i%t.multipleOf!=0&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:Qe(t,r),schemaUri:et(t,r)});const c=o(t.minimum,t.exclusiveMinimum);ee(c)&&i<=c&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",c),source:Qe(t,r),schemaUri:et(t,r)});const l=o(t.maximum,t.exclusiveMaximum);ee(l)&&i>=l&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",l),source:Qe(t,r),schemaUri:et(t,r)});const u=s(t.minimum,t.exclusiveMinimum);ee(u)&&ih&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maximumWarning","Value is above the maximum of {0}.",h),source:Qe(t,r),schemaUri:et(t,r)})}(e,t,n);break;case"property":return Xe(e.valueNode,t,t,n,i,o)}!function(){function u(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(u)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||Fe("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Qe(t,r),schemaUri:et(t,r)});else if(t.type&&!u(t.type)){const i="object"===t.type?function(e){return e.$id?ie(e.$id):e.$ref||e._$ref?ie(e.$ref||e._$ref):e.title||(Array.isArray(e.type)?e.type.join(" | "):e.type)}(t):t.type;n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||tt(Ie.typeMismatchWarning,[i]),source:Qe(t,r),schemaUri:et(t,r),problemType:Ie.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const r of t.allOf)Xe(e,Ge(r),t,n,i,o);const h=Ge(t.not);if(h){const c=new Ye(s),l=i.newSub();Xe(e,h,t,c,l,o),c.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("notSchemaWarning","Matches a schema that is not allowed."),source:Qe(t,r),schemaUri:et(t,r)});for(const e of l.schemas)e.inverted=!e.inverted,i.add(e)}const f=(u,h)=>{const m=[];let f=null;for(const r of u){const n=Ge(r),a=new Ye(s),u=i.newSub();Xe(e,n,t,a,u,o),a.hasProblems()||m.push(n),f=f?s?c(a,f,n,u):l(h,a,f,n,u):{schema:n,validationResult:a,matchingSchemas:u}}return m.length>1&&h&&n.problems.push({location:{offset:e.offset,length:1},severity:a.H_.Warning,message:Fe("oneOfWarning","Matches multiple schemas when only one must validate."),source:Qe(t,r),schemaUri:et(t,r)}),null!==f&&(n.merge(f.validationResult),n.propertiesMatches+=f.validationResult.propertiesMatches,n.propertiesValueMatches+=f.validationResult.propertiesValueMatches,i.merge(f.matchingSchemas)),m.length};Array.isArray(t.anyOf)&&f(t.anyOf,!1),Array.isArray(t.oneOf)&&f(t.oneOf,!0);const p=(t,r)=>{const a=new Ye(s),c=i.newSub();Xe(e,Ge(t),r,a,c,o),n.merge(a),n.propertiesMatches+=a.propertiesMatches,n.propertiesValueMatches+=a.propertiesValueMatches,i.merge(c)},d=Ge(t.if);if(d&&((t,r,n,a)=>{const c=Ge(t),l=new Ye(s),u=i.newSub();Xe(e,c,r,l,u,o),i.merge(u),l.hasProblems()?a&&p(a,r):n&&p(n,r)})(d,t,Ge(t.then),Ge(t.else)),Array.isArray(t.enum)){const i=Ze(e);let o=!1;for(const e of t.enum)if(Q(i,e)){o=!0;break}n.enumValues=t.enum,n.enumValueMatch=o,o||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,code:m.EnumValueMismatch,message:t.errorMessage||Fe("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:Qe(t,r),schemaUri:et(t,r)})}te(t.const)&&(Q(Ze(e),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,code:m.EnumValueMismatch,problemType:Ie.constWarning,message:t.errorMessage||tt(Ie.constWarning,[JSON.stringify(t.const)]),source:Qe(t,r),schemaUri:et(t,r),problemArgs:[JSON.stringify(t.const)]}),n.enumValueMatch=!1),n.enumValues=[t.const]),t.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:a.H_.Warning,message:t.deprecationMessage,source:Qe(t,r),schemaUri:et(t,r)})}(),i.add({node:e,schema:t})}function c(e,t,r,n){const i=e.compareKubernetes(t.validationResult);return i>0?t={schema:r,validationResult:e,matchingSchemas:n}:0===i&&(t.matchingSchemas.merge(n),t.validationResult.mergeEnumValues(e)),t}function l(e,t,r,n,i){if(e||t.hasProblems()||r.validationResult.hasProblems()){const e=t.compareGeneric(r.validationResult);e>0?r={schema:n,validationResult:t,matchingSchemas:i}:0===e&&(r.matchingSchemas.merge(i),r.validationResult.mergeEnumValues(t),r.validationResult.mergeWarningGeneric(t,[Ie.missingRequiredPropWarning,Ie.typeMismatchWarning,Ie.constWarning]))}else r.matchingSchemas.merge(i),r.validationResult.propertiesMatches+=t.propertiesMatches,r.validationResult.propertiesValueMatches+=t.propertiesValueMatches;return r}}function Qe(e,t){var r;if(e){let n;if(e.title)n=e.title;else if(t.title)n=t.title;else{const i=null!==(r=e.url)&&void 0!==r?r:t.url;if(i){const e=d.parse(i);"file"===e.scheme&&(n=e.fsPath),n=e.toString()}}if(n)return`yaml-schema: ${n}`}return Ne}function et(e,t){var r;const n=null!==(r=e.url)&&void 0!==r?r:t.url;return n?[n]:[]}function tt(e,t){return Fe(e,Re[e],t.join(" | "))}var rt=0;function nt(e,t,r,n){if(e||(rt=0),t){if((0,c._N)(t))return function(e,t,r,n){let i;i=e.flow&&!e.range?function(e){let t=Number.MAX_SAFE_INTEGER,r=0;for(const n of e.items)(0,c.vG)(n)&&((0,c.UG)(n.key)&&n.key.range&&n.key.range[0]<=t&&(t=n.key.range[0]),(0,c.UG)(n.value)&&n.value.range&&n.value.range[2]>=r&&(r=n.value.range[2]));return[t,r,r]}(e):e.range;const o=new Be(t,e,...ot(i,n));for(const t of e.items)(0,c.vG)(t)&&o.properties.push(nt(o,t,r,n));return o}(t,e,r,n);if((0,c.vG)(t))return function(e,t,r,n){const i=e.key,o=e.value,s=i.range[0];let a=i.range[1],l=i.range[2];o&&(a=o.range[1],l=o.range[2]);const u=new Ke(t,e,...ot([s,a,l],n));if((0,c.lA)(i)){const e=new He(t,i,...it(i.range));e.value=i.source,u.keyNode=e}else u.keyNode=nt(u,i,r,n);return u.valueNode=nt(u,o,r,n),u}(t,e,r,n);if((0,c.xw)(t))return function(e,t,r,n){const i=new Ue(t,e,...it(e.range));for(const t of e.items)(0,c.UG)(t)&&i.children.push(nt(i,t,r,n));return i}(t,e,r,n);if((0,c.jF)(t))return function(e,t){if(null===e.value)return new We(t,e,...it(e.range));switch(typeof e.value){case"string":{const r=new He(t,e,...it(e.range));return r.value=e.value,r}case"boolean":return new _e(t,e,e.value,...it(e.range));case"number":{const r=new qe(t,e,...it(e.range));return r.value=e.value,r.isInteger=Number.isInteger(r.value),r}}}(t,e);if((0,c.lA)(t)){if(rt>1e3)return;return function(e,t,r,n){return rt++,nt(t,e.resolve(r),r,n)}(t,e,r,n)}}}function it(e){return[e[0],e[1]-e[0]]}function ot(e,t){const r=t.linePos(e[0]),n=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return r.line===n.line||t.lineStarts.length===n.line&&1!==n.col||i[1]--,i}function st(e){if(e.items.length>1)return!1;const t=e.items[0];return!(!(0,c.jF)(t.key)||!(0,c.jF)(t.value)||""!==t.key.value||t.value.value)}function at(e){return void 0!==e.start}function ct(e,t,r){let n=r(t,e);if("symbol"==typeof n)return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{let n=e(r);const i=r.children;if(Array.isArray(i))for(let e=0;e{const r=a.e6.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),n=a.R9.create(r,t.message,t.severity,t.code?t.code:m.Undefined,t.source);return n.data={schemaUri:t.schemaUri},n}))}return null}getMatchingSchemas(e,t=-1,r=null){const n=new Je(t,r);return this.root&&e&&Xe(this.root,e,e,new Ye(this.isKubernetes),n,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),n.schemas}}{constructor(e){super(null,[]),this.lineCounter=e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._lineComments.push(`#${this._internalDocument.commentBefore}`),(0,c.Vn)(this.internalDocument,((e,t)=>{(null==t?void 0:t.commentBefore)&&this._lineComments.push(`#${t.commentBefore}`),(null==t?void 0:t.comment)&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}set internalDocument(e){this._internalDocument=e,this.root=nt(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(mt)}get warnings(){return this.internalDocument.warnings.map(mt)}getSchemas(e,t,r){const n=[];return t.validate(e,n,r.start),n}getNodeFromPosition(e,t){const r=t.getPosition(e);if(0===t.getLineContent(r.line).trim().length)return[this.findClosestNode(e,t),!0];let n;return(0,c.Vn)(this.internalDocument,((t,r)=>{if(!r)return;const i=r.range;return i?i[0]<=e&&i[1]>=e?void(n=r):c.Vn.SKIP:void 0})),[n,!1]}findClosestNode(e,t){let r,n=this.internalDocument.range[2],i=this.internalDocument.range[0];(0,c.Vn)(this.internalDocument,((t,o)=>{if(!o)return;const s=o.range;if(!s)return;const a=Math.abs(s[2]-e);i<=s[0]&&a<=n&&(n=a,i=s[0],r=o)}));const o=t.getPosition(e),s=function(e,t){if(e.length0))return t;{const n=this.getParent(t);if(n)return this.getProperParentByIndentation(e,n,r)}}else if((0,c.vG)(t)){const n=this.getParent(t);return this.getProperParentByIndentation(e,n,r)}return t}getParent(e){return function(e,t){let r;if((0,c.Vn)(e,((e,n,i)=>{if(n===t)return r=i[i.length-1],c.Vn.BREAK})),!(0,c.qk)(r))return r}(this.internalDocument,e)}},ut=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},ht=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,r=!1){return this.ensureCache(e,null!=t?t:dt,r),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,r){const n=e.uri;this.cache.has(n)||this.cache.set(n,{version:-1,document:new ut([],[]),parserOptions:dt});const i=this.cache.get(n);if(i.version!==e.version||t.customTags&&!ke(i.parserOptions.customTags,t.customTags)){let n=e.getText();r&&!/\S/.test(n)&&(n=`{${n}}`);const o=function(e,t=dt){const r={strict:!1,customTags:pt(t.customTags),version:t.yamlVersion},n=new c.ad(r),i=new c.Yj,o=new c._b(i.addNewLine).parse(e),s=Array.from(o),a=n.compose(s,!0,e.length),l=Array.from(a,(e=>function(e,t){const r=new lt(t);return r.internalDocument=e,r}(e,i)));return new ut(l,s)}(n,t);i.document=o,i.version=e.version,i.parserOptions=t}}};function mt(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:m.Undefined}}var ft=class{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return(0,c._N)(e)&&"mapping"===this.type||(0,c.xw)(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}};function pt(e){const t=[],r=Ve(e);for(const e of r){const r=e.split(" "),n=r[0],i=r[1]&&r[1].toLowerCase()||"scalar";t.push(new ft(n,i))}return t.push(new class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}}),t}var dt={customTags:[],yamlVersion:"1.2"};function gt(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var yt,vt,bt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},xt=P();(vt=yt||(yt={}))[vt.delete=0]="delete",vt[vt.add=1]="add",vt[vt.deleteAll=2]="deleteAll";var St=class extends J{constructor(e,t,r){super(e,t,r),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const r of this.filePatternAssociations){const n=r.uris[0];if(t.has(n))continue;t.add(n);const i={uri:n,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(n)){const[e,t]=this.schemaUriToNameAndDescription.get(n);i.name=e,i.description=t,i.fromStore=!0}e.push(i)}return e}resolveSchemaContent(e,t,r){return bt(this,void 0,void 0,(function*(){const n=e.errors.slice(0);let i=e.schema;const o=this.contextService,s=(e,t,r,i)=>{const o=((e,t)=>{if(!t)return e;let r=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(r=r[e],!r))),r})(t,i);if(o)for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o[t]);else n.push(xt("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,r))},a=(e,t,r,i,a)=>{o&&!/^\w+:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i)),t=this.normalizeId(t);const l=this.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((i=>{if(a[t]=!0,i.errors.length){const e=r?t+"#"+r:t;n.push(xt("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return s(e,i.schema,t,r),e.url=t,c(e,i.schema,t,l.dependencies)}))},c=(e,t,r,n)=>bt(this,void 0,void 0,(function*(){if(!e||"object"!=typeof e)return null;const o=[e],c=[],l=[],u=e=>{const i=[];for(;e.$ref;){const o=e.$ref,c=o.split("#",2);if(e._$ref=e.$ref,delete e.$ref,c[0].length>0)return void l.push(a(e,c[0],c[1],r,n));-1===i.indexOf(o)&&(s(e,t,r,c[1]),i.push(o))}((...e)=>{for(const t of e)"object"==typeof t&&o.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const r=t[e];"object"==typeof r&&o.push(r)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&o.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(r.indexOf("#")>0){const e=r.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};yield a(t,e[0],e[1],r,n);for(const e in i)"required"!==e&&Object.prototype.hasOwnProperty.call(i,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);i=t}}for(;o.length;){const e=o.pop();c.indexOf(e)>=0||(c.push(e),u(e))}return Promise.all(l)}));return yield c(i,i,t,r),new G(i,n)}))}getSchemaForResource(e,t){const r=()=>{const r=Object.create(null),n=[];let i=function(e){if(e instanceof lt){const t=e.lineComments.find((e=>gt(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}}(t);if(void 0!==i){if(!i.startsWith("file:")&&!i.startsWith("http"))if((0,l.isAbsolute)(i))i=d.file(i).toString();else{const t=d.parse(e);i=d.file((0,l.resolve)((0,l.parse)(t.fsPath).dir,i)).toString()}this.addSchemaPriority(i,_t.Modeline),n.push(i),r[i]=!0}for(const t of this.filePatternAssociations)if(t.matchesPattern(e))for(const e of t.getURIs())r[e]||(n.push(e),r[e]=!0);const o=this.normalizeId(e);if(this.schemasById[o]&&n.push(o),n.length>0){const r=this.highestPrioritySchemas(n),i=super.createCombinedSchema(e,r);return i.getResolvedSchema().then((e=>(e.schema&&"string"!=typeof e.schema&&(e.schema.url=i.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new G(e.schema.schemaSequence[t.currentDocIndex]):e)))}return Promise.resolve(null)};return this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?r():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{anyOf:e.map((e=>e.schema))}})),(()=>r())):e?this.resolveCustomSchema(e,t):r())).then((e=>e),(()=>r())):r()}addSchemaPriority(e,t){let r=this.schemaPriorityMapping.get(e);r?(r=r.add(t),this.schemaPriorityMapping.set(e,r)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const r=new Map;return e.forEach((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((n=>{n>t&&(t=n);let i=r.get(n);i?(i=i.concat(e),r.set(n,i)):r.set(n,[e])}))})),r.get(t)||[]}resolveCustomSchema(e,t){return bt(this,void 0,void 0,(function*(){const r=yield this.loadSchema(e),n=yield this.resolveSchemaContent(r,e,[]);return n.schema&&(n.schema.url=e),n.schema&&n.schema.schemaSequence&&n.schema.schemaSequence[t.currentDocIndex]?new G(n.schema.schemaSequence[t.currentDocIndex]):n}))}saveSchema(e,t){return bt(this,void 0,void 0,(function*(){const r=this.normalizeId(e);return this.getOrAddSchemaHandle(r,t),this.schemaPriorityMapping.set(r,(new Set).add(_t.Settings)),Promise.resolve(void 0)}))}deleteSchemas(e){return bt(this,void 0,void 0,(function*(){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}))}deleteSchema(e){return bt(this,void 0,void 0,(function*(){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}))}addContent(e){return bt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const r=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof r&&(r[e.key]=e.content),yield this.saveSchema(e.schema,t.schema)}}))}deleteContent(e){return bt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const r=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof r&&delete r[e.key],yield this.saveSchema(e.schema,t.schema)}}))}resolveJSONSchemaToSection(e,t){const r=t.split("/");let n=e;for(const e of r)""!==e&&(this.resolveNext(n,e),n=n[e]);return n}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return d.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((r=>{if(r.errors&&void 0===r.schema)return t(e).then((t=>{if(!t){const t=xt("json.schema.nocontent","Unable to load schema from '{0}': No content.",At(e));return new B({},[t])}try{const e=(0,c.Qc)(t);return new B(e,[])}catch(t){const r=xt("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",At(e),t);return new B({},[r])}}),(e=>{let t=e.toString();const r=e.toString().split("Error: ");return r.length>1&&(t=r[1]),new B({},[t])}));if(r.uri=e,this.schemaUriToNameAndDescription.has(e)){const[t,n]=this.schemaUriToNameAndDescription.get(e);r.schema.title=null!=t?t:r.schema.title,r.schema.description=null!=n?n:r.schema.description}return r}))}registerExternalSchema(e,t,r,n,i){return(n||i)&&this.schemaUriToNameAndDescription.set(e,[n,i]),super.registerExternalSchema(e,t,r)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function At(e){try{const t=d.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function wt(e,t){for(const r of e)r.isKubernetes=t}function Ot(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Pt,Mt=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1=t.length)return this.doc.getText();if(e<0)return"";const r=e+1{const r=t.positionAt(e.location.start),n={start:r,end:e.location.toLineEnd?a.Ly.create(r.line,new Mt(t).getLineLength(r.line)):t.positionAt(e.location.end)};return a.R9.create(n,e.message,e.severity,e.code,Ne)};function Ct(e){try{const t=ht.getYamlDocument(e),r=[];for(const n of t.documents)r.push(Pe(e,n));return Promise.all(r).then((e=>[].concat(...e)))}catch(e){this.telemetry.sendError("yaml.documentLink.error",{error:e})}}function jt(e,t){if(!e)return;const r=[],n=ht.getYamlDocument(e);for(const t of n.documents)t.visit((t=>{var n;return("property"===t.type&&"array"===t.valueNode.type||"object"===t.type&&"array"===(null===(n=t.parent)||void 0===n?void 0:n.type))&&r.push(Vt(e,t)),"property"===t.type&&"object"===t.valueNode.type&&r.push(Vt(e,t)),!0}));const i=t&&t.rangeLimit;return"number"!=typeof i||r.length<=i?r:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),r.slice(0,t.rangeLimit))}function Vt(e,t){const r=e.positionAt(t.offset);let n=e.positionAt(t.offset+t.length);const i=e.getText(a.e6.create(r,n)),o=i.length-i.trimRight().length;return o>0&&(n=e.positionAt(t.offset+t.length-o)),a.so.create(r.line,n.line,r.character,n.character)}function kt(e,t){const r={};return r[e]=t,{changes:r}}(Pt||(Pt={})).JUMP_TO_SCHEMA="jumpToSchema";var It=new class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}};function $t(e,t){const{position:r}=t,n=new Mt(e);if("\n"===t.ch){const e=n.getLineContent(r.line-1);if(e.trimRight().endsWith(":")){const i=n.getLineContent(r.line),o=i.substring(r.character,i.length),s=-1!==e.indexOf(" - ");if(0===o.trimRight().length){const n=r.character-(e.length-e.trimLeft().length);if(n===t.options.tabSize&&!s)return;const o=[];return i.length>0&&o.push(a.PY.del(a.e6.create(r,a.Ly.create(r.line,i.length-1)))),o.push(a.PY.insert(r," ".repeat(t.options.tabSize+(s?2-n:0)))),o}if(s)return[a.PY.insert(r," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[a.PY.insert(r," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[a.PY.insert(r,"- ")];if(e.includes(" - ")&&e.includes(": "))return[a.PY.insert(r," ")]}}function Ft(e,t){const r=d.parse(e);let n=(0,l.basename)(r.fsPath);return(0,l.extname)(r.fsPath)||(n+=".json"),Object.getOwnPropertyDescriptor(t,"name")?Object.getOwnPropertyDescriptor(t,"name").value+` (${n})`:t.title?t.title+` (${n})`:n}function Et(e){const t=new Map;if(!e)return t;const r=e.url;return r?r.startsWith("schemaservice://combinedSchema/")?Nt(e,t):t.set(e.url,e):Nt(e,t),t}function Nt(e,t){e.allOf&&Dt(e.allOf,t),e.anyOf&&Dt(e.anyOf,t),e.oneOf&&Dt(e.oneOf,t)}function Dt(e,t){for(const r of e)re(r)||r.url&&!t.has(r.url)&&t.set(r.url,r)}function Rt(e,t,r,n,i){let o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o0&&a>0)return;if(c>0&&l>0)return;const u=Math.abs(a-l),h=Math.abs(s-c);if(0===u)return i.spacesDiff=h,void(h>0&&0<=c-1&&c-10?t+" ":"";if(Array.isArray(e)){if(o+=1,0===e.length)return"";let a="";for(let c=0;c0?"\n":"";for(let c=0;c0&&r0?i++:f>1&&o++,Rt(s,a,n,m,u),u.looksLikeAlignment&&2!==u.spacesDiff)continue;const d=u.spacesDiff;d<=8&&l[d]++,s=n,a=m}let h=!0;i!==o&&(h=i{const r=l[t];r>e&&(e=r,m=t)})),4===m&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(m=2)}return{insertSpaces:h,tabSize:m}}(o);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}wt(i.documents,r);const s=e.offsetAt(t);if(":"===e.getText().charAt(s-1))return Promise.resolve(n);const l=je(s,i);if(null===l)return Promise.resolve(n);let[u,h]=l.getNodeFromPosition(s,o);const m=this.getCurrentWord(e,s);let f=null;if(u&&(0,c.jF)(u)&&"null"===u.value){const t=e.positionAt(u.range[0]);t.character+=1;const r=e.positionAt(u.range[2]);r.character+=1,f=a.e6.create(t,r)}else if(u&&(0,c.jF)(u)&&u.value){const t=e.positionAt(u.range[0]);s>0&&t.character>0&&"-"===e.getText().charAt(s-1)&&(t.character-=1),f=a.e6.create(t,e.positionAt(u.range[1]))}else{let r=e.offsetAt(t)-m.length;r>0&&'"'===e.getText()[r-1]&&r--,f=a.e6.create(e.positionAt(r),t)}const p={},d={add:e=>{let t=e.label;if(t){if(ne(t)||(t=String(t)),!p[t]){if(t=t.replace(/[\n]/g,"↵"),t.length>60){const e=t.substr(0,57).trim()+"...";p[e]||(t=e)}f&&f.start.line===f.end.line&&(e.textEdit=a.PY.replace(f,e.insertText)),e.label=t,p[t]=e,n.items.push(e)}}else console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`)},error:e=>{console.error(e),this.telemetry.sendError("yaml.completion.error",{error:e})},log:e=>{console.log(e)},getNumberOfProposals:()=>n.items.length};this.customTags.length>0&&this.getCustomTagValueCompletions(d);let g=o.getLineContent(t.line);g.endsWith("\n")&&(g=g.substr(0,g.length-1));try{const r=yield this.schemaService.getSchemaForResource(e.uri,l);if((!r||r.errors.length)&&0===t.line&&0===t.character&&!gt(g)){const e={kind:a.cm.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:a.lO.PlainText};n.items.push(e)}if(gt(g)||function(e,t){let r=!1;for(const n of e){if("document"===n.type)ct([],n,(e=>{var i;if(at(e)&&"comment"===(null===(i=e.value)||void 0===i?void 0:i.type)){if(n.offset<=t&&e.value.source.length+e.value.offset>=t)return r=!0,c.Vn.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return r=!0,c.Vn.BREAK}));else if("comment"===n.type&&n.offset<=t&&n.source.length+n.offset>=t)return!0;if(r)break}return r}(i.tokens,s)){const e=g.indexOf("$schema=");return-1!==e&&e+"$schema=".length<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const r={kind:a.cm.Constant,label:null!==(t=e.name)&&void 0!==t?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:a.lO.PlainText,insertTextMode:a.DM.asIs};n.items.push(r)})),n}if(!r||r.errors.length)return n;let y=null;if(!u)if(!l.internalDocument.contents||(0,c.jF)(l.internalDocument.contents)){const e=l.internalDocument.createNode({});e.range=[s,s+1,s+1],l.internalDocument.contents=e,l.internalDocument=l.internalDocument,u=e}else u=l.findClosestNode(s,o),h=!0;if(u)if(0===g.length)u=l.internalDocument.contents;else{const r=l.getParent(u);if(r){if((0,c.jF)(u)){if(u.value){if((0,c.vG)(r)){if(r.value===u){if(g.trim().length>0&&g.indexOf(":")<0){const e=this.createTempObjNode(m,u,l);if((0,c.xw)(l.internalDocument.contents)){const t=function(e,t){for(const[r,n]of e.items.entries())if(t===n)return r}(l.internalDocument.contents,r);"number"==typeof t&&(l.internalDocument.set(t,e),l.internalDocument=l.internalDocument)}else l.internalDocument.set(r.key,e),l.internalDocument=l.internalDocument;y=e.items[0],u=e}else if(0===g.trim().length){const e=l.getParent(r);e&&(u=e)}}else if(r.key===u){const e=l.getParent(r);y=r,e&&(u=e)}}else if((0,c.xw)(r))if(g.trim().length>0){const e=this.createTempObjNode(m,u,l);r.delete(u),r.add(e),l.internalDocument=l.internalDocument,u=e}else u=r}else if(null===u.value)if((0,c.vG)(r)){if(r.key===u)u=r;else if((0,c.UG)(r.key)&&r.key.range){const n=l.getParent(r);if(h&&n&&(0,c._N)(n)&&st(n))u=n;else{const i=e.positionAt(r.key.range[0]);if(t.character>i.character&&t.line!==i.line){const e=this.createTempObjNode(m,u,l);n&&((0,c._N)(n)||(0,c.xw)(n))?(n.set(r.key,e),l.internalDocument=l.internalDocument):(l.internalDocument.set(r.key,e),l.internalDocument=l.internalDocument),y=e.items[0],u=e}else i.character===t.character&&n&&(u=n)}}}else if((0,c.xw)(r))if("-"!==g.charAt(t.character-1)){const e=this.createTempObjNode(m,u,l);r.delete(u),r.add(e),l.internalDocument=l.internalDocument,u=e}else u=r}else if((0,c._N)(u)&&!h&&0===g.trim().length&&(0,c.xw)(r)){const e=o.getLineContent(t.line+1);o.getLineCount()!==t.line+1&&0!==e.trim().length||(u=r)}}else if((0,c.jF)(u)){const e=this.createTempObjNode(m,u,l);l.internalDocument.contents=e,l.internalDocument=l.internalDocument,y=e.items[0],u=e}else if((0,c._N)(u))for(const e of u.items)(0,c.UG)(e.value)&&e.value.range&&e.value.range[0]===s+1&&(u=e.value)}if(u&&(0,c._N)(u)){const t=u.items;for(const e of t)y&&y===e||(0,c.jF)(e.key)&&(p[e.key.value.toString()]=a.FG.create("__"));this.addPropertyCompletions(r,l,u,"",d,o,f),!r&&m.length>0&&'"'!==e.getText().charAt(s-m.length-1)&&d.add({kind:a.cm.Property,label:m,insertText:this.getInsertTextForProperty(m,null,""),insertTextFormat:a.lO.Snippet})}const v={};this.getValueCompletions(r,l,u,s,e,d,v)}catch(e){e.stack?console.error(e.stack):console.error(e),this.telemetry.sendError("yaml.completion.error",{error:e})}return n},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,a)}c((s=s.apply(n,i||[])).next())}));var n,i,o,s}createTempObjNode(e,t,r){const n={};n[e]=null;const i=r.internalDocument.createNode(n);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,r,n,i,o,s){const l=t.getMatchingSchemas(e.schema),u=o.getText(s),h=-1===o.getLineContent(s.start.line).indexOf(":"),m=t.getParent(r);for(const e of l){if(e.node.internalNode===r&&!e.inverted){this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1});const t=e.schema.properties;if(t){const l=e.schema.maxProperties;if(void 0===l||void 0===r.items||r.items.length=0&&(f=" "+e.slice(t+1,r.range[0]))}"array"===l.type&&(t=r.items.find((t=>(0,c.jF)(t.key)&&t.key.range&&t.key.value===e&&(0,c.jF)(t.value)&&!t.value.value&&o.getPosition(t.key.range[2]).line===s.end.line-1)))&&t&&(Array.isArray(l.items)?this.addSchemaValueCompletions(l.items[0],n,i,{}):"object"==typeof l.items&&"object"===l.items.type&&i.add({kind:this.getSuggestionKind(l.items.type),label:"- (array item)",documentation:"Create an item of an array"+(void 0===l.description?"":"("+l.description+")"),insertText:`- ${this.getInsertTextForObject(l.items,n," ").insertText.trimLeft()}`,insertTextFormat:a.lO.Snippet}));let p=e;e.startsWith(u)&&!h||(p=this.getInsertTextForProperty(e,l,n,f+this.indentation)),i.add({kind:a.cm.Property,label:e,insertText:p,insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(l.markdownDescription)||l.description||""})}}}m&&(0,c.xw)(m)&&"object"!==e.schema.type&&this.addSchemaValueCompletions(e.schema,n,i,{})}m&&e.node.internalNode===m&&e.schema.defaultSnippets&&(1===r.items.length?this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,r,n,i,o,s){let l=null;if(r&&(0,c.jF)(r)&&(r=t.getParent(r)),r){if((0,c.vG)(r)){const e=r.value;if(e&&e.range&&n>e.range[0]+e.range[2])return;l=(0,c.jF)(r.key)?r.key.value.toString():null,r=t.getParent(r)}if(r&&(null!==l||(0,c.xw)(r))){const u="",h=t.getMatchingSchemas(e.schema);for(const e of h)if(e.node.internalNode===r&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,o,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),(0,c.xw)(r)&&r.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(r,i,n);t"object"==typeof e)).forEach(((t,r)=>{const n=`- ${this.getInsertTextForObject(t,u).insertText.trimLeft()}`,i=this.getDocumentationWithMarkdownText("Create an item of an array"+(void 0===e.schema.description?"":"("+e.schema.description+")"),n);o.add({kind:this.getSuggestionKind(t.type),label:"- (array item) "+(r+1),documentation:i,insertText:n,insertTextFormat:a.lO.Snippet})})),this.addSchemaValueCompletions(e.schema.items,u,o,s)):this.addSchemaValueCompletions(e.schema.items,u,o,s);if(e.schema.properties){const t=e.schema.properties[l];t&&this.addSchemaValueCompletions(t,u,o,s)}}s.boolean&&(this.addBooleanValueCompletion(!0,u,o),this.addBooleanValueCompletion(!1,u,o)),s.null&&this.addNullValueCompletion(u,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)}getInsertTextForProperty(e,t,r,n=this.indentation){const i=this.getInsertTextForValue(e,"","string"),o=i+":";let s,a=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e="object":t.items&&(e="array")),Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;te(e)&&(s=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},1),s.startsWith(" ")||s.startsWith("\n")||(s=" "+s))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),te(t.default)&&(s||(s=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return`${o}\n${this.getInsertTextForObject(t,r,n).insertText}`;if(t.items)return`${o}\n${this.indentation}- ${this.getInsertTextForArray(t.items,r).insertText}`;if(0===a)switch(e){case"boolean":case"string":s=" $1";break;case"object":s=`\n${n}`;break;case"array":s=`\n${n}- `;break;case"number":case"integer":s=" ${1:0}";break;case"null":s=" ${1:null}";break;default:return i}}return(!s||a>1)&&(s=" $1"),o+s+r}getInsertTextForObject(e,t,r=this.indentation,n=1){let i="";return e.properties?(Object.keys(e.properties).forEach((o=>{const s=e.properties[o];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(o)>-1)switch(a){case"boolean":case"string":case"number":case"integer":i+=`${r}${o}: $${n++}\n`;break;case"array":{const e=this.getInsertTextForArray(s.items,t,n++),a=e.insertText.split("\n");let c=e.insertText;if(a.length>1){for(let e=1;ethis.addSchemaValueCompletions(e,t,r,n))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,r,n))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,r,n))))}collectTypes(e,t){if(Array.isArray(e.enum)||te(e.const))return;const r=e.type;Array.isArray(r)?r.forEach((function(e){return t[e]=!0})):r&&(t[r]=!0)}addDefaultValueCompletions(e,t,r,n=0){let i=!1;if(te(e.default)){let o,s=e.type,c=e.default;for(let e=n;e>0;e--)c=[c],s="array";o="object"==typeof c?"Default value":c.toString().replace(Ht,'"'),r.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(c,t,s),insertTextFormat:a.lO.Snippet,detail:qt("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((o=>{let s=e.type,c=o;for(let e=n;e>0;e--)c=[c],s="array";r.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t,s),insertTextFormat:a.lO.Snippet}),i=!0})),this.collectDefaultSnippets(e,t,r,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),i||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,r,n+1)}addEnumValueCompletions(e,t,r){if(te(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,void 0),insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let n=0,i=e.enum.length;n{0!==r||t.startsWith("-")?e[` ${t}`]=u[t]:e[`- ${t}`]=u[t]})),u=e}s=this.getInsertTextForSnippetValue(u,t,n),h=h||this.getLabelForSnippetValue(u)}else if("string"==typeof o.bodyText){let e="",r="",n="";for(let t=i;t>0;t--)e=e+n+"[\n",r=r+"\n"+n+"]",n+=this.indentation,l="array";s=e+n+o.bodyText.split("\n").join("\n"+n)+r+t,h=h||s,c=s.replace(/[\n]/g,"")}r.add({kind:o.suggestionKind||this.getSuggestionKind(l),label:h,documentation:this.fromMarkup(o.markdownDescription)||o.description,insertText:s,insertTextFormat:a.lO.Snippet,filterText:c})}}getInsertTextForSnippetValue(e,t,r,n){return Lt(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),r,n)+t}addBooleanValueCompletion(e,t,r){r.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:a.lO.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:a.lO.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Ve(this.customTags).forEach((t=>{const r=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)}))}addCustomTagValueCompletion(e,t,r){e.add({kind:this.getSuggestionKind("string"),label:r,insertText:r+t,insertTextFormat:a.lO.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let r=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),r=this.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),r}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return a.cm.Value;switch(e){case"string":default:return a.cm.Value;case"object":return a.cm.Module;case"property":return a.cm.Property}}getCurrentWord(e,t){let r=t-1;const n=e.getText();for(;r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:a.a4.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(a.a4.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,r){for(let t=e.items.length-1;t>=0;t--){const n=e.items[t];if((0,c.UG)(n)&&n.range){if(r>n.range[1])return t;if(r>=n.range[0])return t}}return 0}}(o,i,ht,n),m=new class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,r=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const n=ht.getYamlDocument(e),i=je(e.offsetAt(t),n);if(null===i)return Promise.resolve(void 0);wt(n.documents,r);const o=n.documents.indexOf(i);return i.currentDocIndex=o,this.getHover(e,t,i)}catch(t){this.telemetry.sendError("yaml.hover.error",{error:t,documentUri:e.uri})}}getHover(e,t,r){const n=e.offsetAt(t);let i=r.getNodeFromOffset(n);if(!i||("object"===i.type||"array"===i.type)&&n>i.offset+1&&n{if(e&&i&&!e.errors.length){let n,o,a,c;r.getMatchingSchemas(e.schema,i.offset).every((e=>{if(e.node===i&&!e.inverted&&e.schema&&(n=n||e.schema.title,o=o||e.schema.markdownDescription||Ot(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Ze(i));e.schema.markdownEnumDescriptions?a=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(a=Ot(e.schema.enumDescriptions[t])),a&&(c=e.schema.enum[t],"string"!=typeof c&&(c=JSON.stringify(c)))}return!0}));let u="";return n&&(u="#### "+Ot(n)),o&&(u.length>0&&(u+="\n\n"),u+=o),a&&(u.length>0&&(u+="\n\n"),u+=`\`${t=c,-1!==t.indexOf("`")?"`` "+t+" ``":t}\`: ${a}`),u.length>0&&e.schema.url&&(u+=`\n\nSource: [${function(e){let t="JSON Schema";const r=e.url;if(r){const e=d.parse(r);t=(0,l.basename)(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),{contents:{kind:"markdown",value:u},range:s}}var t;return null}))}}(o,n),f=new class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new de(e);const r=this.jsonDocumentSymbols.getKeyLabel;this.jsonDocumentSymbols.getKeyLabel=e=>"object"==typeof e.keyNode.value?e.keyNode.value.value:r.call(this.jsonDocumentSymbols,e)}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let r=[];try{const n=ht.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(t){this.telemetry.sendError("yaml.documentSymbols.error",{error:t,documentUri:e.uri})}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let r=[];try{const n=ht.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(t){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:t,documentUri:e.uri})}return r}}(o,n),p=new class{constructor(e){this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new ce(e,Promise)}configure(e){e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion)}doValidation(e,t=!1){return r=this,n=void 0,o=function*(){if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const n=ht.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let i=0;for(const o of n.documents){o.isKubernetes=t,o.currentDocIndex=i,o.disableAdditionalProperties=this.disableAdditionalProperties;const n=yield this.jsonValidation.doValidation(e,o),s=o;s.errors.length>0&&r.push(...s.errors),s.warnings.length>0&&r.push(...s.warnings),r.push(...n),i++}}catch(e){console.error(e.toString())}let n;const i=new Set,o=[];for(let s of r){if(t&&s.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(s,"location")&&(s=Tt(s,e)),s.source||(s.source=Ne),n&&n.message===s.message&&n.range.end.line===s.range.start.line&&Math.abs(n.range.end.character-s.range.end.character)>=1){n.range.end=s.range.end;continue}n=s;const r=s.range.start.line+" "+s.range.start.character+" "+s.message;i.has(r)||(o.push(s),i.add(r))}return o},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}}(o),g=new class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const r=e.getText(),n={parser:"yaml",plugins:[h],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:"always"===t.proseWrap?"always":"never"===t.proseWrap?"never":"preserve",printWidth:t.printWidth},i=(0,u.format)(r,n);return[a.PY.replace(a.e6.create(a.Ly.create(0,0),e.positionAt(r.length)),i)]}catch(e){return[]}}},y=new class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const r=[];return r.push(...this.getJumpToSchemaActions(t.context.diagnostics)),r.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),r}getJumpToSchemaActions(e){var t,r,n,i,o;if(null===(i=null===(n=null===(r=null===(t=this.clientCapabilities)||void 0===t?void 0:t.window)||void 0===r?void 0:r.showDocument)||void 0===n?void 0:n.support)||void 0===i||!i)return[];const s=new Map;for(const t of e){const e=(null===(o=t.data)||void 0===o?void 0:o.schemaUri)||[];for(const r of e)r&&(s.has(r)||s.set(r,[]),s.get(r).push(t))}const c=[];for(const e of s.keys()){const t=a.B2.create(`Jump to schema location (${(0,l.basename)(e)})`,a.mY.create("JumpToSchema",Pt.JUMP_TO_SCHEMA,e));t.diagnostics=s.get(e),c.push(t)}return c}getTabToSpaceConverting(e,t){const r=[],n=new Mt(t),i=[];for(const o of e)if("Using tabs can lead to unpredictable results"===o.message){if(i.includes(o.range.start.line))continue;const e=n.getLineContent(o.range.start.line);let s=0,c="";for(let t=o.range.start.character;t<=o.range.end.character&&"\t"===e.charAt(t);t++)s++,c+=this.indentation;i.push(o.range.start.line);let l=o.range;s!==o.range.end.character-o.range.start.character&&(l=a.e6.create(o.range.start,a.Ly.create(o.range.end.line,o.range.start.character+s))),r.push(a.B2.create("Convert Tab to Spaces",kt(t.uri,[a.PY.replace(l,c)]),a.yN.QuickFix))}if(0!==r.length){const e=[];for(let t=0;t<=n.getLineCount();t++){const r=n.getLineContent(t);let i=0,o="";for(let n=0;n0&&r.push(a.B2.create("Convert all Tabs to Spaces",kt(t.uri,e),a.yN.QuickFix))}return r}}(i),v=new class{constructor(e,t){this.schemaService=e,this.telemetry=t}getCodeLens(e,t){return r=this,n=void 0,o=function*(){const t=[];try{const r=ht.getYamlDocument(e);for(const n of r.documents){const r=yield this.schemaService.getSchemaForResource(e.uri,n);if(null==r?void 0:r.schema){const e=Et(null==r?void 0:r.schema);if(0===e.size)continue;for(const r of e){const e=a.JF.create(a.e6.create(0,0,0,0));e.command={title:Ft(r[0],r[1]),command:Pt.JUMP_TO_SCHEMA,arguments:[r[0]]},t.push(e)}}}}catch(t){this.telemetry.sendError("yaml.codeLens.error",{error:t,documentUri:e.uri})}return t},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}resolveCodeLens(e){return e}}(o,n);return function(e,t){e.registerCommand(Pt.JUMP_TO_SCHEMA,(e=>{return r=this,n=void 0,o=function*(){if(e){if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=d.parse(e),r=d.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e});e=r.toString()}if(/^[a-z]:[\\/]/i.test(e)){const t=d.file(e);e=t.toString()}(yield t.window.showDocument({uri:e,external:!1,takeFocus:!0}))||t.window.showErrorMessage(`Cannot open ${e}`)}},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}))}(It,r),{configure:e=>{o.clearExternalSchemas(),e.schemas&&(o.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const t=e.priority?e.priority:0;o.addSchemaPriority(e.uri,t),o.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description)}))),p.configure(e),m.configure(e),s.configure(e),g.configure(e),y.configure(e)},registerCustomSchemaProvider:e=>{o.registerCustomSchemaProvider(e)},findLinks:Ct,doComplete:s.doComplete.bind(s),doValidation:p.doValidation.bind(p),doHover:m.doHover.bind(m),findDocumentSymbols:f.findDocumentSymbols.bind(f),findDocumentSymbols2:f.findHierarchicalDocumentSymbols.bind(f),doDefinition:Gt.bind(Gt),resetSchema:e=>o.onResourceChange(e),doFormat:g.format.bind(g),doDocumentOnTypeFormatting:$t,addSchema:(e,t)=>o.saveSchema(e,t),deleteSchema:e=>o.deleteSchema(e),modifySchemaContent:e=>o.addContent(e),deleteSchemaContent:e=>o.deleteContent(e),deleteSchemasWhole:e=>o.deleteSchemas(e),getFoldingRanges:jt,getCodeAction:(e,t)=>y.getCodeAction(e,t),getCodeLens:(e,t)=>v.getCodeLens(e,t),resolveCodeLens:e=>v.resolveCodeLens(e)}}async function zt(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}(Ut=_t||(_t={}))[Ut.SchemaStore=1]="SchemaStore",Ut[Ut.SchemaAssociation=2]="SchemaAssociation",Ut[Ut.Settings=3]="Settings",Ut[Ut.Modeline=4]="Modeline",self.onmessage=()=>{(0,i.j)(((e,t)=>Object.create(function(e,{enableSchemaRequest:t,languageSettings:r}){const n=Jt(t?zt:null,null,null,null);n.configure(r);const i=t=>{const r=e.getMirrorModels();for(const e of r)if(String(e.uri)===t)return o.n.create(t,"yaml",e.version,e.getValue());return null};return{doValidation(e){const t=i(e);return t?n.doValidation(t,r.isKubernetes):[]},doComplete(e,t){const o=i(e);return n.doComplete(o,t,r.isKubernetes)},doDefinition(e,t){const r=i(e);return n.doDefinition(r,{position:t,textDocument:{uri:e}})},doHover(e,t){const r=i(e);return n.doHover(r,t)},format(e,t){const r=i(e);return n.doFormat(r,t)},resetSchema:e=>n.resetSchema(e),findDocumentSymbols(e){const t=i(e);return n.findDocumentSymbols2(t,{})},findLinks(e){const t=i(e);return Promise.resolve(n.findLinks(t))}}}(e,t))))}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}i.m=r,i.x=()=>{var e=i.O(void 0,[4200,7792],(()=>i(1623)));return i.O(e)},e=[],i.O=(t,r,n,o)=>{if(!r){var s=1/0;for(u=0;u=o)&&Object.keys(i.O).every((e=>i.O[e](r[c])))?r.splice(c--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+".entry.js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.p="/public/yaml/",(()=>{var e={1623:1};i.f.i=(t,r)=>{e[t]||importScripts(i.p+i.u(t))};var t=self.webpackChunkdemo=self.webpackChunkdemo||[],r=t.push.bind(t);t.push=t=>{var[n,o,s]=t;for(var a in o)i.o(o,a)&&(i.m[a]=o[a]);for(s&&s(i);n.length;)e[n.pop()]=1;r(t)}})(),t=i.x,i.x=()=>Promise.all([i.e(4200),i.e(7792)]).then(t),i.x()})(); -//# sourceMappingURL=1623.entry.js.map \ No newline at end of file +(()=>{"use strict";var e,t,r={1623:(e,t,r)=>{var n,i=r(8975),o=r(4881),s=r(6761),a=r(4767),c=r(3262),l=r(1023),u=r(9691),h=r(6060);n=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var n={resolve:function(){for(var e,n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(n=s+"/"+n,i=47===s.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;il){if(47===r.charCodeAt(a+h))return r.slice(a+h+1);if(0===h)return r.slice(a+h)}else s>l&&(47===e.charCodeAt(i+h)?u=h:0===h&&(u=0));break}var m=e.charCodeAt(i+h);if(m!==r.charCodeAt(a+h))break;47===m&&(u=h)}var f="";for(h=i+u+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(a+u):(a+=u,47===r.charCodeAt(a)&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var a=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!s){i=n+1;break}}else-1===c&&(s=!1,c=n+1),a>=0&&(l===r.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===r?r=a:1!==s&&(s=1):-1!==r&&(s=-1);else if(!o){n=a+1;break}}return-1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),r?r===t.root?r+n:r+"/"+n:n;var t,r,n},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var s=-1,a=0,c=-1,l=!0,u=e.length-1,h=0;u>=n;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===s?s=u:1!==h&&(h=1):-1!==s&&(h=-1);else if(!l){a=u+1;break}return-1===s||-1===c||0===h||1===h&&s===c-1&&s===a+1?-1!==c&&(r.base=r.name=0===a&&o?e.slice(1,c):e.slice(a,c)):(0===a&&o?(r.name=e.slice(1,s),r.base=e.slice(1,c)):(r.name=e.slice(a,s),r.base=e.slice(a,c)),r.ext=e.slice(s,c)),a>0?r.dir=e.slice(0,a-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},447:(e,t,r)=>{var n;if(r.r(t),r.d(t,{URI:()=>p,Utils:()=>P}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;n=i.indexOf("Windows")>=0}var o,s,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//,h="",m="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function e(e,t,r,n,i,o){var s;void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=(s=e)||o?s:"file",this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==m&&(t=m+t):t=m}return t}(this.scheme,r||h),this.query=n||h,this.fragment=i||h,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,r=e.authority,n=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===r?r=this.authority:null===r&&(r=h),void 0===n?n=this.path:null===n&&(n=h),void 0===i?i=this.query:null===i&&(i=h),void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&o===this.fragment?this:new g(t,r,n,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var r=f.exec(e);return r?new g(r[2]||h,O(r[4]||h),O(r[5]||h),O(r[7]||h),O(r[9]||h),t):new g(h,h,h,h,h)},e.file=function(e){var t=h;if(n&&(e=e.replace(/\\/g,m)),e[0]===m&&e[1]===m){var r=e.indexOf(m,2);-1===r?(t=e.substring(2),e=m):(t=e.substring(2,r),e=e.substring(r)||m)}return new g("file",t,e,h,h)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var r=new g(t);return r._formatted=t.external,r._fsPath=t._sep===d?t.fsPath:null,r}return t},e}(),d=n?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),y=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function v(e,t){for(var r=void 0,n=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var s=y[o];void 0!==s?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=s):-1===n&&(n=i)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function b(e){for(var t=void 0,r=0;r1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n&&(r=r.replace(/\//g,"\\")),r}function S(e,t){var r=t?b:v,n="",i=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(i&&(n+=i,n+=":"),(o||"file"===i)&&(n+=m,n+=m),o){var l=o.indexOf("@");if(-1!==l){var u=o.substr(0,l);o=o.substr(l+1),-1===(l=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,l),!1),n+=":",n+=r(u.substr(l+1),!1)),n+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?n+=r(o,!1):(n+=r(o.substr(0,l),!1),n+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}n+=r(s,!0)}return a&&(n+="?",n+=r(a,!1)),c&&(n+="#",n+=t?c:v(c,!1)),n}function A(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+A(e.substr(3)):e}}var w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(w)?e.replace(w,(function(e){return A(e)})):e}var P,M,T=r(470),C=function(){for(var e=0,t=0,r=arguments.length;t{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(447)})();var m,f,p,{URI:d,Utils:g}=n;function y(e,t){if(e.length0?e.lastIndexOf(t)===r:0===r&&e===t}function b(e){var t="";y(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(r){try{return new RegExp(e,t)}catch(e){return}}}function x(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r{const[n]=r;return void 0===t[n]?e:t[n]}))}(t,r)}function P(){return O}(f=m||(m={}))[f.Undefined=0]="Undefined",f[f.EnumValueMismatch=1]="EnumValueMismatch",f[f.Deprecated=2]="Deprecated",f[f.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=258]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",f[f.InvalidUnicode=260]="InvalidUnicode",f[f.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",f[f.InvalidCharacter=262]="InvalidCharacter",f[f.PropertyExpected=513]="PropertyExpected",f[f.CommaExpected=514]="CommaExpected",f[f.ColonExpected=515]="ColonExpected",f[f.ValueExpected=516]="ValueExpected",f[f.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",f[f.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",f[f.TrailingComma=519]="TrailingComma",f[f.DuplicateKey=520]="DuplicateKey",f[f.CommentNotPermitted=521]="CommentNotPermitted",f[f.SchemaResolveError=768]="SchemaResolveError",(p||(p={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[a.a4.Markdown,a.a4.PlainText],commitCharactersSupport:!0}}}};var M,T,C,j,V=(M=function(e,t){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),k=P(),I={"color-hex":{errorMessage:k("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:k("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:k("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:k("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:k("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},$=function(){function e(e,t,r){void 0===r&&(r=0),this.offset=t,this.length=r,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();function F(e){return w(e)?e?{}:{not:{}}:e}V((function(e,t){var r=j.call(this,e,t)||this;return r.type="null",r.value=null,r}),j=$),function(e){V((function(t,r,n){var i=e.call(this,t,n)||this;return i.type="boolean",i.value=r,i}),e)}($),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="array",n.items=[],n}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}($),function(e){V((function(t,r){var n=e.call(this,t,r)||this;return n.type="number",n.isInteger=!0,n.value=Number.NaN,n}),e)}($),function(e){V((function(t,r,n){var i=e.call(this,t,r,n)||this;return i.type="string",i.value="",i}),e)}($),function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.type="property",i.colonOffset=-1,i.keyNode=n,i}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}($),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="object",n.properties=[],n}V(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}($),(C=T||(T={}))[C.Key=0]="Key",C[C.Enum=1]="Enum";var E=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||W(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),N=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),D=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,r=e;t=e.offset&&t=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var f=0,p=Object.keys(t.properties);f0)for(var V=0,I=o;Vt.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),S(t.minProperties)&&e.properties.length=i.length&&r.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var c=i.length;ct.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var p=R(e);p.some((function(e,t){return t!==p.lastIndexOf(e)}))&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,r,n);break;case"string":!function(e,t,r,n){if(S(t.minLength)&&e.value.lengtht.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern){var i=b(t.pattern);(null==i?void 0:i.test(e.value))||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||k("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);s?s[2]||"uri"!==t.format||(o=k("uriSchemeMissing","URI with a scheme is expected.")):o=k("uriMissing","URI is expected.")}else o=k("uriEmpty","URI expected.");o&&r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||k("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=I[t.format];e.value&&a.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,r);break;case"number":!function(e,t,r,n){var i=e.value;function o(e){var t,r=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return r&&{value:Number(r[1]+(r[2]||"")),multiplier:((null===(t=r[2])||void 0===t?void 0:t.length)||0)-(parseInt(r[3])||0)}}if(S(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=i%t.multipleOf;else{var a=o(t.multipleOf),c=o(i);if(a&&c){var l=Math.pow(10,Math.abs(c.multiplier-a.multiplier));c.multiplier=f&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",f)});var p=h(t.minimum,t.exclusiveMinimum);S(p)&&id&&r.problems.push({location:{offset:e.offset,length:e.length},message:k("maximumWarning","Value is above the maximum of {0}.",d)})}(i,t,r);break;case"property":return _(i.valueNode,t,r,n)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||r.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||k("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||r.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||k("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var o=0,s=t.allOf;o0?s={schema:l,validationResult:u,matchingSchemas:h}:0===m&&(s.matchingSchemas.merge(h),s.validationResult.mergeEnumValues(u))}else s.matchingSchemas.merge(h),s.validationResult.propertiesMatches+=u.propertiesMatches,s.validationResult.propertiesValueMatches+=u.propertiesValueMatches;else s={schema:l,validationResult:u,matchingSchemas:h}}return o.length>1&&t&&r.problems.push({location:{offset:i.offset,length:1},message:k("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(r.merge(s.validationResult),r.propertiesMatches+=s.validationResult.propertiesMatches,r.propertiesValueMatches+=s.validationResult.propertiesValueMatches,n.merge(s.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&g(t.anyOf,!1),Array.isArray(t.oneOf)&&g(t.oneOf,!0);var y,v,b,S,w,O,P=function(e){var t=new D,o=n.newSub();_(i,F(e),t,o),r.merge(t),r.propertiesMatches+=t.propertiesMatches,r.propertiesValueMatches+=t.propertiesValueMatches,n.merge(o)},M=F(t.if);if(M&&(y=M,v=F(t.then),b=F(t.else),S=F(y),w=new D,O=n.newSub(),_(i,S,w,O),n.merge(O),w.hasProblems()?b&&P(b):v&&P(v)),Array.isArray(t.enum)){for(var T=R(i),C=!1,j=0,V=t.enum;j1)||"/"!==h&&void 0!==h&&"{"!==h&&","!==h||"/"!==f&&void 0!==f&&","!==f&&"}"!==f?i+="([^/]*)":("/"===f?l++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=r}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}!function(){function e(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=[]),this.root=e,this.syntaxErrors=t,this.comments=r}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return(0,s.Hk)(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(r){var n=e(r),i=r.children;if(Array.isArray(i))for(var o=0;o0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:U("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,r=0,n=this.globWrappers;r0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var r=!1,n=[e=Y(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));n.length;)for(var o=n.pop(),s=0;s1&&(r=n[1]),v(r,".")&&(r=r.substr(0,r.length-1)),new B({},[q("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Z(e),r)])}))},e.prototype.resolveSchemaContent=function(e,t,r){var n=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var s=Y(o.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new G({},[q("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&i.push(q("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,c=function(e,t,r,n){var o=n?decodeURIComponent(n):void 0,s=function(e,t){if(!t)return e;var r=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(r=r[e])})),r}(t,o);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else i.push(q("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,r))},l=function(e,t,r,o,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o)),t=Y(t);var l=n.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(n){if(s[t]=!0,n.errors.length){var o=r?t+"#"+r:t;i.push(q("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,n.errors[0]))}return c(e,n.schema,t,r),u(e,n.schema,t,l.dependencies)}))},u=function(e,t,r,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],u=function(e){for(var n=[];e.$ref;){var s=e.$ref,u=s.split("#",2);if(delete e.$ref,u[0].length>0)return void a.push(l(e,u[0],u[1],r,i));-1===n.indexOf(s)&&(c(e,t,r,u[1]),n.push(s))}!function(){for(var e=[],t=0;t=0||(s.push(h),u(h))}return n.promise.all(a)};return u(o,o,t,r).then((function(e){return new G(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var r=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(r.length>0){var n=r[0].valueNode;if(n&&"string"===n.type){var i=R(n);if(i&&y(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=Y(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],c=function(e){try{return d.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),l=0,u=this.filePatternAssociations;l0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:g},g},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(e),n={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(r,n)},e.prototype.getMatchingSchemas=function(e,t,r){if(r){var n=r.id||"schemaservice://untitled/matchingSchemas/"+z++;return this.resolveSchemaContent(new B(r),n,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),z=0;function Y(e){try{return d.parse(e).toString()}catch(t){return e}}function Z(e){try{var t=d.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function X(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function Q(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r=0;t--){var r=this.contributions[t].resolveCompletion;if(r){var n=r(e);if(n)return n}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,r){var n=this,i={items:[],isIncomplete:!1},o=e.getText(),s=e.offsetAt(t),c=r.getNodeFromOffset(s,!0);if(this.isInComment(e,c?c.offset:0,s))return Promise.resolve(i);if(c&&s===c.offset+c.length&&s>0){var l=o[s-1];("object"===c.type&&"}"===l||"array"===c.type&&"]"===l)&&(c=c.parent)}var u,h=this.getCurrentWord(e,s);if(!c||"string"!==c.type&&"number"!==c.type&&"boolean"!==c.type&&"null"!==c.type){var m=s-h.length;m>0&&'"'===o[m-1]&&m--,u=a.e6.create(e.positionAt(m),t)}else u=a.e6.create(e.positionAt(c.offset),e.positionAt(c.offset+c.length));var f={},p={add:function(e){var t=e.label,r=f[t];if(r)r.documentation||(r.documentation=e.documentation),r.detail||(r.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var n=t.substr(0,57).trim()+"...";f[n]||(t=n)}u&&void 0!==e.insertText&&(e.textEdit=a.PY.replace(u,e.insertText)),e.label=t,f[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,r).then((function(t){var l=[],m=!0,d="",g=void 0;if(c&&"string"===c.type){var y=c.parent;y&&"property"===y.type&&y.keyNode===c&&(m=!y.valueNode,g=y,d=o.substr(c.offset+1,c.length-2),y&&(c=y.parent))}if(c&&"object"===c.type){if(c.offset===s)return i;c.properties.forEach((function(e){g&&g===e||(f[e.keyNode.value]=a.FG.create("__"))}));var v="";m&&(v=n.evaluateSeparatorAfter(e,e.offsetAt(u.end))),t?n.getPropertyCompletions(t,r,c,m,v,p):n.getSchemaLessPropertyCompletions(r,c,d,p);var b=L(c);n.contributions.forEach((function(t){var r=t.collectPropertyCompletions(e.uri,b,h,m,""===v,p);r&&l.push(r)})),!t&&h.length>0&&'"'!==o.charAt(s-h.length-1)&&(p.add({kind:a.cm.Property,label:n.getLabelForValue(h),insertText:n.getInsertTextForProperty(h,void 0,!1,v),insertTextFormat:a.lO.Snippet,documentation:""}),p.setAsIncomplete())}var x={};return t?n.getValueCompletions(t,r,c,s,e,p,x):n.getSchemaLessValueCompletions(r,c,s,e,p),n.contributions.length>0&&n.getContributedValueCompletions(r,c,s,e,p,l),n.promiseConstructor.all(l).then((function(){if(0===p.getNumberOfProposals()){var t=s;!c||"string"!==c.type&&"number"!==c.type&&"boolean"!==c.type&&"null"!==c.type||(t=c.offset+c.length);var r=n.evaluateSeparatorAfter(e,t);n.addFillerValueCompletions(x,r,p)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,r,n,i,o){var s=this;t.getMatchingSchemas(e.schema,r.offset).forEach((function(e){if(e.node===r&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var r=t[e];if("object"==typeof r&&!r.deprecationMessage&&!r.doNotSuggest){var c={kind:a.cm.Property,label:e,insertText:s.getInsertTextForProperty(e,r,n,i),insertTextFormat:a.lO.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(r.markdownDescription)||r.description||""};void 0!==r.suggestSortText&&(c.sortText=r.suggestSortText),c.insertText&&v(c.insertText,"$1"+i)&&(c.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(c)}}));var c=e.schema.propertyNames;if("object"==typeof c&&!c.deprecationMessage&&!c.doNotSuggest){var l=function(e,t){void 0===t&&(t=void 0);var r={kind:a.cm.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,n,i),insertTextFormat:a.lO.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(c.markdownDescription)||c.description||""};void 0!==c.suggestSortText&&(r.sortText=c.suggestSortText),r.insertText&&v(r.insertText,"$1"+i)&&(r.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(r)};if(c.enum)for(var u=0;u(t.colonOffset||0)){var u=t.valueNode;if(u&&(r>u.offset+u.length||"object"===u.type||"array"===u.type))return;var h=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&l(e.valueNode),!0})),"$schema"===h&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(c,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var m=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===m&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(l),!0}))}else t.items.forEach(l)},e.prototype.getValueCompletions=function(e,t,r,n,i,o,s){var a=n,c=void 0,l=void 0;if(!r||"string"!==r.type&&"number"!==r.type&&"boolean"!==r.type&&"null"!==r.type||(a=r.offset+r.length,l=r,r=r.parent),r){if("property"===r.type&&n>(r.colonOffset||0)){var u=r.valueNode;if(u&&n>u.offset+u.length)return;c=r.keyNode.value,r=r.parent}if(r&&(void 0!==c||"array"===r.type)){for(var h=this.evaluateSeparatorAfter(i,a),m=0,f=t.getMatchingSchemas(e.schema,r.offset,l);m(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||r<=a.offset+a.length)&&t.parent){var c=L(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(n.uri,c,s,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(n.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,r,n){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,r),this.addDefaultValueCompletions(e,t,r),this.collectTypes(e,n),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})))},e.prototype.addDefaultValueCompletions=function(e,t,r,n){var i=this;void 0===n&&(n=0);var o=!1;if(A(e.default)){for(var s=e.type,c=e.default,l=n;l>0;l--)c=[c],s="array";r.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t),insertTextFormat:a.lO.Snippet,detail:se("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var c=e.type,l=s,u=n;u>0;u--)l=[l],c="array";r.add({kind:i.getSuggestionKind(c),label:i.getLabelForValue(l),insertText:i.getInsertTextForValue(l,t),insertTextFormat:a.lO.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var c,l,u=e.type,h=s.body,m=s.label;if(A(h)){e.type;for(var f=n;f>0;f--)h=[h];c=i.getInsertTextForSnippetValue(h,t),l=i.getFilterTextForSnippetValue(h),m=m||i.getLabelForSnippetValue(h)}else{if("string"!=typeof s.bodyText)return;var p="",d="",g="";for(f=n;f>0;f--)p=p+g+"[\n",d=d+"\n"+g+"]",g+="\t",u="array";c=p+g+s.bodyText.split("\n").join("\n"+g)+d+t,m=m||c,l=c.replace(/[\n]/g,"")}r.add({kind:i.getSuggestionKind(u),label:m,documentation:i.fromMarkup(s.markdownDescription)||s.description,insertText:c,insertTextFormat:a.lO.Snippet,filterText:l}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&n<5&&this.addDefaultValueCompletions(e.items,t,r,n+1)},e.prototype.addEnumValueCompletions=function(e,t,r){if(A(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var n=0,i=e.enum.length;n0?t[0]:void 0}if(!e)return a.cm.Value;switch(e){case"string":default:return a.cm.Value;case"object":return a.cm.Module;case"property":return a.cm.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,r){switch(e.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var n=t.getText().substr(e.offset,e.length)+r;return this.getInsertTextForPlainText(n)}},e.prototype.getInsertTextForProperty=function(e,t,r,n){var i=this.getInsertTextForValue(e,"");if(!r)return i;var o,s=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var c=t.defaultSnippets[0].body;A(c)&&(o=this.getInsertTextForSnippetValue(c,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),A(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var l=Array.isArray(t.type)?t.type[0]:t.type;switch(l||(t.properties?l="object":t.items&&(l="array")),l){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+n},e.prototype.getCurrentWord=function(e,t){for(var r=t-1,n=e.getText();r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var r=(0,s.tU)(e.getText(),!0);switch(r.setPosition(t),r.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,r){for(var n=(0,s.tU)(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var a=i[o];if(r>a.offset+a.length)return n.setPosition(a.offset+a.length),5===n.scan()&&r>=n.getTokenOffset()+n.getTokenLength()?o+1:o;if(r>=a.offset)return o}return 0},e.prototype.isInComment=function(e,t,r){var n=(0,s.tU)(e.getText(),!1);n.setPosition(t);for(var i=n.scan();17!==i&&n.getTokenOffset()+n.getTokenLength()=97&&e<=102?e-97+10:0)}function pe(e){if("#"===e[0])switch(e.length){case 4:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:17*fe(e.charCodeAt(4))/255};case 7:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:(16*fe(e.charCodeAt(7))+fe(e.charCodeAt(8)))/255}}}var de=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,r){var n=this;void 0===r&&(r={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||v(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var c=[],l=0,u=i.items;l0){o--;var s=a.Ye.create(e.uri,ge(e,t)),c=r?r+"."+t.keyNode.value:t.keyNode.value;x.push({name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),location:s,containerName:r}),g.push({node:i,containerName:c})}else b=!0}))};y0){o--;var s=ge(e,t),a=s,c={name:String(i),kind:n.getSymbolKind(t.type),range:s,selectionRange:a,children:[]};r.push(c),b.push({result:c.children,node:t})}else S=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var s=ge(e,t),a=ge(e,t.keyNode),c=[],l={name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),range:s,selectionRange:a,children:c,detail:n.getDetail(i)};r.push(l),b.push({result:c,node:i})}else S=!0}))};x=e)return r;return 1===t.documents.length?t.documents[0]:null}function Ve(e){const t=["mapping","scalar","sequence"];return e.filter((e=>{if("string"==typeof e){const r=e.split(" "),n=r[1]&&r[1].toLowerCase()||"scalar";return"map"!==n&&-1!==t.indexOf(n)}return!1}))}function ke(e,t){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--)if(e[r]!==t[r])return!1;return!0}var Ie,$e,Fe=P(),Ee={"color-hex":{errorMessage:Fe("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Fe("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Fe("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Fe("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Fe("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Ne="YAML";($e=Ie||(Ie={})).missingRequiredPropWarning="missingRequiredPropWarning",$e.typeMismatchWarning="typeMismatchWarning",$e.constWarning="constWarning";var De,Re={[Ie.missingRequiredPropWarning]:'Missing property "{0}".',[Ie.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[Ie.constWarning]:"Value must be {0}."},Le=class{constructor(e,t,r,n){this.offset=r,this.length=n,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],r=n=>{if(e>=n.offset&&e<=n.offset+n.length){const i=n.children;for(let n=0;n=e.offset&&t<=e.offset+e.length||r&&t===e.offset+e.length}(e,this.focusOffset))&&e!==this.exclude}newSub(){return new Je(-1,this.exclude)}},ze=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};ze.instance=new ze;var Ye=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=e?[]:null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===m.EnumValueMismatch&&(e.message=Fe("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map((e=>JSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){var r,n;if(null===(r=this.problems)||void 0===r?void 0:r.length)for(const r of t){const t=this.problems.filter((e=>e.problemType===r));for(const i of t){const t=null===(n=e.problems)||void 0===n?void 0:n.find((e=>e.problemType===r&&i.location.offset===e.location.offset&&(r!==Ie.missingRequiredPropWarning||ke(e.problemArgs,i.problemArgs))));t&&(t.problemArgs.length&&(t.problemArgs.filter((e=>!i.problemArgs.includes(e))).forEach((e=>i.problemArgs.push(e))),i.message=tt(i.problemType,i.problemArgs)),this.mergeSources(t,i))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const r=e.source.replace("yaml-schema: ","");t.source.includes(r)||(t.source=t.source+" | "+r),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Ze(e){return(0,s.zA)(e)}function Xe(e,t,r,n,i,o){const{isKubernetes:s}=o;if(e&&i.include(e)){switch(t.url||(t.url=r.url),t.title||(t.title=r.title),e.type){case"object":!function(e,t,n,i){var c;const l=Object.create(null),u=[],h=[...e.properties];for(;h.length>0;){const e=h.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":h.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&h.push(...e.properties)}))}else l[t]=e.valueNode,u.push(t)}if(Array.isArray(t.required))for(const i of t.required)if(!l[i]){const o=e.parent&&"property"===e.parent.type&&e.parent.keyNode,s=o?{offset:o.offset,length:o.length}:{offset:e.offset,length:1};n.problems.push({location:s,severity:a.H_.Warning,message:tt(Ie.missingRequiredPropWarning,[i]),source:Qe(t,r),schemaUri:et(t,r),problemArgs:[i],problemType:Ie.missingRequiredPropWarning})}const m=e=>{let t=u.indexOf(e);for(;t>=0;)u.splice(t,1),t=u.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){m(e);const u=t.properties[e],h=l[e];if(h)if(re(u))if(u)n.propertiesMatches++,n.propertiesValueMatches++;else{const i=h.parent;n.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Qe(t,r),schemaUri:et(t,r)})}else{u.url=null!==(c=t.url)&&void 0!==c?c:r.url;const e=new Ye(s);Xe(h,u,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const c=X(e);for(const h of u.slice(0))if(c.test(h)){m(h);const c=l[h];if(c){const l=t.patternProperties[e];if(re(l))if(l)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=c.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",h),source:Qe(t,r),schemaUri:et(t,r)})}else{const e=new Ye(s);Xe(c,l,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of u){const r=l[e];if(r){const e=new Ye(s);Xe(r,t.additionalProperties,t,e,i,o),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===o.disableAdditionalProperties)&&u.length>0)for(const e of u){const i=l[e];if(i){let o=null;"property"!==i.type?(o=i.parent,"object"===o.type&&(o=o.properties[0])):o=i,n.problems.push({location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:a.H_.Warning,message:t.errorMessage||Fe("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Qe(t,r),schemaUri:et(t,r)})}}if(ee(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:Qe(t,r),schemaUri:et(t,r)}),ee(t.minProperties)&&e.properties.length=c.length&&n.propertiesValueMatches++}if(e.items.length>c.length)if("object"==typeof t.additionalItems)for(let r=c.length;r{const r=new Ye(s);return Xe(e,c,t,r,ze.instance,o),!r.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||Fe("requiredItemMissingWarning","Array does not contain required item."),source:Qe(t,r),schemaUri:et(t,r)})),ee(t.minItems)&&e.items.lengtht.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:Qe(t,r),schemaUri:et(t,r)}),!0===t.uniqueItems){const i=Ze(e);i.some(((e,t)=>t!==i.lastIndexOf(e)))&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("uniqueItemsWarning","Array has duplicate items."),source:Qe(t,r),schemaUri:et(t,r)})}}(e,t,n,i);break;case"string":!function(e,t,n){if(ee(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:Qe(t,r),schemaUri:et(t,r)}),ne(t.pattern)&&(X(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||Fe("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:Qe(t,r),schemaUri:et(t,r)})),t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{d.parse(e.value).scheme||"uri"!==t.format||(i=Fe("uriSchemeMissing","URI with a scheme is expected."))}catch(e){i=e.message}else i=Fe("uriEmpty","URI expected.");i&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||Fe("uriFormatWarning","String is not a URI: {0}",i),source:Qe(t,r),schemaUri:et(t,r)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const i=Ee[t.format];e.value&&i.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:Qe(t,r),schemaUri:et(t,r)})}}}(e,t,n);break;case"number":!function(e,t,n){const i=e.value;function o(e,t){return ee(t)?t:re(t)&&t?e:void 0}function s(e,t){if(!re(t)||!t)return e}ee(t.multipleOf)&&i%t.multipleOf!=0&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:Qe(t,r),schemaUri:et(t,r)});const c=o(t.minimum,t.exclusiveMinimum);ee(c)&&i<=c&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",c),source:Qe(t,r),schemaUri:et(t,r)});const l=o(t.maximum,t.exclusiveMaximum);ee(l)&&i>=l&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",l),source:Qe(t,r),schemaUri:et(t,r)});const u=s(t.minimum,t.exclusiveMinimum);ee(u)&&ih&&n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("maximumWarning","Value is above the maximum of {0}.",h),source:Qe(t,r),schemaUri:et(t,r)})}(e,t,n);break;case"property":return Xe(e.valueNode,t,t,n,i,o)}!function(){function u(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(u)||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||Fe("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Qe(t,r),schemaUri:et(t,r)});else if(t.type&&!u(t.type)){const i="object"===t.type?function(e){return e.$id?ie(e.$id):e.$ref||e._$ref?ie(e.$ref||e._$ref):e.title||(Array.isArray(e.type)?e.type.join(" | "):e.type)}(t):t.type;n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:t.errorMessage||tt(Ie.typeMismatchWarning,[i]),source:Qe(t,r),schemaUri:et(t,r),problemType:Ie.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const r of t.allOf)Xe(e,Ge(r),t,n,i,o);const h=Ge(t.not);if(h){const c=new Ye(s),l=i.newSub();Xe(e,h,t,c,l,o),c.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,message:Fe("notSchemaWarning","Matches a schema that is not allowed."),source:Qe(t,r),schemaUri:et(t,r)});for(const e of l.schemas)e.inverted=!e.inverted,i.add(e)}const f=(u,h)=>{const m=[];let f=null;for(const r of u){const n=Ge(r),a=new Ye(s),u=i.newSub();Xe(e,n,t,a,u,o),a.hasProblems()||m.push(n),f=f?s?c(a,f,n,u):l(h,a,f,n,u):{schema:n,validationResult:a,matchingSchemas:u}}return m.length>1&&h&&n.problems.push({location:{offset:e.offset,length:1},severity:a.H_.Warning,message:Fe("oneOfWarning","Matches multiple schemas when only one must validate."),source:Qe(t,r),schemaUri:et(t,r)}),null!==f&&(n.merge(f.validationResult),n.propertiesMatches+=f.validationResult.propertiesMatches,n.propertiesValueMatches+=f.validationResult.propertiesValueMatches,i.merge(f.matchingSchemas)),m.length};Array.isArray(t.anyOf)&&f(t.anyOf,!1),Array.isArray(t.oneOf)&&f(t.oneOf,!0);const p=(t,r)=>{const a=new Ye(s),c=i.newSub();Xe(e,Ge(t),r,a,c,o),n.merge(a),n.propertiesMatches+=a.propertiesMatches,n.propertiesValueMatches+=a.propertiesValueMatches,i.merge(c)},d=Ge(t.if);if(d&&((t,r,n,a)=>{const c=Ge(t),l=new Ye(s),u=i.newSub();Xe(e,c,r,l,u,o),i.merge(u),l.hasProblems()?a&&p(a,r):n&&p(n,r)})(d,t,Ge(t.then),Ge(t.else)),Array.isArray(t.enum)){const i=Ze(e);let o=!1;for(const e of t.enum)if(Q(i,e)){o=!0;break}n.enumValues=t.enum,n.enumValueMatch=o,o||n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,code:m.EnumValueMismatch,message:t.errorMessage||Fe("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:Qe(t,r),schemaUri:et(t,r)})}te(t.const)&&(Q(Ze(e),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:a.H_.Warning,code:m.EnumValueMismatch,problemType:Ie.constWarning,message:t.errorMessage||tt(Ie.constWarning,[JSON.stringify(t.const)]),source:Qe(t,r),schemaUri:et(t,r),problemArgs:[JSON.stringify(t.const)]}),n.enumValueMatch=!1),n.enumValues=[t.const]),t.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:a.H_.Warning,message:t.deprecationMessage,source:Qe(t,r),schemaUri:et(t,r)})}(),i.add({node:e,schema:t})}function c(e,t,r,n){const i=e.compareKubernetes(t.validationResult);return i>0?t={schema:r,validationResult:e,matchingSchemas:n}:0===i&&(t.matchingSchemas.merge(n),t.validationResult.mergeEnumValues(e)),t}function l(e,t,r,n,i){if(e||t.hasProblems()||r.validationResult.hasProblems()){const e=t.compareGeneric(r.validationResult);e>0?r={schema:n,validationResult:t,matchingSchemas:i}:0===e&&(r.matchingSchemas.merge(i),r.validationResult.mergeEnumValues(t),r.validationResult.mergeWarningGeneric(t,[Ie.missingRequiredPropWarning,Ie.typeMismatchWarning,Ie.constWarning]))}else r.matchingSchemas.merge(i),r.validationResult.propertiesMatches+=t.propertiesMatches,r.validationResult.propertiesValueMatches+=t.propertiesValueMatches;return r}}function Qe(e,t){var r;if(e){let n;if(e.title)n=e.title;else if(t.title)n=t.title;else{const i=null!==(r=e.url)&&void 0!==r?r:t.url;if(i){const e=d.parse(i);"file"===e.scheme&&(n=e.fsPath),n=e.toString()}}if(n)return`yaml-schema: ${n}`}return Ne}function et(e,t){var r;const n=null!==(r=e.url)&&void 0!==r?r:t.url;return n?[n]:[]}function tt(e,t){return Fe(e,Re[e],t.join(" | "))}var rt=0;function nt(e,t,r,n){if(e||(rt=0),t){if((0,c._N)(t))return function(e,t,r,n){let i;i=e.flow&&!e.range?function(e){let t=Number.MAX_SAFE_INTEGER,r=0;for(const n of e.items)(0,c.vG)(n)&&((0,c.UG)(n.key)&&n.key.range&&n.key.range[0]<=t&&(t=n.key.range[0]),(0,c.UG)(n.value)&&n.value.range&&n.value.range[2]>=r&&(r=n.value.range[2]));return[t,r,r]}(e):e.range;const o=new Be(t,e,...ot(i,n));for(const t of e.items)(0,c.vG)(t)&&o.properties.push(nt(o,t,r,n));return o}(t,e,r,n);if((0,c.vG)(t))return function(e,t,r,n){const i=e.key,o=e.value,s=i.range[0];let a=i.range[1],l=i.range[2];o&&(a=o.range[1],l=o.range[2]);const u=new Ke(t,e,...ot([s,a,l],n));if((0,c.lA)(i)){const e=new He(t,i,...it(i.range));e.value=i.source,u.keyNode=e}else u.keyNode=nt(u,i,r,n);return u.valueNode=nt(u,o,r,n),u}(t,e,r,n);if((0,c.xw)(t))return function(e,t,r,n){const i=new Ue(t,e,...it(e.range));for(const t of e.items)(0,c.UG)(t)&&i.children.push(nt(i,t,r,n));return i}(t,e,r,n);if((0,c.jF)(t))return function(e,t){if(null===e.value)return new We(t,e,...it(e.range));switch(typeof e.value){case"string":{const r=new He(t,e,...it(e.range));return r.value=e.value,r}case"boolean":return new _e(t,e,e.value,...it(e.range));case"number":{const r=new qe(t,e,...it(e.range));return r.value=e.value,r.isInteger=Number.isInteger(r.value),r}}}(t,e);if((0,c.lA)(t)){if(rt>1e3)return;return function(e,t,r,n){return rt++,nt(t,e.resolve(r),r,n)}(t,e,r,n)}}}function it(e){return[e[0],e[1]-e[0]]}function ot(e,t){const r=t.linePos(e[0]),n=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return r.line===n.line||t.lineStarts.length===n.line&&1!==n.col||i[1]--,i}function st(e){if(e.items.length>1)return!1;const t=e.items[0];return!(!(0,c.jF)(t.key)||!(0,c.jF)(t.value)||""!==t.key.value||t.value.value)}function at(e){return void 0!==e.start}function ct(e,t,r){let n=r(t,e);if("symbol"==typeof n)return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{let n=e(r);const i=r.children;if(Array.isArray(i))for(let e=0;e{const r=a.e6.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),n=a.R9.create(r,t.message,t.severity,t.code?t.code:m.Undefined,t.source);return n.data={schemaUri:t.schemaUri},n}))}return null}getMatchingSchemas(e,t=-1,r=null){const n=new Je(t,r);return this.root&&e&&Xe(this.root,e,e,new Ye(this.isKubernetes),n,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),n.schemas}}{constructor(e){super(null,[]),this.lineCounter=e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._lineComments.push(`#${this._internalDocument.commentBefore}`),(0,c.Vn)(this.internalDocument,((e,t)=>{(null==t?void 0:t.commentBefore)&&this._lineComments.push(`#${t.commentBefore}`),(null==t?void 0:t.comment)&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}set internalDocument(e){this._internalDocument=e,this.root=nt(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(mt)}get warnings(){return this.internalDocument.warnings.map(mt)}getSchemas(e,t,r){const n=[];return t.validate(e,n,r.start),n}getNodeFromPosition(e,t){const r=t.getPosition(e);if(0===t.getLineContent(r.line).trim().length)return[this.findClosestNode(e,t),!0];let n;return(0,c.Vn)(this.internalDocument,((t,r)=>{if(!r)return;const i=r.range;return i?i[0]<=e&&i[1]>=e?void(n=r):c.Vn.SKIP:void 0})),[n,!1]}findClosestNode(e,t){let r,n=this.internalDocument.range[2],i=this.internalDocument.range[0];(0,c.Vn)(this.internalDocument,((t,o)=>{if(!o)return;const s=o.range;if(!s)return;const a=Math.abs(s[2]-e);i<=s[0]&&a<=n&&(n=a,i=s[0],r=o)}));const o=t.getPosition(e),s=function(e,t){if(e.length0))return t;{const n=this.getParent(t);if(n)return this.getProperParentByIndentation(e,n,r)}}else if((0,c.vG)(t)){const n=this.getParent(t);return this.getProperParentByIndentation(e,n,r)}return t}getParent(e){return function(e,t){let r;if((0,c.Vn)(e,((e,n,i)=>{if(n===t)return r=i[i.length-1],c.Vn.BREAK})),!(0,c.qk)(r))return r}(this.internalDocument,e)}},ut=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},ht=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,r=!1){return this.ensureCache(e,null!=t?t:dt,r),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,r){const n=e.uri;this.cache.has(n)||this.cache.set(n,{version:-1,document:new ut([],[]),parserOptions:dt});const i=this.cache.get(n);if(i.version!==e.version||t.customTags&&!ke(i.parserOptions.customTags,t.customTags)){let n=e.getText();r&&!/\S/.test(n)&&(n=`{${n}}`);const o=function(e,t=dt){const r={strict:!1,customTags:pt(t.customTags),version:t.yamlVersion},n=new c.ad(r),i=new c.Yj,o=new c._b(i.addNewLine).parse(e),s=Array.from(o),a=n.compose(s,!0,e.length),l=Array.from(a,(e=>function(e,t){const r=new lt(t);return r.internalDocument=e,r}(e,i)));return new ut(l,s)}(n,t);i.document=o,i.version=e.version,i.parserOptions=t}}};function mt(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:m.Undefined}}var ft=class{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return(0,c._N)(e)&&"mapping"===this.type||(0,c.xw)(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}};function pt(e){const t=[],r=Ve(e);for(const e of r){const r=e.split(" "),n=r[0],i=r[1]&&r[1].toLowerCase()||"scalar";t.push(new ft(n,i))}return t.push(new class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}}),t}var dt={customTags:[],yamlVersion:"1.2"};function gt(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var yt,vt,bt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},xt=P();(vt=yt||(yt={}))[vt.delete=0]="delete",vt[vt.add=1]="add",vt[vt.deleteAll=2]="deleteAll";var St=class extends J{constructor(e,t,r){super(e,t,r),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const r of this.filePatternAssociations){const n=r.uris[0];if(t.has(n))continue;t.add(n);const i={uri:n,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(n)){const[e,t]=this.schemaUriToNameAndDescription.get(n);i.name=e,i.description=t,i.fromStore=!0}e.push(i)}return e}resolveSchemaContent(e,t,r){return bt(this,void 0,void 0,(function*(){const n=e.errors.slice(0);let i=e.schema;const o=this.contextService,s=(e,t,r,i)=>{const o=((e,t)=>{if(!t)return e;let r=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(r=r[e],!r))),r})(t,i);if(o)for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o[t]);else n.push(xt("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,r))},a=(e,t,r,i,a)=>{o&&!/^\w+:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i)),t=this.normalizeId(t);const l=this.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((i=>{if(a[t]=!0,i.errors.length){const e=r?t+"#"+r:t;n.push(xt("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return s(e,i.schema,t,r),e.url=t,c(e,i.schema,t,l.dependencies)}))},c=(e,t,r,n)=>bt(this,void 0,void 0,(function*(){if(!e||"object"!=typeof e)return null;const o=[e],c=[],l=[],u=e=>{const i=[];for(;e.$ref;){const o=e.$ref,c=o.split("#",2);if(e._$ref=e.$ref,delete e.$ref,c[0].length>0)return void l.push(a(e,c[0],c[1],r,n));-1===i.indexOf(o)&&(s(e,t,r,c[1]),i.push(o))}((...e)=>{for(const t of e)"object"==typeof t&&o.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const r=t[e];"object"==typeof r&&o.push(r)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&o.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(r.indexOf("#")>0){const e=r.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};yield a(t,e[0],e[1],r,n);for(const e in i)"required"!==e&&Object.prototype.hasOwnProperty.call(i,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);i=t}}for(;o.length;){const e=o.pop();c.indexOf(e)>=0||(c.push(e),u(e))}return Promise.all(l)}));return yield c(i,i,t,r),new G(i,n)}))}getSchemaForResource(e,t){const r=()=>{const r=Object.create(null),n=[];let i=function(e){if(e instanceof lt){const t=e.lineComments.find((e=>gt(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}}(t);if(void 0!==i){if(!i.startsWith("file:")&&!i.startsWith("http"))if((0,l.isAbsolute)(i))i=d.file(i).toString();else{const t=d.parse(e);i=d.file((0,l.resolve)((0,l.parse)(t.fsPath).dir,i)).toString()}this.addSchemaPriority(i,_t.Modeline),n.push(i),r[i]=!0}for(const t of this.filePatternAssociations)if(t.matchesPattern(e))for(const e of t.getURIs())r[e]||(n.push(e),r[e]=!0);const o=this.normalizeId(e);if(this.schemasById[o]&&n.push(o),n.length>0){const r=this.highestPrioritySchemas(n),i=super.createCombinedSchema(e,r);return i.getResolvedSchema().then((e=>(e.schema&&"string"!=typeof e.schema&&(e.schema.url=i.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new G(e.schema.schemaSequence[t.currentDocIndex]):e)))}return Promise.resolve(null)};return this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?r():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{anyOf:e.map((e=>e.schema))}})),(()=>r())):e?this.resolveCustomSchema(e,t):r())).then((e=>e),(()=>r())):r()}addSchemaPriority(e,t){let r=this.schemaPriorityMapping.get(e);r?(r=r.add(t),this.schemaPriorityMapping.set(e,r)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const r=new Map;return e.forEach((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((n=>{n>t&&(t=n);let i=r.get(n);i?(i=i.concat(e),r.set(n,i)):r.set(n,[e])}))})),r.get(t)||[]}resolveCustomSchema(e,t){return bt(this,void 0,void 0,(function*(){const r=yield this.loadSchema(e),n=yield this.resolveSchemaContent(r,e,[]);return n.schema&&(n.schema.url=e),n.schema&&n.schema.schemaSequence&&n.schema.schemaSequence[t.currentDocIndex]?new G(n.schema.schemaSequence[t.currentDocIndex]):n}))}saveSchema(e,t){return bt(this,void 0,void 0,(function*(){const r=this.normalizeId(e);return this.getOrAddSchemaHandle(r,t),this.schemaPriorityMapping.set(r,(new Set).add(_t.Settings)),Promise.resolve(void 0)}))}deleteSchemas(e){return bt(this,void 0,void 0,(function*(){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}))}deleteSchema(e){return bt(this,void 0,void 0,(function*(){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}))}addContent(e){return bt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const r=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof r&&(r[e.key]=e.content),yield this.saveSchema(e.schema,t.schema)}}))}deleteContent(e){return bt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const r=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof r&&delete r[e.key],yield this.saveSchema(e.schema,t.schema)}}))}resolveJSONSchemaToSection(e,t){const r=t.split("/");let n=e;for(const e of r)""!==e&&(this.resolveNext(n,e),n=n[e]);return n}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return d.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((r=>{if(r.errors&&void 0===r.schema)return t(e).then((t=>{if(!t){const t=xt("json.schema.nocontent","Unable to load schema from '{0}': No content.",At(e));return new B({},[t])}try{const e=(0,c.Qc)(t);return new B(e,[])}catch(t){const r=xt("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",At(e),t);return new B({},[r])}}),(e=>{let t=e.toString();const r=e.toString().split("Error: ");return r.length>1&&(t=r[1]),new B({},[t])}));if(r.uri=e,this.schemaUriToNameAndDescription.has(e)){const[t,n]=this.schemaUriToNameAndDescription.get(e);r.schema.title=null!=t?t:r.schema.title,r.schema.description=null!=n?n:r.schema.description}return r}))}registerExternalSchema(e,t,r,n,i){return(n||i)&&this.schemaUriToNameAndDescription.set(e,[n,i]),super.registerExternalSchema(e,t,r)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function At(e){try{const t=d.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function wt(e,t){for(const r of e)r.isKubernetes=t}function Ot(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Pt,Mt=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1=t.length)return this.doc.getText();if(e<0)return"";const r=e+1{const r=t.positionAt(e.location.start),n={start:r,end:e.location.toLineEnd?a.Ly.create(r.line,new Mt(t).getLineLength(r.line)):t.positionAt(e.location.end)};return a.R9.create(n,e.message,e.severity,e.code,Ne)};function Ct(e){try{const t=ht.getYamlDocument(e),r=[];for(const n of t.documents)r.push(Pe(e,n));return Promise.all(r).then((e=>[].concat(...e)))}catch(e){this.telemetry.sendError("yaml.documentLink.error",{error:e})}}function jt(e,t){if(!e)return;const r=[],n=ht.getYamlDocument(e);for(const t of n.documents)t.visit((t=>{var n;return("property"===t.type&&"array"===t.valueNode.type||"object"===t.type&&"array"===(null===(n=t.parent)||void 0===n?void 0:n.type))&&r.push(Vt(e,t)),"property"===t.type&&"object"===t.valueNode.type&&r.push(Vt(e,t)),!0}));const i=t&&t.rangeLimit;return"number"!=typeof i||r.length<=i?r:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),r.slice(0,t.rangeLimit))}function Vt(e,t){const r=e.positionAt(t.offset);let n=e.positionAt(t.offset+t.length);const i=e.getText(a.e6.create(r,n)),o=i.length-i.trimRight().length;return o>0&&(n=e.positionAt(t.offset+t.length-o)),a.so.create(r.line,n.line,r.character,n.character)}function kt(e,t){const r={};return r[e]=t,{changes:r}}(Pt||(Pt={})).JUMP_TO_SCHEMA="jumpToSchema";var It=new class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}};function $t(e,t){const{position:r}=t,n=new Mt(e);if("\n"===t.ch){const e=n.getLineContent(r.line-1);if(e.trimRight().endsWith(":")){const i=n.getLineContent(r.line),o=i.substring(r.character,i.length),s=-1!==e.indexOf(" - ");if(0===o.trimRight().length){const n=r.character-(e.length-e.trimLeft().length);if(n===t.options.tabSize&&!s)return;const o=[];return i.length>0&&o.push(a.PY.del(a.e6.create(r,a.Ly.create(r.line,i.length-1)))),o.push(a.PY.insert(r," ".repeat(t.options.tabSize+(s?2-n:0)))),o}if(s)return[a.PY.insert(r," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[a.PY.insert(r," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[a.PY.insert(r,"- ")];if(e.includes(" - ")&&e.includes(": "))return[a.PY.insert(r," ")]}}function Ft(e,t){const r=d.parse(e);let n=(0,l.basename)(r.fsPath);return(0,l.extname)(r.fsPath)||(n+=".json"),Object.getOwnPropertyDescriptor(t,"name")?Object.getOwnPropertyDescriptor(t,"name").value+` (${n})`:t.title?t.title+` (${n})`:n}function Et(e){const t=new Map;if(!e)return t;const r=e.url;return r?r.startsWith("schemaservice://combinedSchema/")?Nt(e,t):t.set(e.url,e):Nt(e,t),t}function Nt(e,t){e.allOf&&Dt(e.allOf,t),e.anyOf&&Dt(e.anyOf,t),e.oneOf&&Dt(e.oneOf,t)}function Dt(e,t){for(const r of e)re(r)||r.url&&!t.has(r.url)&&t.set(r.url,r)}function Rt(e,t,r,n,i){let o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o0&&a>0)return;if(c>0&&l>0)return;const u=Math.abs(a-l),h=Math.abs(s-c);if(0===u)return i.spacesDiff=h,void(h>0&&0<=c-1&&c-10?t+" ":"";if(Array.isArray(e)){if(o+=1,0===e.length)return"";let a="";for(let c=0;c0?"\n":"";for(let c=0;c0&&r0?i++:f>1&&o++,Rt(s,a,n,m,u),u.looksLikeAlignment&&2!==u.spacesDiff)continue;const d=u.spacesDiff;d<=8&&l[d]++,s=n,a=m}let h=!0;i!==o&&(h=i{const r=l[t];r>e&&(e=r,m=t)})),4===m&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(m=2)}return{insertSpaces:h,tabSize:m}}(o);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}wt(i.documents,r);const s=e.offsetAt(t);if(":"===e.getText().charAt(s-1))return Promise.resolve(n);const l=je(s,i);if(null===l)return Promise.resolve(n);let[u,h]=l.getNodeFromPosition(s,o);const m=this.getCurrentWord(e,s);let f=null;if(u&&(0,c.jF)(u)&&"null"===u.value){const t=e.positionAt(u.range[0]);t.character+=1;const r=e.positionAt(u.range[2]);r.character+=1,f=a.e6.create(t,r)}else if(u&&(0,c.jF)(u)&&u.value){const t=e.positionAt(u.range[0]);s>0&&t.character>0&&"-"===e.getText().charAt(s-1)&&(t.character-=1),f=a.e6.create(t,e.positionAt(u.range[1]))}else{let r=e.offsetAt(t)-m.length;r>0&&'"'===e.getText()[r-1]&&r--,f=a.e6.create(e.positionAt(r),t)}const p={},d={add:e=>{let t=e.label;if(t){if(ne(t)||(t=String(t)),!p[t]){if(t=t.replace(/[\n]/g,"↵"),t.length>60){const e=t.substr(0,57).trim()+"...";p[e]||(t=e)}f&&f.start.line===f.end.line&&(e.textEdit=a.PY.replace(f,e.insertText)),e.label=t,p[t]=e,n.items.push(e)}}else console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`)},error:e=>{console.error(e),this.telemetry.sendError("yaml.completion.error",{error:e})},log:e=>{console.log(e)},getNumberOfProposals:()=>n.items.length};this.customTags.length>0&&this.getCustomTagValueCompletions(d);let g=o.getLineContent(t.line);g.endsWith("\n")&&(g=g.substr(0,g.length-1));try{const r=yield this.schemaService.getSchemaForResource(e.uri,l);if((!r||r.errors.length)&&0===t.line&&0===t.character&&!gt(g)){const e={kind:a.cm.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:a.lO.PlainText};n.items.push(e)}if(gt(g)||function(e,t){let r=!1;for(const n of e){if("document"===n.type)ct([],n,(e=>{var i;if(at(e)&&"comment"===(null===(i=e.value)||void 0===i?void 0:i.type)){if(n.offset<=t&&e.value.source.length+e.value.offset>=t)return r=!0,c.Vn.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return r=!0,c.Vn.BREAK}));else if("comment"===n.type&&n.offset<=t&&n.source.length+n.offset>=t)return!0;if(r)break}return r}(i.tokens,s)){const e=g.indexOf("$schema=");return-1!==e&&e+"$schema=".length<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const r={kind:a.cm.Constant,label:null!==(t=e.name)&&void 0!==t?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:a.lO.PlainText,insertTextMode:a.DM.asIs};n.items.push(r)})),n}if(!r||r.errors.length)return n;let y=null;if(!u)if(!l.internalDocument.contents||(0,c.jF)(l.internalDocument.contents)){const e=l.internalDocument.createNode({});e.range=[s,s+1,s+1],l.internalDocument.contents=e,l.internalDocument=l.internalDocument,u=e}else u=l.findClosestNode(s,o),h=!0;if(u)if(0===g.length)u=l.internalDocument.contents;else{const r=l.getParent(u);if(r){if((0,c.jF)(u)){if(u.value){if((0,c.vG)(r)){if(r.value===u){if(g.trim().length>0&&g.indexOf(":")<0){const e=this.createTempObjNode(m,u,l);if((0,c.xw)(l.internalDocument.contents)){const t=function(e,t){for(const[r,n]of e.items.entries())if(t===n)return r}(l.internalDocument.contents,r);"number"==typeof t&&(l.internalDocument.set(t,e),l.internalDocument=l.internalDocument)}else l.internalDocument.set(r.key,e),l.internalDocument=l.internalDocument;y=e.items[0],u=e}else if(0===g.trim().length){const e=l.getParent(r);e&&(u=e)}}else if(r.key===u){const e=l.getParent(r);y=r,e&&(u=e)}}else if((0,c.xw)(r))if(g.trim().length>0){const e=this.createTempObjNode(m,u,l);r.delete(u),r.add(e),l.internalDocument=l.internalDocument,u=e}else u=r}else if(null===u.value)if((0,c.vG)(r)){if(r.key===u)u=r;else if((0,c.UG)(r.key)&&r.key.range){const n=l.getParent(r);if(h&&n&&(0,c._N)(n)&&st(n))u=n;else{const i=e.positionAt(r.key.range[0]);if(t.character>i.character&&t.line!==i.line){const e=this.createTempObjNode(m,u,l);n&&((0,c._N)(n)||(0,c.xw)(n))?(n.set(r.key,e),l.internalDocument=l.internalDocument):(l.internalDocument.set(r.key,e),l.internalDocument=l.internalDocument),y=e.items[0],u=e}else i.character===t.character&&n&&(u=n)}}}else if((0,c.xw)(r))if("-"!==g.charAt(t.character-1)){const e=this.createTempObjNode(m,u,l);r.delete(u),r.add(e),l.internalDocument=l.internalDocument,u=e}else u=r}else if((0,c._N)(u)&&!h&&0===g.trim().length&&(0,c.xw)(r)){const e=o.getLineContent(t.line+1);o.getLineCount()!==t.line+1&&0!==e.trim().length||(u=r)}}else if((0,c.jF)(u)){const e=this.createTempObjNode(m,u,l);l.internalDocument.contents=e,l.internalDocument=l.internalDocument,y=e.items[0],u=e}else if((0,c._N)(u))for(const e of u.items)(0,c.UG)(e.value)&&e.value.range&&e.value.range[0]===s+1&&(u=e.value)}if(u&&(0,c._N)(u)){const t=u.items;for(const e of t)y&&y===e||(0,c.jF)(e.key)&&(p[e.key.value.toString()]=a.FG.create("__"));this.addPropertyCompletions(r,l,u,"",d,o,f),!r&&m.length>0&&'"'!==e.getText().charAt(s-m.length-1)&&d.add({kind:a.cm.Property,label:m,insertText:this.getInsertTextForProperty(m,null,""),insertTextFormat:a.lO.Snippet})}const v={};this.getValueCompletions(r,l,u,s,e,d,v)}catch(e){e.stack?console.error(e.stack):console.error(e),this.telemetry.sendError("yaml.completion.error",{error:e})}return n},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,a)}c((s=s.apply(n,i||[])).next())}));var n,i,o,s}createTempObjNode(e,t,r){const n={};n[e]=null;const i=r.internalDocument.createNode(n);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,r,n,i,o,s){const l=t.getMatchingSchemas(e.schema),u=o.getText(s),h=-1===o.getLineContent(s.start.line).indexOf(":"),m=t.getParent(r);for(const e of l){if(e.node.internalNode===r&&!e.inverted){this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1});const t=e.schema.properties;if(t){const l=e.schema.maxProperties;if(void 0===l||void 0===r.items||r.items.length=0&&(f=" "+e.slice(t+1,r.range[0]))}"array"===l.type&&(t=r.items.find((t=>(0,c.jF)(t.key)&&t.key.range&&t.key.value===e&&(0,c.jF)(t.value)&&!t.value.value&&o.getPosition(t.key.range[2]).line===s.end.line-1)))&&t&&(Array.isArray(l.items)?this.addSchemaValueCompletions(l.items[0],n,i,{}):"object"==typeof l.items&&"object"===l.items.type&&i.add({kind:this.getSuggestionKind(l.items.type),label:"- (array item)",documentation:"Create an item of an array"+(void 0===l.description?"":"("+l.description+")"),insertText:`- ${this.getInsertTextForObject(l.items,n," ").insertText.trimLeft()}`,insertTextFormat:a.lO.Snippet}));let p=e;e.startsWith(u)&&!h||(p=this.getInsertTextForProperty(e,l,n,f+this.indentation)),i.add({kind:a.cm.Property,label:e,insertText:p,insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(l.markdownDescription)||l.description||""})}}}m&&(0,c.xw)(m)&&"object"!==e.schema.type&&this.addSchemaValueCompletions(e.schema,n,i,{})}m&&e.node.internalNode===m&&e.schema.defaultSnippets&&(1===r.items.length?this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,n,i,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,r,n,i,o,s){let l=null;if(r&&(0,c.jF)(r)&&(r=t.getParent(r)),r){if((0,c.vG)(r)){const e=r.value;if(e&&e.range&&n>e.range[0]+e.range[2])return;l=(0,c.jF)(r.key)?r.key.value.toString():null,r=t.getParent(r)}if(r&&(null!==l||(0,c.xw)(r))){const u="",h=t.getMatchingSchemas(e.schema);for(const e of h)if(e.node.internalNode===r&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,o,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),(0,c.xw)(r)&&r.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(r,i,n);t"object"==typeof e)).forEach(((t,r)=>{const n=`- ${this.getInsertTextForObject(t,u).insertText.trimLeft()}`,i=this.getDocumentationWithMarkdownText("Create an item of an array"+(void 0===e.schema.description?"":"("+e.schema.description+")"),n);o.add({kind:this.getSuggestionKind(t.type),label:"- (array item) "+(r+1),documentation:i,insertText:n,insertTextFormat:a.lO.Snippet})})),this.addSchemaValueCompletions(e.schema.items,u,o,s)):this.addSchemaValueCompletions(e.schema.items,u,o,s);if(e.schema.properties){const t=e.schema.properties[l];t&&this.addSchemaValueCompletions(t,u,o,s)}}s.boolean&&(this.addBooleanValueCompletion(!0,u,o),this.addBooleanValueCompletion(!1,u,o)),s.null&&this.addNullValueCompletion(u,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)}getInsertTextForProperty(e,t,r,n=this.indentation){const i=this.getInsertTextForValue(e,"","string"),o=i+":";let s,a=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e="object":t.items&&(e="array")),Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;te(e)&&(s=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},1),s.startsWith(" ")||s.startsWith("\n")||(s=" "+s))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),te(t.default)&&(s||(s=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return`${o}\n${this.getInsertTextForObject(t,r,n).insertText}`;if(t.items)return`${o}\n${this.indentation}- ${this.getInsertTextForArray(t.items,r).insertText}`;if(0===a)switch(e){case"boolean":case"string":s=" $1";break;case"object":s=`\n${n}`;break;case"array":s=`\n${n}- `;break;case"number":case"integer":s=" ${1:0}";break;case"null":s=" ${1:null}";break;default:return i}}return(!s||a>1)&&(s=" $1"),o+s+r}getInsertTextForObject(e,t,r=this.indentation,n=1){let i="";return e.properties?(Object.keys(e.properties).forEach((o=>{const s=e.properties[o];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(o)>-1)switch(a){case"boolean":case"string":case"number":case"integer":i+=`${r}${o}: $${n++}\n`;break;case"array":{const e=this.getInsertTextForArray(s.items,t,n++),a=e.insertText.split("\n");let c=e.insertText;if(a.length>1){for(let e=1;ethis.addSchemaValueCompletions(e,t,r,n))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,r,n))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,r,n))))}collectTypes(e,t){if(Array.isArray(e.enum)||te(e.const))return;const r=e.type;Array.isArray(r)?r.forEach((function(e){return t[e]=!0})):r&&(t[r]=!0)}addDefaultValueCompletions(e,t,r,n=0){let i=!1;if(te(e.default)){let o,s=e.type,c=e.default;for(let e=n;e>0;e--)c=[c],s="array";o="object"==typeof c?"Default value":c.toString().replace(Ht,'"'),r.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(c,t,s),insertTextFormat:a.lO.Snippet,detail:qt("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((o=>{let s=e.type,c=o;for(let e=n;e>0;e--)c=[c],s="array";r.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t,s),insertTextFormat:a.lO.Snippet}),i=!0})),this.collectDefaultSnippets(e,t,r,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),i||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,r,n+1)}addEnumValueCompletions(e,t,r){if(te(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,void 0),insertTextFormat:a.lO.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let n=0,i=e.enum.length;n{0!==r||t.startsWith("-")?e[` ${t}`]=u[t]:e[`- ${t}`]=u[t]})),u=e}s=this.getInsertTextForSnippetValue(u,t,n),h=h||this.getLabelForSnippetValue(u)}else if("string"==typeof o.bodyText){let e="",r="",n="";for(let t=i;t>0;t--)e=e+n+"[\n",r=r+"\n"+n+"]",n+=this.indentation,l="array";s=e+n+o.bodyText.split("\n").join("\n"+n)+r+t,h=h||s,c=s.replace(/[\n]/g,"")}r.add({kind:o.suggestionKind||this.getSuggestionKind(l),label:h,documentation:this.fromMarkup(o.markdownDescription)||o.description,insertText:s,insertTextFormat:a.lO.Snippet,filterText:c})}}getInsertTextForSnippetValue(e,t,r,n){return Lt(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),r,n)+t}addBooleanValueCompletion(e,t,r){r.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:a.lO.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:a.lO.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Ve(this.customTags).forEach((t=>{const r=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)}))}addCustomTagValueCompletion(e,t,r){e.add({kind:this.getSuggestionKind("string"),label:r,insertText:r+t,insertTextFormat:a.lO.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let r=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),r=this.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),r}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return a.cm.Value;switch(e){case"string":default:return a.cm.Value;case"object":return a.cm.Module;case"property":return a.cm.Property}}getCurrentWord(e,t){let r=t-1;const n=e.getText();for(;r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:a.a4.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(a.a4.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,r){for(let t=e.items.length-1;t>=0;t--){const n=e.items[t];if((0,c.UG)(n)&&n.range){if(r>n.range[1])return t;if(r>=n.range[0])return t}}return 0}}(o,i,ht,n),m=new class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,r=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const n=ht.getYamlDocument(e),i=je(e.offsetAt(t),n);if(null===i)return Promise.resolve(void 0);wt(n.documents,r);const o=n.documents.indexOf(i);return i.currentDocIndex=o,this.getHover(e,t,i)}catch(t){this.telemetry.sendError("yaml.hover.error",{error:t,documentUri:e.uri})}}getHover(e,t,r){const n=e.offsetAt(t);let i=r.getNodeFromOffset(n);if(!i||("object"===i.type||"array"===i.type)&&n>i.offset+1&&n{if(e&&i&&!e.errors.length){let n,o,a,c;r.getMatchingSchemas(e.schema,i.offset).every((e=>{if(e.node===i&&!e.inverted&&e.schema&&(n=n||e.schema.title,o=o||e.schema.markdownDescription||Ot(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Ze(i));e.schema.markdownEnumDescriptions?a=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(a=Ot(e.schema.enumDescriptions[t])),a&&(c=e.schema.enum[t],"string"!=typeof c&&(c=JSON.stringify(c)))}return!0}));let u="";return n&&(u="#### "+Ot(n)),o&&(u.length>0&&(u+="\n\n"),u+=o),a&&(u.length>0&&(u+="\n\n"),u+=`\`${t=c,-1!==t.indexOf("`")?"`` "+t+" ``":t}\`: ${a}`),u.length>0&&e.schema.url&&(u+=`\n\nSource: [${function(e){let t="JSON Schema";const r=e.url;if(r){const e=d.parse(r);t=(0,l.basename)(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),{contents:{kind:"markdown",value:u},range:s}}var t;return null}))}}(o,n),f=new class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new de(e);const r=this.jsonDocumentSymbols.getKeyLabel;this.jsonDocumentSymbols.getKeyLabel=e=>"object"==typeof e.keyNode.value?e.keyNode.value.value:r.call(this.jsonDocumentSymbols,e)}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let r=[];try{const n=ht.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(t){this.telemetry.sendError("yaml.documentSymbols.error",{error:t,documentUri:e.uri})}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let r=[];try{const n=ht.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(t){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:t,documentUri:e.uri})}return r}}(o,n),p=new class{constructor(e){this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new ce(e,Promise)}configure(e){e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion)}doValidation(e,t=!1){return r=this,n=void 0,o=function*(){if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const n=ht.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let i=0;for(const o of n.documents){o.isKubernetes=t,o.currentDocIndex=i,o.disableAdditionalProperties=this.disableAdditionalProperties;const n=yield this.jsonValidation.doValidation(e,o),s=o;s.errors.length>0&&r.push(...s.errors),s.warnings.length>0&&r.push(...s.warnings),r.push(...n),i++}}catch(e){console.error(e.toString())}let n;const i=new Set,o=[];for(let s of r){if(t&&s.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(s,"location")&&(s=Tt(s,e)),s.source||(s.source=Ne),n&&n.message===s.message&&n.range.end.line===s.range.start.line&&Math.abs(n.range.end.character-s.range.end.character)>=1){n.range.end=s.range.end;continue}n=s;const r=s.range.start.line+" "+s.range.start.character+" "+s.message;i.has(r)||(o.push(s),i.add(r))}return o},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}}(o),g=new class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const r=e.getText(),n={parser:"yaml",plugins:[h],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:"always"===t.proseWrap?"always":"never"===t.proseWrap?"never":"preserve",printWidth:t.printWidth},i=(0,u.format)(r,n);return[a.PY.replace(a.e6.create(a.Ly.create(0,0),e.positionAt(r.length)),i)]}catch(e){return[]}}},y=new class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const r=[];return r.push(...this.getJumpToSchemaActions(t.context.diagnostics)),r.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),r}getJumpToSchemaActions(e){var t,r,n,i,o;if(null===(i=null===(n=null===(r=null===(t=this.clientCapabilities)||void 0===t?void 0:t.window)||void 0===r?void 0:r.showDocument)||void 0===n?void 0:n.support)||void 0===i||!i)return[];const s=new Map;for(const t of e){const e=(null===(o=t.data)||void 0===o?void 0:o.schemaUri)||[];for(const r of e)r&&(s.has(r)||s.set(r,[]),s.get(r).push(t))}const c=[];for(const e of s.keys()){const t=a.B2.create(`Jump to schema location (${(0,l.basename)(e)})`,a.mY.create("JumpToSchema",Pt.JUMP_TO_SCHEMA,e));t.diagnostics=s.get(e),c.push(t)}return c}getTabToSpaceConverting(e,t){const r=[],n=new Mt(t),i=[];for(const o of e)if("Using tabs can lead to unpredictable results"===o.message){if(i.includes(o.range.start.line))continue;const e=n.getLineContent(o.range.start.line);let s=0,c="";for(let t=o.range.start.character;t<=o.range.end.character&&"\t"===e.charAt(t);t++)s++,c+=this.indentation;i.push(o.range.start.line);let l=o.range;s!==o.range.end.character-o.range.start.character&&(l=a.e6.create(o.range.start,a.Ly.create(o.range.end.line,o.range.start.character+s))),r.push(a.B2.create("Convert Tab to Spaces",kt(t.uri,[a.PY.replace(l,c)]),a.yN.QuickFix))}if(0!==r.length){const e=[];for(let t=0;t<=n.getLineCount();t++){const r=n.getLineContent(t);let i=0,o="";for(let n=0;n0&&r.push(a.B2.create("Convert all Tabs to Spaces",kt(t.uri,e),a.yN.QuickFix))}return r}}(i),v=new class{constructor(e,t){this.schemaService=e,this.telemetry=t}getCodeLens(e,t){return r=this,n=void 0,o=function*(){const t=[];try{const r=ht.getYamlDocument(e);for(const n of r.documents){const r=yield this.schemaService.getSchemaForResource(e.uri,n);if(null==r?void 0:r.schema){const e=Et(null==r?void 0:r.schema);if(0===e.size)continue;for(const r of e){const e=a.JF.create(a.e6.create(0,0,0,0));e.command={title:Ft(r[0],r[1]),command:Pt.JUMP_TO_SCHEMA,arguments:[r[0]]},t.push(e)}}}}catch(t){this.telemetry.sendError("yaml.codeLens.error",{error:t,documentUri:e.uri})}return t},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}resolveCodeLens(e){return e}}(o,n);return function(e,t){e.registerCommand(Pt.JUMP_TO_SCHEMA,(e=>{return r=this,n=void 0,o=function*(){if(e){if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=d.parse(e),r=d.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e});e=r.toString()}if(/^[a-z]:[\\/]/i.test(e)){const t=d.file(e);e=t.toString()}(yield t.window.showDocument({uri:e,external:!1,takeFocus:!0}))||t.window.showErrorMessage(`Cannot open ${e}`)}},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o}))}(It,r),{configure:e=>{o.clearExternalSchemas(),e.schemas&&(o.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const t=e.priority?e.priority:0;o.addSchemaPriority(e.uri,t),o.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description)}))),p.configure(e),m.configure(e),s.configure(e),g.configure(e),y.configure(e)},registerCustomSchemaProvider:e=>{o.registerCustomSchemaProvider(e)},findLinks:Ct,doComplete:s.doComplete.bind(s),doValidation:p.doValidation.bind(p),doHover:m.doHover.bind(m),findDocumentSymbols:f.findDocumentSymbols.bind(f),findDocumentSymbols2:f.findHierarchicalDocumentSymbols.bind(f),doDefinition:Gt.bind(Gt),resetSchema:e=>o.onResourceChange(e),doFormat:g.format.bind(g),doDocumentOnTypeFormatting:$t,addSchema:(e,t)=>o.saveSchema(e,t),deleteSchema:e=>o.deleteSchema(e),modifySchemaContent:e=>o.addContent(e),deleteSchemaContent:e=>o.deleteContent(e),deleteSchemasWhole:e=>o.deleteSchemas(e),getFoldingRanges:jt,getCodeAction:(e,t)=>y.getCodeAction(e,t),getCodeLens:(e,t)=>v.getCodeLens(e,t),resolveCodeLens:e=>v.resolveCodeLens(e)}}async function zt(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}(Ut=_t||(_t={}))[Ut.SchemaStore=1]="SchemaStore",Ut[Ut.SchemaAssociation=2]="SchemaAssociation",Ut[Ut.Settings=3]="Settings",Ut[Ut.Modeline=4]="Modeline",self.onmessage=()=>{(0,i.j)(((e,t)=>Object.create(function(e,{enableSchemaRequest:t,languageSettings:r}){const n=Jt(t?zt:null,null,null,null);n.configure(r);const i=t=>{const r=e.getMirrorModels();for(const e of r)if(String(e.uri)===t)return o.n.create(t,"yaml",e.version,e.getValue());return null};return{doValidation(e){const t=i(e);return t?n.doValidation(t,r.isKubernetes):[]},doComplete(e,t){const o=i(e);return n.doComplete(o,t,r.isKubernetes)},doDefinition(e,t){const r=i(e);return n.doDefinition(r,{position:t,textDocument:{uri:e}})},doHover(e,t){const r=i(e);return n.doHover(r,t)},format(e,t){const r=i(e);return n.doFormat(r,t)},resetSchema:e=>n.resetSchema(e),findDocumentSymbols(e){const t=i(e);return n.findDocumentSymbols2(t,{})},findLinks(e){const t=i(e);return Promise.resolve(n.findLinks(t))}}}(e,t))))}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}i.m=r,i.x=()=>{var e=i.O(void 0,[4200,7792],(()=>i(1623)));return i.O(e)},e=[],i.O=(t,r,n,o)=>{if(!r){var s=1/0;for(u=0;u=o)&&Object.keys(i.O).every((e=>i.O[e](r[c])))?r.splice(c--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+".entry.js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.p="/public/yaml/",(()=>{var e={1623:1};i.f.i=(t,r)=>{e[t]||importScripts(i.p+i.u(t))};var t=self.webpackChunkdemo=self.webpackChunkdemo||[],r=t.push.bind(t);t.push=t=>{var[n,o,s]=t;for(var a in o)i.o(o,a)&&(i.m[a]=o[a]);for(s&&s(i);n.length;)e[n.pop()]=1;r(t)}})(),t=i.x,i.x=()=>Promise.all([i.e(4200),i.e(7792)]).then(t),i.x()})(); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/1649.entry.js b/src/Web/assets/public/yaml/1649.entry.js index c8338a2..fd48ca2 100644 --- a/src/Web/assets/public/yaml/1649.entry.js +++ b/src/Web/assets/public/yaml/1649.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1649],{1649:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=>{t.r(_),t.d(_,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BY","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]); -//# sourceMappingURL=1941.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[1941],{1271:(e,_,t)=>{t.r(_),t.d(_,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BY","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2014.entry.js b/src/Web/assets/public/yaml/2014.entry.js index 4c81ca6..462fdc7 100644 --- a/src/Web/assets/public/yaml/2014.entry.js +++ b/src/Web/assets/public/yaml/2014.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2014],{1218:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>r,language:()=>o});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]); -//# sourceMappingURL=2014.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2014],{1218:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>r,language:()=>o});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2271.entry.js b/src/Web/assets/public/yaml/2271.entry.js index 148c0ec..884bde8 100644 --- a/src/Web/assets/public/yaml/2271.entry.js +++ b/src/Web/assets/public/yaml/2271.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2271],{2271:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>i});var o={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}}}]); -//# sourceMappingURL=2271.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2271],{2271:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>i});var o={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2287.entry.js b/src/Web/assets/public/yaml/2287.entry.js index 7b8b160..a688e56 100644 --- a/src/Web/assets/public/yaml/2287.entry.js +++ b/src/Web/assets/public/yaml/2287.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2287,5900],{2287:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var o=n(5900),i=o.conf,r={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}},5900:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var o=n(2526),i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.Mj.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.Mj.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.Mj.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.Mj.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},r={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]); -//# sourceMappingURL=2287.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2287,5900],{2287:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var o=n(5900),i=o.conf,r={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}},5900:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var o=n(2526),i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.Mj.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.Mj.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.Mj.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.Mj.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},r={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2388.entry.js b/src/Web/assets/public/yaml/2388.entry.js index eb48bf4..9bc79e3 100644 --- a/src/Web/assets/public/yaml/2388.entry.js +++ b/src/Web/assets/public/yaml/2388.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2388],{2388:(t,e,i)=>{i.r(e),i.d(e,{conf:()=>m,language:()=>r});var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},r={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); -//# sourceMappingURL=2388.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2388],{2388:(t,e,i)=>{i.r(e),i.d(e,{conf:()=>m,language:()=>r});var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},r={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2501.entry.js b/src/Web/assets/public/yaml/2501.entry.js index e0e8dd7..4fd5c04 100644 --- a/src/Web/assets/public/yaml/2501.entry.js +++ b/src/Web/assets/public/yaml/2501.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2501],{2501:(e,t,n)=>{n.r(t),n.d(t,{getJavaScriptWorker:()=>R,getTypeScriptWorker:()=>H,setupJavaScript:()=>E,setupTypeScript:()=>K});var r,i,s=n(7181),o=function(){function e(e,t){var n=this;this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()})),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((function(){return n._updateExtraLibs()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()},e.prototype._updateExtraLibs=function(){return e=this,t=void 0,r=function(){var e,t;return function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&(t+=" — "+i.map((function(e){return e.text})).join(" "))}else Array.isArray(e.text)?t+=" — "+e.text.map((function(e){return e.text})).join(" "):e.text&&(t+=" — "+e.text);return t}var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureHelpTriggerCharacters=["(",","],t}return l(t,e),t._toSignatureHelpTriggerReason=function(e){switch(e.triggerKind){case s.Mj.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case s.Mj.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case s.Mj.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}},t.prototype.provideSignatureHelp=function(e,n,r,i){return d(this,void 0,void 0,(function(){var r,s,o,a,u;return p(this,(function(l){switch(l.label){case 0:return r=e.uri,s=e.getOffsetAt(n),[4,this._worker(r)];case 1:return o=l.sent(),e.isDisposed()?[2]:[4,o.getSignatureHelpItems(r.toString(),s,{triggerReason:t._toSignatureHelpTriggerReason(i)})];case 2:return!(a=l.sent())||e.isDisposed()?[2]:(u={activeSignature:a.selectedItemIndex,activeParameter:a.argumentIndex,signatures:[]},a.items.forEach((function(e){var t={label:"",parameters:[]};t.documentation={value:g(e.documentation)},t.label+=g(e.prefixDisplayParts),e.parameters.forEach((function(n,r,i){var s=g(n.displayParts),o={label:s,documentation:{value:g(n.documentation)}};t.label+=s,t.parameters.push(o),r0)for(var u=0,l=n.childItems;u{n.r(t),n.d(t,{getJavaScriptWorker:()=>R,getTypeScriptWorker:()=>H,setupJavaScript:()=>E,setupTypeScript:()=>K});var r,i,s=n(7181),o=function(){function e(e,t){var n=this;this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()})),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((function(){return n._updateExtraLibs()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()},e.prototype._updateExtraLibs=function(){return e=this,t=void 0,r=function(){var e,t;return function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&(t+=" — "+i.map((function(e){return e.text})).join(" "))}else Array.isArray(e.text)?t+=" — "+e.text.map((function(e){return e.text})).join(" "):e.text&&(t+=" — "+e.text);return t}var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureHelpTriggerCharacters=["(",","],t}return l(t,e),t._toSignatureHelpTriggerReason=function(e){switch(e.triggerKind){case s.Mj.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case s.Mj.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case s.Mj.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}},t.prototype.provideSignatureHelp=function(e,n,r,i){return d(this,void 0,void 0,(function(){var r,s,o,a,u;return p(this,(function(l){switch(l.label){case 0:return r=e.uri,s=e.getOffsetAt(n),[4,this._worker(r)];case 1:return o=l.sent(),e.isDisposed()?[2]:[4,o.getSignatureHelpItems(r.toString(),s,{triggerReason:t._toSignatureHelpTriggerReason(i)})];case 2:return!(a=l.sent())||e.isDisposed()?[2]:(u={activeSignature:a.selectedItemIndex,activeParameter:a.argumentIndex,signatures:[]},a.items.forEach((function(e){var t={label:"",parameters:[]};t.documentation={value:g(e.documentation)},t.label+=g(e.prefixDisplayParts),e.parameters.forEach((function(n,r,i){var s=g(n.displayParts),o={label:s,documentation:{value:g(n.documentation)}};t.label+=s,t.parameters.push(o),r0)for(var u=0,l=n.childItems;u{r.r(t),r.d(t,{conf:()=>n,language:()=>o});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]); -//# sourceMappingURL=2583.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2583],{2583:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>n,language:()=>o});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/2862.entry.js b/src/Web/assets/public/yaml/2862.entry.js index 8f38aa0..294d09e 100644 --- a/src/Web/assets/public/yaml/2862.entry.js +++ b/src/Web/assets/public/yaml/2862.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2862],{2862:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>{o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>{o.r(t),o.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","fileprivate","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","fileprivate","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]); -//# sourceMappingURL=2906.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[2906],{2906:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","fileprivate","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","fileprivate","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/300.entry.js b/src/Web/assets/public/yaml/300.entry.js index 55aadba..9bf796f 100644 --- a/src/Web/assets/public/yaml/300.entry.js +++ b/src/Web/assets/public/yaml/300.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[300],{300:(e,t,p)=>{p.r(t),p.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},i={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); -//# sourceMappingURL=300.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[300],{300:(e,t,p)=>{p.r(t),p.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},i={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3008.entry.js b/src/Web/assets/public/yaml/3008.entry.js index ac026b5..d32800b 100644 --- a/src/Web/assets/public/yaml/3008.entry.js +++ b/src/Web/assets/public/yaml/3008.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3008],{3008:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>t});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]); -//# sourceMappingURL=3008.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3008],{3008:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>t});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3315.entry.js b/src/Web/assets/public/yaml/3315.entry.js index fe72c4a..b844a54 100644 --- a/src/Web/assets/public/yaml/3315.entry.js +++ b/src/Web/assets/public/yaml/3315.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3315],{3315:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); -//# sourceMappingURL=3315.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3315],{3315:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3399.entry.js b/src/Web/assets/public/yaml/3399.entry.js index 1da4d28..98b2c6e 100644 --- a/src/Web/assets/public/yaml/3399.entry.js +++ b/src/Web/assets/public/yaml/3399.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3399],{3399:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>o});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]); -//# sourceMappingURL=3399.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3399],{3399:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>o});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3504.entry.js b/src/Web/assets/public/yaml/3504.entry.js index e293556..8a63273 100644 --- a/src/Web/assets/public/yaml/3504.entry.js +++ b/src/Web/assets/public/yaml/3504.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3504],{3504:(E,S,e)=>{e.r(S),e.d(S,{conf:()=>T,language:()=>R});var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]); -//# sourceMappingURL=3504.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3504],{3504:(E,S,e)=>{e.r(S),e.d(S,{conf:()=>T,language:()=>R});var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3553.entry.js b/src/Web/assets/public/yaml/3553.entry.js index 31aefb6..a1e1481 100644 --- a/src/Web/assets/public/yaml/3553.entry.js +++ b/src/Web/assets/public/yaml/3553.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3553],{3553:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>n});var t={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>{o.r(s),o.d(s,{conf:()=>t,language:()=>n});var t={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>{r.r(t),r.d(t,{conf:()=>s,language:()=>n});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]); -//# sourceMappingURL=3673.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3673],{3673:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>s,language:()=>n});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3734.entry.js b/src/Web/assets/public/yaml/3734.entry.js new file mode 100644 index 0000000..2658449 --- /dev/null +++ b/src/Web/assets/public/yaml/3734.entry.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t,n={8975:(e,t,n)=>{n.d(t,{j:()=>a});var r=n(7223),i=n(3488);let o=!1;function a(e){if(o)return;o=!0;const t=new r._i((e=>{self.postMessage(e)}),(t=>new i.ky(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{o||a(null)}},3734:(e,t,n)=>{var r=n(8975),i=n(3353);function o(e,t){for(var n="",r=0;r0?e.lastIndexOf(t)===n:0===n&&e===t}function J(e){return W(e,"(?i)")?new RegExp(e.substring(4),"iu"):new RegExp(e,"u")}N.Vn,N.zx,function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(s||(s={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(c||(c={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=c.MAX_VALUE),t===Number.MAX_VALUE&&(t=c.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.uinteger(t.line)&&Ce.uinteger(t.character)}}(u||(u={})),function(e){e.create=function(e,t,n,r){if(Ce.uinteger(e)&&Ce.uinteger(t)&&Ce.uinteger(n)&&Ce.uinteger(r))return{start:u.create(e,t),end:u.create(n,r)};if(u.is(e)&&u.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&u.is(t.start)&&u.is(t.end)}}(f||(f={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ce.defined(t)&&f.is(t.range)&&(Ce.string(t.uri)||Ce.undefined(t.uri))}}(l||(l={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Ce.defined(t)&&f.is(t.targetRange)&&Ce.string(t.targetUri)&&(f.is(t.targetSelectionRange)||Ce.undefined(t.targetSelectionRange))&&(f.is(t.originSelectionRange)||Ce.undefined(t.originSelectionRange))}}(h||(h={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Ce.numberRange(t.red,0,1)&&Ce.numberRange(t.green,0,1)&&Ce.numberRange(t.blue,0,1)&&Ce.numberRange(t.alpha,0,1)}}(p||(p={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return f.is(t.range)&&p.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Ce.string(t.label)&&(Ce.undefined(t.textEdit)||w.is(t))&&(Ce.undefined(t.additionalTextEdits)||Ce.typedArray(t.additionalTextEdits,w.is))}}(m||(m={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return Ce.defined(n)&&(o.startCharacter=n),Ce.defined(r)&&(o.endCharacter=r),Ce.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return Ce.uinteger(t.startLine)&&Ce.uinteger(t.startLine)&&(Ce.undefined(t.startCharacter)||Ce.uinteger(t.startCharacter))&&(Ce.undefined(t.endCharacter)||Ce.uinteger(t.endCharacter))&&(Ce.undefined(t.kind)||Ce.string(t.kind))}}(v||(v={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ce.defined(t)&&l.is(t.location)&&Ce.string(t.message)}}(y||(y={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(b||(b={})),function(e){e.Unnecessary=1,e.Deprecated=2}(x||(x={})),function(e){e.is=function(e){var t=e;return null!=t&&Ce.string(t.href)}}(S||(S={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return Ce.defined(n)&&(a.severity=n),Ce.defined(r)&&(a.code=r),Ce.defined(i)&&(a.source=i),Ce.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return Ce.defined(n)&&f.is(n.range)&&Ce.string(n.message)&&(Ce.number(n.severity)||Ce.undefined(n.severity))&&(Ce.integer(n.code)||Ce.string(n.code)||Ce.undefined(n.code))&&(Ce.undefined(n.codeDescription)||Ce.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ce.string(n.source)||Ce.undefined(n.source))&&(Ce.undefined(n.relatedInformation)||Ce.typedArray(n.relatedInformation,y.is))}}(A||(A={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.title)&&Ce.string(t.command)}}(k||(k={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.string(t.newText)&&f.is(t.range)}}(w||(w={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&Ce.objectLiteral(t)&&Ce.string(t.label)&&(Ce.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ce.string(t.description)||void 0===t.description)}}(C||(C={})),function(e){e.is=function(e){return"string"==typeof e}}(O||(O={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return w.is(t)&&(C.is(t.annotationId)||O.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ce.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}}(E||(E={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||O.is(t.annotationId))}}(I||(I={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Ce.string(t.oldUri)&&Ce.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||O.is(t.annotationId))}}(j||(j={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ce.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ce.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||O.is(t.annotationId))}}(P||(P={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ce.string(e.kind)?I.is(e)||j.is(e)||P.is(e):E.is(e)})))}}(M||(M={}));var K,z,H,G,X,Z,Q,Y,ee,te,ne,re,ie,oe,ae,se,ce,ue,fe,le,he,pe,de,me,ge,ve,ye,be,xe,Se,Ae,ke=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=w.insert(e,t):O.is(n)?(i=n,r=T.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=T.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=w.replace(e,t):O.is(n)?(i=n,r=T.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=T.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=w.del(e):O.is(t)?(r=t,n=T.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=T.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),we=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(O.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new we(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var n=new ke(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ke(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(H.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ke(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ke(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new we,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(C.is(t)||O.is(t)?r=t:n=t,void 0===r?i=I.create(e,n):(o=O.is(r)?r:this._changeAnnotations.manage(r),i=I.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(C.is(n)||O.is(n)?i=n:r=n,void 0===i?o=j.create(e,t,r):(a=O.is(i)?i:this._changeAnnotations.manage(i),o=j.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(C.is(t)||O.is(t)?r=t:n=t,void 0===r?i=P.create(e,n):(o=O.is(r)?r:this._changeAnnotations.manage(r),i=P.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)}}(K||(K={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&Ce.integer(t.version)}}(z||(z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&(null===t.version||Ce.integer(t.version))}}(H||(H={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&Ce.string(t.languageId)&&Ce.integer(t.version)&&Ce.string(t.text)}}(G||(G={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(X||(X={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(X||(X={})),function(e){e.is=function(e){var t=e;return Ce.objectLiteral(e)&&X.is(t.kind)&&Ce.string(t.value)}}(Z||(Z={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Q||(Q={})),function(e){e.PlainText=1,e.Snippet=2}(Y||(Y={})),function(e){e.Deprecated=1}(ee||(ee={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Ce.string(t.newText)&&f.is(t.insert)&&f.is(t.replace)}}(te||(te={})),function(e){e.asIs=1,e.adjustIndentation=2}(ne||(ne={})),function(e){e.create=function(e){return{label:e}}}(re||(re={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(ie||(ie={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Ce.string(t)||Ce.objectLiteral(t)&&Ce.string(t.language)&&Ce.string(t.value)}}(oe||(oe={})),function(e){e.is=function(e){var t=e;return!!t&&Ce.objectLiteral(t)&&(Z.is(t.contents)||oe.is(t.contents)||Ce.typedArray(t.contents,oe.is))&&(void 0===e.range||f.is(e.range))}}(ae||(ae={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(se||(se={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(u,r.length),o=c}return r}}(Ae||(Ae={}));var Ce,Oe=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return u.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return u.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1e?r=i:n=i+1}var o=n-1;return{line:o,character:e-t[o]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Ve(e){var t=_e(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Fe(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0];return void 0!==t[r]?t[r]:e}))}function Re(e,t){for(var n=[],r=2;rr&&i.push(n.substring(r,c)),s.newText.length&&i.push(s.newText),r=e.offsetAt(s.range.end)}return i.push(n.substr(r)),i.join("")}}(Te||(Te={})),function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"}(Ee||(Ee={})),function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[X.Markdown,X.PlainText],commitCharactersSupport:!0}}}}}(Ie||(Ie={}));var De,Le,Ue=(De=function(e,t){return De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},De(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),qe=$e(),We={"color-hex":{errorMessage:qe("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:qe("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:qe("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:qe("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:qe("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Be=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),Je=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return Ue(t,e),t}(Be),Ke=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}return Ue(t,e),t}(Be),ze=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return Ue(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Be),He=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return Ue(t,e),t}(Be),Ge=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}return Ue(t,e),t}(Be),Xe=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}return Ue(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Be),Ze=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return Ue(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Be);function Qe(e){return q(e)?e?{}:{not:{}}:e}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(Le||(Le={}));var Ye=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||it(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),et=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),tt=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t=e.offset&&t=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var p=0,d=Object.keys(t.properties);p0)for(var T=0,E=o;Tt.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),L(t.minProperties)&&e.properties.length=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var c=i.length;ct.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var m=nt(e),g=m.some((function(e,t){return t!==m.lastIndexOf(e)}));g&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n,r){if(L(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern&&(J(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||qe("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var i=void 0;if(e.value){var o=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);o?o[2]||"uri"!==t.format||(i=qe("uriSchemeMissing","URI with a scheme is expected.")):i=qe("uriMissing","URI is expected.")}else i=qe("uriEmpty","URI expected.");i&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||qe("uriFormatWarning","String is not a URI: {0}",i)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=We[t.format];e.value&&a.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n,r){var i=e.value;function o(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(L(t.multipleOf)){var a=-1;if(Number.isInteger(t.multipleOf))a=i%t.multipleOf;else{var s=o(t.multipleOf),c=o(i);if(s&&c){var u=Math.pow(10,Math.abs(c.multiplier-s.multiplier));c.multiplier=p&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",p)});var d=l(t.minimum,t.exclusiveMinimum);L(d)&&im&&n.problems.push({location:{offset:e.offset,length:e.length},message:qe("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return at(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||qe("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||qe("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var o=0,a=t.allOf;o0?a={schema:u,validationResult:f,matchingSchemas:l}:0===h&&(a.matchingSchemas.merge(l),a.validationResult.mergeEnumValues(f))}else a.matchingSchemas.merge(l),a.validationResult.propertiesMatches+=f.propertiesMatches,a.validationResult.propertiesValueMatches+=f.propertiesValueMatches;else a={schema:u,validationResult:f,matchingSchemas:l}}return o.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:qe("oneOfWarning","Matches multiple schemas when only one must validate.")}),a&&(n.merge(a.validationResult),n.propertiesMatches+=a.validationResult.propertiesMatches,n.propertiesValueMatches+=a.validationResult.propertiesValueMatches,r.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);var m=function(e){var t=new tt,o=r.newSub();at(i,Qe(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},g=Qe(t.if);if(g&&function(e,t,n){var o=Qe(e),a=new tt,s=r.newSub();at(i,o,a,s),r.merge(s),a.hasProblems()?n&&m(n):t&&m(t)}(g,Qe(t.then),Qe(t.else)),Array.isArray(t.enum)){for(var v=nt(i),y=!1,x=0,S=t.enum;x=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},o=e.getText(),a=e.offsetAt(t),s=n.getNodeFromOffset(a,!0);if(this.isInComment(e,s?s.offset:0,a))return Promise.resolve(i);if(s&&a===s.offset+s.length&&a>0){var c=o[a-1];("object"===s.type&&"}"===c||"array"===s.type&&"]"===c)&&(s=s.parent)}var u,l=this.getCurrentWord(e,a);if(!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type){var h=a-l.length;h>0&&'"'===o[h-1]&&h--,u=f.create(e.positionAt(h),t)}else u=f.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length));var p={},d={add:function(e){var t=e.label,n=p[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";p[r]||(t=r)}u&&void 0!==e.insertText&&(e.textEdit=w.replace(u,e.insertText)),e.label=t,p[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var c=[],f=!0,h="",m=void 0;if(s&&"string"===s.type){var g=s.parent;g&&"property"===g.type&&g.keyNode===s&&(f=!g.valueNode,m=g,h=o.substr(s.offset+1,s.length-2),g&&(s=g.parent))}if(s&&"object"===s.type){if(s.offset===a)return i;s.properties.forEach((function(e){m&&m===e||(p[e.keyNode.value]=re.create("__"))}));var v="";f&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(u.end))),t?r.getPropertyCompletions(t,n,s,f,v,d):r.getSchemaLessPropertyCompletions(n,s,h,d);var y=rt(s);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,y,l,f,""===v,d);n&&c.push(n)})),!t&&l.length>0&&'"'!==o.charAt(a-l.length-1)&&(d.add({kind:Q.Property,label:r.getLabelForValue(l),insertText:r.getInsertTextForProperty(l,void 0,!1,v),insertTextFormat:Y.Snippet,documentation:""}),d.setAsIncomplete())}var b={};return t?r.getValueCompletions(t,n,s,a,e,d,b):r.getSchemaLessValueCompletions(n,s,a,e,d),r.contributions.length>0&&r.getContributedValueCompletions(n,s,a,e,d,c),r.promiseConstructor.all(c).then((function(){if(0===d.getNumberOfProposals()){var t=a;!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type||(t=s.offset+s.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(b,n,d)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,o){var a=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var s={kind:Q.Property,label:e,insertText:a.getInsertTextForProperty(e,n,r,i),insertTextFormat:Y.Snippet,filterText:a.getFilterTextForValue(e),documentation:a.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(s.sortText=n.suggestSortText),s.insertText&&B(s.insertText,"$1"+i)&&(s.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(s)}}));var s=e.schema.propertyNames;if("object"==typeof s&&!s.deprecationMessage&&!s.doNotSuggest){var c=function(e,t){void 0===t&&(t=void 0);var n={kind:Q.Property,label:e,insertText:a.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Y.Snippet,filterText:a.getFilterTextForValue(e),documentation:t||a.fromMarkup(s.markdownDescription)||s.description||""};void 0!==s.suggestSortText&&(n.sortText=s.suggestSortText),n.insertText&&B(n.insertText,"$1"+i)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(n)};if(s.enum)for(var u=0;u(t.colonOffset||0)){var u=t.valueNode;if(u&&(n>u.offset+u.length||"object"===u.type||"array"===u.type))return;var f=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&c(e.valueNode),!0})),"$schema"===f&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(s,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var l=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===l&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(c),!0}))}else t.items.forEach(c)},e.prototype.getValueCompletions=function(e,t,n,r,i,o,a){var s=r,c=void 0,u=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(s=n.offset+n.length,u=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var f=n.valueNode;if(f&&r>f.offset+f.length)return;c=n.keyNode.value,n=n.parent}if(n&&(void 0!==c||"array"===n.type)){for(var l=this.evaluateSeparatorAfter(i,s),h=0,p=t.getMatchingSchemas(e.schema,n.offset,u);h(t.colonOffset||0)){var a=t.keyNode.value,s=t.valueNode;if((!s||n<=s.offset+s.length)&&t.parent){var c=rt(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,c,a,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var o=!1;if(U(e.default)){for(var a=e.type,s=e.default,c=r;c>0;c--)s=[s],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:Y.Snippet,detail:ut("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(a){for(var s=e.type,c=a,u=r;u>0;u--)c=[c],s="array";n.add({kind:i.getSuggestionKind(s),label:i.getLabelForValue(c),insertText:i.getInsertTextForValue(c,t),insertTextFormat:Y.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(a){var s,c,u=e.type,f=a.body,l=a.label;if(U(f)){e.type;for(var h=r;h>0;h--)f=[f];s=i.getInsertTextForSnippetValue(f,t),c=i.getFilterTextForSnippetValue(f),l=l||i.getLabelForSnippetValue(f)}else{if("string"!=typeof a.bodyText)return;var p="",d="",m="";for(h=r;h>0;h--)p=p+m+"[\n",d=d+"\n"+m+"]",m+="\t",u="array";s=p+m+a.bodyText.split("\n").join("\n"+m)+d+t,l=l||s,c=s.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(u),label:l,documentation:i.fromMarkup(a.markdownDescription)||a.description,insertText:s,insertTextFormat:Y.Snippet,filterText:c}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(U(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Y.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r0?t[0]:void 0}if(!e)return Q.Value;switch(e){case"string":default:return Q.Value;case"object":return Q.Module;case"property":return Q.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var o,a=i+": ",s=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var c=t.defaultSnippets[0].body;U(c)&&(o=this.getInsertTextForSnippetValue(c,""))}s+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),s+=t.enum.length),U(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),s++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),s+=t.examples.length),0===s){var u=Array.isArray(t.type)?t.type[0]:t.type;switch(u||(t.properties?u="object":t.items&&(u="array")),u){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||s>1)&&(o="$1"),a+o+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=_(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=_(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var a=i[o];if(n>a.offset+a.length)return r.setPosition(a.offset+a.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=a.offset)return o}return 0},e.prototype.isInComment=function(e,t,n){var r=_(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()i.offset+1&&r=0;l--){var h=this.contributions[l].getInfoContribution(e.uri,u);if(h)return h.then((function(e){return c(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&i){var t=n.getMatchingSchemas(e.schema,i.offset),r=void 0,o=void 0,a=void 0,s=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,o=o||e.schema.markdownDescription||ht(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(nt(i));e.schema.markdownEnumDescriptions?a=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(a=ht(e.schema.enumDescriptions[t])),a&&"string"!=typeof(s=e.schema.enum[t])&&(s=JSON.stringify(s))}return!0}));var u="";return r&&(u=ht(r)),o&&(u.length>0&&(u+="\n\n"),u+=o),a&&(u.length>0&&(u+="\n\n"),u+="`"+((-1!==(f=s).indexOf("`")?"`` "+f+" ``":f)+"`: ")+a),c([u])}var f;return null}))},e}();function ht(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}ct=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+l))return n.slice(s+l+1);if(0===l)return n.slice(s+l)}else a>u&&(47===e.charCodeAt(i+l)?f=l:0===l&&(f=0));break}var h=e.charCodeAt(i+l);if(h!==n.charCodeAt(s+l))break;47===h&&(f=l)}var p="";for(l=i+f+1;l<=o;++l)l!==o&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+f):(s+=f,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,u=!0,f=e.length-1,l=0;f>=r;--f)if(47!==(i=e.charCodeAt(f)))-1===c&&(u=!1,c=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=f+1;break}return-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,c)):(n.name=e.slice(s,a),n.base=e.slice(s,c)),n.ext=e.slice(a,c)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>d,Utils:()=>C}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;r=i.indexOf("Windows")>=0}var o,a,s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,u=/^\//,f=/^\/\//,l="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new g(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new g(n[2]||l,w(n[4]||l),w(n[5]||l),w(n[7]||l),w(n[9]||l),t):new g(l,l,l,l,l)},e.file=function(e){var t=l;if(r&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new g(t);return n._formatted=t.external,n._fsPath=t._sep===m?t.fsPath:null,n}return t},e}(),m=r?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(d),v=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var a=v[o];void 0!==a?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=a):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function b(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function S(e,t){var n=t?b:y,r="",i=e.scheme,o=e.authority,a=e.path,s=e.query,c=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=h,r+=h),o){var u=o.indexOf("@");if(-1!==u){var f=o.substr(0,u);o=o.substr(u+1),-1===(u=f.indexOf(":"))?r+=n(f,!1):(r+=n(f.substr(0,u),!1),r+=":",r+=n(f.substr(u+1),!1)),r+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,u),!1),r+=o.substr(u))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(l=a.charCodeAt(1))>=65&&l<=90&&(a="/"+String.fromCharCode(l+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var l;(l=a.charCodeAt(0))>=65&&l<=90&&(a=String.fromCharCode(l+32)+":"+a.substr(2))}r+=n(a,!0)}return s&&(r+="?",r+=n(s,!1)),c&&(r+="#",r+=t?c:y(c,!1)),r}function A(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+A(e.substr(3)):e}}var k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(k)?e.replace(k,(function(e){return A(e)})):e}var C,O=n(470),T=function(){for(var e=0,t=0,n=arguments.length;t{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:pt,Utils:dt}=ct;function mt(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=t&&"string"==typeof t.flags?t.flags:"",u=0,f=r.length;u1)||"/"!==l&&void 0!==l&&"{"!==l&&","!==l||"/"!==p&&void 0!==p&&","!==p&&"}"!==p?i+="([^/]*)":("/"===p?u++:"/"===l&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=n}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}var gt=$e(),vt=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:mt("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=kt(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),a=0;a1&&(n=r[1]),B(n,".")&&(n=n.substr(0,n.length-1)),new bt({},[gt("json.schema.nocontent","Unable to load schema from '{0}': {1}.",wt(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var a=kt(o.$schema);if("http://json-schema.org/draft-03/schema"===a)return this.promise.resolve(new xt({},[gt("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===a&&i.push(gt("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var s=this.contextService,c=function(e,t,n,r){var o=r?decodeURIComponent(r):void 0,a=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,o);if(a)for(var s in a)a.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(e[s]=a[s]);else i.push(gt("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},u=function(e,t,n,o,a){s&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,o)),t=kt(t);var u=r.getOrAddSchemaHandle(t);return u.getUnresolvedSchema().then((function(r){if(a[t]=!0,r.errors.length){var o=n?t+"#"+n:t;i.push(gt("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))}return c(e,r.schema,t,n),f(e,r.schema,t,u.dependencies)}))},f=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],a=[],s=[],f=function(e){for(var r=[];e.$ref;){var a=e.$ref,f=a.split("#",2);if(delete e.$ref,f[0].length>0)return void s.push(u(e,f[0],f[1],n,i));-1===r.indexOf(a)&&(c(e,t,n,f[1]),r.push(a))}!function(){for(var e=[],t=0;t=0||(a.push(l),f(l))}return r.promise.all(s)};return f(o,o,t,n).then((function(e){return new xt(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var i=nt(r);if(i&&W(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=kt(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var a=Object.create(null),s=[],c=function(e){try{return pt.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),u=0,f=this.filePatternAssociations;u0?this.createCombinedSchema(e,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:m},m},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+At++;return this.resolveSchemaContent(new bt(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),At=0;function kt(e){try{return pt.parse(e).toString()}catch(t){return e}}function wt(e){try{var t=pt.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var Ct=$e(),Ot=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:b.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],a={},s=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;a[t]||(a[t]=!0,o.push(e))},c=function(r){var a=(null==n?void 0:n.trailingCommas)?jt(n.trailingCommas):b.Error,c=(null==n?void 0:n.comments)?jt(n.comments):i.commentSeverity,u=(null==n?void 0:n.schemaValidation)?jt(n.schemaValidation):b.Warning,l=(null==n?void 0:n.schemaRequest)?jt(n.schemaRequest):b.Warning;if(r){if(r.errors.length&&t.root&&l){var h=t.root,p="object"===h.type?h.properties[0]:void 0;if(p&&"$schema"===p.keyNode.value){var d=p.valueNode||p,m=f.create(e.positionAt(d.offset),e.positionAt(d.offset+d.length));s(A.create(m,r.errors[0],l,Ee.SchemaResolveError))}else m=f.create(e.positionAt(h.offset),e.positionAt(h.offset+1)),s(A.create(m,r.errors[0],l,Ee.SchemaResolveError))}else if(u){var g=t.validate(e,r.schema,u);g&&g.forEach(s)}Et(r.schema)&&(c=void 0),It(r.schema)&&(a=void 0)}for(var v=0,y=t.syntaxErrors;v=97&&e<=102?e-97+10:0)}function Mt(e){if("#"===e[0])switch(e.length){case 4:return{red:17*Pt(e.charCodeAt(1))/255,green:17*Pt(e.charCodeAt(2))/255,blue:17*Pt(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Pt(e.charCodeAt(1))/255,green:17*Pt(e.charCodeAt(2))/255,blue:17*Pt(e.charCodeAt(3))/255,alpha:17*Pt(e.charCodeAt(4))/255};case 7:return{red:(16*Pt(e.charCodeAt(1))+Pt(e.charCodeAt(2)))/255,green:(16*Pt(e.charCodeAt(3))+Pt(e.charCodeAt(4)))/255,blue:(16*Pt(e.charCodeAt(5))+Pt(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Pt(e.charCodeAt(1))+Pt(e.charCodeAt(2)))/255,green:(16*Pt(e.charCodeAt(3))+Pt(e.charCodeAt(4)))/255,blue:(16*Pt(e.charCodeAt(5))+Pt(e.charCodeAt(6)))/255,alpha:(16*Pt(e.charCodeAt(7))+Pt(e.charCodeAt(8)))/255}}}var Nt=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=n.resultLimit||Number.MAX_VALUE,a=e.uri;if(("vscode://defaultsettings/keybindings.json"===a||B(a.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var s=[],c=0,u=i.items;c0){o--;var a=l.create(e.uri,_t(e,t)),s=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:a,containerName:n}),g.push({node:i,containerName:s})}else y=!0}))};v0){o--;var a=_t(e,t),s=a,c={name:String(i),kind:r.getSymbolKind(t.type),range:a,selectionRange:s,children:[]};n.push(c),v.push({result:c.children,node:t})}else b=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var a=_t(e,t),s=_t(e,t.keyNode),c=[],u={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:a,selectionRange:s,children:c,detail:r.getDetail(i)};n.push(u),v.push({result:c,node:i})}else b=!0}))};y0&&i[i.length-1].kind===l){f=i.pop();var h=e.positionAt(a.getTokenOffset()).line;f&&h>f.startLine+1&&o!==f.startLine&&(f.endLine=h-1,c(f),o=f.startLine)}break;case 13:var p=e.positionAt(a.getTokenOffset()).line,d=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;1===a.getTokenError()&&p+1=0&&i[v].kind!==g.Region;)v--;v>=0&&(f=i[v],i.length=v,h>f.startLine&&o!==f.startLine&&(f.endLine=h,c(f),o=f.startLine))}}s=a.scan()}var y=t&&t.rangeLimit;if("number"!=typeof y||n.length<=y)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var b=[],x=0,S=r;xy){k=v;break}A+=w}}var C=[];for(v=0;v=c&&i<=u&&s.push(r(c,u)),s.push(r(a.offset,a.offset+a.length));break;case"number":case"boolean":case"null":case"property":s.push(r(a.offset,a.offset+a.length))}if("property"===a.type||a.parent&&"array"===a.parent.type){var l=o(a.offset+a.length,5);-1!==l&&s.push(r(a.offset,l))}a=a.parent}for(var h=void 0,p=s.length-1;p>=0;p--)h=Se.create(s[p],h);return h||(h=Se.create(f.create(t,t))),h}))}function Jt(e,t){var n=[];return t.visit((function(r){var i;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(i=r.valueNode)||void 0===i?void 0:i.type)){var o=r.valueNode.value,a=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(Ht)}(t);return n?zt(n,e.root):null}(t,o);if(a){var s=e.positionAt(a.offset);n.push({target:e.uri+"#"+(s.line+1)+","+(s.character+1),range:Kt(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function Kt(e,t){return f.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function zt(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?zt(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),o=t.items[i];return o?zt(e,o):null}return null}function Ht(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Gt(e){var t=e.promiseConstructor||Promise,n=new St(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Ft);var r=new ft(n,e.contributions,t,e.clientCapabilities),s=new lt(n,e.contributions,t),c=new Nt(n),u=new Ot(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),u.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:u.doValidation.bind(u),parseJSONDocument:function(e){return function(e,t){var n=[],r=-1,i=e.getText(),o=_(i,!1),a=t&&t.collectComments?[]:void 0;function s(){for(;;){var t=o.scan();switch(l(),t){case 12:case 13:Array.isArray(a)&&a.push(f.create(e.positionAt(o.getTokenOffset()),e.positionAt(o.getTokenOffset()+o.getTokenLength())));break;case 15:case 14:break;default:return t}}}function c(t,i,o,a,s){if(void 0===s&&(s=b.Error),0===n.length||o!==r){var c=f.create(e.positionAt(o),e.positionAt(a));n.push(A.create(c,t,s,i,e.languageId)),r=o}}function u(e,t,n,r,a){void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===a&&(a=[]);var u=o.getTokenOffset(),f=o.getTokenOffset()+o.getTokenLength();if(u===f&&u>0){for(u--;u>0&&/\s/.test(i.charAt(u));)u--;f=u+1}if(c(e,t,u,f),n&&h(n,!1),r.length+a.length>0)for(var l=o.getToken();17!==l;){if(-1!==r.indexOf(l)){s();break}if(-1!==a.indexOf(l))break;l=s()}return n}function l(){switch(o.getTokenError()){case 4:return u(qe("InvalidUnicode","Invalid unicode sequence in string."),Ee.InvalidUnicode),!0;case 5:return u(qe("InvalidEscapeCharacter","Invalid escape character in string."),Ee.InvalidEscapeCharacter),!0;case 3:return u(qe("UnexpectedEndOfNumber","Unexpected end of number."),Ee.UnexpectedEndOfNumber),!0;case 1:return u(qe("UnexpectedEndOfComment","Unexpected end of comment."),Ee.UnexpectedEndOfComment),!0;case 2:return u(qe("UnexpectedEndOfString","Unexpected end of string."),Ee.UnexpectedEndOfString),!0;case 6:return u(qe("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),Ee.InvalidCharacter),!0}return!1}function h(e,t){return e.length=o.getTokenOffset()+o.getTokenLength()-e.offset,t&&s(),e}var p=new Ge(void 0,0,0);function d(t,n){var r=new Xe(t,o.getTokenOffset(),p),i=m(r);if(!i){if(16!==o.getToken())return;u(qe("DoubleQuotesExpected","Property keys must be doublequoted"),Ee.Undefined);var a=new Ge(r,o.getTokenOffset(),o.getTokenLength());a.value=o.getTokenValue(),i=a,s()}r.keyNode=i;var f=n[i.value];if(f?(c(qe("DuplicateKeyWarning","Duplicate object key"),Ee.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,b.Warning),"object"==typeof f&&c(qe("DuplicateKeyWarning","Duplicate object key"),Ee.DuplicateKey,f.keyNode.offset,f.keyNode.offset+f.keyNode.length,b.Warning),n[i.value]=!0):n[i.value]=r,6===o.getToken())r.colonOffset=o.getTokenOffset(),s();else if(u(qe("ColonExpected","Colon expected"),Ee.ColonExpected),10===o.getToken()&&e.positionAt(i.offset+i.length).line0&&!a(e,c-1);)c--;for(var l=f;lu)||e.substring(r,i)===n||x.push({offset:r,length:i-r,content:n})}var A=b();if(17!==A){var k=g.getTokenOffset()+c;S(o(h,r),c,k)}for(;17!==A;){for(var w=g.getTokenOffset()+g.getTokenLength()+c,C=b(),O="",T=!1;!d&&(12===C||13===C);)S(" ",w,g.getTokenOffset()+c),w=g.getTokenOffset()+g.getTokenLength()+c,O=(T=12===C)?y():"",C=b();if(2===C)1!==A&&(m--,O=y());else if(4===C)3!==A&&(m--,O=y());else{switch(A){case 3:case 1:m++,O=y();break;case 5:case 12:O=y();break;case 13:d?O=y():T||(O=" ");break;case 6:T||(O=" ");break;case 10:if(6===C){T||(O="");break}case 7:case 8:case 9:case 11:case 2:case 4:12===C||13===C?T||(O=" "):5!==C&&17!==C&&(v=!0);break;case 16:v=!0}!d||12!==C&&13!==C||(O=y())}17===C&&(O=n.insertFinalNewline?p:""),S(O,w,g.getTokenOffset()+c),A=C}return x}(e,t,n)}(e.getText(),r,c).map((function(t){return w.replace(f.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)}))}}}var Xt,Zt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Qt=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&0===e[e.length-1].length&&t.push("");var o=t.join("/");return 0===e[0].length&&(o="/"+o),o}self.onmessage=function(){r.j((function(e,t){return new Yt(e,t)}))}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.m=n,i.x=()=>{var e=i.O(void 0,[4200,9596],(()=>i(3734)));return i.O(e)},e=[],i.O=(t,n,r,o)=>{if(!n){var a=1/0;for(f=0;f=o)&&Object.keys(i.O).every((e=>i.O[e](n[c])))?n.splice(c--,1):(s=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[n,r,o]},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+".entry.js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.p="/public/yaml/",(()=>{var e={3734:1,8975:1};i.f.i=(t,n)=>{e[t]||importScripts(i.p+i.u(t))};var t=self.webpackChunkdemo=self.webpackChunkdemo||[],n=t.push.bind(t);t.push=t=>{var[r,o,a]=t;for(var s in o)i.o(o,s)&&(i.m[s]=o[s]);for(a&&a(i);r.length;)e[r.pop()]=1;n(t)}})(),t=i.x,i.x=()=>Promise.all([i.e(4200),i.e(9596)]).then(t),i.x()})(); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/3855.entry.js b/src/Web/assets/public/yaml/3855.entry.js index 6516ee4..25a72da 100644 --- a/src/Web/assets/public/yaml/3855.entry.js +++ b/src/Web/assets/public/yaml/3855.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3855],{3855:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>o,language:()=>n});var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]); -//# sourceMappingURL=3855.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[3855],{3855:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>o,language:()=>n});var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4035.entry.js b/src/Web/assets/public/yaml/4035.entry.js index 5a2f3e3..21ef177 100644 --- a/src/Web/assets/public/yaml/4035.entry.js +++ b/src/Web/assets/public/yaml/4035.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4035],{4035:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},r={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},r={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{r.r(o),r.d(o,{conf:()=>t,language:()=>a});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},a={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}}}]); -//# sourceMappingURL=4073.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4073],{4073:(e,o,r)=>{r.r(o),r.d(o,{conf:()=>t,language:()=>a});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},a={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4200.entry.js b/src/Web/assets/public/yaml/4200.entry.js index 6731b39..bc79a21 100644 --- a/src/Web/assets/public/yaml/4200.entry.js +++ b/src/Web/assets/public/yaml/4200.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4200],{7464:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(6709);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},230:(e,t,n)=>{n.d(t,{Hs:()=>h,a$:()=>o});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(2916);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,r,o,l,s),h=o[0],d=l[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,d,s);let a=[];return a=s[0]?[new i(h+1,t-(h+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,h,d,c,m,f,g,_,p,C,L){let S=null,N=null,b=new u,E=t,y=n,A=f[0]-p[0]-r,w=-1073741824,v=this.m_forwardHistory.length-1;do{const t=A+e;t===E||t=0&&(e=(h=this.m_forwardHistory[v])[0],E=1,y=h.length-1)}while(--v>=-1);if(S=b.getReverseChanges(),L[0]){let e=f[0]+1,t=p[0]+1;if(null!==S&&S.length>0){const n=S[S.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}N=[new i(e,m-e+1,t,_-t+1)]}else{b=new u,E=o,y=a,A=f[0]-p[0]-l,w=1073741824,v=C?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+s;e===E||e=d[e+1]?(g=(c=d[e+1]-1)-A-l,c>w&&b.MarkNextChange(),w=c+1,b.AddOriginalElement(c+1,g+1),A=e+1-s):(g=(c=d[e-1])-A-l,c>w&&b.MarkNextChange(),w=c,b.AddModifiedElement(c+1,g+1),A=e-1-s),v>=0&&(s=(d=this.m_reverseHistory[v])[0],E=1,y=d.length-1)}while(--v>=-1);N=b.getChanges()}return this.ConcatenateChanges(S,N)}ComputeRecursionPoint(e,t,n,r,s,o,a){let u=0,h=0,d=0,c=0,m=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(r-n),_=g+1,p=new Int32Array(_),C=new Int32Array(_),L=r-n,S=t-e,N=e-n,b=t-r,E=(S-L)%2==0;p[L]=e,C[S]=t,a[0]=!1;for(let y=1;y<=g/2+1;y++){let g=0,A=0;d=this.ClipDiagonalBound(L-y,y,L,_),c=this.ClipDiagonalBound(L+y,y,L,_);for(let e=d;e<=c;e+=2){u=e===d||eg+A&&(g=u,A=h),!E&&Math.abs(e-S)<=y-1&&u>=C[e])return s[0]=u,o[0]=h,n<=C[e]&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):null}const w=(g-e+(A-n)-y)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,w))return a[0]=!0,s[0]=g,o[0]=A,w>0&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);m=this.ClipDiagonalBound(S-y,y,S,_),f=this.ClipDiagonalBound(S+y,y,S,_);for(let i=m;i<=f;i+=2){u=i===m||i=C[i+1]?C[i+1]-1:C[i-1],h=u-(i-S)-b;const l=u;for(;u>e&&h>n&&this.ElementsAreEqual(u,h);)u--,h--;if(C[i]=u,E&&Math.abs(i-L)<=y&&u<=p[i])return s[0]=u,o[0]=h,l>=p[i]&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):null}if(y<=1447){let e=new Int32Array(c-d+2);e[0]=L-d+1,l.Copy2(p,d,e,1,c-d+1),this.m_forwardHistory.push(e),e=new Int32Array(f-m+2),e[0]=S-m+1,l.Copy2(C,m,e,1,f-m+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(tl&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,l=t,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e{n.d(t,{dL:()=>r,ri:()=>s});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){var t;(t=e)instanceof Error&&t.name===o&&t.message===o||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const o="Canceled";Error},6709:(e,t,n)=>{n.d(t,{ju:()=>i,Q5:()=>u});var i,r=n(996),s=n(8431),o=n(7979),a=n(9344);!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function n(e,t){return a(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)))}function i(e,t){return a(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)))}function r(e,t){return a(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)))}function o(e,t,i){let r=i;return n(e,(e=>(r=t(r,e),r)))}function a(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let s,o,a,l=0;const h=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=e((e=>{l++,o=t(o,e),i&&!a&&(h.fire(o),o=void 0),clearTimeout(a),a=setTimeout((()=>{const e=o;o=void 0,a=void 0,(!i||l>1)&&h.fire(e),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return h.event}function h(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,(e=>{const r=i||!t(e,n);return i=!1,n=e,r}))}e.None=()=>s.JT.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(0,s.F8)(...e.map((e=>e((e=>t.call(n,e)),null,i))))},e.reduce=o,e.debounce=l,e.latch=h,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e((e=>{i?i.push(e):o.fire(e)}));const s=()=>{i&&i.forEach((e=>o.fire(e))),i=null},o=new u({onFirstListenerAdd(){r||(r=e((e=>o.fire(e))))},onFirstListenerDidAdd(){i&&(t?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return o.event};class d{constructor(e){this.event=e}map(e){return new d(n(this.event,e))}forEach(e){return new d(i(this.event,e))}filter(e){return new d(r(this.event,e))}reduce(e,t){return new d(o(this.event,e,t))}latch(){return new d(h(this.event))}debounce(e,t=100,n=!1,i){return new d(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new a.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class u{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new o.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),u=(0,s.OF)((()=>{l&&l(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}));return n instanceof s.SL?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new o.S);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){(0,r.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}},9717:(e,t,n)=>{function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:()=>i})},2916:(e,t,n)=>{n.d(t,{Cv:()=>s});var i=n(7416);function r(e,t){return(t<<5)-t+e|0}function s(e,t){t=r(149417,t);for(let n=0,i=e.length;n>>i)>>>0}function a(e,t=0,n=e.byteLength,i=0){for(let r=0;re.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}class u{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.ZG(r)){if(!(s+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),l(this._h0)+l(this._h1)+l(this._h2)+l(this._h3)+l(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,a(this._buff,this._buffLen),this._buffLen>56&&(this._step(),a(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=u._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,o(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,s=this._h0,a=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=a&l|~a&h,i=1518500249):t<40?(n=a^l^h,i=1859775393):t<60?(n=a&l|a&h|l&h,i=2400959708):(n=a^l^h,i=3395469782),r=o(s,5)+n+d+i+e.getUint32(4*t,!1)&4294967295,d=h,h=l,l=o(a,30),a=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}u._bigBlock32=new DataView(new ArrayBuffer(320))},7865:(e,t,n)=>{var i;n.d(t,{$:()=>i}),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);tr}]},e.equals=function(e,t,n=((e,t)=>e===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(i||(i={}))},4880:(e,t,n)=>{n.d(t,{gx:()=>g});class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const r=new i,s=new i,o=new i,a=new Array(230),l={},u=[],h=Object.create(null),d=Object.create(null),c=[],m=[];for(let e=0;e<=193;e++)c[e]=-1;for(let e=0;e<=126;e++)m[e]=-1;var f;function g(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],i=[];for(const e of t){const[t,f,g,_,p,C,L,S,N,b]=e;if(i[g]||(i[g]=!0,u[g]=_,h[_]=g,d[_.toLowerCase()]=g,f&&(c[g]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=g))),!n[p]){if(n[p]=!0,!C)throw new Error(`String representation missing for key code ${p} around scan code ${_}`);r.define(p,C),s.define(p,N||C),o.define(p,b||N||C)}L&&(a[L]=p),S&&(l[S]=p)}m[3]=46}(),function(e){e.toString=function(e){return r.keyCodeToStr(e)},e.fromString=function(e){return r.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r.keyCodeToStr(e)}}(f||(f={}))},8431:(e,t,n)=>{n.d(t,{F8:()=>a,OF:()=>l,SL:()=>u,JT:()=>h});var i=n(9717),r=n(7865);class s extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function o(e){if(r.$.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new s(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function a(...e){const t=l((()=>o(e)));return t}function l(e){const t={dispose:(0,i.I)((()=>{e()}))};return t}class u{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{o(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}u.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new u,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}h.None=Object.freeze({dispose(){}})},7979:(e,t,n)=>{n.d(t,{S:()=>r});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},7263:(e,t,n)=>{n.d(t,{KR:()=>S,Ku:()=>L});var i=n(1138);let r;if(void 0!==i.li.vscode&&void 0!==i.li.vscode.process){const e=i.li.vscode.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd(),nextTick:e=>(0,i.xS)(e)}}else r="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd(),nextTick:e=>process.nextTick(e)}:{get platform(){return i.ED?"win32":i.dz?"darwin":"linux"},get arch(){},nextTick:e=>(0,i.xS)(e),get env(){return{}},cwd:()=>"/"};const s=r.cwd,o=r.env,a=r.platform,l=46,u=47,h=92,d=58;class c extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function m(e,t){if("string"!=typeof e)throw new c(t,"string",e)}function f(e){return e===u||e===h}function g(e){return e===u}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,n,i){let r="",s=0,o=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else h===l&&-1!==a?++a:a=-1}return r}function C(e,t){if(null===t||"object"!=typeof t)throw new c("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const L={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let a;if(r>=0){if(a=e[r],m(a,"path"),0===a.length)continue}else 0===t.length?a=s():(a=o[`=${t}`]||s(),(void 0===a||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===h)&&(a=`${t}\\`));const l=a.length;let u=0,c="",g=!1;const p=a.charCodeAt(0);if(1===l)f(p)&&(u=1,g=!0);else if(f(p))if(g=!0,f(a.charCodeAt(1))){let e=2,t=e;for(;e2&&f(a.charCodeAt(2))&&(g=!0,u=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(n=`${a.slice(u)}\\${n}`,i=g,g&&t.length>0)break}return n=p(n,!i,"\\",f),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){m(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return g(s)?"\\":e;if(f(s))if(r=!0,f(e.charCodeAt(1))){let r=2,s=r;for(;r2&&f(e.charCodeAt(2))&&(r=!0,i=3));let o=i0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){m(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&_(n)&&e.charCodeAt(1)===d&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r=2&&(t=`\\${t.slice(r)}`)}return L.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";const n=L.resolve(e),i=L.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;rr&&e.charCodeAt(s-1)===h;)s--;const o=s-r;let a=0;for(;aa&&t.charCodeAt(l-1)===h;)l--;const u=l-a,d=od){if(t.charCodeAt(a+f)===h)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>d&&(e.charCodeAt(r+f)===h?c=f:2===f&&(c=3)),-1===c&&(c=0)}let g="";for(f=r+c+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==h||(g+=0===g.length?"..":"\\..");return a+=c,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===h&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=L.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){m(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,s=r;for(;r2&&f(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let n=t-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&m(t,"ext"),m(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){m(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:C.bind(null,"\\"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,u=!0,h=e.length-1,c=0;for(;h>=i;--h)if(r=e.charCodeAt(h),f(r)){if(!u){o=h+1;break}}else-1===a&&(u=!1,a=h+1),r===l?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);return-1!==a&&(-1===s||0===c||1===c&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},S={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:s();m(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===u)}return t=p(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===u,n=e.charCodeAt(e.length-1)===u;return 0===(e=p(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(m(e,"path"),e.length>0&&e.charCodeAt(0)===u),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":S.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";if((e=S.resolve(e))===(t=S.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=is){if(t.charCodeAt(1+a)===u)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===u?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==u||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===u;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===u){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&m(t,"ext"),m(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===u){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===u){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){m(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==u)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:C.bind(null,"/"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===u;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,h=e.length-1,d=0;for(;h>=i;--h){const t=e.charCodeAt(h);if(t!==u)-1===o&&(a=!1,o=h+1),t===l?-1===r?r=h:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=h+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};S.win32=L.win32=L,S.posix=L.posix=S,"win32"===a?L.normalize:S.normalize,"win32"===a?L.resolve:S.resolve,"win32"===a?L.relative:S.relative,"win32"===a?L.dirname:S.dirname,"win32"===a?L.basename:S.basename,"win32"===a?L.extname:S.extname,"win32"===a?L.sep:S.sep},1138:(e,t,n)=>{var i;n.d(t,{li:()=>_,ED:()=>S,dz:()=>N,xS:()=>b});const r="en";let s,o,a,l=!1,u=!1,h=!1,d=!1,c=!1,m=!1,f=!1,g=null;const _="object"==typeof self?self:"object"==typeof n.g?n.g:{};let p;void 0!==_.vscode&&void 0!==_.vscode.process?p=_.vscode.process:"undefined"!=typeof process&&(p=process);const C="string"==typeof(null===(i=null==p?void 0:p.versions)||void 0===i?void 0:i.electron)&&"renderer"===p.type;if("object"!=typeof navigator||C)if("object"==typeof p){l="win32"===p.platform,u="darwin"===p.platform,h="linux"===p.platform,d=h&&!!p.env.SNAP&&!!p.env.SNAP_REVISION,s=r,g=r;const e=p.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];s=t.locale,g=n||r,o=t._translationsConfigFile}catch(e){}c=!0}else console.error("Unable to resolve platform.");else a=navigator.userAgent,l=a.indexOf("Windows")>=0,u=a.indexOf("Macintosh")>=0,(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=a.indexOf("Linux")>=0,!0,s=navigator.language,g=s;let L=0;u?L=1:l?L=3:h&&(L=2);const S=l,N=u,b=function(){if(_.setImmediate)return _.setImmediate.bind(_);if("function"==typeof _.postMessage&&!_.importScripts){let e=[];_.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),_.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==p?void 0:p.nextTick))return p.nextTick.bind(p);const e=Promise.resolve();return t=>e.then(t)}()},9344:(e,t,n)=>{n.d(t,{G:()=>s});var i=n(1138);const r=i.li.performance&&"function"==typeof i.li.performance.now;class s{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new s(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},7416:(e,t,n)=>{function i(e){return e.split(/\r\n|\r|\n/)}function r(e){for(let t=0,n=e.length;t=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function o(e){return e>=65&&e<=90}function a(e){return 55296<=e&&e<=56319}function l(e){return 56320<=e&&e<=57343}function u(e,t){return t-56320+(e-55296<<10)+65536}n.d(t,{uq:()=>i,LC:()=>r,ow:()=>s,df:()=>o,ZG:()=>a,YK:()=>l,rL:()=>u}),String.fromCharCode(65279);class h{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return h._INSTANCE||(h._INSTANCE=new h),h._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}h._INSTANCE=null},4818:(e,t,n)=>{function i(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function r(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}n.d(t,{$E:()=>i,IU:()=>r})},9886:(e,t,n)=>{function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{K:()=>i,A:()=>r})},8919:(e,t,n)=>{n.d(t,{o:()=>c});var i=n(7263),r=n(1138);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=i||u,this.fragment=r||u,l(this,s))}static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return C(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===i?i=this.path:null===i&&(i=u),void 0===r?r=this.query:null===r&&(r=u),void 0===s?s=this.fragment:null===s&&(s=u),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new f(t,n,i,r,s)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||u,b(n[4]||u),b(n[5]||u),b(n[7]||u),b(n[9]||u),t):new f(u,u,u,u,u)}static file(e){let t=u;if(r.ED&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new f("file",t,e,u,u)}static from(e){const t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.ED&&"file"===e.scheme?c.file(i.Ku.join(C(e,!0),...t)).path:i.KR.join(e.path,...t),e.with({path:n})}toString(e=!1){return L(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===m?e.fsPath:null,t}}return e}}const m=r.ED?1:void 0;class f extends c{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath}toString(e=!1){return e?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(e,t){let n,i=-1;for(let r=0;r=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=g[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function p(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.ED&&(n=n.replace(/\//g,"\\")),n}function L(e,t){const n=t?p:_;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?i+=n(s,!1):(i+=n(s.substr(0,e),!1),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:_(l,!1)),i}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}const N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(N)?e.replace(N,(e=>S(e))):e}},7223:(e,t,n)=>{n.d(t,{_i:()=>_});var i=n(996),r=n(6709),s=(n(8431),n(1138)),o=n(4818),a=n(7416);class l{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class u{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class h{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class d{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class c{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class m{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new l(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new r.Q5({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new h(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new c(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new u(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.ri)(e.detail)),this._send(new u(this._workerId,t,void 0,(0,i.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new d(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let t=[];if(0===e.type)for(let n=0;n{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(g(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(f(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=function(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)};let s={};for(const t of e)g(t)?s[t]=r(t):f(t)?s[t]=n(t,void 0):s[t]=i(t);return s}(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(o.$E(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,s.li.require.config(t)),new Promise(((e,t)=>{(0,s.li.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(o.$E(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}},5224:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(9886);class r{constructor(e){let t=(0,i.K)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=(0,i.K)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}},8964:(e,t,n)=>{n.d(t,{L:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{n.d(t,{e:()=>r});var i=n(8964);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,h=t.endColumn;return nu?(s=u,o=h):s===u&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.L(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}},7841:(e,t,n)=>{n.d(t,{Y:()=>s});var i=n(8964),r=n(38);class s extends r.e{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.L(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{n.d(t,{WU:()=>i});class i{constructor(e,t,n){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}},4237:(e,t,n)=>{n.d(t,{g:()=>h});var i=n(230),r=n(7416);function s(e,t,n,r){return new i.Hs(e,t,n).ComputeDiff(r)}class o{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),u=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let h=s(o,u,r,!0).changes;a&&(h=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i1&&s>1&&e.charCodeAt(n-2)===t.charCodeAt(s-2);)n--,s--;(n>1||s>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,s)}{let n=c(e,1),s=c(t,1);const a=e.length+1,l=t.length+1;for(;n!0;const t=Date.now();return()=>Date.now()-t{n.d(t,{v:()=>o});var i=n(7416),r=n(8964),s=n(151);class o{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new r.L(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i{n.d(t,{eq:()=>r,t2:()=>o});const i=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function r(e){let t=i;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const s={maxLen:1e3,windowSize:15,timeBudget:150};function o(e,t,n,i,r=s){if(n.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:i+=s,o(e,t,n=n.substring(s,e+r.maxLen/2),i,r)}const l=Date.now(),u=e-1-i;let h=-1,d=null;for(let e=1;!(Date.now()-l>=r.timeBudget);e++){const i=u-r.windowSize*e;t.lastIndex=Math.max(0,i);const s=a(t,n,u,h);if(!s&&d)break;if(d=s,i<=0)break;h=i}if(d){let e={word:d[0],startColumn:i+1+d.index,endColumn:i+1+d.index+d[0].length};return t.lastIndex=0,e}return null}function a(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}},2357:(e,t,n)=>{n.d(t,{E:()=>u});var i=n(5224);class r{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;rt&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;let i=new r(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let o=null,a=null;class l{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===o&&(o=new s([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),o}()){const n=function(){if(null===a){a=new i.N(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t{n.d(t,{J:()=>i});class i{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}i.INSTANCE=new i},3488:(e,t,n)=>{n.d(t,{ky:()=>C});var i=n(230),r=n(1138),s=n(8919),o=n(8964),a=n(38),l=n(4237),u=n(4039),h=n(1050),d=n(2357),c=n(6002),m=n(8733),f=n(4818),g=n(9344),_=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};class p extends u.v{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=(0,h.t2)(e.column,(0,h.eq)(t),this._lines[e.lineNumber-1],0);return n?new a.e(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(sthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class C{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new p(s.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return _(this,void 0,void 0,(function*(){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;const o=r.getLinesContent(),a=s.getLinesContent(),u=new l.g(o,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),h=!(u.changes.length>0)&&this._modelsAreIdentical(r,s);return{quitEarly:u.quitEarly,identical:h,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++)if(e.getLineContent(i)!==t.getLineContent(i))return!1;return!0}computeMoreMinimalEdits(e,t){return _(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?a.e.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:o,eol:l}of t){if("number"==typeof l&&(s=l),a.e.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>C._diffLimit){r.push({range:e,text:o});continue}const u=(0,i.a$)(t,o,!1),h=n.offsetAt(a.e.lift(e).getStartPosition());for(const e of u){const t=n.positionAt(h+e.originalStart),i=n.positionAt(h+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return _(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?(0,d.E)(t):null}))}textualSuggest(e,t,n,i){return _(this,void 0,void 0,(function*(){const r=new g.G(!0),s=new RegExp(n,i),o=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>C._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}))}computeWordRanges(e,t,n,i){return _(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(f.$E(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}C._diffLimit=1e5,C._suggestionsLimit=1e4,"function"==typeof importScripts&&(r.li.monaco=(0,m.O)())},8733:(e,t,n)=>{n.d(t,{O:()=>m});var i=n(7464),r=n(6709),s=n(4880),o=n(8919),a=n(8964),l=n(38),u=n(7841),h=n(475),d=n(8420);class c{static chord(e,t){return(0,s.gx)(e,t)}}function m(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.A,Emitter:r.Q5,KeyCode:d.VD,KeyMod:c,Position:a.L,Range:l.e,Selection:u.Y,SelectionDirection:d.a$,MarkerSeverity:d.ZL,MarkerTag:d.eB,Uri:o.o,Token:h.WU}}c.CtrlCmd=2048,c.Shift=1024,c.Alt=512,c.WinCtrl=256},8420:(e,t,n)=>{var i,r,s,o,a,l,u,h,d,c,m,f,g,_,p,C,L,S,N,b,E,y,A,w,v,K,M,O,T,R,V,I,P,x,k;n.d(t,{VD:()=>L,ZL:()=>S,eB:()=>N,a$:()=>O}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(s||(s={})),function(e){e[e.Deprecated=1]="Deprecated"}(o||(o={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(u||(u={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(h||(h={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(d||(d={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(c||(c={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=42]="fontFamily",e[e.fontInfo=43]="fontInfo",e[e.fontLigatures=44]="fontLigatures",e[e.fontSize=45]="fontSize",e[e.fontWeight=46]="fontWeight",e[e.formatOnPaste=47]="formatOnPaste",e[e.formatOnType=48]="formatOnType",e[e.glyphMargin=49]="glyphMargin",e[e.gotoLocation=50]="gotoLocation",e[e.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",e[e.hover=52]="hover",e[e.inDiffEditor=53]="inDiffEditor",e[e.inlineSuggest=54]="inlineSuggest",e[e.letterSpacing=55]="letterSpacing",e[e.lightbulb=56]="lightbulb",e[e.lineDecorationsWidth=57]="lineDecorationsWidth",e[e.lineHeight=58]="lineHeight",e[e.lineNumbers=59]="lineNumbers",e[e.lineNumbersMinChars=60]="lineNumbersMinChars",e[e.linkedEditing=61]="linkedEditing",e[e.links=62]="links",e[e.matchBrackets=63]="matchBrackets",e[e.minimap=64]="minimap",e[e.mouseStyle=65]="mouseStyle",e[e.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=67]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",e[e.multiCursorModifier=69]="multiCursorModifier",e[e.multiCursorPaste=70]="multiCursorPaste",e[e.occurrencesHighlight=71]="occurrencesHighlight",e[e.overviewRulerBorder=72]="overviewRulerBorder",e[e.overviewRulerLanes=73]="overviewRulerLanes",e[e.padding=74]="padding",e[e.parameterHints=75]="parameterHints",e[e.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",e[e.quickSuggestions=78]="quickSuggestions",e[e.quickSuggestionsDelay=79]="quickSuggestionsDelay",e[e.readOnly=80]="readOnly",e[e.renameOnType=81]="renameOnType",e[e.renderControlCharacters=82]="renderControlCharacters",e[e.renderFinalNewline=83]="renderFinalNewline",e[e.renderLineHighlight=84]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=86]="renderValidationDecorations",e[e.renderWhitespace=87]="renderWhitespace",e[e.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",e[e.roundedSelection=89]="roundedSelection",e[e.rulers=90]="rulers",e[e.scrollbar=91]="scrollbar",e[e.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=93]="scrollBeyondLastLine",e[e.scrollPredominantAxis=94]="scrollPredominantAxis",e[e.selectionClipboard=95]="selectionClipboard",e[e.selectionHighlight=96]="selectionHighlight",e[e.selectOnLineNumbers=97]="selectOnLineNumbers",e[e.showFoldingControls=98]="showFoldingControls",e[e.showUnused=99]="showUnused",e[e.snippetSuggestions=100]="snippetSuggestions",e[e.smartSelect=101]="smartSelect",e[e.smoothScrolling=102]="smoothScrolling",e[e.stickyTabStops=103]="stickyTabStops",e[e.stopRenderingLineAfter=104]="stopRenderingLineAfter",e[e.suggest=105]="suggest",e[e.suggestFontSize=106]="suggestFontSize",e[e.suggestLineHeight=107]="suggestLineHeight",e[e.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",e[e.suggestSelection=109]="suggestSelection",e[e.tabCompletion=110]="tabCompletion",e[e.tabIndex=111]="tabIndex",e[e.unusualLineTerminators=112]="unusualLineTerminators",e[e.useShadowDOM=113]="useShadowDOM",e[e.useTabStops=114]="useTabStops",e[e.wordSeparators=115]="wordSeparators",e[e.wordWrap=116]="wordWrap",e[e.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=119]="wordWrapColumn",e[e.wordWrapOverride1=120]="wordWrapOverride1",e[e.wordWrapOverride2=121]="wordWrapOverride2",e[e.wrappingIndent=122]="wrappingIndent",e[e.wrappingStrategy=123]="wrappingStrategy",e[e.showDeprecated=124]="showDeprecated",e[e.inlayHints=125]="inlayHints",e[e.editorClassName=126]="editorClassName",e[e.pixelRatio=127]="pixelRatio",e[e.tabFocusMode=128]="tabFocusMode",e[e.layoutInfo=129]="layoutInfo",e[e.wrappingInfo=130]="wrappingInfo"}(m||(m={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(f||(f={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(p||(p={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(C||(C={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"}(L||(L={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(S||(S={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(N||(N={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(b||(b={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(E||(E={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(y||(y={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(A||(A={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(w||(w={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(v||(v={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(K||(K={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(M||(M={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(O||(O={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(T||(T={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(R||(R={})),function(e){e[e.Deprecated=1]="Deprecated"}(V||(V={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(I||(I={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(P||(P={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(x||(x={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(k||(k={}))},151:(e,t,n)=>{n.d(t,{o:()=>s});var i=n(9886);class r{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class s{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,i.A)(e);const n=this.values,r=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(n.length+s),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=(0,i.A)(e),t=(0,i.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let s=n.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,i.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,s=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,s=this.prefixSum[i],o=s-this.values[i],e=s))break;t=i+1}return new r(i,e-o)}}}}]); -//# sourceMappingURL=4200.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4200],{7464:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(6709);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},230:(e,t,n)=>{n.d(t,{Hs:()=>h,a$:()=>o});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(2916);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,r,o,l,s),h=o[0],d=l[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,d,s);let a=[];return a=s[0]?[new i(h+1,t-(h+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,h,d,c,m,f,g,_,p,C,L){let S=null,N=null,b=new u,E=t,y=n,A=f[0]-p[0]-r,w=-1073741824,v=this.m_forwardHistory.length-1;do{const t=A+e;t===E||t=0&&(e=(h=this.m_forwardHistory[v])[0],E=1,y=h.length-1)}while(--v>=-1);if(S=b.getReverseChanges(),L[0]){let e=f[0]+1,t=p[0]+1;if(null!==S&&S.length>0){const n=S[S.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}N=[new i(e,m-e+1,t,_-t+1)]}else{b=new u,E=o,y=a,A=f[0]-p[0]-l,w=1073741824,v=C?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+s;e===E||e=d[e+1]?(g=(c=d[e+1]-1)-A-l,c>w&&b.MarkNextChange(),w=c+1,b.AddOriginalElement(c+1,g+1),A=e+1-s):(g=(c=d[e-1])-A-l,c>w&&b.MarkNextChange(),w=c,b.AddModifiedElement(c+1,g+1),A=e-1-s),v>=0&&(s=(d=this.m_reverseHistory[v])[0],E=1,y=d.length-1)}while(--v>=-1);N=b.getChanges()}return this.ConcatenateChanges(S,N)}ComputeRecursionPoint(e,t,n,r,s,o,a){let u=0,h=0,d=0,c=0,m=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(r-n),_=g+1,p=new Int32Array(_),C=new Int32Array(_),L=r-n,S=t-e,N=e-n,b=t-r,E=(S-L)%2==0;p[L]=e,C[S]=t,a[0]=!1;for(let y=1;y<=g/2+1;y++){let g=0,A=0;d=this.ClipDiagonalBound(L-y,y,L,_),c=this.ClipDiagonalBound(L+y,y,L,_);for(let e=d;e<=c;e+=2){u=e===d||eg+A&&(g=u,A=h),!E&&Math.abs(e-S)<=y-1&&u>=C[e])return s[0]=u,o[0]=h,n<=C[e]&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):null}const w=(g-e+(A-n)-y)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,w))return a[0]=!0,s[0]=g,o[0]=A,w>0&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);m=this.ClipDiagonalBound(S-y,y,S,_),f=this.ClipDiagonalBound(S+y,y,S,_);for(let i=m;i<=f;i+=2){u=i===m||i=C[i+1]?C[i+1]-1:C[i-1],h=u-(i-S)-b;const l=u;for(;u>e&&h>n&&this.ElementsAreEqual(u,h);)u--,h--;if(C[i]=u,E&&Math.abs(i-L)<=y&&u<=p[i])return s[0]=u,o[0]=h,l>=p[i]&&y<=1448?this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a):null}if(y<=1447){let e=new Int32Array(c-d+2);e[0]=L-d+1,l.Copy2(p,d,e,1,c-d+1),this.m_forwardHistory.push(e),e=new Int32Array(f-m+2),e[0]=S-m+1,l.Copy2(C,m,e,1,f-m+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(L,d,c,N,S,m,f,b,p,C,u,t,s,h,r,o,E,a)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(tl&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,l=t,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e{n.d(t,{dL:()=>r,ri:()=>s});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){var t;(t=e)instanceof Error&&t.name===o&&t.message===o||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const o="Canceled";Error},6709:(e,t,n)=>{n.d(t,{ju:()=>i,Q5:()=>u});var i,r=n(996),s=n(8431),o=n(7979),a=n(9344);!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function n(e,t){return a(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)))}function i(e,t){return a(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)))}function r(e,t){return a(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)))}function o(e,t,i){let r=i;return n(e,(e=>(r=t(r,e),r)))}function a(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let s,o,a,l=0;const h=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=e((e=>{l++,o=t(o,e),i&&!a&&(h.fire(o),o=void 0),clearTimeout(a),a=setTimeout((()=>{const e=o;o=void 0,a=void 0,(!i||l>1)&&h.fire(e),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return h.event}function h(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,(e=>{const r=i||!t(e,n);return i=!1,n=e,r}))}e.None=()=>s.JT.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(0,s.F8)(...e.map((e=>e((e=>t.call(n,e)),null,i))))},e.reduce=o,e.debounce=l,e.latch=h,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e((e=>{i?i.push(e):o.fire(e)}));const s=()=>{i&&i.forEach((e=>o.fire(e))),i=null},o=new u({onFirstListenerAdd(){r||(r=e((e=>o.fire(e))))},onFirstListenerDidAdd(){i&&(t?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return o.event};class d{constructor(e){this.event=e}map(e){return new d(n(this.event,e))}forEach(e){return new d(i(this.event,e))}filter(e){return new d(r(this.event,e))}reduce(e,t){return new d(o(this.event,e,t))}latch(){return new d(h(this.event))}debounce(e,t=100,n=!1,i){return new d(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new a.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class u{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new o.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),u=(0,s.OF)((()=>{l&&l(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}));return n instanceof s.SL?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new o.S);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){(0,r.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}},9717:(e,t,n)=>{function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:()=>i})},2916:(e,t,n)=>{n.d(t,{Cv:()=>s});var i=n(7416);function r(e,t){return(t<<5)-t+e|0}function s(e,t){t=r(149417,t);for(let n=0,i=e.length;n>>i)>>>0}function a(e,t=0,n=e.byteLength,i=0){for(let r=0;re.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}class u{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.ZG(r)){if(!(s+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),l(this._h0)+l(this._h1)+l(this._h2)+l(this._h3)+l(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,a(this._buff,this._buffLen),this._buffLen>56&&(this._step(),a(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=u._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,o(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,s=this._h0,a=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=a&l|~a&h,i=1518500249):t<40?(n=a^l^h,i=1859775393):t<60?(n=a&l|a&h|l&h,i=2400959708):(n=a^l^h,i=3395469782),r=o(s,5)+n+d+i+e.getUint32(4*t,!1)&4294967295,d=h,h=l,l=o(a,30),a=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}u._bigBlock32=new DataView(new ArrayBuffer(320))},7865:(e,t,n)=>{var i;n.d(t,{$:()=>i}),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);tr}]},e.equals=function(e,t,n=((e,t)=>e===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(i||(i={}))},4880:(e,t,n)=>{n.d(t,{gx:()=>g});class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const r=new i,s=new i,o=new i,a=new Array(230),l={},u=[],h=Object.create(null),d=Object.create(null),c=[],m=[];for(let e=0;e<=193;e++)c[e]=-1;for(let e=0;e<=126;e++)m[e]=-1;var f;function g(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],i=[];for(const e of t){const[t,f,g,_,p,C,L,S,N,b]=e;if(i[g]||(i[g]=!0,u[g]=_,h[_]=g,d[_.toLowerCase()]=g,f&&(c[g]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=g))),!n[p]){if(n[p]=!0,!C)throw new Error(`String representation missing for key code ${p} around scan code ${_}`);r.define(p,C),s.define(p,N||C),o.define(p,b||N||C)}L&&(a[L]=p),S&&(l[S]=p)}m[3]=46}(),function(e){e.toString=function(e){return r.keyCodeToStr(e)},e.fromString=function(e){return r.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r.keyCodeToStr(e)}}(f||(f={}))},8431:(e,t,n)=>{n.d(t,{F8:()=>a,OF:()=>l,SL:()=>u,JT:()=>h});var i=n(9717),r=n(7865);class s extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function o(e){if(r.$.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new s(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function a(...e){const t=l((()=>o(e)));return t}function l(e){const t={dispose:(0,i.I)((()=>{e()}))};return t}class u{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{o(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}u.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new u,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}h.None=Object.freeze({dispose(){}})},7979:(e,t,n)=>{n.d(t,{S:()=>r});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},7263:(e,t,n)=>{n.d(t,{KR:()=>S,Ku:()=>L});var i=n(1138);let r;if(void 0!==i.li.vscode&&void 0!==i.li.vscode.process){const e=i.li.vscode.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd(),nextTick:e=>(0,i.xS)(e)}}else r="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd(),nextTick:e=>process.nextTick(e)}:{get platform(){return i.ED?"win32":i.dz?"darwin":"linux"},get arch(){},nextTick:e=>(0,i.xS)(e),get env(){return{}},cwd:()=>"/"};const s=r.cwd,o=r.env,a=r.platform,l=46,u=47,h=92,d=58;class c extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function m(e,t){if("string"!=typeof e)throw new c(t,"string",e)}function f(e){return e===u||e===h}function g(e){return e===u}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,n,i){let r="",s=0,o=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else h===l&&-1!==a?++a:a=-1}return r}function C(e,t){if(null===t||"object"!=typeof t)throw new c("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const L={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let a;if(r>=0){if(a=e[r],m(a,"path"),0===a.length)continue}else 0===t.length?a=s():(a=o[`=${t}`]||s(),(void 0===a||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===h)&&(a=`${t}\\`));const l=a.length;let u=0,c="",g=!1;const p=a.charCodeAt(0);if(1===l)f(p)&&(u=1,g=!0);else if(f(p))if(g=!0,f(a.charCodeAt(1))){let e=2,t=e;for(;e2&&f(a.charCodeAt(2))&&(g=!0,u=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(n=`${a.slice(u)}\\${n}`,i=g,g&&t.length>0)break}return n=p(n,!i,"\\",f),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){m(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return g(s)?"\\":e;if(f(s))if(r=!0,f(e.charCodeAt(1))){let r=2,s=r;for(;r2&&f(e.charCodeAt(2))&&(r=!0,i=3));let o=i0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){m(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&_(n)&&e.charCodeAt(1)===d&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r=2&&(t=`\\${t.slice(r)}`)}return L.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";const n=L.resolve(e),i=L.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;rr&&e.charCodeAt(s-1)===h;)s--;const o=s-r;let a=0;for(;aa&&t.charCodeAt(l-1)===h;)l--;const u=l-a,d=od){if(t.charCodeAt(a+f)===h)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>d&&(e.charCodeAt(r+f)===h?c=f:2===f&&(c=3)),-1===c&&(c=0)}let g="";for(f=r+c+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==h||(g+=0===g.length?"..":"\\..");return a+=c,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===h&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=L.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){m(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,s=r;for(;r2&&f(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let n=t-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&m(t,"ext"),m(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){m(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:C.bind(null,"\\"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,u=!0,h=e.length-1,c=0;for(;h>=i;--h)if(r=e.charCodeAt(h),f(r)){if(!u){o=h+1;break}}else-1===a&&(u=!1,a=h+1),r===l?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);return-1!==a&&(-1===s||0===c||1===c&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},S={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:s();m(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===u)}return t=p(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===u,n=e.charCodeAt(e.length-1)===u;return 0===(e=p(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(m(e,"path"),e.length>0&&e.charCodeAt(0)===u),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":S.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";if((e=S.resolve(e))===(t=S.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=is){if(t.charCodeAt(1+a)===u)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===u?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==u||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===u;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===u){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&m(t,"ext"),m(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===u){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===u){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){m(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==u)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:C.bind(null,"/"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===u;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,h=e.length-1,d=0;for(;h>=i;--h){const t=e.charCodeAt(h);if(t!==u)-1===o&&(a=!1,o=h+1),t===l?-1===r?r=h:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=h+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};S.win32=L.win32=L,S.posix=L.posix=S,"win32"===a?L.normalize:S.normalize,"win32"===a?L.resolve:S.resolve,"win32"===a?L.relative:S.relative,"win32"===a?L.dirname:S.dirname,"win32"===a?L.basename:S.basename,"win32"===a?L.extname:S.extname,"win32"===a?L.sep:S.sep},1138:(e,t,n)=>{var i;n.d(t,{li:()=>_,ED:()=>S,dz:()=>N,xS:()=>b});const r="en";let s,o,a,l=!1,u=!1,h=!1,d=!1,c=!1,m=!1,f=!1,g=null;const _="object"==typeof self?self:"object"==typeof n.g?n.g:{};let p;void 0!==_.vscode&&void 0!==_.vscode.process?p=_.vscode.process:"undefined"!=typeof process&&(p=process);const C="string"==typeof(null===(i=null==p?void 0:p.versions)||void 0===i?void 0:i.electron)&&"renderer"===p.type;if("object"!=typeof navigator||C)if("object"==typeof p){l="win32"===p.platform,u="darwin"===p.platform,h="linux"===p.platform,d=h&&!!p.env.SNAP&&!!p.env.SNAP_REVISION,s=r,g=r;const e=p.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];s=t.locale,g=n||r,o=t._translationsConfigFile}catch(e){}c=!0}else console.error("Unable to resolve platform.");else a=navigator.userAgent,l=a.indexOf("Windows")>=0,u=a.indexOf("Macintosh")>=0,(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=a.indexOf("Linux")>=0,!0,s=navigator.language,g=s;let L=0;u?L=1:l?L=3:h&&(L=2);const S=l,N=u,b=function(){if(_.setImmediate)return _.setImmediate.bind(_);if("function"==typeof _.postMessage&&!_.importScripts){let e=[];_.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),_.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==p?void 0:p.nextTick))return p.nextTick.bind(p);const e=Promise.resolve();return t=>e.then(t)}()},9344:(e,t,n)=>{n.d(t,{G:()=>s});var i=n(1138);const r=i.li.performance&&"function"==typeof i.li.performance.now;class s{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new s(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},7416:(e,t,n)=>{function i(e){return e.split(/\r\n|\r|\n/)}function r(e){for(let t=0,n=e.length;t=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function o(e){return e>=65&&e<=90}function a(e){return 55296<=e&&e<=56319}function l(e){return 56320<=e&&e<=57343}function u(e,t){return t-56320+(e-55296<<10)+65536}n.d(t,{uq:()=>i,LC:()=>r,ow:()=>s,df:()=>o,ZG:()=>a,YK:()=>l,rL:()=>u}),String.fromCharCode(65279);class h{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return h._INSTANCE||(h._INSTANCE=new h),h._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}h._INSTANCE=null},4818:(e,t,n)=>{function i(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function r(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}n.d(t,{$E:()=>i,IU:()=>r})},9886:(e,t,n)=>{function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{K:()=>i,A:()=>r})},8919:(e,t,n)=>{n.d(t,{o:()=>c});var i=n(7263),r=n(1138);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=i||u,this.fragment=r||u,l(this,s))}static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return C(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===i?i=this.path:null===i&&(i=u),void 0===r?r=this.query:null===r&&(r=u),void 0===s?s=this.fragment:null===s&&(s=u),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new f(t,n,i,r,s)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||u,b(n[4]||u),b(n[5]||u),b(n[7]||u),b(n[9]||u),t):new f(u,u,u,u,u)}static file(e){let t=u;if(r.ED&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new f("file",t,e,u,u)}static from(e){const t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.ED&&"file"===e.scheme?c.file(i.Ku.join(C(e,!0),...t)).path:i.KR.join(e.path,...t),e.with({path:n})}toString(e=!1){return L(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===m?e.fsPath:null,t}}return e}}const m=r.ED?1:void 0;class f extends c{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath}toString(e=!1){return e?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(e,t){let n,i=-1;for(let r=0;r=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=g[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function p(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.ED&&(n=n.replace(/\//g,"\\")),n}function L(e,t){const n=t?p:_;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?i+=n(s,!1):(i+=n(s.substr(0,e),!1),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:_(l,!1)),i}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}const N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(N)?e.replace(N,(e=>S(e))):e}},7223:(e,t,n)=>{n.d(t,{_i:()=>_});var i=n(996),r=n(6709),s=(n(8431),n(1138)),o=n(4818),a=n(7416);class l{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class u{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class h{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class d{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class c{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class m{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new l(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new r.Q5({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new h(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new c(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new u(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.ri)(e.detail)),this._send(new u(this._workerId,t,void 0,(0,i.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new d(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let t=[];if(0===e.type)for(let n=0;n{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(g(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(f(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=function(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)};let s={};for(const t of e)g(t)?s[t]=r(t):f(t)?s[t]=n(t,void 0):s[t]=i(t);return s}(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(o.$E(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,s.li.require.config(t)),new Promise(((e,t)=>{(0,s.li.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(o.$E(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}},5224:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(9886);class r{constructor(e){let t=(0,i.K)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=(0,i.K)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}},8964:(e,t,n)=>{n.d(t,{L:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{n.d(t,{e:()=>r});var i=n(8964);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,h=t.endColumn;return nu?(s=u,o=h):s===u&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.L(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}},7841:(e,t,n)=>{n.d(t,{Y:()=>s});var i=n(8964),r=n(38);class s extends r.e{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.L(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{n.d(t,{WU:()=>i});class i{constructor(e,t,n){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}},4237:(e,t,n)=>{n.d(t,{g:()=>h});var i=n(230),r=n(7416);function s(e,t,n,r){return new i.Hs(e,t,n).ComputeDiff(r)}class o{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),u=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let h=s(o,u,r,!0).changes;a&&(h=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i1&&s>1&&e.charCodeAt(n-2)===t.charCodeAt(s-2);)n--,s--;(n>1||s>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,s)}{let n=c(e,1),s=c(t,1);const a=e.length+1,l=t.length+1;for(;n!0;const t=Date.now();return()=>Date.now()-t{n.d(t,{v:()=>o});var i=n(7416),r=n(8964),s=n(151);class o{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new r.L(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i{n.d(t,{eq:()=>r,t2:()=>o});const i=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function r(e){let t=i;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const s={maxLen:1e3,windowSize:15,timeBudget:150};function o(e,t,n,i,r=s){if(n.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:i+=s,o(e,t,n=n.substring(s,e+r.maxLen/2),i,r)}const l=Date.now(),u=e-1-i;let h=-1,d=null;for(let e=1;!(Date.now()-l>=r.timeBudget);e++){const i=u-r.windowSize*e;t.lastIndex=Math.max(0,i);const s=a(t,n,u,h);if(!s&&d)break;if(d=s,i<=0)break;h=i}if(d){let e={word:d[0],startColumn:i+1+d.index,endColumn:i+1+d.index+d[0].length};return t.lastIndex=0,e}return null}function a(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}},2357:(e,t,n)=>{n.d(t,{E:()=>u});var i=n(5224);class r{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;rt&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;let i=new r(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let o=null,a=null;class l{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===o&&(o=new s([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),o}()){const n=function(){if(null===a){a=new i.N(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t{n.d(t,{J:()=>i});class i{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}i.INSTANCE=new i},3488:(e,t,n)=>{n.d(t,{ky:()=>C});var i=n(230),r=n(1138),s=n(8919),o=n(8964),a=n(38),l=n(4237),u=n(4039),h=n(1050),d=n(2357),c=n(6002),m=n(8733),f=n(4818),g=n(9344),_=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};class p extends u.v{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=(0,h.t2)(e.column,(0,h.eq)(t),this._lines[e.lineNumber-1],0);return n?new a.e(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(sthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class C{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new p(s.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return _(this,void 0,void 0,(function*(){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;const o=r.getLinesContent(),a=s.getLinesContent(),u=new l.g(o,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),h=!(u.changes.length>0)&&this._modelsAreIdentical(r,s);return{quitEarly:u.quitEarly,identical:h,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++)if(e.getLineContent(i)!==t.getLineContent(i))return!1;return!0}computeMoreMinimalEdits(e,t){return _(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?a.e.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:o,eol:l}of t){if("number"==typeof l&&(s=l),a.e.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>C._diffLimit){r.push({range:e,text:o});continue}const u=(0,i.a$)(t,o,!1),h=n.offsetAt(a.e.lift(e).getStartPosition());for(const e of u){const t=n.positionAt(h+e.originalStart),i=n.positionAt(h+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return _(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?(0,d.E)(t):null}))}textualSuggest(e,t,n,i){return _(this,void 0,void 0,(function*(){const r=new g.G(!0),s=new RegExp(n,i),o=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>C._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}))}computeWordRanges(e,t,n,i){return _(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(f.$E(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}C._diffLimit=1e5,C._suggestionsLimit=1e4,"function"==typeof importScripts&&(r.li.monaco=(0,m.O)())},8733:(e,t,n)=>{n.d(t,{O:()=>m});var i=n(7464),r=n(6709),s=n(4880),o=n(8919),a=n(8964),l=n(38),u=n(7841),h=n(475),d=n(8420);class c{static chord(e,t){return(0,s.gx)(e,t)}}function m(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.A,Emitter:r.Q5,KeyCode:d.VD,KeyMod:c,Position:a.L,Range:l.e,Selection:u.Y,SelectionDirection:d.a$,MarkerSeverity:d.ZL,MarkerTag:d.eB,Uri:o.o,Token:h.WU}}c.CtrlCmd=2048,c.Shift=1024,c.Alt=512,c.WinCtrl=256},8420:(e,t,n)=>{var i,r,s,o,a,l,u,h,d,c,m,f,g,_,p,C,L,S,N,b,E,y,A,w,v,K,M,O,T,R,V,I,P,x,k;n.d(t,{VD:()=>L,ZL:()=>S,eB:()=>N,a$:()=>O}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(s||(s={})),function(e){e[e.Deprecated=1]="Deprecated"}(o||(o={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(u||(u={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(h||(h={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(d||(d={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(c||(c={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=42]="fontFamily",e[e.fontInfo=43]="fontInfo",e[e.fontLigatures=44]="fontLigatures",e[e.fontSize=45]="fontSize",e[e.fontWeight=46]="fontWeight",e[e.formatOnPaste=47]="formatOnPaste",e[e.formatOnType=48]="formatOnType",e[e.glyphMargin=49]="glyphMargin",e[e.gotoLocation=50]="gotoLocation",e[e.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",e[e.hover=52]="hover",e[e.inDiffEditor=53]="inDiffEditor",e[e.inlineSuggest=54]="inlineSuggest",e[e.letterSpacing=55]="letterSpacing",e[e.lightbulb=56]="lightbulb",e[e.lineDecorationsWidth=57]="lineDecorationsWidth",e[e.lineHeight=58]="lineHeight",e[e.lineNumbers=59]="lineNumbers",e[e.lineNumbersMinChars=60]="lineNumbersMinChars",e[e.linkedEditing=61]="linkedEditing",e[e.links=62]="links",e[e.matchBrackets=63]="matchBrackets",e[e.minimap=64]="minimap",e[e.mouseStyle=65]="mouseStyle",e[e.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=67]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",e[e.multiCursorModifier=69]="multiCursorModifier",e[e.multiCursorPaste=70]="multiCursorPaste",e[e.occurrencesHighlight=71]="occurrencesHighlight",e[e.overviewRulerBorder=72]="overviewRulerBorder",e[e.overviewRulerLanes=73]="overviewRulerLanes",e[e.padding=74]="padding",e[e.parameterHints=75]="parameterHints",e[e.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",e[e.quickSuggestions=78]="quickSuggestions",e[e.quickSuggestionsDelay=79]="quickSuggestionsDelay",e[e.readOnly=80]="readOnly",e[e.renameOnType=81]="renameOnType",e[e.renderControlCharacters=82]="renderControlCharacters",e[e.renderFinalNewline=83]="renderFinalNewline",e[e.renderLineHighlight=84]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=86]="renderValidationDecorations",e[e.renderWhitespace=87]="renderWhitespace",e[e.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",e[e.roundedSelection=89]="roundedSelection",e[e.rulers=90]="rulers",e[e.scrollbar=91]="scrollbar",e[e.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=93]="scrollBeyondLastLine",e[e.scrollPredominantAxis=94]="scrollPredominantAxis",e[e.selectionClipboard=95]="selectionClipboard",e[e.selectionHighlight=96]="selectionHighlight",e[e.selectOnLineNumbers=97]="selectOnLineNumbers",e[e.showFoldingControls=98]="showFoldingControls",e[e.showUnused=99]="showUnused",e[e.snippetSuggestions=100]="snippetSuggestions",e[e.smartSelect=101]="smartSelect",e[e.smoothScrolling=102]="smoothScrolling",e[e.stickyTabStops=103]="stickyTabStops",e[e.stopRenderingLineAfter=104]="stopRenderingLineAfter",e[e.suggest=105]="suggest",e[e.suggestFontSize=106]="suggestFontSize",e[e.suggestLineHeight=107]="suggestLineHeight",e[e.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",e[e.suggestSelection=109]="suggestSelection",e[e.tabCompletion=110]="tabCompletion",e[e.tabIndex=111]="tabIndex",e[e.unusualLineTerminators=112]="unusualLineTerminators",e[e.useShadowDOM=113]="useShadowDOM",e[e.useTabStops=114]="useTabStops",e[e.wordSeparators=115]="wordSeparators",e[e.wordWrap=116]="wordWrap",e[e.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=119]="wordWrapColumn",e[e.wordWrapOverride1=120]="wordWrapOverride1",e[e.wordWrapOverride2=121]="wordWrapOverride2",e[e.wrappingIndent=122]="wrappingIndent",e[e.wrappingStrategy=123]="wrappingStrategy",e[e.showDeprecated=124]="showDeprecated",e[e.inlayHints=125]="inlayHints",e[e.editorClassName=126]="editorClassName",e[e.pixelRatio=127]="pixelRatio",e[e.tabFocusMode=128]="tabFocusMode",e[e.layoutInfo=129]="layoutInfo",e[e.wrappingInfo=130]="wrappingInfo"}(m||(m={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(f||(f={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(p||(p={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(C||(C={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"}(L||(L={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(S||(S={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(N||(N={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(b||(b={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(E||(E={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(y||(y={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(A||(A={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(w||(w={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(v||(v={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(K||(K={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(M||(M={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(O||(O={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(T||(T={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(R||(R={})),function(e){e[e.Deprecated=1]="Deprecated"}(V||(V={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(I||(I={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(P||(P={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(x||(x={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(k||(k={}))},151:(e,t,n)=>{n.d(t,{o:()=>s});var i=n(9886);class r{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class s{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,i.A)(e);const n=this.values,r=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(n.length+s),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=(0,i.A)(e),t=(0,i.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let s=n.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,i.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,s=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,s=this.prefixSum[i],o=s-this.values[i],e=s))break;t=i+1}return new r(i,e-o)}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4369.entry.js b/src/Web/assets/public/yaml/4369.entry.js index a9a97d7..23c6c18 100644 --- a/src/Web/assets/public/yaml/4369.entry.js +++ b/src/Web/assets/public/yaml/4369.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4369],{4369:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]); -//# sourceMappingURL=4369.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4369],{4369:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4454.entry.js b/src/Web/assets/public/yaml/4454.entry.js index f51312d..734d79b 100644 --- a/src/Web/assets/public/yaml/4454.entry.js +++ b/src/Web/assets/public/yaml/4454.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4454],{4454:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); -//# sourceMappingURL=4454.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4454],{4454:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4511.entry.js b/src/Web/assets/public/yaml/4511.entry.js index fee4769..b32a711 100644 --- a/src/Web/assets/public/yaml/4511.entry.js +++ b/src/Web/assets/public/yaml/4511.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4511],{4511:(e,r,n)=>{n.r(r),n.d(r,{conf:()=>t,language:()=>s});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>{n.r(r),n.d(r,{conf:()=>t,language:()=>s});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>{n.r(t),n.d(t,{conf:()=>o,language:()=>d});var i=n(2526),r=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.Mj.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.Mj.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},d={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); -//# sourceMappingURL=4558.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4558],{4558:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>d});var i=n(2526),r=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.Mj.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.Mj.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},d={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4610.entry.js b/src/Web/assets/public/yaml/4610.entry.js index fc940fc..3fca83f 100644 --- a/src/Web/assets/public/yaml/4610.entry.js +++ b/src/Web/assets/public/yaml/4610.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4610],{4610:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},s={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}}}]); -//# sourceMappingURL=4610.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4610],{4610:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},s={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/471.entry.js b/src/Web/assets/public/yaml/471.entry.js index fdf16d4..bc021d5 100644 --- a/src/Web/assets/public/yaml/471.entry.js +++ b/src/Web/assets/public/yaml/471.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[471],{471:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]); -//# sourceMappingURL=471.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[471],{471:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4755.entry.js b/src/Web/assets/public/yaml/4755.entry.js index 32e4029..1d3d2fd 100644 --- a/src/Web/assets/public/yaml/4755.entry.js +++ b/src/Web/assets/public/yaml/4755.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4755],{4755:(e,n,t)=>{t.r(n),t.d(n,{setupMode:()=>Te,setupMode1:()=>Re});var r,i,o,a,s,u,c,d,f,g,l,h,p,v,m,w,_,y,k,b,E,x,C,I,A,S,j=t(1839),M=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=j.j6.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r0&&(i.arguments=t),i},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.title)&&de.string(n.command)}}(_||(_={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var n=e;return de.objectLiteral(n)&&de.string(n.newText)&&a.is(n.range)}}(y||(y={})),function(e){e.create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},e.is=function(e){var n=e;return void 0!==n&&de.objectLiteral(n)&&de.string(n.label)&&(de.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(de.string(n.description)||void 0===n.description)}}(k||(k={})),function(e){e.is=function(e){return"string"==typeof e}}(b||(b={})),function(e){e.replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},e.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},e.del=function(e,n){return{range:e,newText:"",annotationId:n}},e.is=function(e){var n=e;return y.is(n)&&(k.is(n.annotationId)||b.is(n.annotationId))}}(E||(E={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return de.defined(n)&&P.is(n.textDocument)&&Array.isArray(n.edits)}}(x||(x={})),function(e){e.create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"create"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(C||(C={})),function(e){e.create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var n=e;return n&&"rename"===n.kind&&de.string(n.oldUri)&&de.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(I||(I={})),function(e){e.create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"delete"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||de.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||de.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(A||(A={})),function(e){e.is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return de.string(e.kind)?C.is(e)||I.is(e)||A.is(e):x.is(e)})))}}(S||(S={}));var R,T,P,F,D,L,O,N,U,W,V,z,H,K,X,B,$,q,Q,G,J,Y,Z,ee,ne,te,re,ie,oe,ae,se,ue=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=y.insert(e,n):b.is(t)?(i=t,r=E.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=E.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=y.replace(e,n):b.is(t)?(i=t,r=E.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=E.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=y.del(e):b.is(n)?(r=n,t=E.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=E.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(b.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(x.is(e)){var t=new ue(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new ue(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(P.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new ue(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ue(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(n)||b.is(n)?r=n:t=n,void 0===r?i=C.create(e,t):(o=b.is(r)?r:this._changeAnnotations.manage(r),i=C.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(k.is(t)||b.is(t)?i=t:r=t,void 0===i?o=I.create(e,n,r):(a=b.is(i)?i:this._changeAnnotations.manage(i),o=I.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(n)||b.is(n)?r=n:t=n,void 0===r?i=A.create(e,t):(o=b.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)}}(R||(R={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.integer(n.version)}}(T||(T={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&(null===n.version||de.integer(n.version))}}(P||(P={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.string(n.languageId)&&de.integer(n.version)&&de.string(n.text)}}(F||(F={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(D||(D={})),function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(D||(D={})),function(e){e.is=function(e){var n=e;return de.objectLiteral(e)&&D.is(n.kind)&&de.string(n.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(O||(O={})),function(e){e.PlainText=1,e.Snippet=2}(N||(N={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e,n,t){return{newText:e,insert:n,replace:t}},e.is=function(e){var n=e;return n&&de.string(n.newText)&&a.is(n.insert)&&a.is(n.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(H||(H={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var n=e;return de.string(n)||de.objectLiteral(n)&&de.string(n.language)&&de.string(n.value)}}(K||(K={})),function(e){e.is=function(e){var n=e;return!!n&&de.objectLiteral(n)&&(L.is(n.contents)||K.is(n.contents)||de.typedArray(n.contents,K.is))&&(void 0===e.range||a.is(e.range))}}(X||(X={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(B||(B={})),function(e){e.create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(se||(se={}));var de,fe=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return o.create(0,e);for(;te?r=i:t=i+1}var a=t-1;return o.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1{t.r(n),t.d(n,{setupMode:()=>Te,setupMode1:()=>Re});var r,i,o,a,s,u,c,d,f,g,l,h,p,v,m,w,_,y,k,b,E,x,C,I,A,S,j=t(1839),M=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=j.j6.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r0&&(i.arguments=t),i},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.title)&&de.string(n.command)}}(_||(_={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var n=e;return de.objectLiteral(n)&&de.string(n.newText)&&a.is(n.range)}}(y||(y={})),function(e){e.create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},e.is=function(e){var n=e;return void 0!==n&&de.objectLiteral(n)&&de.string(n.label)&&(de.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(de.string(n.description)||void 0===n.description)}}(k||(k={})),function(e){e.is=function(e){return"string"==typeof e}}(b||(b={})),function(e){e.replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},e.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},e.del=function(e,n){return{range:e,newText:"",annotationId:n}},e.is=function(e){var n=e;return y.is(n)&&(k.is(n.annotationId)||b.is(n.annotationId))}}(E||(E={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return de.defined(n)&&P.is(n.textDocument)&&Array.isArray(n.edits)}}(x||(x={})),function(e){e.create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"create"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(C||(C={})),function(e){e.create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var n=e;return n&&"rename"===n.kind&&de.string(n.oldUri)&&de.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||de.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||de.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(I||(I={})),function(e){e.create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},e.is=function(e){var n=e;return n&&"delete"===n.kind&&de.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||de.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||de.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||b.is(n.annotationId))}}(A||(A={})),function(e){e.is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return de.string(e.kind)?C.is(e)||I.is(e)||A.is(e):x.is(e)})))}}(S||(S={}));var R,T,P,F,D,L,O,N,U,W,V,z,H,K,X,B,$,q,Q,G,J,Y,Z,ee,ne,te,re,ie,oe,ae,se,ue=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=y.insert(e,n):b.is(t)?(i=t,r=E.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=E.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=y.replace(e,n):b.is(t)?(i=t,r=E.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=E.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=y.del(e):b.is(n)?(r=n,t=E.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=E.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(b.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(x.is(e)){var t=new ue(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new ue(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(P.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new ue(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ue(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(n)||b.is(n)?r=n:t=n,void 0===r?i=C.create(e,t):(o=b.is(r)?r:this._changeAnnotations.manage(r),i=C.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(k.is(t)||b.is(t)?i=t:r=t,void 0===i?o=I.create(e,n,r):(a=b.is(i)?i:this._changeAnnotations.manage(i),o=I.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(n)||b.is(n)?r=n:t=n,void 0===r?i=A.create(e,t):(o=b.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)}}(R||(R={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.integer(n.version)}}(T||(T={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&(null===n.version||de.integer(n.version))}}(P||(P={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return de.defined(n)&&de.string(n.uri)&&de.string(n.languageId)&&de.integer(n.version)&&de.string(n.text)}}(F||(F={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(D||(D={})),function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(D||(D={})),function(e){e.is=function(e){var n=e;return de.objectLiteral(e)&&D.is(n.kind)&&de.string(n.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(O||(O={})),function(e){e.PlainText=1,e.Snippet=2}(N||(N={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e,n,t){return{newText:e,insert:n,replace:t}},e.is=function(e){var n=e;return n&&de.string(n.newText)&&a.is(n.insert)&&a.is(n.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(H||(H={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var n=e;return de.string(n)||de.objectLiteral(n)&&de.string(n.language)&&de.string(n.value)}}(K||(K={})),function(e){e.is=function(e){var n=e;return!!n&&de.objectLiteral(n)&&(L.is(n.contents)||K.is(n.contents)||de.typedArray(n.contents,K.is))&&(void 0===e.range||a.is(e.range))}}(X||(X={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(B||(B={})),function(e){e.create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(se||(se={}));var de,fe=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return o.create(0,e);for(;te?r=i:t=i+1}var a=t-1;return o.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]); -//# sourceMappingURL=4858.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4858],{4858:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/4896.entry.js b/src/Web/assets/public/yaml/4896.entry.js index faa0642..81ce776 100644 --- a/src/Web/assets/public/yaml/4896.entry.js +++ b/src/Web/assets/public/yaml/4896.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4896],{4896:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>o,language:()=>t});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]); -//# sourceMappingURL=4896.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[4896],{4896:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>o,language:()=>t});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/491.entry.js b/src/Web/assets/public/yaml/491.entry.js index 40d4269..ad66a89 100644 --- a/src/Web/assets/public/yaml/491.entry.js +++ b/src/Web/assets/public/yaml/491.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[491],{491:(e,r,o)=>{o.r(r),o.d(r,{conf:()=>i,language:()=>t});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=>{o.r(r),o.d(r,{conf:()=>i,language:()=>t});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]); -//# sourceMappingURL=5257.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5257],{5257:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5454.entry.js b/src/Web/assets/public/yaml/5454.entry.js index 2f109b6..011ee51 100644 --- a/src/Web/assets/public/yaml/5454.entry.js +++ b/src/Web/assets/public/yaml/5454.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5454],{5454:(e,n,i)=>{i.r(n),i.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},r={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}}}]); -//# sourceMappingURL=5454.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5454],{5454:(e,n,i)=>{i.r(n),i.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},r={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5524.entry.js b/src/Web/assets/public/yaml/5524.entry.js index d965272..5a778ed 100644 --- a/src/Web/assets/public/yaml/5524.entry.js +++ b/src/Web/assets/public/yaml/5524.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5524],{5524:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]); -//# sourceMappingURL=5524.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5524],{5524:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5669.entry.js b/src/Web/assets/public/yaml/5669.entry.js index cc0593d..1b1a2e8 100644 --- a/src/Web/assets/public/yaml/5669.entry.js +++ b/src/Web/assets/public/yaml/5669.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5669],{5669:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>n,language:()=>s});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},s={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]); -//# sourceMappingURL=5669.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5669],{5669:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>n,language:()=>s});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},s={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5881.entry.js b/src/Web/assets/public/yaml/5881.entry.js index 4fda6e9..90dde36 100644 --- a/src/Web/assets/public/yaml/5881.entry.js +++ b/src/Web/assets/public/yaml/5881.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5881],{5881:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>i,language:()=>r});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]); -//# sourceMappingURL=5881.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5881],{5881:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>i,language:()=>r});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5900.entry.js b/src/Web/assets/public/yaml/5900.entry.js index ef71b36..4c621ed 100644 --- a/src/Web/assets/public/yaml/5900.entry.js +++ b/src/Web/assets/public/yaml/5900.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5900],{5900:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(2526),r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.Mj.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.Mj.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.Mj.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.Mj.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},i={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]); -//# sourceMappingURL=5900.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5900],{5900:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(2526),r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.Mj.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.Mj.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.Mj.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.Mj.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},i={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5924.entry.js b/src/Web/assets/public/yaml/5924.entry.js index 177f208..7685f73 100644 --- a/src/Web/assets/public/yaml/5924.entry.js +++ b/src/Web/assets/public/yaml/5924.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5924],{5924:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>t,language:()=>o});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}}}]); -//# sourceMappingURL=5924.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5924],{5924:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>t,language:()=>o});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/5925.entry.js b/src/Web/assets/public/yaml/5925.entry.js index 66eb650..529fe8b 100644 --- a/src/Web/assets/public/yaml/5925.entry.js +++ b/src/Web/assets/public/yaml/5925.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[5925],{5925:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>a});var o={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},a={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]); -//# sourceMappingURL=7453.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7453],{7453:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>l});var a=n(2526),m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.Mj.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.Mj.IndentAction.Indent}}]},l={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/7483.entry.js b/src/Web/assets/public/yaml/7483.entry.js index 6f73f30..1ef0b50 100644 --- a/src/Web/assets/public/yaml/7483.entry.js +++ b/src/Web/assets/public/yaml/7483.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7483],{7483:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>i,language:()=>n});var o=r(2526),m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.Mj.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.Mj.IndentAction.Indent}}]},n={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); -//# sourceMappingURL=7483.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7483],{7483:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>i,language:()=>n});var o=r(2526),m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.Mj.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+m.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.Mj.IndentAction.Indent}}]},n={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/7604.entry.js b/src/Web/assets/public/yaml/7604.entry.js index e0ed601..dcc1d8d 100644 --- a/src/Web/assets/public/yaml/7604.entry.js +++ b/src/Web/assets/public/yaml/7604.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7604],{7604:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={keywords:["namespace","open","as","operation","function","body","adjoint","newtype","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],symbols:/[=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={keywords:["namespace","open","as","operation","function","body","adjoint","newtype","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],symbols:/[=>{"use strict";function r(e,t){void 0===t&&(t=!1);var n=e.length,r=0,a="",u=0,c=16,l=0,p=0,f=0,d=0,h=0;function g(t,n){for(var o=0,s=0;o=48&&i<=57)s=16*s+i-48;else if(i>=65&&i<=70)s=16*s+i-65+10;else{if(!(i>=97&&i<=102))break;s=16*s+i-97+10}r++,o++}return o=n)return u=n,c=17;var t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return c=15}if(s(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),l++,f=r,c=14;switch(t){case 123:return r++,c=1;case 125:return r++,c=2;case 91:return r++,c=3;case 93:return r++,c=4;case 58:return r++,c=6;case 44:return r++,c=5;case 34:return r++,a=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),h=2;break}var i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(s(i)){t+=e.substring(o,r),h=2;break}h=6}r++}else{if(t+=e.substring(o,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=g(4,!0);a>=0?t+=String.fromCharCode(a):h=4;break;default:h=5}o=r}}return t}(),c=10;case 47:var m=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:m,getToken:function(){return c},getTokenValue:function(){return a},getTokenOffset:function(){return u},getTokenLength:function(){return r-u},getTokenStartLine:function(){return p},getTokenStartCharacter:function(){return u-d},getTokenError:function(){return h}}}function o(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function s(e){return 10===e||13===e||8232===e||8233===e}function i(e){return e>=48&&e<=57}var a;n.d(t,{tU:()=>u,Hk:()=>l,F6:()=>p,zA:()=>f,Qc:()=>c}),function(e){e.DEFAULT={allowTrailingComma:!1}}(a||(a={}));var u=r,c=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=a.DEFAULT);var o=null,s=[],i=[];function u(e){Array.isArray(s)?s.push(e):null!==o&&(s[o]=e)}return function(e,t,n){void 0===n&&(n=a.DEFAULT);var o=r(e,!1);function s(e){return e?function(){return e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function i(e){return e?function(t){return e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var u=s(t.onObjectBegin),c=i(t.onObjectProperty),l=s(t.onObjectEnd),p=s(t.onArrayBegin),f=s(t.onArrayEnd),d=i(t.onLiteralValue),h=i(t.onSeparator),g=s(t.onComment),m=i(t.onError),y=n&&n.disallowComments,D=n&&n.allowTrailingComma;function v(){for(;;){var e=o.scan();switch(o.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:y||E(11);break;case 2:E(12);break;case 6:E(16)}switch(e){case 12:case 13:y?E(10):g();break;case 16:E(1);break;case 15:case 14:break;default:return e}}}function E(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var r=o.getToken();17!==r;){if(-1!==t.indexOf(r)){v();break}if(-1!==n.indexOf(r))break;r=v()}}function b(e){var t=o.getTokenValue();return e?d(t):c(t),v(),!0}v(),17===o.getToken()?!!n.allowEmptyContent||E(4,[],[]):function e(){switch(o.getToken()){case 3:return function(){p(),v();for(var t=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||E(4,[],[]),h(","),v(),4===o.getToken()&&D)break}else t&&E(6,[],[]);e()||E(4,[],[4,5]),t=!0}return f(),4!==o.getToken()?E(8,[4],[]):v(),!0}();case 1:return function(){u(),v();for(var t=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||E(4,[],[]),h(","),v(),2===o.getToken()&&D)break}else t&&E(6,[],[]);(10!==o.getToken()?(E(3,[],[2,5]),0):(b(!1),6===o.getToken()?(h(":"),v(),e()||E(4,[],[2,5])):E(5,[],[2,5]),1))||E(4,[],[2,5]),t=!0}return l(),2!==o.getToken()?E(7,[2],[]):v(),!0}();case 10:return b(!0);default:return function(){switch(o.getToken()){case 11:var e=o.getTokenValue(),t=Number(e);isNaN(t)&&(E(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return v(),!0}()}}()?17!==o.getToken()&&E(9,[],[]):E(4,[],[])}(e,{onObjectBegin:function(){var e={};u(e),i.push(s),s=e,o=null},onObjectProperty:function(e){o=e},onObjectEnd:function(){s=i.pop()},onArrayBegin:function(){var e=[];u(e),i.push(s),s=e,o=null},onArrayEnd:function(){s=i.pop()},onLiteralValue:u,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),s[0]},l=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t{"use strict";n.d(t,{j:()=>i});var r=n(7223),o=n(3488);let s=!1;function i(e){if(s)return;s=!0;const t=new r._i((e=>{self.postMessage(e)}),(t=>new o.ky(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{s||i(null)}},1023:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,s=-1,i=0,a=0;a<=e.length;++a){if(a2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=a,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,s=a,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),o=a-s-1;s=a,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var i;s>=0?i=arguments[s]:(void 0===e&&(e=process.cwd()),i=e),t(i),0!==i.length&&(r=i+"/"+r,o=47===i.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else i>c&&(47===e.charCodeAt(o+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(o+p);if(f!==n.charCodeAt(a+p))break;47===f&&(l=p)}var d="";for(p=o+l+1;p<=s;++p)p!==s&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,s=!0,i=e.length-1;i>=1;--i)if(47===(n=e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,s=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!i){o=r+1;break}}else-1===u&&(i=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=u))}return o===s?s=u:-1===s&&(s=e.length),e.slice(o,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!i){o=r+1;break}}else-1===s&&(i=!1,s=r+1);return-1===s?"":e.slice(o,s)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,s=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(s=!1,o=a+1),46===u?-1===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!s){r=a+1;break}}return-1===n||-1===o||0===i||1===i&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),s=47===o;s?(n.root="/",r=1):r=0;for(var i=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===i?i=l:1!==p&&(p=1):-1!==i&&(p=-1);else if(!c){a=l+1;break}return-1===i||-1===u||0===p||1===p&&i===u-1&&i===a+1?-1!==u&&(n.base=n.name=0===a&&s?e.slice(1,u):e.slice(a,u)):(0===a&&s?(n.name=e.slice(1,i),n.base=e.slice(1,u)):(n.name=e.slice(a,i),n.base=e.slice(a,u)),n.ext=e.slice(i,u)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},6060:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i}function c(e){return this instanceof c?(this.v=e,this):new c(e)}var l=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return i},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(i,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof c?Promise.resolve(n.value.v).then(u,l):p(s[0][2],n)}catch(e){p(s[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function p(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:c(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),p=o((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;nthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));r(p);var f=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0,t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t.Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"}}));r(f),f.Type,f.Char;var d=o((function(e,t){function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function o(e,t){const{lineStarts:n,src:o}=r(t);if(!n||!(e>=1)||e>n.length)return null;const s=n[e-1];let i=n[e];for(;i&&i>s&&"\n"===o[i-1];)--i;return o.slice(s,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:o}=r(t);if(!n||!o||e>o.length)return null;for(let t=0;tr)if(i<=r-10)s=s.substr(0,r-1)+"…";else{const e=Math.round(r/2);s.length>i+e&&(s=s.substr(0,i+e-1)+"…"),i-=s.length-r,s="…"+s.substr(1-r)}let a=1,u="";t&&(t.line===e.line&&i+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(s.length+1,r)-i,u="…"));const c=i>1?" ".repeat(i-1):"",l="^".repeat(a);return"".concat(s,"\n").concat(c).concat(l).concat(u)}}));r(d),d.getLinePos,d.getLine,d.getPrettyContext;var h=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{static copy(e){return new n(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;on);)++o;this.origStart=n+o;const s=o;for(;o=r);)++o;return this.origEnd=r+o,s}}t.default=n}));r(h);var g=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=h)&&n.__esModule?n:{default:n};class o{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=o.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==f.Char.DIRECTIVES_END&&r!==f.Char.DOCUMENT_END)return!1;const s=e[t+1],i=e[t+2];if(s!==r||i!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=o.endOfIndent(e,n);if(r>n+t)return r;{const t=o.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:o.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,s=!1,i="",a=e[t+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(s=!0),t=o.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}a=e[t+1]}return i||(i=" "),a&&r<=n&&(s=!0),{fold:i,offset:t,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||o.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return o.addStringTerminator(e,t.end,r)}}t.default=o}));r(g);var m=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends Error{constructor(e,t,r){if(!(r&&t instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=r,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);const t=e&&(0,d.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&(0,d.getPrettyContext)(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}t.YAMLError=s,t.YAMLReferenceError=class extends s{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=class extends s{constructor(e,t){super("YAMLSemanticError",e,t)}},t.YAMLSyntaxError=class extends s{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends s{constructor(e,t){super("YAMLWarning",e,t)}}}));r(m),m.YAMLWarning,m.YAMLSyntaxError,m.YAMLSemanticError,m.YAMLReferenceError,m.YAMLError;var y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(){super(f.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){this.context=e;const{src:o}=e;let s=t+1;for(;n.default.atBlank(o,s);){const e=n.default.endOfWhiteSpace(o,s);if("\n"!==e)break;s=e+1}return this.range=new r.default(t,s),s}}t.default=s}));r(y);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(y),r=s(g),o=s(h);function s(e){return e&&e.__esModule?e:{default:e}}class i extends r.default{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:s,src:i}=e;let{atLineStart:a,lineStart:u}=e;a||this.type!==f.Type.SEQ_ITEM||(this.error=new m.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=a?t-u:e.indent;let l=r.default.endOfWhiteSpace(i,t+1),p=i[l];const d="#"===p,h=[];let g=null;for(;"\n"===p||"#"===p;){if("#"===p){const e=r.default.endOfLine(i,l+1);h.push(new o.default(l,e)),l=e}else a=!0,u=l+1,"\n"===i[r.default.endOfWhiteSpace(i,u)]&&0===h.length&&(g=new n.default,u=g.parse({src:i},u)),l=r.default.endOfIndent(i,u);p=i[l]}if(r.default.nextNodeIsIndented(p,l-(u+c),this.type!==f.Type.SEQ_ITEM)?this.node=s({atLineStart:a,inCollection:!1,indent:c,lineStart:u,parent:this},l):p&&u>t+1&&(l=u-1),this.node){if(g){const t=e.parent.items||e.parent.contents;t&&t.push(g)}h.length&&Array.prototype.push.apply(this.props,h),l=this.node.range.end}else if(d){const e=h[0];this.props.push(e),l=e.end}else l=r.default.endOfLine(i,t+1);const y=this.node?this.node.valueRange.end:l;return this.valueRange=new o.default(t,y),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:o}=this;if(null!=o)return o;const s=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,s)}}t.default=i}));r(D);var v=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(){super(f.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.default(t,n),n}}t.default=s}));r(v);var E=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=u,t.default=void 0;var n=a(y),r=a(D),o=a(v),s=a(g),i=a(h);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){let t=e;for(;t instanceof r.default;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let o=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===f.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;o=e}else{if(n.type!==f.Type.BLANK_LINE)break;o=e}}if(-1===o)return null;const s=t.items.splice(o,n-o),i=s[0].range.start;for(;t.range.end=i,t.valueRange&&t.valueRange.end>i&&(t.valueRange.end=i),t!==e;)t=t.context.parent;return s}class c extends s.default{static nextContentHasIndent(e,t,n){const r=s.default.endOfLine(e,t)+1,o=e[t=s.default.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===f.Type.SEQ_ITEM?f.Type.SEQ:f.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:a}=e;let l=s.default.startOfLine(a,t);const p=this.items[0];p.context.parent=this,this.valueRange=i.default.copy(p.valueRange);const d=p.range.start-p.context.lineStart;let h=t;h=s.default.normalizeOffset(a,h);let g=a[h],m=s.default.endOfWhiteSpace(a,l)===h,y=!1;for(;g;){for(;"\n"===g||"#"===g;){if(m&&"\n"===g&&!y){const e=new n.default;if(h=e.parse({src:a},h),this.valueRange.end=h,h>=a.length){g=null;break}this.items.push(e),h-=1}else if("#"===g){if(h=a.length){g=null;break}}if(l=h+1,h=s.default.endOfIndent(a,l),s.default.atBlank(a,h)){const e=s.default.endOfWhiteSpace(a,h),t=a[e];t&&"\n"!==t&&"#"!==t||(h=e)}g=a[h],m=!0}if(!g)break;if(h!==l+d&&(m||":"!==g)){l>t&&(h=l);break}if(p.type===f.Type.SEQ_ITEM!=("-"===g)){let e=!0;if("-"===g){const t=a[h+1];e=!t||"\n"===t||"\t"===t||" "===t}if(e){l>t&&(h=l);break}}const e=r({atLineStart:m,inCollection:!0,indent:d,lineStart:l,parent:this},h);if(!e)return h;if(this.items.push(e),this.valueRange.end=e.valueRange.end,h=s.default.normalizeOffset(a,e.range.end),g=a[h],m=!1,y=e.includesTrailingLines,g){let e=h-1,t=a[e];for(;" "===t||"\t"===t;)t=a[--e];"\n"===t&&(l=e+1,m=!0)}const i=u(e);i&&Array.prototype.push.apply(this.items,i)}return h}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new i.default(l,l+3),l+3):(c?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){const{parseNode:t,src:o}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===o[a-1];)a-=1;let c=s.default.endOfWhiteSpace(o,e),l=a===e;for(this.valueRange=new i.default(c);!s.default.atDocumentBoundary(o,c,f.Char.DOCUMENT_END);){switch(o[c]){case"\n":if(l){const e=new n.default;c=e.parse({src:o},c),c{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===f.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}t.default=u}));r(C);var A=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{parse(e,t){this.context=e;const{src:o}=e;let s=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=s}));r(A);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}const s={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=s;class i extends n.default{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=s.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===s.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:o}=this.context;if(this.valueRange.isEmpty())return"";let i=null,a=o[t-1];for(;"\n"===a||"\t"===a||" "===a;){if(t-=1,t<=e){if(this.chomping===s.KEEP)break;return""}"\n"===a&&(i=t),a=o[t-1]}let u=t+1;i&&(this.chomping===s.KEEP?(u=i,t=this.valueRange.end):t=i);const c=r+this.blockIndent,l=this.type===f.Type.BLOCK_FOLDED;let p=!0,d="",h="",g=!1;for(let r=e;rc&&(c=n)}i="\n"===o[e]?e:a=n.default.endOfLine(o,e)}return this.chomping!==s.KEEP&&(i=o[a]?a+1:a),this.valueRange=new r.default(e+1,i),i}parse(e,t){this.context=e;const{src:r}=e;let o=this.parseBlockHeader(t);return o=n.default.endOfWhiteSpace(r,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}t.default=i}));r(w),w.Chomp;var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(y),r=i(v),o=i(g),s=i(h);function i(e){return e&&e.__esModule?e:{default:e}}class a extends o.default{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===f.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:i,src:a}=e;let{indent:u,lineStart:c}=e,l=a[t];this.items=[{char:l,offset:t}];let p=o.default.endOfWhiteSpace(a,t+1);for(l=a[p];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(c=p+1,"\n"===a[o.default.endOfWhiteSpace(a,c)]){const e=new n.default;c=e.parse({src:a},c),this.items.push(e)}if(p=o.default.endOfIndent(a,c),p<=c+u&&(l=a[p],p{if(n instanceof o.default)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;rn.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const s=t.filter((e=>e instanceof o.default));let i="",a=n.start;return s.forEach((t=>{const n=e.slice(a,t.range.start);a=t.range.end,i+=n+String(t),"\n"===i[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),i+=e.slice(a,n.end),o.default.addStringTerminator(e,n.end,i)}}t.default=a}));r(S);var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let o=r[t-1];for(;en?r.slice(n,o+1):e)}else s+=e}return s}parseBlockValue(e){const{indent:t,inFlow:r,src:o}=this.context;let i=e,a=e;for(let e=o[i];"\n"===e&&!n.default.atDocumentBoundary(o,i+1);e=o[i]){const e=n.default.endOfBlockIndent(o,t,i+1);if(null===e||"#"===o[e])break;"\n"===o[e]?i=e:(a=s.endOfLine(o,e,r),i=a)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=a,a}parse(e,t){this.context=e;const{inFlow:o,src:i}=e;let a=t;const u=i[a];return u&&"#"!==u&&"\n"!==u&&(a=s.endOfLine(i,t,o)),this.valueRange=new r.default(t,a),a=n.default.endOfWhiteSpace(i,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}t.default=s}));r(x);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:s}=this.context;'"'!==s[r-1]&&e.push(new m.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let a=t+1;ae?s.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(n.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(s)}parse(e,t){this.context=e;const{src:o}=e;let i=s.endOfQuote(o,t+1);return this.valueRange=new r.default(t,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i),i}}t.default=s}));r(F);var T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:s}=this.context;"'"!==s[r-1]&&e.push(new m.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let a=t+1;ae?s.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:o}=e;let i=s.endOfQuote(o,t+1);return this.valueRange=new r.default(t,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i),i}}t.default=s}));r(T);var k=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(A),r=d(w),o=d(E),s=d(D),i=d(S),a=d(g),u=d(x),c=d(F),l=d(T),p=d(h);function d(e){return e&&e.__esModule?e:{default:e}}class y{static parseType(e,t,n){switch(e[t]){case"*":return f.Type.ALIAS;case">":return f.Type.BLOCK_FOLDED;case"|":return f.Type.BLOCK_LITERAL;case"{":return f.Type.FLOW_MAP;case"[":return f.Type.FLOW_SEQ;case"?":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_KEY:f.Type.PLAIN;case":":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_VALUE:f.Type.PLAIN;case"-":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.SEQ_ITEM:f.Type.PLAIN;case'"':return f.Type.QUOTE_DOUBLE;case"'":return f.Type.QUOTE_SINGLE;default:return f.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:d,inFlow:h,indent:g,lineStart:D,parent:v}={}){var E,b;b=(e,t)=>{if(a.default.atDocumentBoundary(this.src,t))return null;const d=new y(this,e),{props:h,type:g,valueStart:D}=d.parseProps(t),v=function(e,t){switch(e){case f.Type.ALIAS:return new n.default(e,t);case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return new r.default(e,t);case f.Type.FLOW_MAP:case f.Type.FLOW_SEQ:return new i.default(e,t);case f.Type.MAP_KEY:case f.Type.MAP_VALUE:case f.Type.SEQ_ITEM:return new s.default(e,t);case f.Type.COMMENT:case f.Type.PLAIN:return new u.default(e,t);case f.Type.QUOTE_DOUBLE:return new c.default(e,t);case f.Type.QUOTE_SINGLE:return new l.default(e,t);default:return null}}(g,h);let E=v.parse(d,D);if(v.range=new p.default(t,E),E<=t&&(v.error=new Error("Node#parse consumed no characters"),v.error.parseEnd=E,v.error.source=v,v.range.end=t+1),d.nodeStartsCollection(v)){v.error||d.atLineStart||d.parent.type!==f.Type.DOCUMENT||(v.error=new m.YAMLSyntaxError(v,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new o.default(v);return E=e.parse(new y(d),E),e.range=new p.default(t,E),e}return v},(E="parseNode")in this?Object.defineProperty(this,E,{value:b,enumerable:!0,configurable:!0,writable:!0}):this[E]=b,this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=d?d:e.inCollection||!1,this.inFlow=null!=h?h:e.inFlow||!1,this.indent=null!=g?g:e.indent,this.lineStart=null!=D?D:e.lineStart,this.parent=null!=v?v:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof s.default)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=a.default.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let s=!1,i=r[e=a.default.endOfWhiteSpace(r,e)];for(;i===f.Char.ANCHOR||i===f.Char.COMMENT||i===f.Char.TAG||"\n"===i;){if("\n"===i){const t=e+1,o=a.default.endOfIndent(r,t),i=o-(t+this.indent),u=n.type===f.Type.SEQ_ITEM&&n.context.atLineStart;if(!a.default.nextNodeIsIndented(r[o],i,!u))break;this.atLineStart=!0,this.lineStart=t,s=!1,e=o}else if(i===f.Char.COMMENT){const t=a.default.endOfLine(r,e+1);o.push(new p.default(e,t)),e=t}else{let t=a.default.endOfIdentifier(r,e+1);i===f.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=a.default.endOfIdentifier(r,t+5)),o.push(new p.default(e,t)),s=!0,e=a.default.endOfWhiteSpace(r,t)}i=r[e]}return s&&":"===i&&a.default.atBlank(r,e+1,!0)&&(e-=1),{props:o,type:y.parseType(r,e,t),valueStart:e}}}t.default=y}));r(k);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const o=[];let s=0;do{const t=new n.default,i=new r.default({src:e});s=t.parse(i,s),o.push(t)}while(s{if(0===t.length)return!1;for(let e=1;eo.join("...\n"),o};var n=o(C),r=o(k);function o(e){return e&&e.__esModule?e:{default:e}}}));r(_);var O=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));r(O),O.addCommentBefore;var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),r)));if(t&&"function"==typeof t.toJSON){const e=r&&r.anchors&&r.anchors.find((e=>e.node===t));e&&(r.onCreate=t=>{e.res=t,delete r.onCreate});const o=t.toJSON(n,r);return e&&r.onCreate&&r.onCreate(o),o}return t}}));r(N);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{}}));r(B);var M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(N),r=o(B);function o(e){return e&&e.__esModule?e:{default:e}}class s extends r.default{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=s}));r(M);var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(O),r=a(N),o=a(I),s=a(B),i=a(M);function a(e){return e&&e.__esModule?e:{default:e}}class u extends s.default{constructor(e,t=null){super(),this.key=e,this.value=t,this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){null==this.key&&(this.key=new i.default(null)),this.key.commentBefore=e}addToJSMap(e,t){const n=(0,r.default)(this.key,"",e);if(t instanceof Map){const o=(0,r.default)(this.value,n,e);t.set(n,o)}else if(t instanceof Set)t.add(n);else{const o=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof s.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t))(this.key,n,e);t[o]=(0,r.default)(this.value,o,e)}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:a}=e.doc.options;let{key:u,value:c}=this,l=u instanceof s.default&&u.comment;if(a){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof o.default)throw new Error("With simple keys, collection cannot be used as a key value")}const p=!a&&(!u||l||u instanceof o.default||u.type===f.Type.BLOCK_FOLDED||u.type===f.Type.BLOCK_LITERAL),{doc:d,indent:h}=e;e=Object.assign({},e,{implicitKey:!p,indent:h+" "});let g=!1,m=d.schema.stringify(u,e,(()=>l=null),(()=>g=!0));if(m=(0,n.default)(m,e.indent,l),e.allNullValues&&!a)return this.comment?(m=(0,n.default)(m,e.indent,this.comment),t&&t()):g&&!l&&r&&r(),e.inFlow?m:"? ".concat(m);m=p?"? ".concat(m,"\n").concat(h,":"):"".concat(m,":"),this.comment&&(m=(0,n.default)(m,e.indent,this.comment),t&&t());let y="",D=null;if(c instanceof s.default){if(c.spaceBefore&&(y="\n"),c.commentBefore){const t=c.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(t)}D=c.comment}else c&&"object"==typeof c&&(c=d.schema.createNode(c,!0));e.implicitKey=!1,!p&&!this.comment&&c instanceof i.default&&(e.indentAtStart=m.length+1),g=!1;const v=d.schema.stringify(c,e,(()=>D=null),(()=>g=!0));let E=" ";return y||this.comment?E="".concat(y,"\n").concat(e.indent):!p&&c instanceof o.default&&(("["===v[0]||"{"===v[0])&&!v.includes("\n")||(E="\n".concat(e.indent))),g&&!D&&r&&r(),(0,n.default)(m+E+v,e.indent,D)}}t.default=u}));r(L);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=i(O),r=i(B),o=i(L),s=i(M);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e],o=Number.isInteger(n)&&n>=0?[]:{};o[n]=r,r=o}return e.createNode(r,!1)}const c=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;t.isEmptyPath=c;class l extends r.default{constructor(e){super(),a(this,"items",[]),this.schema=e}addIn(e,t){if(c(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof l)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,u(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof s.default?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!(e instanceof o.default))return!1;const t=e.value;return null==t||t instanceof s.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,u(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:o,itemIndent:s},i,a){const{doc:u,indent:c}=e,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(s+=" ");const f=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:s,inFlow:p,type:null});let d=!1,h=!1;const g=this.items.reduce(((t,r,o)=>{let i;r&&(!d&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(i=r.comment),p&&(!d&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(h=!0)),d=!1;let a=u.schema.stringify(r,e,(()=>i=null),(()=>d=!0));return p&&!h&&a.includes("\n")&&(h=!0),p&&oe.str));if(h||n.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){m=e;for(const e of n)m+=e?"\n ".concat(c).concat(e):"\n";m+="\n".concat(c).concat(t)}else m="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{const e=g.map(t);m=e.shift();for(const t of e)m+=t?"\n".concat(c).concat(t):"\n"}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(c,"#")),i&&i()):d&&a&&a(),m}}t.default=l,a(l,"maxFlowStringSingleLineLength",60)}));r(I),I.isEmptyPath;var P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(N),r=i(I),o=i(B),s=i(L);function i(e){return e&&e.__esModule?e:{default:e}}const a=(e,t)=>{if(e instanceof u){const n=t.find((t=>t.node===e.source));return n.count*n.aliasCount}if(e instanceof r.default){let n=0;for(const r of e.items){const e=a(r,t);e>n&&(n=e)}return n}if(e instanceof s.default){const n=a(e.key,t),r=a(e.value,t);return Math.max(n,r)}return 1};class u extends o.default{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:s}){let i=Object.keys(n).find((e=>n[e]===t));if(!i&&s&&(i=r.anchors.getName(t)||r.anchors.newName()),i)return"*".concat(i).concat(o?" ":"");const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(a," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=f.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,n.default)(this.source,e,t);const{anchors:r,maxAliasCount:o}=t,s=r.find((e=>e.node===this.source));if(!s||void 0===s.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new m.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=a(this.source,r)),s.count*s.aliasCount>o)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new m.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return s.res}toString(e){return u.stringify(this,e)}}var c,l;t.default=u,(l="default")in(c=u)?Object.defineProperty(c,l,{value:true,enumerable:!0,configurable:!0,writable:!0}):c[l]=true}));r(P);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=i,t.default=void 0;var n=s(I),r=s(L),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){const n=t instanceof o.default?t.value:t;for(const o of e)if(o instanceof r.default){if(o.key===t||o.key===n)return o;if(o.key&&o.key.value===n)return o}}class a extends n.default{add(e,t){e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e);const n=i(this.items,e.key),o=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(o){const t=this.items.findIndex((t=>o(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=i(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=i(this.items,e),r=n&&n.value;return!t&&r instanceof o.default?r.value:r}has(e){return!!i(this.items,e)}set(e,t){this.add(new r.default(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}t.default=a}));r(j),j.findPair;var R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(N),r=s(I),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}function i(e){let t=e instanceof o.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}class a extends r.default{add(e){this.items.push(e)}delete(e){const t=i(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=i(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof o.default?r.value:r}has(e){const t=i(e);return"number"==typeof t&&t"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}t.default=a}));r(R);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=i(j),r=i(L),o=i(M),s=i(R);function i(e){return e&&e.__esModule?e:{default:e}}t.MERGE_KEY="<<";class a extends r.default{constructor(e){if(e instanceof r.default){let t=e.value;t instanceof s.default||(t=new s.default,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o.default("<<"),new s.default);this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}t.default=a}));r(U),U.MERGE_KEY;var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P),r=a(j),o=a(U),s=a(M),i=a(R);function a(e){return e&&e.__esModule?e:{default:e}}class u{static validAnchorNode(e){return e instanceof s.default||e instanceof i.default||e instanceof r.default}constructor(e){var t;t={},"map"in this?Object.defineProperty(this,"map",{value:t,enumerable:!0,configurable:!0,writable:!0}):this.map=t,this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.default(e)}createMergePair(...e){const t=new o.default;return t.value.items=e.map((e=>{if(e instanceof n.default){if(e.source instanceof r.default)return e}else if(e instanceof r.default)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!u.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}t.default=u}));r($);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(I),r=s(L),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}const i=(e,t)=>{if(e&&"object"==typeof e){const{tag:s}=e;e instanceof n.default?(s&&(t[s]=!0),e.items.forEach((e=>i(e,t)))):e instanceof r.default?(i(e.key,t),i(e.value,t)):e instanceof o.default&&s&&(t[s]=!0)}return t};t.default=e=>Object.keys(i(e,{}))}));r(q);var V=o((function(e,n){function r(e,n){if(t&&t._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=t&&t.process;r?r(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}Object.defineProperty(n,"__esModule",{value:!0}),n.warn=r,n.warnFileDeprecation=function(e){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;const n=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");r("The endpoint 'yaml/".concat(n,"' will be removed in a future release."),"DeprecationWarning")},n.warnOptionDeprecation=function(e,n){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(o[e])return;o[e]=!0;let s="The option '".concat(e,"' will be removed in a future release");s+=n?", use '".concat(n,"' instead."):".",r(s,"DeprecationWarning")};const o={}}));r(V),V.warn,V.warnFileDeprecation,V.warnOptionDeprecation;var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,{indentAtStart:o,lineWidth:s=80,minContentWidth:i=20,onFold:a,onOverflow:u}){if(!s||s<0)return e;const c=Math.max(1+i,1+s-t.length);if(e.length<=c)return e;const l=[],p={};let f,d,h,g=s-("number"==typeof o?o:t.length),m=!1,y=-1;for("block"===r&&(y=n(e,y),-1!==y&&(g=y+c));f=e[y+=1];){if("quoted"===r&&"\\"===f)switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}if("\n"===f)"block"===r&&(y=n(e,y)),g=y+c,d=void 0;else{if(" "===f&&h&&" "!==h&&"\n"!==h&&"\t"!==h){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=y)}if(y>=g)if(d)l.push(d),g=d+c,d=void 0;else if("quoted"===r){for(;" "===h||"\t"===h;)h=f,f=e[y+=1],m=!0;l.push(y-2),p[y-2]=!0,g=y-2+c,d=void 0}else m=!0}h=f}if(m&&u&&u(),0===l.length)return e;a&&a();let D=e.slice(0,l[0]);for(let n=0;n{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}}));r(W),W.FOLD_QUOTED,W.FOLD_BLOCK,W.FOLD_FLOW;var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;const n={defaultType:f.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n,t.boolOptions={trueStr:"true",falseStr:"false"},t.nullOptions={nullStr:"null"};const r={defaultType:f.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));r(Y),Y.strOptions,Y.nullOptions,Y.boolOptions,Y.binaryOptions;var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},t.stringifyString=function(e,t,r,u){const{defaultType:c}=Y.strOptions,{implicitKey:l,inFlow:p}=t;let{type:d,value:h}=e;"string"!=typeof h&&(h=String(h),e=Object.assign({},e,{value:h}));const g=c=>{switch(c){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return a(e,t,r,u);case f.Type.QUOTE_DOUBLE:return s(h,t);case f.Type.QUOTE_SINGLE:return i(h,t);case f.Type.PLAIN:return function(e,t,r,u){const{comment:c,type:l,value:p}=e,{actualString:d,implicitKey:h,indent:g,inFlow:m,tags:y}=t;if(h&&/[\n[\]{},]/.test(p)||m&&/[[\]{},]/.test(p))return s(p,t);if(!p||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(p))return h||m||-1===p.indexOf("\n")?-1!==p.indexOf('"')&&-1===p.indexOf("'")?i(p,t):s(p,t):a(e,t,r,u);if(!h&&!m&&l!==f.Type.PLAIN&&-1!==p.indexOf("\n"))return a(e,t,r,u);const D=p.replace(/\n+/g,"$&\n".concat(g));if(d&&"string"!=typeof y.resolveScalar(D).value)return s(p,t);const v=h?D:(0,n.default)(D,g,n.FOLD_FLOW,o(t));return!c||m||-1===v.indexOf("\n")&&-1===c.indexOf("\n")?v:(r&&r(),(0,O.addCommentBefore)(v,g,c))}(e,t,r,u);default:return null}};d!==f.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(h)?d=f.Type.QUOTE_DOUBLE:!l&&!p||d!==f.Type.BLOCK_FOLDED&&d!==f.Type.BLOCK_LITERAL||(d=f.Type.QUOTE_DOUBLE);let m=g(d);if(null===m&&(m=g(c),null===m))throw new Error("Unsupported default string type ".concat(c));return m};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(W);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}const o=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},Y.strOptions.fold):Y.strOptions.fold;function s(e,t){const{implicitKey:r,indent:s}=t,{jsonEncoding:i,minMultiLineLength:a}=Y.strOptions.doubleQuoted,u=JSON.stringify(e);if(i)return u;let c="",l=0;for(let e=0,t=u[e];t;t=u[++e])if(" "===t&&"\\"===u[e+1]&&"n"===u[e+2]&&(c+=u.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(u[e+1]){case"u":{c+=u.slice(l,e);const t=u.substr(e+2,4);switch(t){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:"00"===t.substr(0,2)?c+="\\x"+t.substr(2):c+=u.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===u[e+2]||u.lengtht)return!0;if(o=r+1,n-o<=t)return!1}return!0}(r,Y.strOptions.fold.lineWidth-u.length));let p=l?"|":">";if(!r)return p+"\n";let d="",h="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?p+="-":r!==e&&t===e.length-1||(p+="+",a&&a()),h=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(p+=c);const t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),h&&(h=h.replace(/\n+(?!\n|$)/g,"$&".concat(u))),d&&(d=d.replace(/\n+/g,"$&".concat(u))),e&&(p+=" #"+e.replace(/ ?[\r\n]+/g," "),i&&i()),!r)return"".concat(p).concat(c,"\n").concat(u).concat(h);if(l)return r=r.replace(/\n+/g,"$&".concat(u)),"".concat(p,"\n").concat(u).concat(d).concat(r).concat(h);r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(u));const g=(0,n.default)("".concat(d).concat(r).concat(h),u,n.FOLD_BLOCK,Y.strOptions.fold);return"".concat(p,"\n").concat(u).concat(g)}}));r(K),K.stringifyNumber,K.stringifyString;var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){let n,r,o;switch(t.type){case f.Type.FLOW_MAP:n="}",r="flow map";break;case f.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new m.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==f.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const s="Expected ".concat(r," to end with ").concat(n);let i;"number"==typeof o.offset?(i=new m.YAMLSemanticError(t,s),i.offset=o.offset+1):(i=new m.YAMLSemanticError(o,s),o.range&&o.range.end&&(i.offset=o.range.end-o.range.start)),e.push(i)}},t.checkKeyLength=function(e,t,n,r,o){if(!r||"number"!=typeof o)return;const s=t.items[n];let i=s&&s.range&&s.range.start;if(!i)for(let e=n-1;e>=0;--e){const r=t.items[e];if(r&&r.range){i=r.range.end+2*(n-e);break}}if(i>o+1024){const n=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new m.YAMLSemanticError(t,'The "'.concat(n,'" key is too long')))}},t.resolveComments=function(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}}));r(J),J.checkFlowCollectionEnd,J.checkKeyLength,J.resolveComments;var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==f.Type.MAP&&t.type!==f.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new m.YAMLSyntaxError(t,n)),null}const{comments:u,items:c}=t.type===f.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o,i=null,a=!1,u="{";for(let c=0;c0){r=new n.default(f.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};const e=c.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},"number"==typeof c.range.origStart){const e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const p=new s.default(i,e.resolveNode(r));l(c,p),o.push(p),(0,J.checkKeyLength)(e.errors,t,u,i,a),i=void 0,a=null}break;default:void 0!==i&&o.push(new s.default(i)),i=e.resolveNode(c),a=c.range.start,c.error&&e.errors.push(c.error);e:for(let n=u+1;;++n){const r=t.items[n];switch(r&&r.type){case f.Type.BLANK_LINE:case f.Type.COMMENT:continue e;case f.Type.MAP_VALUE:break e;default:e.errors.push(new m.YAMLSemanticError(c,"Implicit map keys need to be followed by map values"));break e}}if(c.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new m.YAMLSemanticError(c,t))}}}return void 0!==i&&o.push(new s.default(i)),{comments:r,items:o}}(e,t),p=new r.default;p.items=c,(0,J.resolveComments)(p,u);let d=!1;for(let n=0;n{if(e instanceof i.default){const{type:t}=e.source;return t!==f.Type.MAP&&t!==f.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new m.YAMLSemanticError(t,s))}else for(let o=n+1;o{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==f.Char.COMMENT)return!1;for(let t=e;te instanceof n.default&&e.key instanceof o.default))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new m.YAMLWarning(t,n))}return t.resolved=a,a};var n=s(L),r=s(R),o=s(I);function s(e){return e&&e.__esModule?e:{default:e}}}));r(H);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(H),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}var s={createNode:function(e,t,n){const o=new r.default(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);o.items.push(t)}return o},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=s}));r(X);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;const n=(e,t)=>{const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""};t.resolveString=n;var r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),(0,K.stringifyString)(e,t,n,r)),options:Y.strOptions};t.default=r}));r(Q),Q.resolveString;var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(G),r=s(X),o=s(Q);function s(e){return e&&e.__esModule?e:{default:e}}var i=[n.default,r.default,o.default];t.default=i}));r(Z);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.floatObj=t.expObj=t.nanObj=t.hexObj=t.intObj=t.octObj=t.boolObj=t.nullObj=void 0;var n=o(M),r=o(Z);function o(e){return e&&e.__esModule?e:{default:e}}const s={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr};t.nullObj=s;const i={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:Y.boolOptions,stringify:({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr};t.boolObj=i;const a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)};t.octObj=a;const u={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:K.stringifyNumber};t.intObj=u;const c={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)};t.hexObj=c;const l={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber};t.nanObj=l;const p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};t.expObj=p;const f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:K.stringifyNumber};t.floatObj=f;var d=r.default.concat([s,i,a,u,c,l,p,f]);t.default=d}));r(ee),ee.floatObj,ee.expObj,ee.nanObj,ee.hexObj,ee.intObj,ee.octObj,ee.boolObj,ee.nullObj;var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(G),r=s(X),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}const i=[n.default,r.default,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Q.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new o.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];i.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var a=i;t.default=a}));r(te);var ne=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},re=[],oe=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ie=!1;function ae(){ie=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+re[o>>12&63]+re[o>>6&63]+re[63&o]);return s.join("")}function ce(e){var t;ie||ae();for(var n=e.length,r=n%3,o="",s=[],i=0,a=n-r;ia?a:i+16383));return 1===r?(t=e[n-1],o+=re[t>>2],o+=re[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=re[t>>10],o+=re[t>>4&63],o+=re[t<<2&63],o+="="),s.push(o),s.join("")}function le(e,t,n,r,o){var s,i,a=8*o-r-1,u=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+e[t+p],p+=f,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=r;l>0;i=256*i+e[t+p],p+=f,l-=8);if(0===s)s=1-c;else{if(s===u)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),s-=c}return(d?-1:1)*i*Math.pow(2,s-r)}function pe(e,t,n,r,o,s){var i,a,u,c=8*s-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=l?(a=0,i=l):i+p>=1?(a=(t*u-1)*Math.pow(2,o),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+d]=255&a,d+=h,a/=256,o-=8);for(i=i<0;e[n+d]=255&i,d+=h,i/=256,c-=8);e[n+d-h]|=128*g}var fe={}.toString,de=Array.isArray||function(e){return"[object Array]"==fe.call(e)};function he(){return me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ge(e,t){if(he()=he())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+he().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function Ae(e,t){if(Ce(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return He(e).length;default:if(r)return Ge(e).length;t=(""+t).toLowerCase(),r=!0}}function we(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return je(this,t,n);case"utf8":case"utf-8":return Le(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Pe(this,t,n);case"base64":return Me(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Se(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xe(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=me.from(t,r)),Ce(t))return 0===t.length?-1:Fe(e,t,n,r,o);if("number"==typeof t)return t&=255,me.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Fe(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Fe(e,t,n,r,o){var s,i=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,u/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(s=n;sa&&(n=a-u),s=n;s>=0;s--){for(var p=!0,f=0;fo&&(r=o):r=o;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;i>8,o=n%256,s.push(o),s.push(r);return s}(t,e.length-n),e,n,r)}function Me(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Le(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(s=e[o+1]))&&(u=(31&c)<<6|63&s)>127&&(l=u);break;case 3:s=e[o+1],i=e[o+2],128==(192&s)&&128==(192&i)&&(u=(15&c)<<12|(63&s)<<6|63&i)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[o+1],i=e[o+2],a=e[o+3],128==(192&s)&&128==(192&i)&&128==(192&a)&&(u=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",s=t;sn)throw new RangeError("Trying to access beyond buffer length")}function $e(e,t,n,r,o,s){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function qe(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function Ve(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function We(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ye(e,t,n,r,o){return o||We(e,0,n,4),pe(e,t,n,r,23,4),n+4}function Ke(e,t,n,r,o){return o||We(e,0,n,8),pe(e,t,n,r,52,8),n+8}me.TYPED_ARRAY_SUPPORT=void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,me.poolSize=8192,me._augment=function(e){return e.__proto__=me.prototype,e},me.from=function(e,t,n){return ye(null,e,t,n)},me.TYPED_ARRAY_SUPPORT&&(me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array),me.alloc=function(e,t,n){return function(e,t,n,r){return De(t),t<=0?ge(e,t):void 0!==n?"string"==typeof r?ge(e,t).fill(n,r):ge(e,t).fill(n):ge(e,t)}(null,e,t,n)},me.allocUnsafe=function(e){return ve(null,e)},me.allocUnsafeSlow=function(e){return ve(null,e)},me.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Qe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qe(e.slice(0,0))}(e))},me.compare=function(e,t){if(!Ce(e)||!Ce(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,s=Math.min(n,r);o0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},me.prototype.compare=function(e,t,n,r,o){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),a=Math.min(s,i),u=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return Te(this,e,t,n);case"utf8":case"utf-8":return ke(this,e,t,n);case"ascii":return _e(this,e,t,n);case"latin1":case"binary":return Oe(this,e,t,n);case"base64":return Ne(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Be(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},me.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},me.prototype.readUInt8=function(e,t){return t||Ue(e,1,this.length),this[e]},me.prototype.readUInt16LE=function(e,t){return t||Ue(e,2,this.length),this[e]|this[e+1]<<8},me.prototype.readUInt16BE=function(e,t){return t||Ue(e,2,this.length),this[e]<<8|this[e+1]},me.prototype.readUInt32LE=function(e,t){return t||Ue(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},me.prototype.readUInt32BE=function(e,t){return t||Ue(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},me.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e],o=1,s=0;++s=(o*=128)&&(r-=Math.pow(2,8*t)),r},me.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=t,o=1,s=this[e+--r];r>0&&(o*=256);)s+=this[e+--r]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*t)),s},me.prototype.readInt8=function(e,t){return t||Ue(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},me.prototype.readInt16LE=function(e,t){t||Ue(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},me.prototype.readInt16BE=function(e,t){t||Ue(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},me.prototype.readInt32LE=function(e,t){return t||Ue(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},me.prototype.readInt32BE=function(e,t){return t||Ue(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},me.prototype.readFloatLE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!0,23,4)},me.prototype.readFloatBE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!1,23,4)},me.prototype.readDoubleLE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!0,52,8)},me.prototype.readDoubleBE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!1,52,8)},me.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$e(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+n},me.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,255,0),me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},me.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},me.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},me.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),me.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ve(this,e,t,!0),t+4},me.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},me.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var s=0,i=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+n},me.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var s=n-1,i=1,a=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/i>>0)-a&255;return t+n},me.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,127,-128),me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},me.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},me.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},me.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ve(this,e,t,!0),t+4},me.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},me.prototype.writeFloatLE=function(e,t,n){return Ye(this,e,t,!0,n)},me.prototype.writeFloatBE=function(e,t,n){return Ye(this,e,t,!1,n)},me.prototype.writeDoubleLE=function(e,t,n){return Ke(this,e,t,!0,n)},me.prototype.writeDoubleBE=function(e,t,n){return Ke(this,e,t,!1,n)},me.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(s<1e3||!me.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function He(e){return function(e){var t,n,r,o,s,i;ie||ae();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[a-2]?2:"="===e[a-1]?1:0,i=new se(3*a/4-s),r=s>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,i[u++]=o>>8&255,i[u++]=255&o;return 2===s?(o=oe[e.charCodeAt(t)]<<2|oe[e.charCodeAt(t+1)]>>4,i[u++]=255&o):1===s&&(o=oe[e.charCodeAt(t)]<<10|oe[e.charCodeAt(t+1)]<<4|oe[e.charCodeAt(t+2)]>>2,i[u++]=o>>8&255,i[u++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Je,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xe(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{{const n=(0,Q.resolveString)(e,t);return me.from(n,"base64")}},options:Y.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,s)=>{let i;if(i=n instanceof me?n.toString("base64"):me.from(n.buffer).toString("base64"),t||(t=Y.binaryOptions.defaultType),t===f.Type.QUOTE_DOUBLE)n=i;else{const{lineWidth:e}=Y.binaryOptions,r=Math.ceil(i.length/e),o=new Array(r);for(let t=0,n=0;t1){const e="Each pair must have its own sequence indicator";throw new m.YAMLSemanticError(t,e)}const e=o.items[0]||new r.default;o.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(o.commentBefore,"\n").concat(e.commentBefore):o.commentBefore),o.comment&&(e.comment=e.comment?"".concat(o.comment,"\n").concat(e.comment):o.comment),o=e}s.items[e]=o instanceof r.default?o:new r.default(o)}}return s}function u(e,t,n){const r=new s.default(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,s;if(Array.isArray(o)){if(2!==o.length)throw new TypeError("Expected [key, value] tuple: ".concat(o));t=o[0],s=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(o));t=e[0],s=o[t]}else t=o;const i=e.createPair(t,s,n);r.items.push(i)}return r}var c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:u};t.default=c}));r(et),et.parsePairs,et.createPairs;var tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=a(N),r=a(j),o=a(L),s=a(M),i=a(R);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.default{constructor(){super(),u(this,"add",r.default.prototype.add.bind(this)),u(this,"delete",r.default.prototype.delete.bind(this)),u(this,"get",r.default.prototype.get.bind(this)),u(this,"has",r.default.prototype.has.bind(this)),u(this,"set",r.default.prototype.set.bind(this)),this.tag=c.tag}toJSON(e,t){const r=new Map;t&&t.onCreate&&t.onCreate(r);for(const e of this.items){let s,i;if(e instanceof o.default?(s=(0,n.default)(e.key,"",t),i=(0,n.default)(e.value,s,t)):s=(0,n.default)(e,"",t),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}}t.YAMLOMap=c,u(c,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=(0,et.parsePairs)(e,t),r=[];for(const{key:e}of n.items)if(e instanceof s.default){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new m.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new c,n)},createNode:function(e,t,n){const r=(0,et.createPairs)(e,t,n),o=new c;return o.items=r.items,o}};t.default=l}));r(tt),tt.YAMLOMap;var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(j),s=u(L),i=u(z),a=u(M);function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}class l extends o.default{constructor(){super(),this.tag=l.tag}add(e){const t=e instanceof s.default?e:new s.default(e);(0,o.findPair)(this.items,t.key)||this.items.push(t)}get(e,t){const n=(0,o.findPair)(this.items,e);return!t&&n instanceof s.default?n.key instanceof a.default?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof t));const n=(0,o.findPair)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new s.default(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}t.YAMLSet=l,r="tag:yaml.org,2002:set","tag"in(n=l)?Object.defineProperty(n,"tag",{value:r,enumerable:!0,configurable:!0,writable:!0}):n.tag=r;var p={identify:e=>e instanceof Set,nodeClass:l,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=(0,i.default)(e,t);if(!n.hasAllNullValues())throw new m.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new l,n)},createNode:function(e,t,n){const r=new l;for(const o of t)r.items.push(e.createPair(o,null,n));return r}};t.default=p}));r(nt),nt.YAMLSet;var rt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;const n=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},r=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,K.stringifyNumber)(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.intTime=o;const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.floatTime=s;const i={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,o,s,i,a,u,c)=>{u&&(u=(u+"00").substr(1,3));let l=Date.UTC(t,r-1,o,s||0,i||0,a||0,u||0);if(c&&"Z"!==c){let e=n(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=i}));r(rt),rt.timestamp,rt.floatTime,rt.intTime;var ot=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(M),r=u(Z),o=u(Ze),s=u(tt),i=u(et),a=u(nt);function u(e){return e&&e.__esModule?e:{default:e}}const c=({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr;var l=r.default.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:Y.boolOptions,stringify:c},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:Y.boolOptions,stringify:c},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:K.stringifyNumber}],o.default,s.default,i.default,a.default,rt.intTime,rt.floatTime,rt.timestamp);t.default=l}));r(ot);var st=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(ee),r=f(Z),o=f(te),s=f(ot),i=f(G),a=f(X),u=f(Ze),c=f(tt),l=f(et),p=f(nt);function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}const h={core:n.default,failsafe:r.default,json:o.default,yaml11:s.default};t.schemas=h;const g={binary:u.default,bool:n.boolObj,float:n.floatObj,floatExp:n.expObj,floatNaN:n.nanObj,floatTime:rt.floatTime,int:n.intObj,intHex:n.hexObj,intOct:n.octObj,intTime:rt.intTime,map:i.default,null:n.nullObj,omap:c.default,pairs:l.default,seq:a.default,set:p.default,timestamp:rt.timestamp};t.tags=g}));r(st),st.tags,st.schemas;var it=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P),r=a(I),o=a(B),s=a(L),i=a(M);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){if(this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?(e,t)=>e.keyt.key?1:0:r||null,this.tags=st.schemas[n.replace(/\W/g,"")],!this.tags){const e=Object.keys(st.schemas).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(e))}if(!e&&o&&(e=o,(0,V.warnOptionDeprecation)("tags","customTags")),Array.isArray(e))for(const t of e)this.tags=this.tags.concat(t);else"function"==typeof e&&(this.tags=e(this.tags.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(t,'"; use one of ').concat(e))}this.tags[e]=n}}}createNode(e,t,r,s){if(e instanceof o.default)return e;let a;if(r){r.startsWith("!!")&&(r=c.defaultPrefix+r.slice(2));const e=this.tags.filter((e=>e.tag===r));if(a=e.find((e=>!e.format))||e[0],!a)throw new Error("Tag ".concat(r," not found"))}else if(a=this.tags.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)),!a){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!=typeof e)return t?new i.default(e):e;a=e instanceof Map?st.tags.map:e[Symbol.iterator]?st.tags.seq:st.tags.map}s?s.wrapScalars=t:s={wrapScalars:t},s.onTagObj&&(s.onTagObj(a),delete s.onTagObj);const u={};if(e&&"object"==typeof e&&s.prevObjects){const t=s.prevObjects.get(e);if(t){const e=new n.default(t);return s.aliasNodes.push(e),e}u.value=e,s.prevObjects.set(e,u)}return u.node=a.createNode?a.createNode(this,e,s):t?new i.default(e):e,r&&u.node instanceof o.default&&(u.node.tag=r),u.node}createPair(e,t,n){const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new s.default(r,o)}resolveScalar(e,t){t||(t=this.tags);for(let n=0;ne===n)),s=o.find((({test:e})=>!e));t.error&&e.errors.push(t.error);try{if(s){let n=s.resolve(e,t);n instanceof r.default||(n=new i.default(n)),t.resolved=n}else{const n=(0,Q.resolveString)(e,t);"string"==typeof n&&o.length>0&&(t.resolved=this.resolveScalar(n,o))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}resolveNodeWithFallback(e,t,n){const r=this.resolveNode(e,t,n);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return r;const o=(({type:e})=>e===f.Type.FLOW_MAP||e===f.Type.MAP)(t)?c.defaultTags.MAP:(({type:e})=>e===f.Type.FLOW_SEQ||e===f.Type.SEQ)(t)?c.defaultTags.SEQ:c.defaultTags.STR;if(o){e.warnings.push(new m.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(o)));const r=this.resolveNode(e,t,o);return r.tag=n,r}return e.errors.push(new m.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}getTagObject(e){if(e instanceof n.default)return n.default;if(e.tag){const t=this.tags.filter((t=>t.tag===e.tag));if(t.length>0)return t.find((t=>t.format===e.format))||t[0]}let t,r;if(e instanceof i.default){r=e.value;const n=this.tags.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));t=n.find((t=>t.format===e.format))||n.find((e=>!e.format))}else r=e,t=this.tags.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return t}stringifyProps(e,t,{anchors:n,doc:r}){const o=[],s=r.anchors.getName(e);return s&&(n[s]=e,o.push("&".concat(s))),e.tag?o.push(r.stringifyTag(e.tag)):t.default||o.push(r.stringifyTag(t.tag)),o.join(" ")}stringify(e,t,n,i){let a;if(!(e instanceof o.default)){const n={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=this.createNode(e,!0,null,n);const{anchors:r}=t.doc;for(const e of n.aliasNodes){e.source=e.source.node;let t=r.getName(e.source);t||(t=r.newName(),r.map[t]=e.source)}}if(t.tags=this,e instanceof s.default)return e.toString(t,n,i);a||(a=this.getTagObject(e));const u=this.stringifyProps(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const c="function"==typeof a.stringify?a.stringify(e,t,n,i):e instanceof r.default?e.toString(t,n,i):(0,K.stringifyString)(e,t,n,i);return u?e instanceof r.default&&"{"!==c[0]&&"["!==c[0]?"".concat(u,"\n").concat(t.indent).concat(c):"".concat(u," ").concat(c):c}}t.default=c,u(c,"defaultPrefix","tag:yaml.org,2002:"),u(c,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));r(it);var at=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r,o,s=y(O),i=y($),a=y(q),u=y(it),c=y(P),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(I),p=y(B),d=y(M),h=y(N);function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}class D{constructor(e){this.anchors=new i.default(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}assertCollectionContents(){if(this.contents instanceof l.default)return!0;throw new Error("Expected a YAML collection as document contents")}add(e){return this.assertCollectionContents(),this.contents.add(e)}addIn(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}delete(e){return this.assertCollectionContents(),this.contents.delete(e)}deleteIn(e){return(0,l.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}getDefaults(){return D.defaults[this.version]||D.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof l.default?this.contents.get(e,t):void 0}getIn(e,t){return(0,l.isEmptyPath)(e)?!t&&this.contents instanceof d.default?this.contents.value:this.contents:this.contents instanceof l.default?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof l.default&&this.contents.has(e)}hasIn(e){return(0,l.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof l.default&&this.contents.hasIn(e)}set(e,t){this.assertCollectionContents(),this.contents.set(e,t)}setIn(e,t){(0,l.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:s,valueRange:i}=e;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(n,t),o&&(this.directivesEndMarker=!0),this.range=i?[i.start,i.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof m.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof m.YAMLError&&e.makePretty()}return this}parseDirectives(e,t){const n=[];let r=!1;if(e.forEach((e=>{const{comment:t,name:o}=e;switch(o){case"TAG":this.resolveTagDirective(e),r=!0;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e),r=!0;break;default:if(o){const t="YAML only supports %TAG and %YAML directives, and not %".concat(o);this.warnings.push(new m.YAMLWarning(e,t))}}t&&n.push(t)})),t&&!r&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e),this.version=t.version}this.commentBefore=n.join("\n")||null}parseContents(e){const t={before:[],after:[]},n=[];let r=!1;switch(e.forEach((e=>{if(e.valueRange){if(1===n.length){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new m.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);r&&(t.spaceBefore=!0,r=!1),n.push(t)}else null!==e.comment?(0===n.length?t.before:t.after).push(e.comment):e.type===f.Type.BLANK_LINE&&(r=!0,0===n.length&&t.before.length>0&&!this.commentBefore&&(this.commentBefore=t.before.join("\n"),t.before=[]))})),n.length){case 0:this.contents=null,t.after=t.before;break;case 1:if(this.contents=n[0],this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof l.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?"".concat(e,"\n").concat(t.commentBefore):e}}else t.after=t.before.concat(t.after);break;default:this.contents=n,this.contents[0]?this.contents[0].commentBefore=t.before.join("\n")||null:t.after=t.before.concat(t.after)}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,n]=e.parameters;if(t&&n)if(this.tagPrefixes.every((e=>e.handle!==t)))this.tagPrefixes.push({handle:t,prefix:n});else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new m.YAMLSemanticError(e,t))}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new m.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if("YAML:1.0"===e.name&&(t="1.0"),this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new m.YAMLSemanticError(e,t))}if(t){if(!D.defaults[t]){const n=this.version||this.options.version,r="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(t);this.warnings.push(new m.YAMLWarning(e,r))}this.version=t}else{const t="Insufficient parameters given for %YAML directive";this.errors.push(new m.YAMLSemanticError(e,t))}}resolveTagName(e){const{tag:t,type:n}=e;let r=!1;if(t){const{handle:n,suffix:o,verbatim:s}=t;if(s){if("!"!==s&&"!!"!==s)return s;const t="Verbatim tags aren't resolved, so ".concat(s," is invalid.");this.errors.push(new m.YAMLSemanticError(e,t))}else if("!"!==n||o){let t=this.tagPrefixes.find((e=>e.handle===n));if(!t){const e=this.getDefaults().tagPrefixes;e&&(t=e.find((e=>e.handle===n)))}if(t){if(o){if("!"===n&&"1.0"===(this.version||this.options.version)){if("^"===o[0])return o;if(/[:/]/.test(o)){const e=o.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(o)}}return t.prefix+decodeURIComponent(o)}this.errors.push(new m.YAMLSemanticError(e,"The ".concat(n," tag has no suffix.")))}else{const t="The ".concat(n," tag handle is non-default and was not declared.");this.errors.push(new m.YAMLSemanticError(e,t))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return u.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return u.default.defaultTags.SEQ;case f.Type.PLAIN:return r?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:n,schema:r}=this;let o=!1,s=!1;const i={before:[],after:[]},a=(e=>e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type))(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:r}of a)switch(e.context.src[t]){case f.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";n.push(new m.YAMLSemanticError(e,t))}const o=e.context.src.slice(t+1,r),{header:s,valueRange:a}=e;a&&(t>a.start||s&&t>s.start)?i.after.push(o):i.before.push(o)}break;case f.Char.ANCHOR:if(o){const t="A node can have at most one anchor";n.push(new m.YAMLSemanticError(e,t))}o=!0;break;case f.Char.TAG:if(s){const t="A node can have at most one tag";n.push(new m.YAMLSemanticError(e,t))}s=!0}if(o){const n=e.anchor,r=t.getNode(n);r&&(t.map[t.newName(n)]=r),t.map[n]=e}let u;if(e.type===f.Type.ALIAS){if(o||s){const t="An alias node must not specify any properties";n.push(new m.YAMLSemanticError(e,t))}const r=e.rawValue,i=t.getNode(r);if(!i){const t="Aliased anchor not found: ".concat(r);return n.push(new m.YAMLReferenceError(e,t)),null}u=new c.default(i),t._cstAliases.push(u)}else{const o=this.resolveTagName(e);if(o)u=r.resolveNodeWithFallback(this,e,o);else{if(e.type!==f.Type.PLAIN){const t="Failed to resolve ".concat(e.type," node here");return n.push(new m.YAMLSyntaxError(e,t)),null}try{u=r.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),n.push(t),null}}}if(u){u.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(u.cstNode=e),this.options.keepNodeTypes&&(u.type=e.type);const t=i.before.join("\n");t&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(t):t);const n=i.after.join("\n");n&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(n):n)}return e.resolved=u}listNonDefaultTags(){return(0,a.default)(this.contents).filter((e=>0!==e.indexOf(u.default.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}stringifyTag(e){if("1.0"===(this.version||this.options.version)){const t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];const n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}{let t=this.tagPrefixes.find((t=>0===e.indexOf(t.prefix)));if(!t){const n=this.getDefaults().tagPrefixes;t=n&&n.find((t=>0===e.indexOf(t.prefix)))}if(!t)return"!"===e[0]?e:"!<".concat(e,">");const n=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return t.handle+n}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:n,maxAliasCount:r}=this.options,o=t&&("string"!=typeof e||!(this.contents instanceof d.default)),s={doc:this,keep:o,mapAsMap:o&&!!n,maxAliasCount:r},i=Object.keys(this.anchors.map);return i.length>0&&(s.anchors=i.map((e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]})))),(0,h.default)(this.contents,e,s)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=!1;if(this.version){let n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}const n=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:r,prefix:o})=>{n.some((e=>0===e.indexOf(o)))&&(e.push("%TAG ".concat(r," ").concat(o)),t=!0)})),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));const r={anchors:{},doc:this,indent:""};let o=!1,i=null;if(this.contents){this.contents instanceof p.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),r.forceBlockIndent=!!this.comment,i=this.contents.comment);const n=i?null:()=>o=!0,a=this.schema.stringify(this.contents,r,(()=>i=null),n);e.push((0,s.default)(a,"",i))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,r));return this.comment&&(o&&!i||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}t.default=D,n=D,r="defaults",o={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}},r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o}));r(at);var ut=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(_),r=s(at),o=s(it);function s(e){return e&&e.__esModule?e:{default:e}}const i={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};class a extends r.default{constructor(e){super(Object.assign({},i,e))}}function u(e,t){const r=(0,n.default)(e),o=new a(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new m.YAMLSemanticError(r[1],e))}return o}var c={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const s=Object.assign({},r.default.defaults[i.version],i);return new o.default(s).createNode(e,t,n)},defaultOptions:i,Document:a,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach((e=>(0,V.warn)(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const r=[];let o;for(const s of(0,n.default)(e)){const e=new a(t);e.parse(s,o),r.push(e),o=e}return r},parseCST:n.default,parseDocument:u,stringify:function(e,t){const n=new a(t);return n.contents=e,String(n)}};t.default=c}));r(ut);var ct=ut.default,lt=o((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));r(lt),lt.defineParents;var pt=o((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));r(pt),pt.getPointText;var ft=o((function(e,t){function n(e,t){if(t.position.end.offsete.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type&&("mappingValue"===e.type||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){lt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n1&&"document"!==n.type&&"documentHead"!==n.type){var s=n.position.end,i=t[s.line-1].trailingAttachableNode;(!i||s.column>=i.position.end.column)&&(t[s.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var a=n.position,u=0,c=(r=a.start,[(s=a.end).line].concat(r.line===s.line?[]:r.line));u=p.position.end.column)&&(t[l-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var o=e.position.start.line,s=t[o-1].trailingAttachableNode;if(s){if(s.trailingComment)throw new Error("Unexpected multiple trailing comment at "+pt.getPointText(e.position.start));return lt.defineParents(e,s),void(s.trailingComment=e)}for(var i=o;i>=r.position.start.line;i--){var a=t[i-1].trailingNode,u=void 0;if(a)u=a;else{if(i===o||!t[i-1].comment)continue;u=t[i-1].comment._parent}for(;;){if(n(u,e))return lt.defineParents(e,u),void u.endComments.push(e);if(!u._parent)break;u=u._parent}break}for(i=o+1;i<=r.position.end.line;i++){var c=t[i-1].leadingAttachableNode;if(c)return lt.defineParents(e,c),void c.leadingComments.push(e)}var l=r.children[1];lt.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));r(ft),ft.attachComments;var dt=o((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));r(dt),dt.createNode;var ht,gt=(ht=l)&&ht.default||ht,mt=o((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return gt.__assign(gt.__assign({},dt.createNode("root",e)),{children:t,comments:n})}}));r(mt),mt.createRoot;var yt=o((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}}));r(yt),yt.removeCstBlankLine;var Dt=o((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));r(Dt),Dt.createLeadingCommentAttachable;var vt=o((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));r(vt),vt.createTrailingCommentAttachable;var Et=o((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return gt.__assign(gt.__assign({},Dt.createLeadingCommentAttachable()),vt.createTrailingCommentAttachable())}}));r(Et),Et.createCommentAttachable;var bt=o((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("alias",e)),Et.createCommentAttachable()),t),{value:n})}}));r(bt),bt.createAlias;var Ct=o((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return bt.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));r(Ct),Ct.transformAlias;var At=o((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return gt.__assign(gt.__assign({},e),{type:"blockFolded"})}}));r(At),At.createBlockFolded;var wt=o((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,o,s){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("blockValue",e)),Dt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:s})}}));r(wt),wt.createBlockValue;var St=o((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));r(St),St.PropLeadingCharacter;var xt=o((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("anchor",e)),{value:t})}}));r(xt),xt.createAnchor;var Ft=o((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("comment",e)),{value:t})}}));r(Ft),Ft.createComment;var Tt=o((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));r(Tt),Tt.createContent;var kt=o((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("tag",e)),{value:t})}}));r(kt),kt.createTag;var _t=o((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],s=null,i=null,a=null,u=0,c=r.props;u=0;a--){var u=e.contents[a];if("COMMENT"===u.type){var c=t.transformNode(u);n&&n.line===c.position.start.line?s.unshift(c):i?r.unshift(c):c.position.start.offset>=e.valueRange.origEnd?o.unshift(c):r.unshift(c)}else i=!0}if(o.length>1)throw new Error("Unexpected multiple document trailing comments at "+pt.getPointText(o[1].position.start));if(s.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+pt.getPointText(s[1].position.start));return{comments:r,endComments:[],documentTrailingComment:Vt.getLast(o)||null,documentHeadTrailingComment:Vt.getLast(s)||null}}(o,t,n),i=s.comments,a=s.endComments,u=s.documentTrailingComment,c=s.documentHeadTrailingComment,l=t.transformNode(e.contents),p=function(e,t,n){var r=Wt.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var s=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o});return{position:s,documentEndPoint:-1===r?s.end:n.transformOffset(e.valueRange.origEnd+3)}}(o,l,t),f=p.position,d=p.documentEndPoint;return(r=t.comments).push.apply(r,gt.__spreadArrays(i,a)),{documentBody:qt.createDocumentBody(f,l,a),documentEndPoint:d,documentTrailingComment:u,documentHeadTrailingComment:c}}}));r(Yt),Yt.transformDocumentBody;var Kt=o((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("documentHead",e)),$t.createEndCommentAttachable(n)),vt.createTrailingCommentAttachable(r)),{children:t})}}));r(Kt),Kt.createDocumentHead;var Jt=o((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],s=!1,i=e.directives.length-1;i>=0;i--){var a=t.transformNode(e.directives[i]);"comment"===a.type?s?r.unshift(a):o.unshift(a):(s=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),s=o.directives,i=o.comments,a=o.endComments,u=function(e,t,n){var r=Wt.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(o.origStart=t[0].position.start.offset),{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,s,t),c=u.position,l=u.endMarkerPoint;return(n=t.comments).push.apply(n,gt.__spreadArrays(i,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Kt.createDocumentHead(c,s,a,e)},documentHeadEndMarkerPoint:l}}}));r(Jt),Jt.transformDocumentHead;var zt=o((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=Jt.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,s=Yt.transformDocumentBody(e,t,o),i=s.documentBody,a=s.documentEndPoint,u=s.documentTrailingComment,c=r(s.documentHeadTrailingComment);return u&&t.comments.push(u),Rt.createDocument(Ut.createPosition(c.position.start,a),c,i,u)}}));r(zt),zt.transformDocument;var Gt=o((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("flowCollection",e)),Et.createCommentAttachable()),t),{children:n})}}));r(Gt),Gt.createFlowCollection;var Ht=o((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return gt.__assign(gt.__assign({},Gt.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));r(Ht),Ht.createFlowMapping;var Xt=o((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign({},dt.createNode("flowMappingItem",e)),Dt.createLeadingCommentAttachable()),{children:[t,n]})}}));r(Xt),Xt.createFlowMappingItem;var Qt=o((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,o=e;r=0;r--)if(n.test(e[r]))return r;return-1}}));r(hn),hn.findLastCharIndex;var gn=o((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return dn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:hn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));r(gn),gn.transformPlain;var mn=o((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return gt.__assign(gt.__assign({},e),{type:"quoteDouble"})}}));r(mn),mn.createQuoteDouble;var yn=o((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("quoteValue",e)),t),Et.createCommentAttachable()),{value:n})}}));r(yn),yn.createQuoteValue;var Dn=o((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return yn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));r(Dn),Dn.transformAstQuoteValue;var vn=o((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return mn.createQuoteDouble(Dn.transformAstQuoteValue(e,t))}}));r(vn),vn.transformQuoteDouble;var En=o((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return gt.__assign(gt.__assign({},e),{type:"quoteSingle"})}}));r(En),En.createQuoteSingle;var bn=o((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return En.createQuoteSingle(Dn.transformAstQuoteValue(e,t))}}));r(bn),bn.transformQuoteSingle;var Cn=o((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("sequence",e)),Dt.createLeadingCommentAttachable()),$t.createEndCommentAttachable()),t),{children:n})}}));r(Cn),Cn.createSequence;var An=o((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("sequenceItem",e)),Et.createCommentAttachable()),$t.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(An),An.createSequenceItem;var wn=o((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Qt.extractComments(e.cstNode.items,t).map((function(n,r){Pt.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return An.createSequenceItem(Ut.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return Cn.createSequence(Ut.createPosition(n[0].position.start,Vt.getLast(n).position.end),t.transformContent(e),n)}}));r(wn),wn.transformSeq;var Sn=o((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Ct.transformAlias(e,t);case"BLOCK_FOLDED":return Nt.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Mt.transformBlockLiteral(e,t);case"COMMENT":return Lt.transformComment(e,t);case"DIRECTIVE":return jt.transformDirective(e,t);case"DOCUMENT":return zt.transformDocument(e,t);case"FLOW_MAP":return sn.transformFlowMap(e,t);case"FLOW_SEQ":return cn.transformFlowSeq(e,t);case"MAP":return fn.transformMap(e,t);case"PLAIN":return gn.transformPlain(e,t);case"QUOTE_DOUBLE":return vn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return bn.transformQuoteSingle(e,t);case"SEQ":return wn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));r(Sn),Sn.transformNode;var xn=o((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));r(xn),xn.createError;var Fn=o((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return xn.createError(e.message,t.text,t.transformRange(n))}}));r(Fn),Fn.transformError;var Tn=o((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));r(Tn),Tn.createPoint;var kn=o((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Tn.createPoint(e,n.line+1,n.column+1)}}));r(kn),kn.transformOffset;var _n=o((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Ut.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));r(_n),_n.transformRange;var On=o((function(e,t){t.__esModule=!0,t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,!0):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,!0):void 0};e.forEach((function(e){return function e(t,n){if(t&&"object"==typeof t&&!0!==n(t))for(var r=0,o=Object.keys(t);re.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var u=t.children;if(u.forEach(e),"document"===t.type){var c=t.children,l=c[0],p=c[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=p.position.start:p.position.start.offset===p.position.end.offset&&(p.position.start=p.position.end=l.position.end)}var f=Bn.createUpdater(t.position,n,r,i),d=Bn.createUpdater(t.position,o,s,a);"endComments"in t&&0!==t.endComments.length&&(f(t.endComments[0].position.start),d(Vt.getLast(t.endComments).position.end));var h=u.filter((function(e){return null!==e}));if(0!==h.length){var g=h[0],m=Vt.getLast(h);f(g.position.start),d(m.position.end),"leadingComments"in g&&0!==g.leadingComments.length&&f(g.leadingComments[0].position.start),"tag"in g&&g.tag&&f(g.tag.position.start),"anchor"in g&&g.anchor&&f(g.anchor.position.start),"trailingComment"in m&&m.trailingComment&&d(m.trailingComment.position.end)}}}}));r(Mn),Mn.updatePositions;var Ln=o((function(e,t){t.__esModule=!0,t.parse=function(e){var t=ct.parseCST(e);On.addOrigRange(t);var n=t.map((function(e){return new ct.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new p.default(e),comments:r,transformOffset:function(e){return kn.transformOffset(e,o)},transformRange:function(e){return _n.transformRange(e,o)},transformNode:function(e){return Sn.transformNode(e,o)},transformContent:function(e){return _t.transformContent(e,o)}},s=n.find((function(e){return 0!==e.errors.length}));if(s)throw Fn.transformError(s.errors[0],o);n.forEach((function(e){return yt.removeCstBlankLine(e.cstNode)}));var i=mt.createRoot(o.transformRange({origStart:0,origEnd:o.text.length}),n.map(o.transformNode),r);return ft.attachComments(i),Mn.updatePositions(i),Nn.removeFakeNodes(i),i}}));r(Ln),Ln.parse;var In=o((function(e,t){t.__esModule=!0,gt.__exportStar(Ln,t)}));r(In);const{hasPragma:Pn}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};var jn={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=In.parse(e);return delete t.comments,t}catch(e){throw e&&e.position?function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,e.position):e}},hasPragma:Pn,locStart:e=>e.position.start.offset,locEnd:e=>e.position.end.offset}}},Rn=jn.parsers;e.default=jn,e.parsers=Rn,Object.defineProperty(e,"__esModule",{value:!0})}(t)},9691:function(e,t,n){e.exports=function(){"use strict";var e="prettier",t="2.0.5",r="Prettier is an opinionated code formatter",o="./bin/prettier.js",s="prettier/prettier",i="https://prettier.io",a="James Long",u="./index.js",c={node:">=10.13.0"},l={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},p={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},f={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},d={name:e,version:t,description:r,bin:o,repository:s,homepage:i,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:p,scripts:f},h=Object.freeze({__proto__:null,name:e,version:t,description:r,bin:o,repository:s,homepage:i,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:p,scripts:f,default:d});function g(){}function m(e,t,n,r,o){for(var s=0,i=t.length,a=0,u=0;se.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(u+=c.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function y(e){return{newPos:e.newPos,components:e.components.slice(0)}}g.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var o=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var i=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,u=1,c=i+a,l=[{newPos:-1,components:[]}],p=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=i&&p+1>=a)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var r=void 0,c=l[n-1],p=l[n+1],f=(p?p.newPos:0)-n;c&&(l[n-1]=void 0);var d=c&&c.newPos+1=i&&f+1>=a)return s(m(o,r.components,t,e,o.useLongestToken));l[n]=r}else l[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>c)return r();f()||e()}),0)}();else for(;u<=c;){var d=f();if(d)return d}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,s=n.length,i=e.newPos,a=i-r,u=0;i+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],s=0;function i(){var e={};for(o.push(e);s2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=B(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,s=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!u(t+1,s[t],o,i)&&++c>l)return!1;t++}}return!0}for(var h=0;h0?S[0]:" ",F=S.length>0?S.substr(1):S,T=C.linedelimiters[w];if(" "===x)A++;else if("-"===x)s.splice(A,1),i.splice(A,1);else if("+"===x)s.splice(A,0,F),i.splice(A,0,T),A++;else if("\\"===x){var k=C.lines[w-1]?C.lines[w-1][0]:null;"+"===k?r=!0:"-"===k&&(o=!0)}}}if(r)for(;!s[s.length-1];)s.pop(),i.pop();else o&&(s.push(""),i.push("\n"));for(var _=0;_0?u(g.lines.slice(-i.context)):[],l-=f.length,p-=f.length)}(s=f).push.apply(s,T(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=o.length:d+=o.length}else{if(l)if(o.length<=2*i.context&&e=a.length-2&&o.length<=i.context){var E=/\n$/.test(n),b=/\n$/.test(r),C=0==o.length&&f.length>v.oldLines;!E&&C&&f.splice(v.oldLines,0,"\\ No newline at end of file"),(E||C)&&b||f.push("\\ No newline at end of file")}c.push(v),l=0,p=0,f=[]}d+=o.length,h+=o.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")},canonicalize:O}),ne=Object.freeze({__proto__:null,default:{}});const re=/[\\/]/;function oe(e){return e.split(re).pop()}var se=Object.freeze({__proto__:null,extname:function(e){const t=oe(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:oe,isAbsolute:function(){return!0}}),ie=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ae=[],ue=[],ce="undefined"!=typeof Uint8Array?Uint8Array:Array,le=!1;function pe(){le=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ae[i>>12&63]+ae[i>>6&63]+ae[63&i]);var i;return o.join("")}function de(e){var t;le||pe();for(var n=e.length,r=n%3,o="",s=[],i=16383,a=0,u=n-r;au?u:a+i));return 1===r?(t=e[n-1],o+=ae[t>>2],o+=ae[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=ae[t>>10],o+=ae[t>>4&63],o+=ae[t<<2&63],o+="="),s.push(o),s.join("")}function he(e,t,n,r,o){var s,i,a=8*o-r-1,u=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+e[t+p],p+=f,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=r;l>0;i=256*i+e[t+p],p+=f,l-=8);if(0===s)s=1-c;else{if(s===u)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),s-=c}return(d?-1:1)*i*Math.pow(2,s-r)}function ge(e,t,n,r,o,s){var i,a,u,c=8*s-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=l?(a=0,i=l):i+p>=1?(a=(t*u-1)*Math.pow(2,o),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+d]=255&a,d+=h,a/=256,o-=8);for(i=i<0;e[n+d]=255&i,d+=h,i/=256,c-=8);e[n+d-h]|=128*g}var me={}.toString,ye=Array.isArray||function(e){return"[object Array]"==me.call(e)};function De(){return Ee.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ve(e,t){if(De()=De())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De().toString(16)+" bytes");return 0|e}function xe(e){return!(null==e||!e._isBuffer)}function Fe(e,t){if(xe(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ze(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return et(e).length;default:if(r)return Ze(e).length;t=(""+t).toLowerCase(),r=!0}}function Te(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ve(this,t,n);case"utf8":case"utf-8":return Re(this,t,n);case"ascii":return $e(this,t,n);case"latin1":case"binary":return qe(this,t,n);case"base64":return je(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function ke(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _e(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Ee.from(t,r)),xe(t))return 0===t.length?-1:Oe(e,t,n,r,o);if("number"==typeof t)return t&=255,Ee.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Oe(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Oe(e,t,n,r,o){var s,i=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,u/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(s=n;sa&&(n=a-u),s=n;s>=0;s--){for(var p=!0,f=0;fo&&(r=o):r=o;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;i>8,o=n%256,s.push(o),s.push(r);return s}(t,e.length-n),e,n,r)}function je(e,t,n){return 0===t&&n===e.length?de(e):de(e.slice(t,n))}function Re(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(s=e[o+1]))&&(u=(31&c)<<6|63&s)>127&&(l=u);break;case 3:s=e[o+1],i=e[o+2],128==(192&s)&&128==(192&i)&&(u=(15&c)<<12|(63&s)<<6|63&i)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[o+1],i=e[o+2],a=e[o+3],128==(192&s)&&128==(192&i)&&128==(192&a)&&(u=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=Ue)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ee.prototype.compare=function(e,t,n,r,o){if(!xe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),a=Math.min(s,i),u=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return Ne(this,e,t,n);case"utf8":case"utf-8":return Be(this,e,t,n);case"ascii":return Me(this,e,t,n);case"latin1":case"binary":return Le(this,e,t,n);case"base64":return Ie(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},Ee.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ue=4096;function $e(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;oo)&&(n=o);for(var s="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ke(e,t,n,r,o,s){if(!xe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function Je(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function ze(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Ge(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function He(e,t,n,r,o){return o||Ge(e,0,n,4),ge(e,t,n,r,23,4),n+4}function Xe(e,t,n,r,o){return o||Ge(e,0,n,8),ge(e,t,n,r,52,8),n+8}Ee.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ee.prototype.readUInt8=function(e,t){return t||Ye(e,1,this.length),this[e]},Ee.prototype.readUInt16LE=function(e,t){return t||Ye(e,2,this.length),this[e]|this[e+1]<<8},Ee.prototype.readUInt16BE=function(e,t){return t||Ye(e,2,this.length),this[e]<<8|this[e+1]},Ee.prototype.readUInt32LE=function(e,t){return t||Ye(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ee.prototype.readUInt32BE=function(e,t){return t||Ye(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ee.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ye(e,t,this.length);for(var r=this[e],o=1,s=0;++s=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ee.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ye(e,t,this.length);for(var r=t,o=1,s=this[e+--r];r>0&&(o*=256);)s+=this[e+--r]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*t)),s},Ee.prototype.readInt8=function(e,t){return t||Ye(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ee.prototype.readInt16LE=function(e,t){t||Ye(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ee.prototype.readInt16BE=function(e,t){t||Ye(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ee.prototype.readInt32LE=function(e,t){return t||Ye(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ee.prototype.readInt32BE=function(e,t){return t||Ye(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ee.prototype.readFloatLE=function(e,t){return t||Ye(e,4,this.length),he(this,e,!0,23,4)},Ee.prototype.readFloatBE=function(e,t){return t||Ye(e,4,this.length),he(this,e,!1,23,4)},Ee.prototype.readDoubleLE=function(e,t){return t||Ye(e,8,this.length),he(this,e,!0,52,8)},Ee.prototype.readDoubleBE=function(e,t){return t||Ye(e,8,this.length),he(this,e,!1,52,8)},Ee.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Ke(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+n},Ee.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,255,0),Ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ee.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Je(this,e,t,!0),t+2},Ee.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Je(this,e,t,!1),t+2},Ee.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),Ee.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ze(this,e,t,!0),t+4},Ee.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},Ee.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Ke(this,e,t,n,o-1,-o)}var s=0,i=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+n},Ee.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Ke(this,e,t,n,o-1,-o)}var s=n-1,i=1,a=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/i>>0)-a&255;return t+n},Ee.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,127,-128),Ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ee.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Je(this,e,t,!0),t+2},Ee.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Je(this,e,t,!1),t+2},Ee.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ze(this,e,t,!0),t+4},Ee.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},Ee.prototype.writeFloatLE=function(e,t,n){return He(this,e,t,!0,n)},Ee.prototype.writeFloatBE=function(e,t,n){return He(this,e,t,!1,n)},Ee.prototype.writeDoubleLE=function(e,t,n){return Xe(this,e,t,!0,n)},Ee.prototype.writeDoubleBE=function(e,t,n){return Xe(this,e,t,!1,n)},Ee.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(s<1e3||!Ee.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function et(e){return function(e){var t,n,r,o,s,i;le||pe();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[a-2]?2:"="===e[a-1]?1:0,i=new ce(3*a/4-s),r=s>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,i[u++]=o>>8&255,i[u++]=255&o;return 2===s?(o=ue[e.charCodeAt(t)]<<2|ue[e.charCodeAt(t+1)]>>4,i[u++]=255&o):1===s&&(o=ue[e.charCodeAt(t)]<<10|ue[e.charCodeAt(t+1)]<<4|ue[e.charCodeAt(t+2)]>>2,i[u++]=o>>8&255,i[u++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function tt(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function nt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function st(e,t){return e(t={exports:{}},t.exports),t.exports}function it(e){return e&&e.default||e}var at=it(ne);var ut=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:at.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){at.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,o=0;for(;;){let s=e[r++];if(s===this.newLineCharacter)t=e.slice(o,r),n.push(t),o=r;else if(!s)break}let s=e.slice(o,r);return s.length&&n.push(s),n}_readChunk(e){let t,n=0;const r=[];do{const e=new Ee(this.options.readChunk);t=at.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let o=Ee.concat(r);return t=0||(o[n]=e[n]);return o}function gt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mt(){throw new Error("setTimeout has not been defined")}function yt(){throw new Error("clearTimeout has not been defined")}var Dt=mt,vt=yt;function Et(e){if(Dt===setTimeout)return setTimeout(e,0);if((Dt===mt||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(e,0);try{return Dt(e,0)}catch(t){try{return Dt.call(null,e,0)}catch(t){return Dt.call(this,e,0)}}}"function"==typeof ie.setTimeout&&(Dt=setTimeout),"function"==typeof ie.clearTimeout&&(vt=clearTimeout);var bt,Ct=[],At=!1,wt=-1;function St(){At&&bt&&(At=!1,bt.length?Ct=bt.concat(Ct):wt=-1,Ct.length&&xt())}function xt(){if(!At){var e=Et(St);At=!0;for(var t=Ct.length;t;){for(bt=Ct,Ct=[];++wt1)for(var n=1;nconsole.error("SEMVER",...e):()=>{};var $t={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},qt=st((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=$t,r=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let i=0;const a=(e,t,n)=>{const a=i++;Ut(a,t),s[e]=a,o[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(o[s.NUMERICIDENTIFIER],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[s.NUMERICIDENTIFIERLOOSE],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(o[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(o[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(o[s.BUILDIDENTIFIER],"(?:\\.").concat(o[s.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(o[s.MAINVERSION]).concat(o[s.PRERELEASE],"?").concat(o[s.BUILD],"?")),a("FULL","^".concat(o[s.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(o[s.MAINVERSIONLOOSE]).concat(o[s.PRERELEASELOOSE],"?").concat(o[s.BUILD],"?")),a("LOOSE","^".concat(o[s.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(o[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(o[s.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:".concat(o[s.PRERELEASE],")?").concat(o[s.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[s.PRERELEASELOOSE],")?").concat(o[s.BUILD],"?")+")?)?"),a("XRANGE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",o[s.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(o[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(o[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(o[s.GTLT],"\\s*(").concat(o[s.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],"|").concat(o[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(o[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*")}));qt.re,qt.src,qt.t,qt.tildeTrimReplace,qt.caretTrimReplace,qt.comparatorTrimReplace;const Vt=/^[0-9]+$/,Wt=(e,t)=>{const n=Vt.test(e),r=Vt.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eWt(t,e)};const{MAX_LENGTH:Kt,MAX_SAFE_INTEGER:Jt}=$t,{re:zt,t:Gt}=qt,{compareIdentifiers:Ht}=Yt;class Xt{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Xt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Kt)throw new TypeError("version is longer than ".concat(Kt," characters"));Ut("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?zt[Gt.LOOSE]:zt[Gt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Jt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var Qt=Xt;var Zt=(e,t,n)=>new Qt(e,n).compare(new Qt(t,n));var en=(e,t,n)=>Zt(e,t,n)<0;var tn=(e,t,n)=>Zt(e,t,n)>=0,nn=st((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:dn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:ln},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:dn,description:nn(an()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:ln},printWidth:{since:"0.0.0",category:dn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:hn,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:nn(sn()),cliCategory:pn},rangeStart:{since:"1.4.0",category:hn,type:"int",default:0,range:{start:0,end:1/0,step:1},description:nn(on()),cliCategory:pn},requirePragma:{since:"1.7.0",category:hn,type:"boolean",default:!1,description:nn(rn()),cliCategory:fn},tabWidth:{type:"int",category:dn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:dn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},mn=it(h);const yn={compare:Zt,lt:en,gte:tn},Dn=mn.version,vn=gn.options;var En={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const o=Dn.split("-",1)[0],s=((e,t)=>Object.entries(e).map((([e,n])=>Object.assign({[t]:e},n))))(Object.assign({},...e.map((({options:e})=>e)),vn),"name").filter((e=>i(e)&&a(e))).sort(((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(i).sort(((e,t)=>yn.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>i(e)&&a(e))));const n=e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).reduce(((e,n)=>(e[n.name]=n.defaultOptions[t.name],e)),{});return Object.assign({},t,{pluginDefaults:n})}));return{languages:e.reduce(((e,t)=>e.concat(t.languages||[])),[]).filter(i),options:s};function i(e){return t||!("since"in e)||e.since&&yn.gte(o,e.since)}function a(e){return n||!("deprecated"in e)||e.deprecated&&yn.lt(o,e.deprecated)}}},bn=function(e,t){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},bn(e,t)};var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function wn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i}function Sn(e){return this instanceof Sn?(this.v=e,this):new Sn(e)}var xn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}bn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Cn},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(i,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof Sn?Promise.resolve(n.value.v).then(u,c):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:Sn(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=An(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),Fn=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((e=>t.apiDescriptor.value(e))).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n])))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));ot(Fn),Fn.apiDescriptor;var Tn=it(xn),kn=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(Fn,t)}));ot(kn);var _n=/[|\\{}()[\]^$+*?.]/g,On=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(_n,"\\$&")},Nn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Bn=st((function(e){var t={};for(var n in Nn)Nn.hasOwnProperty(n)&&(t[Nn[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var s=r[o].channels,i=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:s}),Object.defineProperty(r[o],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(r,o,s),a=Math.max(r,o,s),u=a-i;return a===i?t=0:r===a?t=(o-s)/u:o===a?t=2+(s-r)/u:s===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+a)/2,[t,100*(a===i?0:n<=.5?u/(a+i):u/(2-a-i)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,s,i=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(i,a,u),l=c-Math.min(i,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?o=s=0:(s=l/c,t=p(i),n=p(a),r=p(u),i===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,s,i=1/0;for(var a in Nn)if(Nn.hasOwnProperty(a)){var u=(o=e,s=Nn[a],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,s,i=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[s=255*u,s,s];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*s;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return r=(2-s)*i,n=s*a,[o,100*(n=(n/=(t=(2-s)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,s,i,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:s=n,i=o,a=c;break;case 1:s=o,i=n,a=c;break;case 2:s=c,i=n,a=o;break;case 3:s=c,i=o,a=n;break;case 4:s=o,i=c,a=n;break;case 5:s=n,i=c,a=o}return[255*s,255*i,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,s=e[1]/100,i=e[2]/100;return n=-.9689*o+1.8758*s+.0415*i,r=.0557*o+-.204*s+1.057*i,t=(t=3.2406*o+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),i=Math.pow(t,3),a=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],s=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.max(Math.max(n,r),o),i=Math.min(Math.min(n,r),o),a=s-i;return t=a<=0?0:s===n?(r-o)/a%6:s===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,s=[0,0,0],i=t%1*6,a=i%1,u=1-a;switch(Math.floor(i)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=u,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=u,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=u}return o=(1-n)*r,[255*(n*s[0]+o),255*(n*s[1]+o),255*(n*s[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Mn(e){var t=function(){for(var e={},t=Object.keys(Bn),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var jn=Pn,Rn=st((function(e){const t=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(s,0)},o.color.ansi256={ansi256:n(s,0)},o.color.ansi16m={rgb:r(i,0)},o.bgColor.ansi={ansi:t(s,10)},o.bgColor.ansi256={ansi256:n(s,10)},o.bgColor.ansi16m={rgb:r(i,10)};for(let e of Object.keys(jn)){if("object"!=typeof jn[e])continue;const s=jn[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(o.color.ansi[e]=t(s.ansi16,0),o.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(o.color.ansi256[e]=n(s.ansi256,0),o.bgColor.ansi256[e]=n(s.ansi256,10)),"rgb"in s&&(o.color.ansi16m[e]=r(s.rgb,0),o.bgColor.ansi16m[e]=r(s.rgb,10))}return o}})})),Un={EOL:"\n"},$n=(e,t)=>{t=t||Rt.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in qn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in qn))||"codeship"===qn.CI_NAME?1:t;if("TEAMCITY_VERSION"in qn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(qn.TEAMCITY_VERSION)?1:0;if("truecolor"===qn.COLORTERM)return 3;if("TERM_PROGRAM"in qn){const e=parseInt((qn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(qn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(qn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(qn.TERM)||"COLORTERM"in qn?1:(qn.TERM,t)}(e),0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Vn=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Vn=!0),"FORCE_COLOR"in qn&&(Vn=0===qn.FORCE_COLOR.length||0!==parseInt(qn.FORCE_COLOR,10));var Yn={supportsColor:Wn,stdout:Wn(Rt.stdout),stderr:Wn(Rt.stderr)};const Kn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,zn=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Gn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Xn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Hn.get(e)||e}function Qn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(zn)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Gn,((e,t,n)=>t?Xn(t):n)))}else n.push(Number(t));return n}function Zn(e){Jn.lastIndex=0;const t=[];let n;for(;null!==(n=Jn.exec(e));){const e=n[1];if(n[2]){const r=Qn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function er(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var tr=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Kn,((t,s,i,a,u,c)=>{if(s)o.push(Xn(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:er(e,n)(t)),n.push({inverse:i,styles:Zn(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(er(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},nr=st((function(e){const t=Yn.stdout,n="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),s=Object.create(null);function i(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}n&&(Rn.blue.open="");for(const e of Object.keys(Rn))Rn[e].closeRe=new RegExp(On(Rn[e].close),"g"),s[e]={get(){const t=Rn[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},Rn.color.closeRe=new RegExp(On(Rn.color.close),"g");for(const e of Object.keys(Rn.color.ansi))o.has(e)||(s[e]={get(){const t=this.level;return function(){const n={open:Rn.color[r[t]][e].apply(null,arguments),close:Rn.color.close,closeRe:Rn.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Rn.bgColor.closeRe=new RegExp(On(Rn.bgColor.close),"g");for(const e of Object.keys(Rn.bgColor.ansi))o.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:Rn.bgColor[r[t]][e].apply(null,arguments),close:Rn.bgColor.close,closeRe:Rn.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),s);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{const r=["".concat(nr.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(nr.default.blue("string"==typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));ot(rr),rr.commonDeprecatedHandler;var or=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(rr,t)}));ot(or);var sr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(nr.default.red(n.descriptor.key(e))," value."),"Expected ".concat(nr.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(nr.default.red(n.descriptor.value(t)),".")].join(" ")}));ot(sr),sr.commonInvalidHandler;var ir=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(sr,t)}));ot(ir);var ar=[],ur=[],cr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:o})=>{const s=["Ignored unknown option ".concat(nr.default.yellow(n.pair({key:e,value:t})),".")],i=Object.keys(o).sort().find((t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,o=t.length;if(0===r)return o;if(0===o)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;if(0===r)return o;for(var s,i,a,u,c=0;ci?u>i?i+1:u:u>a?a+1:u;return i}(e,t)<3));i&&s.push("Did you mean ".concat(nr.default.blue(n.key(i)),"?")),r.warn(s.join(" "))}}));ot(cr),cr.levenUnknownHandler;var lr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(cr,t)}));ot(lr);var pr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(or,t),Tn.__exportStar(ir,t),Tn.__exportStar(lr,t)}));ot(pr);var fr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),i=Object.create(r);for(const e of n)e in t&&(i[e]=s(t[e],r,o.prototype[e].length));return i}t.createSchema=r;class o{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function s(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=o}));ot(fr),fr.createSchema,fr.Schema;var dr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));ot(dr),dr.AliasSchema;var hr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));ot(hr),hr.AnySchema;var gr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Tn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((({value:e})=>({value:[e]}))))}return n}forward(e,t){const n=[];for(const o of e){const e=t.normalizeForwardResult(this._valueSchema.forward(o,t),o);n.push(...e.map(r))}return n}redirect(e,t){const n=[],o=[];for(const s of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&n.push(e.remain),o.push(...e.redirect.map(r))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));ot(gr),gr.ArraySchema;var mr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}t.BooleanSchema=n}));ot(mr),mr.BooleanSchema;var yr=st((function(e,t){function n(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>n(e,t))):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const o of e)t(o)?n.push(o):r.push(o);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,o=["undefined","object","boolean","number","string"];return n!==r?o.indexOf(n)-o.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));ot(yr),yr.recordFromArray,yr.mapFromArray,yr.createAutoChecklist,yr.partition,yr.isInt,yr.comparePrimitive,yr.normalizeDefaultResult,yr.normalizeValidateResult,yr.normalizeDeprecatedResult,yr.normalizeTransferResult,yr.normalizeForwardResult,yr.normalizeRedirectResult;var Dr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){super(e),this._choices=yr.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(yr.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));ot(Dr),Dr.ChoiceSchema;var vr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}t.NumberSchema=n}));ot(vr),vr.NumberSchema;var Er=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends vr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&yr.isInt(e)}}t.IntegerSchema=n}));ot(Er),Er.IntegerSchema;var br=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}t.StringSchema=n}));ot(br),br.StringSchema;var Cr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(dr,t),Tn.__exportStar(hr,t),Tn.__exportStar(gr,t),Tn.__exportStar(mr,t),Tn.__exportStar(Dr,t),Tn.__exportStar(Er,t),Tn.__exportStar(vr,t),Tn.__exportStar(br,t)}));ot(Cr);var Ar=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=Fn.apiDescriptor,t.defaultUnknownHandler=cr.levenUnknownHandler,t.defaultInvalidHandler=ir.commonInvalidHandler,t.defaultDeprecatedHandler=rr.commonDeprecatedHandler}));ot(Ar),Ar.defaultDescriptor,Ar.defaultUnknownHandler,Ar.defaultInvalidHandler,Ar.defaultDeprecatedHandler;var wr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=Ar.defaultDescriptor,unknown:o=Ar.defaultUnknownHandler,invalid:s=Ar.defaultInvalidHandler,deprecated:i=Ar.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:yr.recordFromArray(e,"name"),normalizeDefaultResult:yr.normalizeDefaultResult,normalizeDeprecatedResult:yr.normalizeDeprecatedResult,normalizeForwardResult:yr.normalizeForwardResult,normalizeRedirectResult:yr.normalizeRedirectResult,normalizeValidateResult:yr.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=s,this._deprecatedHandler=i,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=yr.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const e of Object.keys(this._utils.schemas)){const r=this._utils.schemas[e];if(!(e in t)){const t=yr.normalizeDefaultResult(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(const e of Object.keys(this._utils.schemas)){const n=this._utils.schemas[e];e in t&&(t[e]=n.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,o]=yr.partition(Object.keys(e),(e=>e in this._utils.schemas));for(const o of r){const r=this._utils.schemas[o],s=r.preprocess(e[o],this._utils),i=yr.normalizeValidateResult(r.validate(s,this._utils),s);if(!0!==i){const{value:e}=i,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=yr.normalizeDeprecatedResult(r.deprecated(e,this._utils),s,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(const{value:e}of n){const n={key:o,value:e};if(!this._hasDeprecationWarned(n)){const r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};yr.normalizeForwardResult(r.forward(s,this._utils),s).forEach(a);const c=yr.normalizeRedirectResult(r.redirect(s,this._utils),s);if(c.redirect.forEach(a),"remain"in c){const e=c.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(const r of o){const o=e[r],s=this._unknownHandler(r,o,this._utils);if(s)for(const e of Object.keys(s)){const r={[e]:s[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));ot(wr),wr.normalize,wr.Normalizer;var Sr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(kn,t),Tn.__exportStar(pr,t),Tn.__exportStar(Cr,t),Tn.__exportStar(wr,t),Tn.__exportStar(fr,t)}));ot(Sr);const xr=[],Fr=[],Tr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,o=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;let s,i,a,u,c=0;for(;ci?u>i?i+1:u:u>a?a+1:u;return i};var kr=Tr,_r=Tr;kr.default=_r;var Or={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Nr={};for(const e of Object.keys(Or))Nr[Or[e]]=e;const Br={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Mr=Br;for(const e of Object.keys(Br)){if(!("channels"in Br[e]))throw new Error("missing channels property: "+e);if(!("labels"in Br[e]))throw new Error("missing channel labels property: "+e);if(Br[e].labels.length!==Br[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Br[e];delete Br[e].channels,delete Br[e].labels,Object.defineProperty(Br[e],"channels",{value:t}),Object.defineProperty(Br[e],"labels",{value:n})}function Lr(e){const t=function(){const e={},t=Object.keys(Mr);for(let n=t.length,r=0;r1&&(o-=1)),[360*o,100*s,100*c]},Br.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Br.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*s,100*r]},Br.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},Br.rgb.keyword=function(e){const t=Nr[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(Or)){const i=(s=Or[t],((o=e)[0]-s[0])**2+(o[1]-s[1])**2+(o[2]-s[2])**2);i.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Br.rgb.lab=function(e){const t=Br.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},Br.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,u[e]=255*i;return u},Br.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},Br.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},Br.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},Br.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,0!=(1&i)&&(s=1-s);const u=n+s*(a-n);let c,l,p;switch(i){default:case 6:case 0:c=a,l=u,p=n;break;case 1:c=u,l=a,p=n;break;case 2:c=n,l=a,p=u;break;case 3:c=n,l=u,p=a;break;case 4:c=u,l=n,p=a;break;case 5:c=a,l=n,p=u}return[255*c,255*l,255*p]},Br.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},Br.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},Br.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Br.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},Br.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},Br.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Br.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=null===t?Br.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(i+=60),i},Br.hsv.ansi16=function(e){return Br.rgb.ansi16(Br.hsv.rgb(e),e[2])},Br.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Br.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Br.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Br.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Br.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Br.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,u;return a=i<1?s/(1-i):0,u=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,u/=6,u%=1,[360*u,100*i,100*a]},Br.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},Br.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Br.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let u=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},Br.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Br.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Br.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Br.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Br.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Br.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Br.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Br.gray.hsl=function(e){return[0,0,e[0]]},Br.gray.hsv=Br.gray.hsl,Br.gray.hwb=function(e){return[0,100,e[0]]},Br.gray.cmyk=function(e){return[0,0,0,e[0]]},Br.gray.lab=function(e){return[e[0],0,0]},Br.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Br.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const jr={};Object.keys(Mr).forEach((e=>{jr[e]={},Object.defineProperty(jr[e],"channels",{value:Mr[e].channels}),Object.defineProperty(jr[e],"labels",{value:Mr[e].labels});const t=function(e){const t=Lr(e),n={},r=Object.keys(t);for(let e=r.length,o=0;o{const r=t[n];jr[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Rr=jr,Ur=st((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},o=e=>e,s=(e,t,n)=>[e,t,n],i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=Rr);const o=r?10:0,s={};for(const[r,i]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?s[a]=e(n,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",i(a.color,"ansi",(()=>u(t,"ansi16",o,!1))),i(a.color,"ansi256",(()=>u(n,"ansi256",o,!1))),i(a.color,"ansi16m",(()=>u(r,"rgb",s,!1))),i(a.bgColor,"ansi",(()=>u(t,"ansi16",o,!0))),i(a.bgColor,"ansi256",(()=>u(n,"ansi256",o,!0))),i(a.bgColor,"ansi16m",(()=>u(r,"rgb",s,!0))),a}})})),$r=()=>!1,qr=(e,t=Rt.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}function Kr(e,t){if(0===Wr)return 0;if(qr("color=16m")||qr("color=full")||qr("color=truecolor"))return 3;if(qr("color=256"))return 2;if(e&&!t&&void 0===Wr)return 0;const n=Wr||0;if("dumb"===Vr.TERM)return n;if("win32"===Rt.platform){const e=Un.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Vr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Vr))||"codeship"===Vr.CI_NAME?1:n;if("TEAMCITY_VERSION"in Vr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Vr.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Vr)return 1;if("truecolor"===Vr.COLORTERM)return 3;if("TERM_PROGRAM"in Vr){const e=parseInt((Vr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Vr.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Vr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Vr.TERM)||"COLORTERM"in Vr?1:n}qr("no-color")||qr("no-colors")||qr("color=false")||qr("color=never")?Wr=0:(qr("color")||qr("colors")||qr("color=true")||qr("color=always"))&&(Wr=1),"FORCE_COLOR"in Vr&&(Wr="true"===Vr.FORCE_COLOR?1:"false"===Vr.FORCE_COLOR?0:0===Vr.FORCE_COLOR.length?1:Math.min(parseInt(Vr.FORCE_COLOR,10),3));var Jr={supportsColor:function(e){return Yr(Kr(e,e&&e.isTTY))},stdout:Yr(Kr(!0,$r(1))),stderr:Yr(Kr(!0,$r(2)))};var zr={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let s=0,i="";do{i+=e.substr(s,r-s)+t+n,s=r+o,r=e.indexOf(t,s)}while(-1!==r);return i+=e.substr(s),i},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,s="";do{const i="\r"===e[r-1];s+=e.substr(o,(i?r-1:r)-o)+t+(i?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return s+=e.substr(o),s}};const Gr=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Xr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Zr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function eo(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Zr.get(e)||e}function to(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(o=t.match(Xr)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Qr,((e,t,n)=>t?eo(t):n)))}else n.push(r)}return n}function no(e){Hr.lastIndex=0;const t=[];let n;for(;null!==(n=Hr.exec(e));){const e=n[1];if(n[2]){const r=to(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function ro(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=t.length>0?r[e](...t):r[e]}return r}var oo=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Gr,((t,s,i,a,u,c)=>{if(s)o.push(eo(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:ro(e,n)(t)),n.push({inverse:i,styles:no(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ro(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:so,stderr:io}=Jr,{stringReplaceAll:ao,stringEncaseCRLFWithFirstIndex:uo}=zr,co=["ansi","ansi","ansi256","ansi16m"],lo=Object.create(null);class po{constructor(e){return fo(e)}}const fo=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=so?so.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>bo(t.template,...e),Object.setPrototypeOf(t,ho.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=po,t.template};function ho(e){return fo(e)}for(const[e,t]of Object.entries(Ur))lo[e]={get(){const n=Do(this,yo(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};lo.visible={get(){const e=Do(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const go=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of go)lo[e]={get(){const{level:t}=this;return function(...n){const r=yo(Ur.color[co[t]][e](...n),Ur.color.close,this._styler);return Do(this,r,this._isEmpty)}}};for(const e of go)lo["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=yo(Ur.bgColor[co[t]][e](...n),Ur.bgColor.close,this._styler);return Do(this,r,this._isEmpty)}}};const mo=Object.defineProperties((()=>{}),Object.assign({},lo,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),yo=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},Do=(e,t,n)=>{const r=(...e)=>vo(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,mo),r._generator=e,r._styler=t,r._isEmpty=n,r},vo=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=ao(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=uo(t,o,r,s)),r+t+o};let Eo;const bo=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e1===e.length?"-".concat(e):"--".concat(e),value:e=>Sr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?wo.key(e):""===t?"".concat(wo.key(e)," without an argument"):"".concat(wo.key(e),"=").concat(t)};class So extends Sr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"==typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find((t=>kr(t,e)<3));if(n)return t.logger.warn(["Unknown flag ".concat(Ao.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Ao.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let xo;function Fo(e,t,{logger:n,isCLI:r=!1,passThrough:o=!1}={}){const s=o?Array.isArray(o)?(e,t)=>o.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):Sr.levenUnknownHandler,i=r?wo:Sr.apiDescriptor,a=function(e,{isCLI:t}){const n=[];t&&n.push(Sr.AnySchema.create({name:"_"}));for(const r of e)n.push(To(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(Sr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),u=new Sr.Normalizer(a,{logger:n,unknown:s,descriptor:i}),c=!1!==n;c&&xo&&(u._hasDeprecationWarned=xo);const l=u.normalize(e);return c&&(xo=u._hasDeprecationWarned),l}function To(e,{isCLI:t,optionInfos:n}){let r;const o={name:e.name},s={};switch(e.type){case"int":r=Sr.IntegerSchema,t&&(o.preprocess=e=>Number(e));break;case"string":case"path":r=Sr.StringSchema;break;case"choice":r=Sr.ChoiceSchema,o.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":r=Sr.BooleanSchema;break;case"flag":r=So,o.flags=n.map((e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[]))).reduce(((e,t)=>e.concat(t)),[]);break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):o.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){const e=o.preprocess||(e=>e);o.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?Sr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},s,{valueSchema:r.create(o)})):r.create(Object.assign({},o,{},s))}var ko={normalizeApiOptions:function(e,t,n){return Fo(e,t,n)},normalizeCliOptions:function(e,t,n){return Fo(e,t,Object.assign({isCLI:!0},n))}},_o=e=>e[e.length-1];function Oo(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?Oo(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?Oo(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function No(e){const t=e.nodes&&_o(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,No(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var Bo={locStart:Oo,locEnd:No,composeLoc:function(e,t=e){const n="number"==typeof t?t:-1,r=Oo(e),o=-1!==n?r+n:No(t),s=e.loc.start;return{start:r,end:o,range:[r,o],loc:{start:s,end:-1!==n?{line:s.line,column:s.column+n}:t.loc.end}}}},Mo=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));ot(Mo),Mo.matchToToken;var Lo=st((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Io=(Lo.isExpression,Lo.isStatement,Lo.isIterationStatement,Lo.isSourceElement,Lo.isProblematicIfStatement,Lo.trailingStatement,st((function(e){!function(){var t,n,r,o,s,i;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=new Array(128),i=0;i<128;++i)o[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?s[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()}))),Po=(Io.isDecimalDigit,Io.isHexDigit,Io.isOctalDigit,Io.isWhiteSpace,Io.isLineTerminator,Io.isIdentifierStartES5,Io.isIdentifierPartES5,Io.isIdentifierStartES6,Io.isIdentifierPartES6,st((function(e){!function(){var t=Io;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function i(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(s=e.charCodeAt(n))&&s<=57343))return!1;o=1024*(o-55296)+(s-56320)+65536}if(!i(o))return!1;i=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:o,isReservedWordES6:s,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:i,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return i(e)&&!o(e,t)},isIdentifierES6:function(e,t){return a(e)&&!s(e,t)}}}()}))),jo=(Po.isKeywordES5,Po.isKeywordES6,Po.isReservedWordES5,Po.isReservedWordES6,Po.isRestrictedWord,Po.isIdentifierNameES5,Po.isIdentifierNameES6,Po.isIdentifierES5,Po.isIdentifierES6,st((function(e,t){t.ast=Lo,t.code=Io,t.keyword=Po}))),Ro=(jo.ast,jo.code,jo.keyword,/[|\\{}()[\]^$+*?.]/g),Uo=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ro,"\\$&")},$o={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qo=st((function(e){var t={};for(var n in $o)$o.hasOwnProperty(n)&&(t[$o[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var s=r[o].channels,i=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:s}),Object.defineProperty(r[o],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(r,o,s),a=Math.max(r,o,s),u=a-i;return a===i?t=0:r===a?t=(o-s)/u:o===a?t=2+(s-r)/u:s===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+a)/2,[t,100*(a===i?0:n<=.5?u/(a+i):u/(2-a-i)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,s,i=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(i,a,u),l=c-Math.min(i,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?o=s=0:(s=l/c,t=p(i),n=p(a),r=p(u),i===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,s,i=1/0;for(var a in $o)if($o.hasOwnProperty(a)){var u=(o=e,s=$o[a],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,s,i=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[s=255*u,s,s];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*s;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return r=(2-s)*i,n=s*a,[o,100*(n=(n/=(t=(2-s)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,s,i,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:s=n,i=o,a=c;break;case 1:s=o,i=n,a=c;break;case 2:s=c,i=n,a=o;break;case 3:s=c,i=o,a=n;break;case 4:s=o,i=c,a=n;break;case 5:s=n,i=c,a=o}return[255*s,255*i,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,s=e[1]/100,i=e[2]/100;return n=-.9689*o+1.8758*s+.0415*i,r=.0557*o+-.204*s+1.057*i,t=(t=3.2406*o+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),i=Math.pow(t,3),a=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],s=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.max(Math.max(n,r),o),i=Math.min(Math.min(n,r),o),a=s-i;return t=a<=0?0:s===n?(r-o)/a%6:s===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,s=[0,0,0],i=t%1*6,a=i%1,u=1-a;switch(Math.floor(i)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=u,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=u,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=u}return o=(1-n)*r,[255*(n*s[0]+o),255*(n*s[1]+o),255*(n*s[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Vo(e){var t=function(){for(var e={},t=Object.keys(qo),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Jo=Ko,zo=st((function(e){const t=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(s,0)},o.color.ansi256={ansi256:n(s,0)},o.color.ansi16m={rgb:r(i,0)},o.bgColor.ansi={ansi:t(s,10)},o.bgColor.ansi256={ansi256:n(s,10)},o.bgColor.ansi16m={rgb:r(i,10)};for(let e of Object.keys(Jo)){if("object"!=typeof Jo[e])continue;const s=Jo[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(o.color.ansi[e]=t(s.ansi16,0),o.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(o.color.ansi256[e]=n(s.ansi256,0),o.bgColor.ansi256[e]=n(s.ansi256,10)),"rgb"in s&&(o.color.ansi16m[e]=r(s.rgb,0),o.bgColor.ansi16m[e]=r(s.rgb,10))}return o}})}));const Go=Rt.env;let Ho;function Xo(e){return t=function(e){if(!1===Ho)return 0;if($n("color=16m")||$n("color=full")||$n("color=truecolor"))return 3;if($n("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ho)return 0;const t=Ho?1:0;if("win32"===Rt.platform){const e=Un.release().split(".");return Number(Rt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Go)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Go))||"codeship"===Go.CI_NAME?1:t;if("TEAMCITY_VERSION"in Go)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Go.TEAMCITY_VERSION)?1:0;if("truecolor"===Go.COLORTERM)return 3;if("TERM_PROGRAM"in Go){const e=parseInt((Go.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Go.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Go.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Go.TERM)||"COLORTERM"in Go?1:(Go.TERM,t)}(e),0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Ho=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Ho=!0),"FORCE_COLOR"in Go&&(Ho=0===Go.FORCE_COLOR.length||0!==parseInt(Go.FORCE_COLOR,10));var Qo={supportsColor:Xo,stdout:Xo(Rt.stdout),stderr:Xo(Rt.stderr)};const Zo=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,es=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ts=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ns=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,rs=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function os(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):rs.get(e)||e}function ss(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(ts)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(ns,((e,t,n)=>t?os(t):n)))}else n.push(Number(t));return n}function is(e){es.lastIndex=0;const t=[];let n;for(;null!==(n=es.exec(e));){const e=n[1];if(n[2]){const r=ss(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function as(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var us=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Zo,((t,s,i,a,u,c)=>{if(s)o.push(os(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:as(e,n)(t)),n.push({inverse:i,styles:is(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(as(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},cs=st((function(e){const t=Qo.stdout,n="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),s=Object.create(null);function i(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}n&&(zo.blue.open="");for(const e of Object.keys(zo))zo[e].closeRe=new RegExp(Uo(zo[e].close),"g"),s[e]={get(){const t=zo[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},zo.color.closeRe=new RegExp(Uo(zo.color.close),"g");for(const e of Object.keys(zo.color.ansi))o.has(e)||(s[e]={get(){const t=this.level;return function(){const n={open:zo.color[r[t]][e].apply(null,arguments),close:zo.color.close,closeRe:zo.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});zo.bgColor.closeRe=new RegExp(Uo(zo.bgColor.close),"g");for(const e of Object.keys(zo.bgColor.ansi))o.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:zo.bgColor[r[t]][e].apply(null,arguments),close:zo.bgColor.close,closeRe:zo.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),s);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;ns(e))).join("\n"):e[0]}))):e;var o,s};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Mo),r=s(jo),o=s(cs);function s(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){return o.default.supportsColor||e.forceColor}function p(e){let t=o.default;return e.forceColor&&(t=new o.default.constructor({enabled:!0,level:1})),t}})));ot(ls),ls.shouldHighlight,ls.getChalk;var ps=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=i,t.default=function(e,t,n,r={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Rt.emitWarning?Rt.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return i(e,{start:{column:n=Math.max(n,0),line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(ls);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let o=!1;const s=/\r\n|[\n\r\u2028\u2029]/;function i(e,t,r={}){const o=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),i=(0,n.getChalk)(r),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(i),u=(e,t)=>o?e(t):t,c=e.split(s),{start:l,end:p,markerLines:f}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,{},e.end),{linesAbove:s=2,linesBelow:i=3}=n||{},a=r.line,u=r.column,c=o.line,l=o.column;let p=Math.max(a-(s+1),0),f=Math.min(t.length,c+i);-1===a&&(p=0),-1===c&&(f=t.length);const d=c-a,h={};if(d)for(let e=0;e<=d;e++){const n=e+a;if(u)if(0===e){const e=t[n-1].length;h[n]=[u,e-u+1]}else if(e===d)h[n]=[0,l];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=u===l?!u||[u,0]:[u,l-u];return{start:p,end:f,markerLines:h}}(t,c,r),d=t.start&&"number"==typeof t.start.column,h=String(p).length;let g=(o?(0,n.default)(e,r):e).split(s).slice(l,p).map(((e,t)=>{const n=l+1+t,o=" ".concat(n).slice(-h),s=" ".concat(o," | "),i=f[n],c=!f[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",u(a.gutter,s.replace(/\d/g," ")),n,u(a.marker,"^").repeat(o)].join(""),c&&r.message&&(t+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,s),e,t].join("")}return" ".concat(u(a.gutter,s)).concat(e)})).join("\n");return r.message&&!d&&(g="".concat(" ".repeat(h+1)).concat(r.message,"\n").concat(g)),o?i.reset(g):g}}));ot(ps),ps.codeFrameColumns;const{ConfigError:fs}=dt,{locStart:ds,locEnd:hs}=Bo,gs=Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptor;function ys(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of gs(n.parsers))Object.defineProperty(t,e,ms(n.parsers,e));return t}function Ds(e,t){if(t=t||ys(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:ds,locEnd:hs};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new fs("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var vs={parse:function(e,t){const n=ys(t),r=Object.keys(n).reduce(((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse})),{}),o=Ds(t,n);try{return o.preprocess&&(e=o.preprocess(e,t)),{text:e,ast:o.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const r=ps;throw t.codeFrame=r.codeFrameColumns(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Ds};const{UndefinedParserError:Es}=dt,{getSupportInfo:bs}=En,{resolveParser:Cs}=vs,As={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function ws(e,t){const n=se.basename(e).toLowerCase(),r=bs({plugins:t}).languages.filter((e=>null!==e.since));let o=r.find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.find((e=>e.toLowerCase()===n))));if(!o&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=at.openSync(e,"r")}catch(e){return""}try{const e=new ut(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch(e){return""}finally{try{at.closeSync(t)}catch(e){}}}(e);o=r.find((e=>e.interpreters&&e.interpreters.includes(t)))}return o&&o.parsers[0]}var Ss={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=bs({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,o=Object.assign({},As,{},ct(r.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!n.parser)if(n.filepath){if(n.parser=ws(n.filepath,n.plugins),!n.parser)throw new Es("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const s=Cs(ko.normalizeApiOptions(n,[r.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;const i=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find((e=>e.printers&&e.printers[t]));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=i.printers[n.astFormat];const a=r.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[i.name])).reduce(((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[i.name]})),{}),u=Object.assign({},o,{},a);return Object.keys(u).forEach((e=>{null==n[e]&&(n[e]=u[e])})),"json"===n.parser&&(n.trailingComma="none"),ko.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(As)},t))},hiddenDefaults:As,inferParser:ws};var xs=function e(t,n,r){if(Array.isArray(t))return t.map((t=>e(t,n,r))).filter(Boolean);if(!t||"object"!=typeof t)return t;const o={};for(const r of Object.keys(t))"function"!=typeof t[r]&&(o[r]=e(t[r],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,o,r);if(null===e)return;if(e)return e}return o};function Fs(){}function Ts(e){return{type:"concat",parts:e}}function ks(e){return{type:"indent",contents:e}}function _s(e,t){return{type:"align",contents:t,n:e}}function Os(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}Fs.ok=function(){},Fs.strictEqual=function(){};const Ns={type:"break-parent"},Bs=Ts([{type:"line",hard:!0},Ns]),Ms=Ts([{type:"line",hard:!0,literal:!0},Ns]);var Ls={concat:Ts,join:function(e,t){const n=[];for(let r=0;r0){for(let e=0;e"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const Ps=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var js=Ps,Rs=Ps;js.default=Rs;const Us=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Is(e);let t=0;for(let n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=js(r)?2:1)}return t};var $s=Us,qs=Us;$s.default=qs;const Vs=/[|\\{}()[\]^$+*?.-]/g;var Ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Vs,"\\$&")};const Ys=/[^\x20-\x7F]/;function Ks(e){return(t,n,r)=>{const o=r&&r.backwards;if(!1===n)return!1;const{length:s}=t;let i=n;for(;i>=0&&i"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(((e,t)=>{e.forEach((e=>{oi[e]=t}))}));const ii={"==":!0,"!=":!0,"===":!0,"!==":!0},ai={"*":!0,"/":!0,"%":!0},ui={">>":!0,">>>":!0,"<<":!0};function ci(e){return e.left?ci(e.left):e}function li(e,t,n){let r=0;for(let o=n=n||0;o(n.match(i.regex)||[]).length?i.quote:s.quote),a}function fi(e,t,n){const r='"'===t?"'":'"',o=e.replace(/\\([\s\S])|(['"])/g,((e,o,s)=>o===r?o:s===t?"\\"+s:s||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(o)?o:"\\"+o)));return t+o+t}function di(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some((e=>hi(e)&&!e.unignore))||e.prettierIgnore)}function hi(e){return"prettier-ignore"===e.value.trim()}function gi(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var mi={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?Ys.test(e)?$s(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ws(t),")+"),"g"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ws(t),")+"),"g"));if(null===n)return 0;const r=new Map;let o=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>o&&(o=n)}for(let e=1;e1?e[e.length-2]:null},getLast:_o,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ni,getNextNonSpaceNonCommentCharacterIndex:ri,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(ri(e,t,n))},skip:Ks,skipWhitespace:Js,skipSpaces:zs,skipToLineEnd:Gs,skipEverythingButNewLine:Hs,skipInlineComment:Xs,skipTrailingComment:Qs,skipNewline:Zs,isNextLineEmptyAfterIndex:ti,isNextLineEmpty:function(e,t,n){return ti(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=zs(e,r,{backwards:!0}),r=Zs(e,r,{backwards:!0}),r=zs(e,r,{backwards:!0}),r!==Zs(e,r,{backwards:!0})},hasNewline:ei,hasNewlineInRange:function(e,t,n){for(let r=t;r=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:Di}=mi,{convertEndOfLineToChars:vi}=yi,{concat:Ei,fill:bi,cursor:Ci}=Ls;let Ai;function wi(e,t){return xi(e,{type:"indent"},t)}function Si(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?xi(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):xi(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function xi(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let o="",s=0,i=0,a=0;for(const e of r)switch(e.type){case"indent":l(),n.useTabs?u(1):c(n.tabWidth);break;case"stringAlign":l(),o+=e.n,s+=e.n.length;break;case"numberAlign":i+=1,a+=e.n;break;default:throw new Error("Unexpected type '".concat(e.type,"'"))}return p(),Object.assign({},e,{value:o,length:s,queue:r});function u(e){o+="\t".repeat(e),s+=n.tabWidth*e}function c(e){o+=" ".repeat(e),s+=e}function l(){n.useTabs?(i>0&&u(i),f()):p()}function p(){a>0&&c(a),f()}function f(){i=0,a=0}}function Fi(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Ti(e,t,n,r,o){let s=t.length;const i=[e],a=[];for(;n>=0;){if(0===i.length){if(0===s)return!0;i.push(t[s-1]),s--;continue}const[e,u,c]=i.pop();if("string"==typeof c)a.push(c),n-=Di(c);else switch(c.type){case"concat":for(let t=c.parts.length-1;t>=0;t--)i.push([e,u,c.parts[t]]);break;case"indent":i.push([wi(e,r),u,c.contents]);break;case"align":i.push([Si(e,c.n,r),u,c.contents]);break;case"trim":n+=Fi(a);break;case"group":if(o&&c.break)return!1;i.push([e,c.break?1:u,c.contents]),c.id&&(Ai[c.id]=i[i.length-1][1]);break;case"fill":for(let t=c.parts.length-1;t>=0;t--)i.push([e,u,c.parts[t]]);break;case"if-break":{const t=c.groupId?Ai[c.groupId]:u;1===t&&c.breakContents&&i.push([e,u,c.breakContents]),2===t&&c.flatContents&&i.push([e,u,c.flatContents]);break}case"line":switch(u){case 2:if(!c.hard){c.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const ki={};function _i(e,t,n,r){const o=[e];for(;0!==o.length;){const e=o.pop();if(e===ki){n(o.pop());continue}let s=!0;if(t&&!1===t(e)&&(s=!1),n&&(o.push(e),o.push(ki)),s)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)o.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&o.push(e.flatContents),e.breakContents&&o.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)o.push(e.expandedStates[t]);else o.push(e.contents);else e.contents&&o.push(e.contents)}}function Oi(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map((e=>Oi(e,t)));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&Oi(e.breakContents,t),r=e.flatContents&&Oi(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=Oi(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Ni(e,t,n){let r=n,o=!1;return _i(e,(function(e){const n=t(e);if(void 0!==n&&(o=!0,r=n),o)return!1})),r}function Bi(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Mi(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Li(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Ii(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Pi(e){if("concat"===e.type){const t=[];for(let n=0;nji(Pi(e))},Ui={builders:Ls,printer:{printDocToString:function(e,t){Ai={};const n=t.printWidth,r=vi(t.endOfLine);let o=0;const s=[[{value:"",length:0,queue:[]},1,e]],i=[];let a=!1,u=[];for(;0!==s.length;){const[e,c,l]=s.pop();if("string"==typeof l){const e="\n"!==r&&l.includes("\n")?l.replace(/\n/g,r):l;i.push(e),o+=Di(e)}else switch(l.type){case"cursor":i.push(Ci.placeholder);break;case"concat":for(let t=l.parts.length-1;t>=0;t--)s.push([e,c,l.parts[t]]);break;case"indent":s.push([wi(e,t),c,l.contents]);break;case"align":s.push([Si(e,l.n,t),c,l.contents]);break;case"trim":o-=Fi(i);break;case"group":switch(c){case 2:if(!a){s.push([e,l.break?1:2,l.contents]);break}case 1:{a=!1;const r=[e,2,l.contents],i=n-o;if(!l.break&&Ti(r,s,i,t))s.push(r);else if(l.expandedStates){const n=l.expandedStates[l.expandedStates.length-1];if(l.break){s.push([e,1,n]);break}for(let r=1;r=l.expandedStates.length){s.push([e,1,n]);break}{const n=[e,2,l.expandedStates[r]];if(Ti(n,s,i,t)){s.push(n);break}}}}else s.push([e,1,l.contents]);break}}l.id&&(Ai[l.id]=s[s.length-1][1]);break;case"fill":{const r=n-o,{parts:i}=l;if(0===i.length)break;const[a,u]=i,p=[e,2,a],f=[e,1,a],d=Ti(p,[],r,t,!0);if(1===i.length){d?s.push(p):s.push(f);break}const h=[e,2,u],g=[e,1,u];if(2===i.length){d?(s.push(h),s.push(p)):(s.push(g),s.push(f));break}i.splice(0,2);const m=[e,c,bi(i)],y=i[0];Ti([e,2,Ei([a,u,y])],[],r,t,!0)?(s.push(m),s.push(h),s.push(p)):d?(s.push(m),s.push(g),s.push(p)):(s.push(m),s.push(g),s.push(f));break}case"if-break":{const t=l.groupId?Ai[l.groupId]:c;1===t&&l.breakContents&&s.push([e,c,l.breakContents]),2===t&&l.flatContents&&s.push([e,c,l.flatContents]);break}case"line-suffix":u.push([e,c,l.contents]);break;case"line-suffix-boundary":u.length>0&&s.push([e,c,{type:"line",hard:!0}]);break;case"line":switch(c){case 2:if(!l.hard){l.soft||(i.push(" "),o+=1);break}a=!0;case 1:if(u.length){s.push([e,c,l]),s.push(...u.reverse()),u=[];break}l.literal?e.root?(i.push(r,e.root.value),o=e.root.length):(i.push(r),o=0):(o-=Fi(i),i.push(r+e.value),o=e.length)}}}const c=i.indexOf(Ci.placeholder);if(-1!==c){const e=i.indexOf(Ci.placeholder,c+1),t=i.slice(0,c).join(""),n=i.slice(c+1,e).join("");return{formatted:t+n+i.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:i.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ni(e,Mi,!1)},isLineNext:function(e){return Ni(e,Bi,!1)},traverseDoc:_i,findInDoc:Ni,mapDoc:Oi,propagateBreaks:function(e){const t=new Set,n=[];_i(e,(function(e){if("break-parent"===e.type&&Li(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Li(n)}),!0)},removeLines:function(e){return Oi(e,Ii)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:Ri};const{getMaxContinuousCount:$i,getStringWidth:qi,getAlignmentSize:Vi,getIndentSize:Wi,skip:Yi,skipWhitespace:Ki,skipSpaces:Ji,skipNewline:zi,skipToLineEnd:Gi,skipEverythingButNewLine:Hi,skipInlineComment:Xi,skipTrailingComment:Qi,hasNewline:Zi,hasNewlineInRange:ea,hasSpaces:ta,isNextLineEmpty:na,isNextLineEmptyAfterIndex:ra,isPreviousLineEmpty:oa,getNextNonSpaceNonCommentCharacterIndex:sa,makeString:ia,addLeadingComment:aa,addDanglingComment:ua,addTrailingComment:ca}=mi;var la={getMaxContinuousCount:$i,getStringWidth:qi,getAlignmentSize:Vi,getIndentSize:Wi,skip:Yi,skipWhitespace:Ki,skipSpaces:Ji,skipNewline:zi,skipToLineEnd:Gi,skipEverythingButNewLine:Hi,skipInlineComment:Xi,skipTrailingComment:Qi,hasNewline:Zi,hasNewlineInRange:ea,hasSpaces:ta,isNextLineEmpty:na,isNextLineEmptyAfterIndex:ra,isPreviousLineEmpty:oa,getNextNonSpaceNonCommentCharacterIndex:sa,makeString:ia,addLeadingComment:aa,addDanglingComment:ua,addTrailingComment:ca};const{concat:pa,line:fa,hardline:da,breakParent:ha,indent:ga,lineSuffix:ma,join:ya,cursor:Da}=Ui.builders,{hasNewline:va,skipNewline:Ea,isPreviousLineEmpty:ba}=mi,{addLeadingComment:Ca,addDanglingComment:Aa,addTrailingComment:wa}=la,Sa=Symbol("child-nodes");function xa(e,t,n){if(!e)return;const{printer:r,locStart:o,locEnd:s}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(o(n[t])<=o(e)&&s(n[t])<=s(e));--t);return void n.splice(t+1,0,e)}}else if(e[Sa])return e[Sa];const i=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.keys(e).filter((e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e)).map((t=>e[t]));return i?(n||Object.defineProperty(e,Sa,{value:n=[],enumerable:!1}),i.forEach((e=>{xa(e,t,n)})),n):void 0}function Fa(e,t,n){const{locStart:r,locEnd:o}=n,s=xa(e,n);let i,a,u=0,c=s.length;for(;u>1,l=s[e];if(r(l)-r(t)<=0&&o(t)-o(l)<=0)return t.enclosingNode=l,void Fa(l,t,n);if(o(l)-r(t)<=0)i=l,u=e+1;else{if(!(o(t)-r(l)<=0))throw new Error("Comment location overlaps with node location");a=l,c=e}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){const{quasis:e}=t.enclosingNode,r=_a(e,t,n);i&&_a(e,i,n)!==r&&(i=null),a&&_a(e,a,n)!==r&&(a=null)}i&&(t.precedingNode=i),a&&(t.followingNode=a)}function Ta(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:o,followingNode:s,enclosingNode:i}=e[0],a=n.printer.getGapRegex&&n.printer.getGapRegex(i)||/^[\s(]*$/;let u,c=n.locStart(s);for(u=r;u>0;--u){const r=e[u-1];Fs.strictEqual(r.precedingNode,o),Fs.strictEqual(r.followingNode,s);const i=t.slice(n.locEnd(r),c);if(!a.test(i))break;c=n.locStart(r)}e.forEach(((e,t)=>{t{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(s(a)-s(t)<=0)return void Ca(t,a);if(i(a)-i(t)>=0)return void wa(t,a)}Fa(t,a,r);const{precedingNode:c,enclosingNode:l,followingNode:p}=a,f=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,d=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,g=e.length-1===u;if(va(n,s(a),{backwards:!0}))f(a,n,r,t,g)||(p?Ca(p,a):c?wa(c,a):Aa(l||t,a));else if(va(n,i(a)))d(a,n,r,t,g)||(c?wa(c,a):p?Ca(p,a):Aa(l||t,a));else if(h(a,n,r,t,g));else if(c&&p){const e=o.length;e>0&&o[e-1].followingNode!==a.followingNode&&Ta(o,n,r),o.push(a)}else c?wa(c,a):p?Ca(p,a):Aa(l||t,a)})),Ta(o,n,r),e.forEach((e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))},printComments:function(e,t,n,r){const o=e.getValue(),s=t(e),i=o&&o.comments;if(!i||0===i.length)return Oa(e,n,s);const a=[],u=[r?";":"",s];return e.each((e=>{const t=e.getValue(),{leading:r,trailing:o}=t;if(r){const r=function(e,t,n){const r=e.getValue(),o=ka(e,n);if(!o)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=va(n.originalText,n.locEnd(r))?va(n.originalText,n.locStart(r),{backwards:!0})?da:fa:" ";return pa([o,e])}return pa([o,da])}(e,0,n);if(!r)return;a.push(r);const o=n.originalText,s=Ea(o,n.locEnd(t));!1!==s&&va(o,s)&&a.push(da)}else o&&u.push(function(e,t,n){const r=e.getValue(),o=ka(e,n);if(!o)return"";const s=n.printer.isBlockComment&&n.printer.isBlockComment(r),i=e.getNode(1),a=e.getNode(2),u=a&&("ClassDeclaration"===a.type||"ClassExpression"===a.type)&&a.superClass===i;if(va(n.originalText,n.locStart(r),{backwards:!0})){const e=ba(n.originalText,r,n.locStart);return ma(pa([da,e?da:"",o]))}return pa(s||u?[" ",o]:[ma(pa([" ",o])),s?"":ha])}(e,0,n))}),"comments"),Oa(e,n,pa(a.concat(u)))},printDanglingComments:function(e,t,n,r){const o=[],s=e.getValue();return s&&s.comments?(e.each((e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||o.push(ka(e,t))}),"comments"),0===o.length?"":n?ya(da,o):ga(pa([da,ya(da,o)]))):""},getSortedChildNodes:xa};function Ba(e,t){const n=Ma(e.stack,t);return-1===n?null:e.stack[n]}function Ma(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var La=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return _o(this.stack)}getNode(e=0){return Ba(this,e)}getParentNode(e=0){return Ba(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let o=_o(n);for(const e of t)o=o[e],n.push(e,o);const s=e(this);return n.length=r,s}callParent(e,t=0){const n=Ma(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return this.stack.push(...r),o}each(e,...t){const{stack:n}=this,{length:r}=n;let o=_o(n);for(const e of t)o=o[e],n.push(e,o);for(let t=0;tfunction(e,t,n,r){const o=Ia(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),s=vs.parse(e,o),{ast:i}=s;e=s.text;const a=i.comments;return delete i.comments,Na.attach(a,i,e,o),r(i,o)}(e,t,n,r)),n)}};const ja=Ui,Ra=ja.builders,{concat:Ua,hardline:$a,addAlignmentToDoc:qa}=Ra,Va=ja.utils;function Wa(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const o=new Map;let s=function e(n,s){const i=n.getValue(),a=i&&"object"==typeof i&&void 0===s;if(a&&o.has(i))return o.get(i);let u;return u=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Ya(n,t,e,s):Na.printComments(n,(n=>Ya(n,t,e,s)),t,s&&s.needsSemi),a&&o.set(i,u),u}(new La(e));return n>0&&(s=qa(Ua([$a,s]),n,t.tabWidth)),Va.propagateBreaks(s),s}function Ya(e,t,n,r){Fs.ok(e instanceof La);const o=e.getValue(),{printer:s}=t;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(o),t.locEnd(o));if(o)try{const r=Pa.printSubtree(e,n,t,Wa);if(r)return r}catch(e){if(rt.PRETTIER_DEBUG)throw e}return s.print(e,t,n,r)}var Ka=Wa;function Ja(e,t,n,r,o){r=r||(()=>!0),o=o||[];const s=n.locStart(e,n.locStart),i=n.locEnd(e,n.locEnd);if(s<=t&&t<=i){for(const s of Na.getSortedChildNodes(e,n)){const i=Ja(s,t,n,r,[e].concat(o));if(i)return i}if(r(e))return{node:e,parentNodes:o}}}function za(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],o=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return o.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var Ga={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),o=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let s;for(s=t.rangeEnd;s>t.rangeStart&&!e[s-1].match(/\S/);--s);const i=Ja(n,o,t,(e=>za(t,e))),a=Ja(n,s,t,(e=>za(t,e)));if(!i||!a)return{rangeStart:0,rangeEnd:0};const u=function(e,t,n){let r=e.node,o=t.node;if(r===o)return{startNode:r,endNode:o};for(const r of t.parentNodes){if(!("Program"!==r.type&&"File"!==r.type&&n.locStart(r)>=n.locStart(e.node)))break;o=r}for(const o of e.parentNodes){if(!("Program"!==o.type&&"File"!==o.type&&n.locEnd(o)<=n.locEnd(t.node)))break;r=o}return{startNode:r,endNode:o}}(i,a,t),{startNode:c,endNode:l}=u;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:Ja},Ha=it(te);const Xa=Ss.normalize,{guessEndOfLine:Qa,convertEndOfLineToChars:Za}=yi,{printer:{printDocToString:eu},debug:{printDocToDebug:tu}}=Ui,nu=Symbol("cursor"),ru={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function ou(e,t,n){const r=t.comments;return r&&(delete t.comments,Na.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function su(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=vs.parse(e,t),{ast:o}=r;if(e=r.text,t.cursorOffset>=0){const e=Ga.findNodeAtOffset(o,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const s=ou(e,o,t),i=Ka(o,t,n),a=eu(i,t);if(function(e){if(e){for(let t=0;t{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}))}}(s),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Za(t.endOfLine)}if(t.cursorOffset>=0){let n,r,o,s,i;if(t.cursorNode&&a.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),o=t.cursorOffset-n,s=a.cursorNodeStart,i=a.cursorNodeText):(n=0,r=e,o=t.cursorOffset,s=0,i=a.formatted),r===i)return{formatted:a.formatted,cursorOffset:s+o};const u=r.split("");u.splice(o,0,nu);const c=i.split(""),l=Ha.diffArrays(u,c);let p=s;for(const e of l)if(e.removed){if(e.value.includes(nu))break}else p+=e.count;return{formatted:a.formatted,cursorOffset:p}}return{formatted:a.formatted}}function iu(e,t){const n=vs.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Qa(e));const o=t.cursorOffset>=0,s=t.rangeStart>0,i=t.rangeEndt[e]-t[n]));for(let r=n.length-1;r>=0;r--){const o=n[r];e=e.slice(0,t[o])+ru[o]+e.slice(t[o])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r(t[o]=n,"")))}}const a="\ufeff"===e.charAt(0);a&&(e=e.slice(1),o&&t.cursorOffset++,s&&t.rangeStart++,i&&t.rangeEnd++),o||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const u=s||i?function(e,t){const n=vs.parse(e,t),{ast:r}=n;e=n.text;const o=Ga.calculateRange(e,t,r),{rangeStart:s,rangeEnd:i}=o,a=e.slice(s,i),u=Math.min(s,e.lastIndexOf("\n",s)+1),c=e.slice(u,s),l=mi.getAlignmentSize(c,t.tabWidth),p=su(a,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=i?m=t.cursorOffset-i+(s+f.length):void 0!==p.cursorOffset&&(m=p.cursorOffset+s),"lf"===t.endOfLine)g=d+f+h;else{const e=Za(t.endOfLine);if(m>=0){const t=[d,f,h];let n=0,r=m;for(;n(m=t,"")))}else g=d.replace(/\n/g,e)+f+h.replace(/\n/g,e)}return{formatted:g,cursorOffset:m}}(e,t):su(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return a&&(u.formatted="\ufeff"+u.formatted,o&&u.cursorOffset++),u}var au={formatWithCursor:(e,t)=>iu(e,t=Xa(t)),parse(e,t,n){t=Xa(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=vs.parse(e,t);return n&&(r.ast=xs(r.ast,t)),r},formatAST(e,t){t=Xa(t);const n=Ka(e,t);return eu(n,t)},formatDoc:(e,t)=>iu(tu(e),t=Xa(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=Xa(t);const n=vs.parse(e,t),{ast:r}=n;return ou(e=n.text,r,t),Ka(r,t)},printDocToString:(e,t)=>eu(e,Xa(t))};var uu=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach((e=>{delete t[e]})),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,((e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:cu,literalline:lu,concat:pu,markAsRoot:fu},utils:{mapDoc:du}}=Ui;var hu=function(e,t,n){const r=e.getValue();return"yaml"===r.type?fu(pu(["---",cu,r.value.trim()?function(e){return du(e,(e=>"string"==typeof e&&e.includes("\n")?pu(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:lu))):e))}(n(r.value,{parser:"yaml"})):"","---",cu])):null};const gu=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter((e=>"\r\n"===e)).length;return n>t.length-n?"\r\n":"\n"};var mu=gu;mu.graceful=e=>"string"==typeof e&&gu(e)||"\n";var yu=st((function(e,t){function n(){const e=Un;return n=function(){return e},e}function r(){const e=(t=mu)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(i);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(i);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function({comments:e="",pragmas:t={}}){const o=(0,r().default)(e)||n().EOL,s=" *",i=Object.keys(t),a=i.map((e=>d(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+o)).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){const e=t[i[0]];return"".concat("/**"," ").concat(d(i[0],e)[0]).concat(" */")}}const u=e.split(o).map((e=>"".concat(s," ").concat(e))).join(o)+o;return"/**"+o+(e?u:"")+(e&&i.length?s+o:"")+a+" */"};const o=/\*\/$/,s=/^\/\*\*/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(s,"").replace(o,"").replace(p,"$1");let i="";for(;i!==e;)i=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();const f=Object.create(null),d=e.replace(l,"").replace(u,"").trimRight();let h;for(;h=l.exec(e);){const e=h[2].replace(a,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=[].concat(f[h[1]],e):f[h[1]]=e}return{comments:d,pragmas:f}}function d(e,t){return[].concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}}));ot(yu),yu.extract,yu.strip,yu.parse,yu.parseWithComments,yu.print;var Du={hasPragma:function(e){const t=Object.keys(yu.parse(yu.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=yu.parseWithComments(yu.extract(e)),n=Object.assign({format:""},t.pragmas),r=yu.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),o=yu.strip(e);return r+(o.startsWith("\n")?"\n":"\n\n")+o}};const vu={"---":"yaml","+++":"toml"};var Eu=function(e){const t=Object.keys(vu).map(Ws).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,o,s]=n;return{frontMatter:{type:vu[o],value:s,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}};var bu={hasPragma:function(e){return Du.hasPragma(Eu(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=Eu(e);return(t?t.raw+"\n\n":"")+Du.insertPragma(n)}},Cu=function(e,t){let n=0;for(let r=0;r","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:ku,isDivisionNode:_u,isAdditionNode:Ou,isSubtractionNode:Nu,isModuloNode:Bu,isMathOperatorNode:function(e){return ku(e)||_u(e)||Ou(e)||Nu(e)||Bu(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:Mu,isKeyValuePairInParenGroupNode:Lu,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(Lu(t)||n&&Lu(n)))return!1;const r=Tu(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!Lu(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&xu.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Pu}=bu,{printNumber:ju,printString:Ru,hasIgnoreComment:Uu,hasNewline:$u}=mi,{isNextLineEmpty:qu}=la,{restoreQuotesInInlineComments:Vu}=Su,{builders:{concat:Wu,join:Yu,line:Ku,hardline:Ju,softline:zu,group:Gu,fill:Hu,indent:Xu,dedent:Qu,ifBreak:Zu},utils:{removeLines:ec}}=Ui,{getAncestorNode:tc,getPropOfDeclNode:nc,maybeToLowerCase:rc,insideValueFunctionNode:oc,insideICSSRuleNode:sc,insideAtRuleNode:ic,insideURLFunctionInImportAtRuleNode:ac,isKeyframeAtRuleKeywords:uc,isWideKeywords:cc,isSCSS:lc,isLastNode:pc,isLessParser:fc,isSCSSControlDirectiveNode:dc,isDetachedRulesetDeclarationNode:hc,isRelationalOperatorNode:gc,isEqualityOperatorNode:mc,isMultiplicationNode:yc,isDivisionNode:Dc,isAdditionNode:vc,isSubtractionNode:Ec,isMathOperatorNode:bc,isEachKeywordNode:Cc,isForKeywordNode:Ac,isURLFunctionNode:wc,isIfElseKeywordNode:Sc,hasComposesNode:xc,hasParensAroundNode:Fc,hasEmptyRawBefore:Tc,isKeyValuePairNode:kc,isDetachedRulesetCallNode:_c,isTemplatePlaceholderNode:Oc,isTemplatePropNode:Nc,isPostcssSimpleVarNode:Bc,isSCSSMapItemNode:Mc,isInlineValueCommentNode:Lc,isHashNode:Ic,isLeftCurlyBraceNode:Pc,isRightCurlyBraceNode:jc,isWordNode:Rc,isColonNode:Uc,isMediaAndSupportsKeywords:$c,isColorAdjusterFuncNode:qc,lastLineHasInlineComment:Vc}=Iu;function Wc(e){switch(e.trailingComma){case"all":case"es5":return!0;default:return!1}}function Yc(e,t,n){const r=e.getValue(),o=[];let s=0;return e.map((e=>{const i=r.nodes[s-1];if(i&&"css-comment"===i.type&&"prettier-ignore"===i.text.trim()){const n=e.getValue();o.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else o.push(e.call(n));s!==r.nodes.length-1&&("css-comment"===r.nodes[s+1].type&&!$u(t.originalText,t.locStart(r.nodes[s+1]),{backwards:!0})&&"yaml"!==r.nodes[s].type&&"toml"!==r.nodes[s].type||"css-atrule"===r.nodes[s+1].type&&"else"===r.nodes[s+1].name&&"css-comment"!==r.nodes[s].type?o.push(" "):(o.push(t.__isHTMLStyleAttribute?Ku:Ju),qu(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[s].type&&"toml"!==r.nodes[s].type&&o.push(Ju))),s++}),"nodes"),Wu(o)}const Kc=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Jc=new RegExp(Kc.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function zc(e,t){return e.replace(Kc,(e=>Ru(e,t)))}function Gc(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Hc(e){return e.replace(Jc,((e,t,n,r,o)=>!n&&r?Xc(r)+rc(o||""):e))}function Xc(e){return ju(e).replace(/\.0(?=$|e)/,"")}var Qc={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return Wu([r.raw,Ju]);case"css-root":{const r=Yc(e,t,n);return r.parts.length?Wu([r,t.__isHTMLStyleAttribute?"":Ju]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return Wu([e.call(n,"selector"),r.important?" !important":"",r.nodes?Wu([r.selector&&"selector-unknown"===r.selector.type&&Vc(r.selector.value)?Ku:" ","{",r.nodes.length>0?Xu(Wu([Ju,Yc(e,t,n)])):"",Ju,"}",hc(r)?";":""]):";"]);case"css-decl":{const o=e.getParentNode();return Wu([r.raws.before.replace(/[\s;]/g,""),sc(e)?r.prop:rc(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",xc(r)?ec(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?Wu([" {",Xu(Wu([zu,Yc(e,t,n)])),zu,"}"]):Nc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const o=e.getParentNode(),s=Oc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(fc(t)){if(r.mixin)return Wu([e.call(n,"selector"),r.important?" !important":"",s?"":";"]);if(r.function)return Wu([r.name,Wu([e.call(n,"params")]),s?"":";"]);if(r.variable)return Wu(["@",r.name,": ",r.value?Wu([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?Wu(["{",Xu(Wu([r.nodes.length>0?zu:"",Yc(e,t,n)])),zu,"}"]):"",s?"":";"])}return Wu(["@",_c(r)||r.name.endsWith(":")?r.name:rc(r.name),r.params?Wu([_c(r)?"":Oc(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?Wu([Ju,Ju]):/^\s*\n/.test(r.raws.afterName)?Ju:" ":" ",e.call(n,"params")]):"",r.selector?Xu(Wu([" ",e.call(n,"selector")])):"",r.value?Gu(Wu([" ",e.call(n,"value"),dc(r)?Fc(r)?" ":Ku:""])):"else"===r.name?" ":"",r.nodes?Wu([dc(r)?"":" ","{",Xu(Wu([r.nodes.length>0?zu:"",Yc(e,t,n)])),zu,"}"]):s?"":";"])}case"media-query-list":{const t=[];return e.each((e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))}),"nodes"),Gu(Xu(Yu(Ku,t)))}case"media-query":return Wu([Yu(" ",e.map(n,"nodes")),pc(e,r)?"":","]);case"media-type":case"media-value":return Hc(zc(r.value,t));case"media-feature-expression":return r.nodes?Wu(["(",Wu(e.map(n,"nodes")),")"]):r.value;case"media-feature":return rc(zc(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return Wu([r.value," "]);case"media-keyword":case"selector-string":return zc(r.value,t);case"media-url":return zc(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return Gu(Wu([ic(e,"custom-selector")?Wu([tc(e,"css-atrule").customSelector,Ku]):"",Yu(Wu([",",ic(e,["extend","custom-selector","nest"])?Ku:Ju]),e.map(n,"nodes"))]));case"selector-selector":return Gu(Xu(Wu(e.map(n,"nodes"))));case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),o=n&&t.nodes[n-1];return Wu([r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===o.type?r.value:Hc(uc(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return Wu(["#",r.value]);case"selector-class":return Wu([".",Hc(zc(r.value,t))]);case"selector-attribute":return Wu(["[",r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?Gc(zc(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ku;return Wu([n,r.value,pc(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ku:"",o=Hc(zc(r.value.trim(),t))||Ku;return Wu([n,o])}case"selector-universal":return Wu([r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return Wu([rc(r.value),r.nodes&&r.nodes.length>0?Wu(["(",Yu(", ",e.map(n,"nodes")),")"]):""]);case"selector-unknown":{const n=tc(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Hc(zc(rc(r.value),t));const o=e.getParentNode();if(o.raws&&o.raws.selector){const e=t.locStart(o),n=e+o.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Wu([r.inline?"//":"/*",Vu(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),o=e.getParentNode(1),s=nc(e),i=s&&"value-value"===t.type&&("grid"===s||s.startsWith("grid-template")),a=tc(e,"css-atrule"),u=a&&dc(a),c=e.map(n,"groups"),l=[],p=oc(e,"url");let f=!1,d=!1;for(let t=0;t0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return Wu([r.open?e.call(n,"open"):"",Yu(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e{const t=e.getValue(),r=n(e);return kc(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Gu(r.contents.contents.parts[1]),Gu(Qu(r))):r}),"groups"))])),Zu(!a&&lc(t.parser,t.originalText)&&s&&Wc(t)?",":""),zu,r.close?e.call(n,"close"):""]),{shouldBreak:s})}case"value-func":return Wu([r.value,ic(e,"supports")&&$c(r)?" ":"",e.call(n,"group")]);case"value-number":return Wu([Xc(r.value),rc(r.unit)]);case"value-word":return r.isColor&&r.isHex||cc(r.value)?r.value.toLowerCase():r.value;case"value-colon":return Wu([r.value,oc(e,"url")?"":Ku]);case"value-string":return Ru(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return Wu(["@",r.value]);default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:hu,insertPragma:Pu,hasPrettierIgnore:Uu,massageAstNode:uu};const Zc="Common";var el={bracketSpacing:{since:"0.0.0",category:Zc,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Zc,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Zc,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},tl={singleQuote:el.singleQuote},nl=function(e,t){const{languageId:n}=e,r=ht(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},rl="markup",ol="source.css",sl="text/css",il="#563d7c",al=[".css"],ul={name:"CSS",type:rl,tmScope:ol,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:sl,color:il,extensions:al,languageId:50},cl=Object.freeze({__proto__:null,name:"CSS",type:rl,tmScope:ol,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:sl,color:il,extensions:al,languageId:50,default:ul}),ll="PostCSS",pl="markup",fl="source.postcss",dl=[".pcss",".postcss"],hl="text",gl=262764437,ml={name:ll,type:pl,tmScope:fl,group:"CSS",extensions:dl,aceMode:hl,languageId:gl},yl=Object.freeze({__proto__:null,name:ll,type:pl,tmScope:fl,group:"CSS",extensions:dl,aceMode:hl,languageId:gl,default:ml}),Dl="Less",vl="markup",El=[".less"],bl="source.css.less",Cl="less",Al="text/css",wl={name:Dl,type:vl,group:"CSS",extensions:El,tmScope:bl,aceMode:Cl,codemirrorMode:"css",codemirrorMimeType:Al,languageId:198},Sl=Object.freeze({__proto__:null,name:Dl,type:vl,group:"CSS",extensions:El,tmScope:bl,aceMode:Cl,codemirrorMode:"css",codemirrorMimeType:Al,languageId:198,default:wl}),xl="SCSS",Fl="markup",Tl="source.css.scss",kl="scss",_l="text/x-scss",Ol=[".scss"],Nl={name:xl,type:Fl,tmScope:Tl,group:"CSS",aceMode:kl,codemirrorMode:"css",codemirrorMimeType:_l,extensions:Ol,languageId:329},Bl=Object.freeze({__proto__:null,name:xl,type:Fl,tmScope:Tl,group:"CSS",aceMode:kl,codemirrorMode:"css",codemirrorMimeType:_l,extensions:Ol,languageId:329,default:Nl}),Ml=it(cl),Ll=it(yl),Il=it(Sl),Pl=it(Bl);var jl={languages:[nl(Ml,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]}))),nl(Ll,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),nl(Il,(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),nl(Pl,(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],options:tl,printers:{postcss:Qc}};var Rl={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:Ul,join:$l,hardline:ql,line:Vl,softline:Wl,group:Yl,indent:Kl,ifBreak:Jl}=Ui.builders,{hasIgnoreComment:zl}=mi,{isNextLineEmpty:Gl}=la,{insertPragma:Hl}=Rl;function Xl(e,t,n){return 0===n.directives.length?"":Ul([" ",Yl(Kl(Ul([Wl,$l(Ul([Jl(""," "),Wl]),e.map(t,"directives"))])))])}function Ql(e,t,n){const r=e.getValue().length;return e.map(((e,o)=>{const s=n(e);return Gl(t.originalText,e.getValue(),t.locEnd)&&on(e)),"interfaces");for(let e=0;e0&&o.push(Zl(s[e-1],n,t)),o.push(i[e])}return o}var tp={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":{const o=[];return e.map(((e,s)=>{o.push(Ul([e.call(n)])),s!==r.definitions.length-1&&(o.push(ql),Gl(t.originalText,e.getValue(),t.locEnd)&&o.push(ql))}),"definitions"),Ul([Ul(o),ql])}case"OperationDefinition":{const o="{"!==t.originalText[t.locStart(r)],s=!!r.name;return Ul([o?r.operation:"",o&&s?Ul([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"variableDefinitions"))])),Wl,")"])):"",Xl(e,n,r),r.selectionSet&&(o||s)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return Ul(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"variableDefinitions"))])),Wl,")"])):""," on ",e.call(n,"typeCondition"),Xl(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return Ul(["{",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"selections"))])),ql,"}"]);case"Field":return Yl(Ul([r.alias?Ul([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",Xl(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?Ul(['"""',ql,$l(ql,r.value.replace(/"""/g,"\\$&").split("\n")),ql,'"""']):Ul(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Ul(["$",e.call(n,"name")]);case"ListValue":return Yl(Ul(["[",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"values"))])),Wl,"]"]));case"ObjectValue":return Yl(Ul(["{",t.bracketSpacing&&r.fields.length>0?" ":"",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"fields"))])),Wl,Jl("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Ul([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Ul(["@",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Ul([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Ul([" = ",e.call(n,"defaultValue")]):"",Xl(e,n,r)]);case"TypeExtensionDefinition":return Ul(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Ul([" implements ",Ul(ep(e,t,n))]):"",Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"FieldDefinition":return Ul([e.call(n,"description"),r.description?ql:"",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",": ",e.call(n,"type"),Xl(e,n,r)]);case"DirectiveDefinition":return Ul([e.call(n,"description"),r.description?ql:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",r.repeatable?" repeatable":"",Ul([" on ",$l(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Xl(e,n,r),r.values.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"values"))])),ql,"}"]):""]);case"EnumValueDefinition":return Ul([e.call(n,"description"),r.description?ql:"",e.call(n,"name"),Xl(e,n,r)]);case"InputValueDefinition":return Ul([e.call(n,"description"),r.description?r.description.block?ql:Vl:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Ul([" = ",e.call(n,"defaultValue")]):"",Xl(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"SchemaDefinition":return Ul(["schema",Xl(e,n,r)," {",r.operationTypes.length>0?Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"operationTypes"))])):"",ql,"}"]);case"OperationTypeDefinition":return Ul([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"FragmentSpread":return Ul(["...",e.call(n,"name"),Xl(e,n,r)]);case"InlineFragment":return Ul(["...",r.typeCondition?Ul([" on ",e.call(n,"typeCondition")]):"",Xl(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Yl(Ul([e.call(n,"description"),r.description?ql:"",Yl(Ul(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Xl(e,n,r),r.types.length>0?Ul([" =",Jl(""," "),Kl(Ul([Jl(Ul([Vl," "])),$l(Ul([Vl,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Xl(e,n,r)]);case"NonNullType":return Ul([e.call(n,"type"),"!"]);case"ListType":return Ul(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:zl,insertPragma:Hl,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},np={bracketSpacing:el.bracketSpacing},rp="GraphQL",op="data",sp=[".graphql",".gql",".graphqls"],ip="source.graphql",ap="text",up={name:rp,type:op,extensions:sp,tmScope:ip,aceMode:ap,languageId:139};var cp={languages:[nl(it(Object.freeze({__proto__:null,name:rp,type:op,extensions:sp,tmScope:ip,aceMode:ap,languageId:139,default:up})),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],options:np,printers:{graphql:tp}};function lp(e,t){return e&&t.some((t=>e.type===t))}function pp(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},o=r.children||r.body||[],s=o.indexOf(n);return-1!==s&&o[s+t]}function fp(e,t=1){return pp(e,-t)}function dp(e){return pp(e,1)}function hp(e){return lp(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var gp={getNextNode:dp,getPreviousNode:fp,hasPrettierIgnore:function(e){const t=e.getValue(),n=fp(e,2);return hp(t)||hp(n)},isGlimmerComponent:function(e){return lp(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return lp(dp(e),t)},isNodeOfSomeType:lp,isParentOfSomeType:function(e,t){return lp(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return lp(fp(e),t)},isWhitespaceNode:function(e){return lp(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:mp,join:yp,softline:Dp,hardline:vp,line:Ep,group:bp,indent:Cp,ifBreak:Ap}=Ui.builders,{getNextNode:wp,getPreviousNode:Sp,hasPrettierIgnore:xp,isGlimmerComponent:Fp,isNextNodeOfSomeType:Tp,isParentOfSomeType:kp,isPreviousNodeOfSomeType:_p,isWhitespaceNode:Op}=gp,Np=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Bp(e,t,n){return mp(e.map(((r,o)=>{const s=e.getValue(),i=0===o,a=o===e.getParentNode(0).children.length-1&&!i;return Op(s)&&a?n(r,t,n):i?mp([Dp,n(r,t,n)]):n(r,t,n)}),"children"))}function Mp(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},o=t.singleQuote?r:n,s=o===r?n:r;let i=!1;(e.includes(o.quote)||e.includes(s.quote))&&(i=(e.match(o.regex)||[]).length>(e.match(s.regex)||[]).length);const a=i?s:o,u=e.replace(a.regex,"\\".concat(a.quote));return mp([a.quote,u,a.quote])}function Lp(e,t){return e.call(t,"path")}function Ip(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Pp(e,t){const n=[Lp(e,t),...Ip(e,t)];return Cp(bp(yp(Ep,n)))}function jp(e){const t=e.getValue();return t.program&&t.program.blockParams.length?mp([" as |",t.program.blockParams.join(" "),"|"]):""}function Rp(e,t,{open:n=!1,close:r=!1}={}){return bp(mp([n?"{{~#":"{{#",Pp(e,t),jp(e),Dp,r?"~}}":"}}"]))}function Up(e,t,{open:n=!1,close:r=!1}={}){return mp([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function $p(e){return(e="string"==typeof e?e:"").split("\n").length-1}function qp(e=0,t=0){return new Array(Math.min(e,t)).fill(vp)}function Vp(e,t,n){let r=0,o=0;for(;;){if(o===e.length)return null;let s=e.indexOf("\n",o);if(-1===s&&(s=e.length),r===t)return o+n>s?null:o+n;if(-1===s)return null;r+=1,o=s+1}}var Wp={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(xp(e)){const e=Vp(t.originalText,r.loc.start.line-1,r.loc.start.column),n=Vp(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return bp(mp(e.map(n,"body")));case"ElementNode":{const o=r.children.length>0,s=r.children.some((e=>!Op(e))),i=Fp(r)&&(!o||!s)||Np.includes(r.tag),a=i?mp([" />",Dp]):">",u=i?"/>":">",c=(e,t)=>Cp(mp([r.attributes.length?Ep:"",yp(Ep,e.map(t,"attributes")),r.modifiers.length?Ep:"",yp(Ep,e.map(t,"modifiers")),r.comments.length?Ep:"",yp(Ep,e.map(t,"comments"))])),l=wp(e);return mp([bp(mp(["<",r.tag,c(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Ap(Dp,""),Ap(u,a)])),i?"":bp(mp([s?Cp(Bp(e,t,n)):"",Ap(o?vp:"",""),mp([""])])),l&&"ElementNode"===l.type?vp:""])}case"BlockStatement":{const t=e.getParentNode(1),o=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],s=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],i=s?e=>e:Cp,a=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return mp([o?mp([r.openStrip.open?"{{~else ":"{{else ",Pp(e,n),r.openStrip.close?"~}}":"}}"]):Rp(e,n,r.openStrip),Cp(mp([vp,e.call(n,"program")])),r.inverse&&!s?mp([vp,a]):"",r.inverse?i(mp([vp,e.call(n,"inverse")])):"",o?"":mp([vp,Up(e,n,r.closeStrip)])]);if(o)return mp([mp([r.openStrip.open?"{{~else":"{{else ",Pp(e,n),r.openStrip.close?"~}}":"}}"]),Cp(mp([vp,e.call(n,"program")]))]);const u=r.program.body.some((e=>!Op(e)));return mp([Rp(e,n,r.openStrip),bp(mp([Cp(mp([Dp,e.call(n,"program")])),u?vp:Dp,Up(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return bp(mp(["{{",Pp(e,n),Dp,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:o,close:s}=r.strip,i=(t?"{{{":"{{")+(o?"~":""),a=(s?"~":"")+(t?"}}}":"}}"),u=kp(e,["AttrNode","ConcatStatement","ElementNode"])?[i,Cp(Dp)]:[i];return bp(mp([...u,Pp(e,n),Dp,a]))}case"SubExpression":{const t=Ip(e,n),r=t.length>0?Cp(mp([Ep,bp(yp(Ep,t))])):"";return bp(mp(["(",Lp(e,n),r,Dp,")"]))}case"AttrNode":{const o="TextNode"===r.value.type;if(o&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return mp([r.name]);const s=e.call(n,"value"),i=o?Mp(s.parts.join(),t):s;return mp([r.name,"=",i])}case"ConcatStatement":return mp(['"',mp(e.map((e=>n(e)),"parts").filter((e=>""!==e))),'"']);case"Hash":return mp([yp(Ep,e.map(n,"pairs"))]);case"HashPair":return mp([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!Sp(e),o=!wp(e),s=!/\S/.test(r.chars),i=$p(r.chars),a="Block"===e.getParentNode(0).type,u="ElementNode"===e.getParentNode(0).type,c="Template"===e.getParentNode(0).type;let l=function(e){return $p(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),p=function(e){return $p(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||o)&&s&&(a||u||c))return"";s&&i?(l=Math.min(i,t),p=0):(Tp(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)),(_p(e,["ElementNode"])||_p(e,["BlockStatement"]))&&(l=Math.max(l,1)));let f="",d="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(f=" "),n({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],printers:{glimmer:Wp}},ef=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),tf=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],nf=["title"],rf=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],of=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],sf=["autoplay","controls","crossorigin","loop","muted","preload","src"],af=["href","target"],uf=["color","face","size"],cf=["dir"],lf=["cite"],pf=["alink","background","bgcolor","link","text","vlink"],ff=["clear"],df=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],hf=["height","width"],gf=["align"],mf=["align","char","charoff","span","valign","width"],yf=["align","char","charoff","span","valign","width"],Df=["value"],vf=["cite","datetime"],Ef=["open"],bf=["title"],Cf=["open"],Af=["compact"],wf=["align"],Sf=["compact"],xf=["height","src","type","width"],Ff=["disabled","form","name"],Tf=["color","face","size"],kf=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],_f=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Of=["cols","rows"],Nf=["align"],Bf=["align"],Mf=["align"],Lf=["align"],If=["align"],Pf=["align"],jf=["profile"],Rf=["align","noshade","size","width"],Uf=["manifest","version"],$f=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],qf=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Vf=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Wf=["cite","datetime"],Yf=["prompt"],Kf=["accesskey","for","form"],Jf=["accesskey","align"],zf=["type","value"],Gf=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Hf=["name"],Xf=["compact"],Qf=["charset","content","http-equiv","name","scheme"],Zf=["high","low","max","min","optimum","value"],ed=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],td=["compact","reversed","start","type"],nd=["disabled","label"],rd=["disabled","label","selected","value"],od=["for","form","name"],sd=["align"],id=["name","type","value","valuetype"],ad=["width"],ud=["max","value"],cd=["cite"],ld=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],pd=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],fd=["name"],dd=["media","sizes","src","srcset","type"],hd=["media","nonce","title","type"],gd=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],md=["align","char","charoff","valign"],yd=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Dd=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],vd=["align","char","charoff","valign"],Ed=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],bd=["align","char","charoff","valign"],Cd=["datetime"],Ad=["align","bgcolor","char","charoff","valign"],wd=["default","kind","label","src","srclang"],Sd=["compact","type"],xd=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Fd={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:tf,abbr:nf,applet:rf,area:of,audio:sf,base:af,basefont:uf,bdo:cf,blockquote:lf,body:pf,br:ff,button:df,canvas:hf,caption:gf,col:mf,colgroup:yf,data:Df,del:vf,details:Ef,dfn:bf,dialog:Cf,dir:Af,div:wf,dl:Sf,embed:xf,fieldset:Ff,font:Tf,form:kf,frame:_f,frameset:Of,h1:Nf,h2:Bf,h3:Mf,h4:Lf,h5:If,h6:Pf,head:jf,hr:Rf,html:Uf,iframe:$f,img:qf,input:Vf,ins:Wf,isindex:Yf,label:Kf,legend:Jf,li:zf,link:Gf,map:Hf,menu:Xf,meta:Qf,meter:Zf,object:ed,ol:td,optgroup:nd,option:rd,output:od,p:sd,param:id,pre:ad,progress:ud,q:cd,script:ld,select:pd,slot:fd,source:dd,style:hd,table:gd,tbody:md,td:yd,textarea:Dd,tfoot:vd,th:Ed,thead:bd,time:Cd,tr:Ad,track:wd,ul:Sd,video:xd},Td=Object.freeze({__proto__:null,a:tf,abbr:nf,applet:rf,area:of,audio:sf,base:af,basefont:uf,bdo:cf,blockquote:lf,body:pf,br:ff,button:df,canvas:hf,caption:gf,col:mf,colgroup:yf,data:Df,del:vf,details:Ef,dfn:bf,dialog:Cf,dir:Af,div:wf,dl:Sf,embed:xf,fieldset:Ff,font:Tf,form:kf,frame:_f,frameset:Of,h1:Nf,h2:Bf,h3:Mf,h4:Lf,h5:If,h6:Pf,head:jf,hr:Rf,html:Uf,iframe:$f,img:qf,input:Vf,ins:Wf,isindex:Yf,label:Kf,legend:Jf,li:zf,link:Gf,map:Hf,menu:Xf,meta:Qf,meter:Zf,object:ed,ol:td,optgroup:nd,option:rd,output:od,p:sd,param:id,pre:ad,progress:ud,q:cd,script:ld,select:pd,slot:fd,source:dd,style:hd,table:gd,tbody:md,td:yd,textarea:Dd,tfoot:vd,th:Ed,thead:bd,time:Cd,tr:Ad,track:wd,ul:Sd,video:xd,default:Fd}),kd=it(ef),_d=it(Td);const{CSS_DISPLAY_TAGS:Od,CSS_DISPLAY_DEFAULT:Nd,CSS_WHITE_SPACE_TAGS:Bd,CSS_WHITE_SPACE_DEFAULT:Md}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},Ld=Id(kd);function Id(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Pd(e,t){return!(!e.endSourceSpan||("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)&&("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)&&("ieConditionalComment"!==e.type||e.complete)&&("vue"!==t.parser||"element"!==e.type||"root"!==e.parent.type||["template","style","script","html"].includes(e.fullName))&&(!Gd(e)||!e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))))}function jd(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Rd(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Hd(e)&&("script"===e.name||"style"===e.name))}function Ud(e){return"yaml"===e.type||"toml"===e.type}function $d(e){return Xd(e).startsWith("pre")}function qd(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vd(e){return Jd(e)||"element"===e.type&&"br"===e.fullName||Wd(e)}function Wd(e){return Yd(e)&&Kd(e)}function Yd(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Jd(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function zd(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Gd(e){return Xd(e).startsWith("pre")}function Hd(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Xd(e){return"element"===e.type&&(!e.namespace||Hd(e))&&Bd[e.name]||Md}var Qd={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(_d,Id),HTML_TAGS:Ld,canHaveInterpolation:function(e){return e.children&&!Rd(e)},countChars:function(e,t){let n=0;for(let r=0;r!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const o=e.stack[r];o&&"object"==typeof o&&!Array.isArray(o)&&t(o)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&ee.slice(t))).join("\n")},forceBreakChildren:qd,forceBreakContent:function(e){return qd(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){return e.children&&e.children.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&Yd(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Kd(e.lastChild))},forceNextEmptyLine:function(e){return Ud(e)||e.next&&e.sourceSpan.end.line+1"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||Hd(e))&&Od[e.name]||Nd}},getNodeCssStyleWhiteSpace:Xd,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:jd,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!(t=e.cssDisplay,zd(t)||"inline-block"===t||Rd(e));var t},isFrontMatterNode:Ud,isIndentationSensitiveNode:$d,isLeadingSpaceSensitiveNode:function(e){const t=!(Ud(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Gd(e.parent)&&(!e.prev&&("root"===e.parent.type||Gd(e)&&e.parent||Rd(e.parent)||(n=e.parent.cssDisplay,zd(n)||"inline-block"===n))||e.prev&&!function(e){return!zd(e)}(e.prev.cssDisplay))));var n;return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:Gd,isScriptLikeTag:Rd,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!(Ud(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Gd(e.parent)&&(!e.next&&("root"===e.parent.type||Gd(e)&&e.parent||Rd(e.parent)||(t=e.parent.cssDisplay,zd(t)||"inline-block"===t))||e.next&&!function(e){return!zd(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return Rd(e)||"interpolation"===e.type||$d(e)},isUnknownNamespace:Hd,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return Jd(e)||e.prev&&Vd(e.prev)||Wd(e)},preferHardlineAsTrailingSpaces:Vd,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(jd(e)||Pd(e.parent,t))},shouldPreserveContent:Pd,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}};const{canHaveInterpolation:Zd,getNodeCssStyleDisplay:eh,isDanglingSpaceSensitiveNode:th,isIndentationSensitiveNode:nh,isLeadingSpaceSensitiveNode:rh,isTrailingSpaceSensitiveNode:oh,isWhitespaceSensitiveNode:sh}=Qd,ih=[function(e){return e.map((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e}))},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o"cdata"===e.type),(e=>"")))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map((e=>{if(!Zd(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let o=r.sourceSpan.start,s=null;const i=r.value.split(n);for(let n=0;n{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const n=sh(e),r=nh(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(((e,r)=>{if("text"!==r.type||n)return e.concat(r);const o=[],[,s,i,a]=r.value.match(/^(\s*)([\s\S]*?)(\s*)$/);s&&o.push({type:t});const u=r.sourceSpan.constructor;return i&&o.push({type:"text",value:i,sourceSpan:new u(r.sourceSpan.start.moveBy(s.length),r.sourceSpan.end.moveBy(-a.length))}),a&&o.push({type:t}),e.concat(o)}),[]).reduce(((e,n,r,o)=>{if(n.type===t)return e;const s=0!==r&&o[r-1].type===t,i=r!==o.length-1&&o[r+1].type===t;return e.concat(Object.assign({},n,{hasLeadingSpaces:s,hasTrailingSpaces:i}))}),[])})}))},function(e,t){return e.map((e=>Object.assign(e,{cssDisplay:eh(e,t)})))},function(e){return e.map((e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})))},function(e,t){return e.map((e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})))},function(e){return e.map((e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:th(e)}):e.clone({children:e.children.map((e=>Object.assign({},e,{isLeadingSpaceSensitive:rh(e),isTrailingSpaceSensitive:oh(e)}))).map(((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})))}):e))},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r")+o.firstChild.value+"")+s.value,sourceSpan:new i(n.sourceSpan.start,s.sourceSpan.end),isTrailingSpaceSensitive:a,hasTrailingSpaces:u}))}else t.push(o)}return e.clone({children:t})}}return e}))}];var ah=function(e,t){for(const n of ih)e=n(e,t);return e};var uh={hasPragma:function(e){return/^\s*/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:ch,group:lh}}=Ui;var ph={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:o}=function(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;const s={};s.for=o[3].trim();const i=o[1].trim().replace(r,""),a=i.match(n);return a?(s.alias=i.replace(n,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=i,{left:"".concat([s.alias,s.iterator1,s.iterator2].filter(Boolean).join(",")),operator:o[2],right:s.for}}(e);return ch([lh(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const fh=/^\d+$/;var dh=e=>function(e){return e.sort().filter(((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1])))}(e.split(",").map((e=>{const t={};return e.trim().split(/\s+/).forEach(((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),o=e[e.length-1],s=parseInt(r,10),i=parseFloat(r);if("w"===o&&fh.test(r))t.width=s;else if("h"===o&&fh.test(r))t.height=s;else{if("x"!==o||Number.isNaN(i))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=i}})),t})));const{builders:{concat:hh,ifBreak:gh,join:mh,line:yh}}=Ui,Dh=dh;var vh={printImgSrcset:function(e){const t=Dh(e),n=t.some((e=>e.width)),r=t.some((e=>e.height));if(n+r+t.some((e=>e.density))>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"width":r?"height":"density",s=n?"w":r?"h":"x",i=e=>Math.max(...e),a=t.map((e=>e.url)),u=i(a.map((e=>e.length))),c=t.map((e=>e[o])).map((e=>e?e.toString():"")),l=c.map((e=>{const t=e.indexOf(".");return-1===t?e.length:t})),p=i(l);return mh(hh([",",yh]),a.map(((e,t)=>{const n=[e],r=c[t];if(r){const o=u-e.length+1,i=p-l[t],a=" ".repeat(o+i);n.push(gh(a," "),r+s)}return hh(n)})))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:Eh,utils:{stripTrailingHardline:bh,mapDoc:Ch}}=Ui,{breakParent:Ah,dedentToRoot:wh,fill:Sh,group:xh,hardline:Fh,ifBreak:Th,indent:kh,join:_h,line:Oh,literalline:Nh,markAsRoot:Bh,softline:Mh}=Eh,{countChars:Lh,countParents:Ih,dedentString:Ph,forceBreakChildren:jh,forceBreakContent:Rh,forceNextEmptyLine:Uh,getLastDescendant:$h,getPrettierIgnoreAttributeCommentData:qh,hasPrettierIgnore:Vh,inferScriptParser:Wh,isScriptLikeTag:Yh,isTextLikeNode:Kh,normalizeParts:Jh,preferHardlineAsLeadingSpaces:zh,shouldNotPrintClosingTag:Gh,shouldPreserveContent:Hh,unescapeQuoteEntities:Xh}=Qd,{replaceEndOfLineWith:Qh}=mi,{insertPragma:Zh}=uh,{printVueFor:eg,printVueSlotScope:tg,isVueEventBindingExpression:ng}=ph,{printImgSrcset:rg,printClassNames:og}=vh;function sg(e){const t=Jh(e);return 0===t.length?"":1===t.length?t[0]:Eh.concat(t)}function ig(e,t,n){const r=e.getValue();if(jh(r))return sg([Ah,sg(e.map((e=>{const t=e.getValue(),n=t.prev?i(t.prev,t):"";return sg([n?sg([n,Uh(t.prev)?Fh:""]):"",s(e)])}),"children"))]);const o=r.children.map((()=>Symbol("")));return sg(e.map(((e,t)=>{const n=e.getValue();if(Kh(n)){if(n.prev&&Kh(n.prev)){const t=i(n.prev,n);if(t)return Uh(n.prev)?sg([Fh,Fh,s(e)]):sg([t,s(e)])}return s(e)}const r=[],a=[],u=[],c=[],l=n.prev?i(n.prev,n):"",p=n.next?i(n,n.next):"";return l&&(Uh(n.prev)?r.push(Fh,Fh):l===Fh?r.push(Fh):Kh(n.prev)?a.push(l):a.push(Th("",Mh,{groupId:o[t-1]}))),p&&(Uh(n)?Kh(n.next)&&c.push(Fh,Fh):p===Fh?Kh(n.next)&&c.push(Fh):u.push(p)),sg([].concat(r,xh(sg([sg(a),xh(sg([s(e),sg(u)]),{id:o[t]})])),c))}),"children"));function s(e){const r=e.getValue();return Vh(r)?sg([].concat(Dg(r,t),Qh(t.originalText.slice(t.locStart(r)+(r.prev&&dg(r.prev)?bg(r).length:0),t.locEnd(r)-(r.next&&gg(r.next)?wg(r,t).length:0)),Nh),Eg(r,t))):Hh(r,t)?sg([].concat(Dg(r,t),xh(ag(e,t,n)),Qh(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&hg(r.firstChild)?-Cg(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&yg(r.lastChild)?Ag(r,t).length:mg(r)?-wg(r.lastChild,t).length:0)),Nh),lg(r,t),Eg(r,t))):n(e)}function i(e,t){return Kh(e)&&Kh(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?zh(t)?Fh:Oh:"":zh(t)?Fh:Mh:dg(e)&&(Vh(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&gg(t)?"":!t.isLeadingSpaceSensitive||zh(t)||gg(t)&&e.lastChild&&yg(e.lastChild)&&e.lastChild.lastChild&&yg(e.lastChild.lastChild)?Fh:t.hasLeadingSpaces?Oh:Mh}}function ag(e,t,n){const r=e.getValue(),o="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return sg([ug(r,t),r.attrs&&0!==r.attrs.length?sg([kh(sg([o?" ":Oh,_h(Oh,(r=>{const o="boolean"==typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map((e=>{const r=e.getValue();return o(r)?sg(Qh(t.originalText.slice(t.locStart(r),t.locEnd(r)),Nh)):n(e)}),"attrs")})(r.prev&&"comment"===r.prev.type&&qh(r.prev.value)))])),r.firstChild&&hg(r.firstChild)||r.isSelfClosing&&mg(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?o?" ":Oh:o?"":Mh]):r.isSelfClosing?" ":"",r.isSelfClosing?"":cg(r)])}function ug(e,t){return e.prev&&dg(e.prev)?"":sg([Dg(e,t),bg(e)])}function cg(e){return e.firstChild&&hg(e.firstChild)?"":Cg(e)}function lg(e,t){return sg([e.isSelfClosing?"":pg(e,t),fg(e,t)])}function pg(e,t){return e.lastChild&&yg(e.lastChild)?"":sg([vg(e,t),Ag(e,t)])}function fg(e,t){return(e.next?gg(e.next):mg(e.parent))?"":sg([wg(e,t),Eg(e,t)])}function dg(e){return e.next&&!Kh(e.next)&&Kh(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function hg(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function gg(e){return e.prev&&!Kh(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function mg(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Kh($h(e.lastChild))}function yg(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Kh($h(e))}function Dg(e,t){return hg(e)?Cg(e.parent):gg(e)?wg(e.prev,t):""}function vg(e,t){return mg(e)?wg(e.lastChild,t):""}function Eg(e,t){return yg(e)?Ag(e.parent,t):dg(e)?bg(e.next):""}function bg(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Cg(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function Ag(e,t){if(e.isSelfClosing,Gh(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Sg(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Qh(t,Nh):Qh(Ph(t.replace(/^\s*?\n|\n\s*?$/g,"")),Fh):_h(Oh,t.split(/[\t\n\f\r ]+/)).parts}var xg={preprocess:ah,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),Eh.concat([xh(ig(e,t,n)),Fh]);case"element":case"ieConditionalComment":{const s=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return sg([xh(sg([xh(ag(e,t,n),{id:i}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Oh:"":sg([Rh(r)?Ah:"",(o=sg([s?Th(Mh,"",{groupId:i}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Oh:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?wh(Mh):Mh,ig(e,t,n)]),s?Th(kh(o),o,{groupId:i}):Yh(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?o:kh(o)),(r.next?gg(r.next):mg(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":s?Th(Mh,"",{groupId:i}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Oh:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Ih(e,(e=>e.parent&&"root"!==e.parent.type)),"}$")).test(r.lastChild.value)?"":Mh])])),lg(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return sg([ug(r),fg(r)]);case"interpolation":return sg([ug(r,t),sg(e.map(n,"children")),fg(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return sg([sg(Qh(n,Nh)),t?Fh:""])}return Sh(Jh([].concat(Dg(r,t),Sg(r),Eg(r,t))));case"docType":return sg([xh(sg([ug(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),fg(r,t)]);case"comment":return sg([Dg(r,t),sg(Qh(t.originalText.slice(t.locStart(r),t.locEnd(r)),Nh)),Eg(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=Xh(r.value),t=Lh(e,"'")Xh(e.value);let s=!1;const i=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(s=!0)},a=e=>xh(e),u=(e,t=!0)=>xh(sg([kh(sg([Mh,e])),t?Mh:""])),c=e=>s?a(e):u(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:i},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return u(rg(o()));if("class"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return og(e)}if("style"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return u(l(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return eg(o(),l);if("slot-scope"===e.fullName)return tg(o(),l);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=o();return c(ng(e)?l(e,{parser:"__js_expression"}):bh(l(e,{parser:"__vue_event_binding"})))}if(r(t))return c(l(o(),{parser:"__vue_expression"}));if(r(n))return c(l(o(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],s=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],i=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(t(o(),{parser:"__ng_action"}));if(r(s))return c(t(o(),{parser:"__ng_binding"}));if(r(i)){const t=o().trim();return u(Sh(Sg(e,t)),!t.includes("@@"))}if(r(n))return c(t(o(),{parser:"__ng_directive"}));const a=/\{\{([\s\S]+?)\}\}/g,p=o();if(a.test(p)){const e=[];return p.split(a).forEach(((n,r)=>{if(r%2==0)e.push(sg(Qh(n,Nh)));else try{e.push(xh(sg(["{{",kh(sg([Oh,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Oh,"}}"])))}catch(t){e.push("{{",sg(Qh(n,Nh)),"}}")}})),xh(sg(e))}}return null}(o,((e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t))),r);if(e)return sg([o.rawName,'="',xh(Ch(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"']);break}case"yaml":return Bh(sg(["---",Fh,0===o.value.trim().length?"":n(o.value,{parser:"yaml"}),"---"]))}}};const Fg="HTML";var Tg={htmlWhitespaceSensitivity:{since:"1.15.0",category:Fg,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:Fg,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kg="HTML",_g="markup",Og="text.html.basic",Ng="html",Bg="htmlmixed",Mg="text/html",Lg="#e34c26",Ig=["xhtml"],Pg=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],jg={name:kg,type:_g,tmScope:Og,aceMode:Ng,codemirrorMode:Bg,codemirrorMimeType:Mg,color:Lg,aliases:Ig,extensions:Pg,languageId:146},Rg=Object.freeze({__proto__:null,name:kg,type:_g,tmScope:Og,aceMode:Ng,codemirrorMode:Bg,codemirrorMimeType:Mg,color:Lg,aliases:Ig,extensions:Pg,languageId:146,default:jg}),Ug="markup",$g="#2c3e50",qg=[".vue"],Vg="text.html.vue",Wg="html",Yg={name:"Vue",type:Ug,color:$g,extensions:qg,tmScope:Vg,aceMode:Wg,languageId:391},Kg=Object.freeze({__proto__:null,name:"Vue",type:Ug,color:$g,extensions:qg,tmScope:Vg,aceMode:Wg,languageId:391,default:Yg}),Jg=it(Rg),zg=it(Kg);const Gg=[nl(Jg,(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),nl(Jg,(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])}))),nl(Jg,(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),nl(zg,(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))];var Hg={languages:Gg,printers:{html:xg},options:Tg};const{addLeadingComment:Xg,addTrailingComment:Qg,addDanglingComment:Zg,getNextNonSpaceNonCommentCharacterIndex:em}=la;function tm(e,t){const n=e.body.filter((e=>"EmptyStatement"!==e.type));0===n.length?Zg(e,t):Xg(n[0],t)}function nm(e,t){"BlockStatement"===e.type?tm(e,t):Xg(e,t)}function rm(e,t,n,r,o,s){return!(!n||"IfStatement"!==n.type||!r||(")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd)?(Qg(t,o),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Qg(t,o):Zg(n,o),0):"BlockStatement"===r.type?(tm(r,o),0):"IfStatement"===r.type?(nm(r.consequent,o),0):n.consequent!==r||(Xg(r,o),0)))}function om(e,t,n,r,o,s){return!(!n||"WhileStatement"!==n.type||!r||(")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd)?(Qg(t,o),0):"BlockStatement"!==r.type||(tm(r,o),0)))}function sm(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(Qg(t,r),0):"BlockStatement"===n.type?(tm(n,r),0):"TryStatement"===n.type?(nm(n.finalizer,r),0):"CatchClause"!==n.type||(nm(n.body,r),0)))}function im(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?Qg(e.decorators[e.decorators.length-1],r):Xg(e,r),0))}function am(e,t,n,r,o){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==mi.getNextNonSpaceNonCommentCharacter(e,n,o.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Qg(n,r),!0)}function um(e,t,n,r,o,s){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Qg(t,o),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&dm(n)&&")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd))return Qg(t,o),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,s.locEnd(mi.getLast(n.params||n.parameters)));const t=mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,s.locEnd(n.id));return mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(s.locStart(o)>t)return tm(r,o),!0}return!1}function cm(e,t){return!(!e||"ImportSpecifier"!==e.type||(Xg(e,t),0))}function lm(e,t){return!(!e||"LabeledStatement"!==e.type||(Xg(e,t),0))}function pm(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Zg(t,n):Xg(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?Zg(e,n):Xg(e,n),0))}function fm(e){return"Block"===e.type||"CommentBlock"===e.type}function dm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function hm(e){return fm(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var gm={handleOwnLineComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return um(t,s,i,a,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type||(Xg(e,n),0))}(i,a,e)||rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||sm(i,s,a,e)||im(i,0,a,e)||cm(i,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(Xg(e,n),0))}(i,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&mi.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(mi.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Qg(e,r),!0))}(s,i,a,e)||pm(i,r,e,o)||function(e,t,n,r,o){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&mi.hasNewline(e,o.locEnd(r)))&&(Qg(n,r),!0)}(t,i,s,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(Xg(e,t),0))}(i,e)||am(t,i,s,e,n)||lm(i,e)},handleEndOfLineComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return function(e,t){return!(!e||!hm(t)||(Xg(e,t),0))}(a,e)||um(t,s,i,a,e,n)||function(e,t,n,r,o,s){const i=t&&!mi.hasNewlineInRange(o,s.locEnd(t),s.locStart(r));return!(t&&i||!e||"ConditionalExpression"!==e.type||!n||(Xg(n,r),0))}(i,s,a,e,t,n)||cm(i,e)||rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||sm(i,s,a,e)||im(i,0,a,e)||lm(i,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Xg(t.arguments[0],n),!0)}(s,i,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(Xg(e,t),0))}(i,e)||pm(i,r,e,o)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(Xg(e,n),0))}(i,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!fm(n)||(Xg(t,n),0))}(i,a,e)},handleRemainingComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return!!(rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(Qg(e.value.left,n),0))}(i,s,e)||function(e,t,n,r){return!(")"!==mi.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(t&&(dm(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Zg(t,n),0):!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(Zg(t.value,n),0)))}(t,i,e,n)||am(t,i,s,e,n)||pm(i,r,e,o)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const o=em(e,n,r.locEnd);return"=>"===e.slice(o,o+2)&&(Zg(t,n),!0)}(t,i,e,n)||function(e,t,n,r,o){return!("("!==mi.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(Qg(n,r),0))}(t,i,s,e,n)||function(e,t,n,r,o){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(Xg(r.name,o),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(Qg(n.constraint,o),0)))}(0,i,s,a,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(Qg(e,t),0))}(i,e)||function(e,t,n,r,o){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==mi.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||(Qg(t,r),0))}(t,i,a,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((e=>e.leading&&t(e)))},isBlockComment:fm,isTypeCastComment:hm,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:mm,hasLeadingComment:ym}=gm,{builders:{indent:Dm,join:vm,line:Em,hardline:bm,softline:Cm,literalline:Am,concat:wm,group:Sm,dedentToRoot:xm},utils:{mapDoc:Fm,stripTrailingHardline:Tm}}=Ui;function km(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function _m(e,t){return Fm(e,(e=>{if(!e.parts)return e;const n=[];return e.parts.forEach((e=>{"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):km(e)):n.push(e)})),Object.assign({},e,{parts:n})}))}function Om(e){const t=[];let n=!1;return e.map((e=>e.trim())).forEach(((e,r,o)=>{""!==e&&(""===o[r-1]&&n?t.push(wm([bm,e])):t.push(e),n=!0)})),0===t.length?null:vm(bm,t)}function Nm(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((e=>"jsx"===e.name.name))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Bm(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...Mm)}const Mm=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Lm(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Pm(n.object)||jm(n);case"CallExpression":return Pm(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Pm(n.callee.object.object)||jm(n.callee.object))||"CallExpression"===n.callee.object.type&&Pm(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Im(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Pm(e){return"Identifier"===e.type&&"styled"===e.name}function jm(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Rm(e,t){return ym(e,(e=>mm(e)&&e.value===" ".concat(t," ")))}let Um=0;var $m=function(e,t,n,r){const o=e.getValue(),s=e.getParentNode(),i=e.getParentNode(1);switch(o.type){case"TemplateLiteral":{if([Nm,Lm,Im,Bm].some((t=>t(e)))){const r=o.quasis.map((e=>e.value.raw));let s=0;const i=r.reduce(((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+s+++"-id"+t),"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const o=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const o=Fm(e,(e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const o=t.indexOf("@"),s=o+1;if(o>-1&&"string"==typeof t[s]&&t[s].startsWith("prettier-placeholder")){const e=t[o],n=t[s],r=t.slice(s+1);t=t.slice(0,o).concat([e+n]).concat(r)}const i=t.findIndex((e=>"string"==typeof e&&e.startsWith("@prettier-placeholder")));if(i>-1){const e=t[i],o=t.slice(i+1),s=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),a=s[1],u=s[2],c=n[a];r++,t=t.slice(0,i).concat(["${",c,"}"+u]).concat(o)}return Object.assign({},e,{parts:t})}));return n.length===r?o:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!o)throw new Error("Couldn't insert all the expressions");return wm(["`",Dm(wm([bm,Tm(o)])),Cm,"`"])}(n(i,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return Rm(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){const r=o.expressions?e.map(t,"expressions"):[],s=o.quasis.length;if(1===s&&""===o.quasis[0].value.raw.trim())return"``";const i=[];for(let e=0;e2&&""===c[0].trim()&&""===c[1].trim(),d=l>2&&""===c[l-1].trim()&&""===c[l-2].trim(),h=c.every((e=>/^\s*(?:#[^\r\n]*)?$/.test(e)));if(!a&&/#[^\r\n]*$/.test(c[l-1]))return null;let g=null;g=h?Om(c):Tm(n(u,{parser:"graphql"})),g?(g=_m(g,!1),!t&&f&&i.push(""),i.push(g),!a&&d&&i.push("")):t||a||!f||i.push(""),p&&i.push(wm(["${",p,"}"]))}return wm(["`",Dm(wm([bm,vm(bm,i)])),bm,"`"])}const s=function(e){return Rm(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?"html":function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...Mm)}(e)?"angular":void 0;if(s)return function(e,t,n,r,o){const s=e.getValue(),i=Um;Um=Um+1>>>0;const a=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(i,"_IN_JS"),u=s.quasis.map(((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t))).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";const l=new RegExp(a("(\\d+)"),"g");let p=0;const f=Fm(Tm(n(u,{parser:r,__onHtmlRoot(e){p=e.children.length}})),(e=>{if("string"!=typeof e)return e;const t=[],n=e.split(l);for(let e=0;e1?Dm(Sm(f)):Sm(f),h,"`"]))}(e,t,n,s,r);break}case"TemplateElement":if(i&&"TaggedTemplateExpression"===i.type&&1===s.quasis.length&&"Identifier"===i.tag.type&&("md"===i.tag.name||"markdown"===i.tag.name)){const e=s.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return wm([""!==t?Dm(wm([Cm,a(e.replace(new RegExp("^".concat(t),"gm"),""))])):wm([Am,xm(a(e))]),Cm])}}function a(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return Tm(_m(t,!0))}};var qm=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach((e=>{delete t[e]})),e.loc&&null===e.loc.source&&delete t.loc.source,"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name))&&t.children.filter((e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type)).map((e=>e.expression)).reduce(((e,t)=>e.concat(t.quasis)),[]).forEach((e=>delete e.value)),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach((e=>delete e.value));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach(((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach((e=>delete e.value))}))}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach((e=>delete e.value)),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some((t=>e.value===" ".concat(t," ")))))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach((e=>delete e.value))};const{getLast:Vm,hasNewline:Wm,hasNewlineInRange:Ym,hasIgnoreComment:Km,hasNodeIgnoreComment:Jm,skipWhitespace:zm}=mi,Gm=jo.keyword.isIdentifierNameES5,Hm="(?:(?=.)\\s)",Xm=new RegExp("^".concat(Hm,"*:")),Qm=new RegExp("^".concat(Hm,"*::"));function Zm(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>Zm(e,t)));const n=t(e);return"boolean"==typeof n?n:Object.keys(e).some((n=>Zm(e[n],t)))}function ey(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}const ty=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function ny(e){return e&&ty.has(e.type)}function ry(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function oy(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function sy(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function iy(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function ay(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function uy(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function cy(e){return"get"===e.kind||"set"===e.kind}function ly(e,t,n){return n.locStart(e)===n.locStart(t)}function py(e,t){return cy(e)||ly(e,e.value,t)}const fy=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const dy=/^(skip|[fx]?(it|describe|test))$/;function hy(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const gy=new RegExp("([ \n\r\t]+)"),my=new RegExp("[^ \n\r\t]");function yy(e){return ry(e)&&(my.test(Ey(e))||!/\n/.test(Ey(e)))}function Dy(e,t,n){return uy(t)?Jm(t):t.comments&&t.comments.some((t=>t.leading&&Wm(e,n.locEnd(t))))}function vy(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function Ey(e){return e.extra?e.extra.raw:e.raw}var by={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!(t||"get"===e.kind||"set"===e.kind||!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(uy))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&ny(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some((e=>!e.leading&&!e.trailing))},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Qm)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Xm)},hasLeadingComment:function(e){return e.comments&&e.comments.some((e=>e.leading))},hasLeadingOwnLineComment:Dy,hasNakedLeftSide:ey,hasNewlineBetweenOrAfterDecorators:function(e,t){return Ym(t.originalText,t.locStart(e.decorators[0]),t.locEnd(Vm(e.decorators)))||Wm(t.originalText,t.locEnd(Vm(e.decorators)))},hasNgSideEffect:function(e){return Zm(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:Zm,hasPrettierIgnore:function(e){return Km(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&uy(t)&&uy(n)))return!1;let r=null;for(let e=n.children.indexOf(t);e>0;e--){const t=n.children[e-1];if("JSXText"!==t.type||yy(t)){r=t;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find((e=>"prettier-ignore"===e.value.trim()))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((e=>e.trailing))},identity:function(e){return e},isBinaryish:function(e){return fy.has(e.type)},isCallOrOptionalCallExpression:hy,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return ry(t)&&!yy(t)},isExportDeclaration:ny,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),o=zm(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(o,o+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(iy(n)){if(t+=1,t>1)return!0}else if(hy(n))for(const e of n.arguments)if(iy(e))return!0;return!1},isFunctionNotation:py,isFunctionOrArrowExpression:iy,isGetterOrSetter:cy,isJestEachTemplateLiteral:function(e,t){const n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:uy,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&ry(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter((e=>"EmptyStatement"!==e.type));return r&&r[r.length-1]===n},isLiteral:ry,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return hy(t)&&hy(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),o="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(o&&o.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null==e||r(e))):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:yy,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:oy,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||py(e,t))},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:sy,isStringPropSafeToCoerceToIdentifier:function(e,t){return sy(e.key)&&Gm(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&vy(e)||"TaggedTemplateExpression"===e.type&&vy(e.quasi))&&!Wm(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(ay(t)&&n&&e(n))return iy(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return ay(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&dy.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&dy.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||sy(t.arguments[0])))return!(t.arguments[2]&&!oy(t.arguments[2]))&&((2===t.arguments.length?iy(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||ay(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!uy(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||ly(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:gy,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=Vm(e.comments.filter((e=>!e.leading&&!e.trailing)));return t&&!gm.isBlockComment(t)},rawText:Ey,returnArgumentHasLeadingComment:function(e,t){if(Dy(e.originalText,t,e))return!0;if(ey(t)){let r,o=t;for(;r=(n=o).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(o=r,Dy(e.originalText,o,e))return!0}var n;return!1}};const{getLeftSidePathName:Cy,hasFlowShorthandAnnotationComment:Ay,hasNakedLeftSide:wy,hasNode:Sy}=by;function xy(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),o=e.getNode();if(e.getValue()!==o)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(o)&&Fy(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&Ay(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name));if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==o||"ArrowFunctionExpression"!==o.type&&"AssignmentExpression"!==o.type&&"AwaitExpression"!==o.type&&"BinaryExpression"!==o.type&&"ConditionalExpression"!==o.type&&"LogicalExpression"!==o.type&&"NewExpression"!==o.type&&"ObjectExpression"!==o.type&&"ParenthesizedExpression"!==o.type&&"SequenceExpression"!==o.type&&"TaggedTemplateExpression"!==o.type&&"UnaryExpression"!==o.type&&"UpdateExpression"!==o.type&&"YieldExpression"!==o.type))return!0;if("ExportDefaultDeclaration"===n.type)return Ty(e,t)||"SequenceExpression"===o.type;if("Decorator"===n.type&&n.expression===o){let e=!1,t=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===o&&"SequenceExpression"!==o.type&&mi.startsWithNoLookaheadToken(o,!1)||"ExpressionStatement"===n.type&&mi.startsWithNoLookaheadToken(o,!0))return!0;switch(o.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===o;case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===o.operator&&t(o))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===o;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":return n.left===o&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"LogicalExpression":if("LogicalExpression"===o.type)return n.operator!==o.operator;case"BinaryExpression":{if(!o.operator&&"TSTypeAssertion"!==o.type)return!0;const e=n.operator,t=mi.getPrecedence(e),s=o.operator,i=mi.getPrecedence(s);return t>i||(t===i&&"right"===r?(Fs.strictEqual(n.right,o),!0):t===i&&!mi.shouldFlatten(e,s)||(t"ObjectTypeAnnotation"===e.type&&Sy(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}(o)}return!1}function Fy(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(Fy);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(Fy);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(Fy);break;case"UnaryExpression":if(n.prefix)return e.callParent(Fy)}return!1}function Ty(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!xy(e,t):!(!wy(n)||"ExportDefaultDeclaration"!==r.type&&xy(e,t))&&e.call((e=>Ty(e,t)),...Cy(e,n))}var ky=xy;const{builders:{concat:_y,join:Oy,line:Ny}}=Ui;var By={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((e=>{const{params:t}=e.getValue();return _y([t.length>1?"(":"",Oy(_y([",",Ny]),e.map(n,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((e=>Oy(_y([",",Ny]),e.map(n,"params"))),"program","body",0):void 0}};var My=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:Ly,getNextNonSpaceNonCommentCharacter:Iy,hasNewline:Py,hasNewlineInRange:jy,getLast:Ry,getStringWidth:Uy,printString:$y,printNumber:qy,hasIgnoreComment:Vy,hasNodeIgnoreComment:Wy,getPenultimate:Yy,startsWithNoLookaheadToken:Ky,getIndentSize:Jy,getPreferredQuote:zy}=mi,{isNextLineEmpty:Gy,isNextLineEmptyAfterIndex:Hy,getNextNonSpaceNonCommentCharacterIndex:Xy}=la,{insertPragma:Qy}=Du,{printHtmlBinding:Zy,isVueEventBindingExpression:eD}=By,{classChildNeedsASIProtection:tD,classPropMayCauseASIProblems:nD,conditionalExpressionChainContainsJSX:rD,getFlowVariance:oD,getLeftSidePathName:sD,getParentExportDeclaration:iD,getTypeScriptMappedTypeModifier:aD,hasDanglingComments:uD,hasFlowAnnotationComment:cD,hasFlowShorthandAnnotationComment:lD,hasLeadingComment:pD,hasLeadingOwnLineComment:fD,hasNakedLeftSide:dD,hasNewlineBetweenOrAfterDecorators:hD,hasNgSideEffect:gD,hasPrettierIgnore:mD,hasTrailingComment:yD,identity:DD,isBinaryish:vD,isCallOrOptionalCallExpression:ED,isEmptyJSXElement:bD,isExportDeclaration:CD,isFlowAnnotationComment:AD,isFunctionCompositionArgs:wD,isFunctionNotation:SD,isFunctionOrArrowExpression:xD,isGetterOrSetter:FD,isJestEachTemplateLiteral:TD,isJSXNode:kD,isJSXWhitespaceExpression:_D,isLastStatement:OD,isLiteral:ND,isLongCurriedCallExpression:BD,isMeaningfulJSXText:MD,isMemberExpressionChain:LD,isMemberish:ID,isNgForOf:PD,isNumericLiteral:jD,isObjectType:RD,isObjectTypePropertyAFunction:UD,isSimpleCallArgument:$D,isSimpleFlowType:qD,isSimpleTemplateLiteral:VD,isStringLiteral:WD,isStringPropSafeToCoerceToIdentifier:YD,isTemplateOnItsOwnLine:KD,isTestCall:JD,isTheOnlyJSXElementInMarkdown:zD,isTSXFile:GD,isTypeAnnotationAFunction:HD,matchJsxWhitespaceRegex:XD,needsHardlineAfterDanglingComment:QD,rawText:ZD,returnArgumentHasLeadingComment:ev}=by,tv=new WeakMap,{builders:{concat:nv,join:rv,line:ov,hardline:sv,softline:iv,literalline:av,group:uv,indent:cv,align:lv,conditionalGroup:pv,fill:fv,ifBreak:dv,breakParent:hv,lineSuffixBoundary:gv,addAlignmentToDoc:mv,dedent:yv},utils:{willBreak:Dv,isLineNext:vv,isEmpty:Ev,removeLines:bv},printer:{printDocToString:Cv}}=Ui;let Av=0;function wv(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;default:return!1}}function Sv(e,t,n){const r=e.getValue();return uv(nv([rv(ov,e.map(n,"decorators")),hD(r,t)?sv:ov]))}function xv(e,t,n,r){const o=e.getValue(),s=o[r.consequentNodePropertyName],i=o[r.alternateNodePropertyName],a=[];let u=!1;const c=e.getParentNode(),l=c.type===r.conditionalNodeType&&r.testNodePropertyNames.some((e=>c[e]===o));let p,f,d=c.type===r.conditionalNodeType&&!l,h=0;do{f=p||o,p=e.getParentNode(h),h++}while(p&&p.type===r.conditionalNodeType&&r.testNodePropertyNames.every((e=>p[e]!==f)));const g=p||c,m=f;if(r.shouldCheckJsx&&(kD(o[r.testNodePropertyNames[0]])||kD(s)||kD(i)||rD(m))){u=!0,d=!0;const t=e=>nv([dv("(",""),cv(nv([iv,e])),iv,dv(")","")]),o=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;a.push(" ? ",o(s)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",i.type===r.conditionalNodeType||o(i)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const u=nv([ov,"? ",s.type===r.conditionalNodeType?dv("","("):"",lv(2,e.call(n,r.consequentNodePropertyName)),s.type===r.conditionalNodeType?dv("",")"):"",ov,": ",i.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):lv(2,e.call(n,r.alternateNodePropertyName))]);a.push(c.type!==r.conditionalNodeType||c[r.alternateNodePropertyName]===o||l?u:t.useTabs?yv(cv(u)):lv(Math.max(0,t.tabWidth-2),u))}const y=!u&&("MemberExpression"===c.type||"OptionalMemberExpression"===c.type||"NGPipeExpression"===c.type&&c.left===o)&&!c.computed,D=(e=>c===g?uv(e):e)(nv([].concat((v=nv(r.beforeParts()),c.type===r.conditionalNodeType&&c[r.alternateNodePropertyName]===o?lv(2,v):v),d?nv(a):cv(nv(a)),r.afterParts(y))));var v;return l?uv(nv([cv(nv([iv,D])),iv])):D}function Fv(e,t,n){const r=[],o=e.getNode(),s="ClassBody"===o.type;return e.map(((e,i)=>{const a=e.getValue();if(!a)return;if("EmptyStatement"===a.type)return;const u=n(e),c=t.originalText,l=[];if(t.semi||s||zD(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>nE(e,t)),"expression")}(e,t)?l.push(u):a.comments&&a.comments.some((e=>e.leading))?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&s)if(nD(e))l.push(";");else if("ClassProperty"===a.type){const e=o.body[i+1];tD(e)&&l.push(";")}Gy(c,a,t.locEnd)&&!OD(e)&&l.push(sv),r.push(nv(l))})),rv(sv,r)}function Tv(e,t,n){const r=e.getNode();if(r.computed)return nv(["[",e.call(n,"key"),"]"]);const o=e.getParentNode(),{key:s}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===s.type)return nv(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!tv.has(o)){const e=(o.properties||o.body||o.members).some((e=>!e.computed&&e.key&&WD(e.key)&&!YD(e,t)));tv.set(o,e)}if("Identifier"===s.type&&("json"===t.parser||"consistent"===t.quoteProps&&tv.get(o))){const n=$y(JSON.stringify(s.name),t);return e.call((e=>Na.printComments(e,(()=>n),t)),"key")}return YD(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!tv.get(o))?e.call((e=>Na.printComments(e,(()=>s.value),t)),"key"):e.call(n,"key")}function kv(e,t,n){const r=e.getNode(),{kind:o}=r,s=r.value||r,i=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(Fs.ok("get"===o||"set"===o),i.push(o," ")):(s.async&&i.push("async "),s.generator&&i.push("*")),i.push(Tv(e,t,n),r.optional||r.key.optional?"?":"",r===s?_v(e,t,n):e.call((e=>_v(e,t,n)),"value")),nv(i)}function _v(e,t,n){const r=[Mv(e,0,n),uv(nv([Lv(e,n,t),jv(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),nv(r)}function Ov(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&Ov(e.expression)||"TSAsExpression"===e.type&&Ov(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||kD(e.body))}function Nv(e,t,n){const r=e.getValue(),o=r.arguments;if(0===o.length)return nv(["(",Na.printDanglingComments(e,t,!0),")"]);if(2===o.length&&"ArrowFunctionExpression"===o[0].type&&0===o[0].params.length&&"BlockStatement"===o[0].body.type&&"ArrayExpression"===o[1].type&&!o.find((e=>e.comments)))return nv(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let s=!1,i=!1,a=!1;const u=o.length-1,c=e.map(((e,r)=>{const o=e.getNode(),c=[n(e)];return r===u||(Gy(t.originalText,o,t.locEnd)?(0===r&&(a=!0),s=!0,c.push(",",sv,sv)):c.push(",",ov)),i=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each((e=>{const t=nv([n(e)]);r=r||Dv(t)}),"params"),r}(o,e),nv(c)}),"arguments"),l=r.callee&&"Import"===r.callee.type||!wv(t,"all")?"":",";function p(){return uv(nv(["(",cv(nv([ov,nv(c)])),l,ov,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&wD(o))return p();const f=function(e){if(2!==e.length)return!1;const[t,n]=e;return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||Ov(n))}(o),d=function(e){const t=Ry(e),n=Yy(e);return!pD(t)&&!yD(t)&&Ov(t)&&(!n||n.type!==t.type)}(o);if(f||d){const t=(f?c.slice(1).some(Dv):c.slice(0,-1).some(Dv))||s||i;let u,l=0;e.each((e=>{f&&0===l&&(u=[nv([e.call((e=>n(e,{expandFirstArg:!0}))),c.length>1?",":"",a?sv:ov,a?sv:""])].concat(c.slice(1))),d&&l===o.length-1&&(u=c.slice(0,-1).concat(e.call((e=>n(e,{expandLastArg:!0}))))),l++}),"arguments");const h=c.some(Dv),g=nv(["(",nv(u),")"]);return nv([h?hv:"",pv([h||r.typeArguments||r.typeParameters?dv(p(),g):g,nv(f?["(",uv(u[0],{shouldBreak:!0}),nv(u.slice(1)),")"]:["(",nv(c.slice(0,-1)),uv(Ry(u),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const h=nv(["(",cv(nv([iv,nv(c)])),dv(l),iv,")"]);return BD(e)?h:uv(h,{shouldBreak:c.some(Dv)||s})}function Bv(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const o=e.getParentNode(),s=r.definite||o&&"VariableDeclarator"===o.type&&o.definite,i="DeclareFunction"===o.type&&o.id===r;return AD(t.originalText,r.typeAnnotation,t)?nv([" /*: ",e.call(n,"typeAnnotation")," */"]):nv([i?"":s?"!: ":": ",e.call(n,"typeAnnotation")])}function Mv(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function Lv(e,t,n,r,o){const s=e.getValue(),i=e.getParentNode(),a=s.parameters?"parameters":"params",u=JD(i),c=oE(s),l=r&&!(s[a]&&s[a].some((e=>e.comments))),p=o?Mv(e,0,t):"";let f=[];if(s[a]){const r=s[a].length-1;f=e.map(((e,o)=>{const i=[],a=e.getValue();return i.push(t(e)),o===r?s.rest&&i.push(",",ov):u||c||l?i.push(", "):Gy(n.originalText,a,n.locEnd)?i.push(",",sv,sv):i.push(",",ov),nv(i)}),a)}if(s.rest&&f.push(nv(["...",e.call(t,"rest")])),0===f.length)return nv([p,"(",Na.printDanglingComments(e,n,!0,(e=>")"===Iy(n.originalText,e,n.locEnd))),")"]);const d=Ry(s[a]);if(l)return uv(nv([bv(p),"(",nv(f.map(bv)),")"]));const h=s[a].every((e=>!e.decorators));if(c&&h)return nv([p,"(",nv(f),")"]);if(u)return nv([p,"(",nv(f),")"]);if((UD(i,n)||HD(i,n)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===s)&&1===s[a].length&&null===s[a][0].name&&s[a][0].typeAnnotation&&null===s.typeParameters&&qD(s[a][0].typeAnnotation)&&!s.rest)return"always"===n.arrowParens?nv(["(",nv(f),")"]):nv(f);const g=!(d&&"RestElement"===d.type||s.rest);return nv([p,"(",cv(nv([iv,nv(f)])),dv(g&&wv(n,"all")?",":""),iv,")"])}function Iv(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&!(1!==(n=e.getValue()).params.length||n.rest||n.typeParameters||uD(n)||"Identifier"!==n.params[0].type||n.params[0].typeAnnotation||n.params[0].comments||n.params[0].optional||n.predicate||n.returnType);var n}function Pv(e,t,n){const r=e.getValue(),o=[];return r.async&&o.push("async "),r.generator?o.push("function* "):o.push("function "),r.id&&o.push(e.call(t,"id")),o.push(Mv(e,0,t),uv(nv([Lv(e,t,n),jv(e,t,n)])),r.body?" ":"",e.call(t,"body")),nv(o)}function jv(e,t,n){const r=e.getValue(),o=e.call(t,"returnType");if(r.returnType&&AD(n.originalText,r.returnType,n))return nv([" /*: ",o," */"]);const s=[o];return r.returnType&&r.returnType.typeAnnotation&&s.unshift(": "),r.predicate&&s.push(r.returnType?" ":": ",e.call(t,"predicate")),nv(s)}function Rv(e,t,n){const r=e.getValue(),o=t.semi?";":"",s=["export "],i=r.default||"ExportDefaultDeclaration"===r.type;if(i&&s.push("default "),s.push(Na.printDanglingComments(e,t,!0)),QD(r)&&s.push(sv),r.declaration)s.push(e.call(n,"declaration")),i&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&s.push(o);else{if(r.specifiers&&r.specifiers.length>0){const o=[],i=[],a=[];e.each((t=>{const r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?i.push(n(t)):"ExportNamespaceSpecifier"===r&&a.push(nv(["* as ",n(t)]))}),"specifiers");const u=0!==a.length&&0!==o.length,c=0!==i.length&&(0!==a.length||0!==o.length),l=o.length>1||i.length>0||r.specifiers&&r.specifiers.some((e=>e.comments));let p="";0!==o.length&&(p=l?uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,rv(nv([",",ov]),o)])),dv(wv(t)?",":""),t.bracketSpacing?ov:iv,"}"])):nv(["{",t.bracketSpacing?" ":"",nv(o),t.bracketSpacing?" ":"","}"])),s.push("type"===r.exportKind?"type ":"",nv(i),nv([c?", ":""]),nv(a),nv([u?", ":""]),p)}else s.push("{}");r.source&&s.push(" from ",e.call(n,"source")),s.push(o)}return nv(s)}function Uv(e,t){const n=iD(e);return n?Fs.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),nv(t)}function $v(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?nv([rv(" ",e.map(n,"modifiers"))," "]):""}function qv(e,t,n,r){const o=e.getValue();if(!o[r])return"";if(!Array.isArray(o[r]))return e.call(n,r);const s=e.getNode(2),i=e.getNode(3),a=e.getNode(4);return null!=s&&JD(s)||0===o[r].length||1===o[r].length&&(rE(o[r][0])||"GenericTypeAnnotation"===o[r][0].type&&rE(o[r][0].id)||"TSTypeReference"===o[r][0].type&&rE(o[r][0].typeName)||"NullableTypeAnnotation"===o[r][0].type||a&&"VariableDeclarator"===a.type&&"TSTypeAnnotation"===s.type&&"ArrowFunctionExpression"!==i.type&&"TSUnionType"!==o[r][0].type&&"UnionTypeAnnotation"!==o[r][0].type&&"TSIntersectionType"!==o[r][0].type&&"IntersectionTypeAnnotation"!==o[r][0].type&&"TSConditionalType"!==o[r][0].type&&"TSMappedType"!==o[r][0].type&&"TSTypeOperator"!==o[r][0].type&&"TSIndexedAccessType"!==o[r][0].type&&"TSArrayType"!==o[r][0].type)?nv(["<",rv(", ",e.map(n,r)),function(n){if(!uD(n))return"";const r=n.comments.every(gm.isBlockComment),o=Na.printDanglingComments(e,t,r);return r?o:nv([o,sv])}(o),">"]):uv(nv(["<",cv(nv([iv,rv(nv([",",ov]),e.map(n,r))])),dv("typescript"!==t.parser&&"babel-ts"!==t.parser&&wv(t,"all")?",":""),iv,">"]))}function Vv(e,t,n){const r=e.getValue(),o=[];r.abstract&&o.push("abstract "),o.push("class"),r.id&&o.push(" ",e.call(n,"id")),o.push(e.call(n,"typeParameters"));const s=[];if(r.superClass){const i=nv(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?s.push(uv(nv([ov,e.call((e=>Na.printComments(e,(()=>i),t)),"superClass")]))):o.push(nv([" ",e.call((e=>Na.printComments(e,(()=>i),t)),"superClass")]))}else r.extends&&r.extends.length>0&&o.push(" extends ",rv(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&s.push(ov,"mixins ",uv(cv(rv(nv([",",ov]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&s.push(ov,"implements",uv(cv(nv([ov,rv(nv([",",ov]),e.map(n,"implements"))])))),s.length>0&&o.push(uv(cv(nv(s)))),r.body&&r.body.comments&&fD(t.originalText,r.body,t)?o.push(sv):o.push(" "),o.push(e.call(n,"body")),o}function Wv(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function Yv(e,t,n){const r=e.call(n,"property"),o=e.getValue(),s=Wv(e);return o.computed?!o.property||jD(o.property)?nv([s,"[",r,"]"]):uv(nv([s,"[",cv(nv([iv,r])),iv,"]"])):nv([s,".",r])}function Kv(e,t,n){return nv(["::",e.call(n,"callee")])}function Jv(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?iv:sv:iv}function zv(e,t,n,r){return e?sv:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?sv:iv:sv}function Gv(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!kD(e.right))}function Hv(e,t,n,r,o){let s=[];const i=e.getValue();if(vD(i)){Ly(i.operator,i.left.operator)?s=s.concat(e.call((e=>Hv(e,t,n,!0,o)),"left")):s.push(e.call(t,"left"));const a=Gv(i),u=("|>"===i.operator||"NGPipeExpression"===i.type||"|"===i.operator&&"__vue_expression"===n.parser)&&!fD(n.originalText,i.right,n),c="NGPipeExpression"===i.type?"|":i.operator,l="NGPipeExpression"===i.type&&0!==i.arguments.length?uv(cv(nv([iv,": ",rv(nv([iv,":",dv(" ")]),e.map(t,"arguments").map((e=>lv(2,uv(e)))))]))):"",p=nv(a?[c," ",e.call(t,"right"),l]:[u?iv:"",c,u?" ":ov,e.call(t,"right"),l]),f=e.getParentNode(),d=!(o&&"LogicalExpression"===i.type)&&f.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;s.push(" ",d?uv(p):p),r&&i.comments&&(s=Na.printComments(e,(()=>nv(s)),n))}else s.push(e.call(t));return s}function Xv(e,t,n,r){return fD(r.originalText,t,r)?cv(nv([ov,n])):vD(t)&&!Gv(t)||"ConditionalExpression"===t.type&&vD(t.test)&&!Gv(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||WD(e)||"MemberExpression"===e.type)&&(WD(t)||LD(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?uv(cv(nv([ov,n]))):nv([" ",n])}function Qv(e,t,n,r,o,s){if(!r)return t;const i=Xv(e,r,o,s);return uv(nv([t,n,i]))}function Zv(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?nv([" ",t]):cv(nv([ov,t]))}function eE(e,t,n){const r=ZD(e),o=n||"DirectiveLiteral"===e.type;return $y(r,t,o)}function tE(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function nE(e,t){const n=e.getValue();return!!(ky(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!Iv(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||kD(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!dD(n)&&e.call((e=>nE(e,t)),...sD(e,n))}function rE(e){if(qD(e)||RD(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,n=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&n)return!0}return!1}function oE(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&RD(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&RD(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function sE(e,t,n,r){const o=[];let s=[];return e.each((e=>{o.push(nv(s)),o.push(uv(r(e))),s=[",",ov],e.getValue()&&Gy(t.originalText,e.getValue(),t.locEnd)&&s.push(iv)}),n),nv(o)}function iE(e,t,n){const r=e.getValue(),o=t.semi?";":"",s=[];r.argument&&(ev(t,r.argument)?s.push(nv([" (",cv(nv([sv,e.call(n,"argument")])),sv,")"])):vD(r.argument)||"SequenceExpression"===r.argument.type?s.push(uv(nv([dv(" ("," "),cv(nv([iv,e.call(n,"argument")])),iv,dv(")")]))):s.push(" ",e.call(n,"argument")));const i=Array.isArray(r.comments)&&r.comments[r.comments.length-1],a=i&&("CommentLine"===i.type||"Line"===i.type);return a&&s.push(o),uD(r)&&s.push(" ",Na.printDanglingComments(e,t,!0)),a||s.push(o),nv(s)}var aE={preprocess:My,print:function(e,t,n,r){const o=e.getValue();let s=!1;const i=function(e,t,n,r){const o=e.getValue(),s=t.semi?";":"";if(!o)return"";if("string"==typeof o)return o;const i=Zy(e,t,n);if(i)return i;let a=[];switch(o.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return nv([e.call(n,"node"),sv]);case"File":return o.program&&o.program.interpreter&&a.push(e.call((e=>e.call(n,"interpreter")),"program")),a.push(e.call(n,"program")),nv(a);case"Program":return o.directives&&e.each((e=>{a.push(n(e),s,sv),Gy(t.originalText,e.getValue(),t.locEnd)&&a.push(sv)}),"directives"),a.push(e.call((e=>Fv(e,t,n)),"body")),a.push(Na.printDanglingComments(e,t,!0)),o.body.every((({type:e})=>"EmptyStatement"===e))&&!o.comments||a.push(sv),nv(a);case"EmptyStatement":case"NGEmptyExpression":return"";case"ExpressionStatement":if(o.directive)return nv([eE(o.expression,t,!0),s]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===o)return nv([e.call(n,"expression"),eD(o.expression)?";":""])}return nv([e.call(n,"expression"),zD(t,e)?"":s]);case"ParenthesizedExpression":return o.expression.comments?uv(nv(["(",cv(nv([iv,e.call(n,"expression")])),iv,")"])):nv(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Qv(o.left,e.call(n,"left"),nv([" ",o.operator]),o.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),s=e.getParentNode(1),i=o!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),a=Hv(e,n,t,!1,i);if(i)return nv(a);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===o||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return uv(nv([cv(nv([iv,nv(a)])),iv]));const u="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===s.type||"|"!==o.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==o.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===s.type&&1===s.body.length)||o===r.body&&"ArrowFunctionExpression"===r.type||o!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type&&"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||"TemplateLiteral"===r.type,c="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,l=vD(o.left)&&Ly(o.operator,o.left.operator);if(u||Gv(o)&&!l||!Gv(o)&&c)return uv(nv(a));if(0===a.length)return"";const p=kD(o.right),f=nv(p?a.slice(1,-1):a.slice(1)),d=Symbol("logicalChain-"+ ++Av),h=uv(nv([a.length>0?a[0]:"",cv(f)]),{id:d});if(!p)return h;const g=Ry(a);return uv(nv([h,dv(cv(g),g,{groupId:d})]))}case"AssignmentPattern":return nv([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type),r=uv(nv(["<",cv(nv([iv,e.call(n,"typeAnnotation")])),iv,">"])),s=nv([dv("("),cv(nv([iv,e.call(n,"expression")])),iv,dv(")")]);return t?pv([nv([r,e.call(n,"expression")]),nv([r,uv(s,{shouldBreak:!0})]),nv([r,e.call(n,"expression")])]):uv(nv([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,s=0;do{r=e.getParentNode(s),s++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const i=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return nv([e.call(n,"object"),i?Yv(e,0,n):uv(cv(nv([iv,Yv(e,0,n)])))])}case"MetaProperty":return nv([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return o.object&&a.push(e.call(n,"object")),a.push(uv(cv(nv([iv,Kv(e,0,n)])))),nv(a);case"Identifier":return nv([o.name,Wv(e),Bv(e,t,n)]);case"V8IntrinsicIdentifier":return nv(["%",o.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return nv(["...",e.call(n,"argument"),Bv(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return a.push(Pv(e,n,t)),o.body||a.push(s),nv(a);case"ArrowFunctionExpression":{o.async&&a.push("async "),Iv(e,t)?a.push(e.call(n,"params",0)):a.push(uv(nv([Lv(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),jv(e,n,t)])));const s=Na.printDanglingComments(e,t,!0,(e=>{const n=Xy(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)}));s&&a.push(" ",s),a.push(" =>");const i=e.call((e=>n(e,r)),"body");if(!fD(t.originalText,o.body,t)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||kD(o.body)||KD(o.body,t.originalText,t)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return uv(nv([nv(a)," ",i]));if("SequenceExpression"===o.body.type)return uv(nv([nv(a),uv(nv([" (",cv(nv([iv,i])),iv,")"]))]));const u=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(o.comments&&o.comments.length),c=r&&r.expandLastArg&&wv(t,"all"),l="ConditionalExpression"===o.body.type&&!Ky(o.body,!1);return uv(nv([nv(a),uv(nv([cv(nv([ov,l?dv("","("):"",i,l?dv("",")"):""])),u?nv([dv(c?",":""),iv]):""]))]))}case"YieldExpression":return a.push("yield"),o.delegate&&a.push("*"),o.argument&&a.push(" ",e.call(n,"argument")),nv(a);case"AwaitExpression":{a.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===o||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===o?uv(nv([cv(nv([iv,nv(a)])),iv])):nv(a)}case"ImportSpecifier":return o.importKind&&a.push(e.call(n,"importKind")," "),a.push(e.call(n,"imported")),o.local&&o.local.name!==o.imported.name&&a.push(" as ",e.call(n,"local")),nv(a);case"ExportSpecifier":return a.push(e.call(n,"local")),o.exported&&o.exported.name!==o.local.name&&a.push(" as ",e.call(n,"exported")),nv(a);case"ImportNamespaceSpecifier":return a.push("* as "),a.push(e.call(n,"local")),nv(a);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return nv(["export = ",e.call(n,"expression"),s]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Rv(e,t,n);case"ExportAllDeclaration":return a.push("export "),"type"===o.exportKind&&a.push("type "),a.push("* "),o.exported&&a.push("as ",e.call(n,"exported")," "),a.push("from ",e.call(n,"source"),s),nv(a);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{a.push("import "),o.importKind&&"value"!==o.importKind&&a.push(o.importKind+" ");const r=[],i=[];return o.specifiers&&o.specifiers.length>0?(e.each((e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):i.push(n(e))}),"specifiers"),r.length>0&&a.push(rv(", ",r)),r.length>0&&i.length>0&&a.push(", "),1===i.length&&0===r.length&&o.specifiers&&!o.specifiers.some((e=>e.comments))?a.push(nv(["{",t.bracketSpacing?" ":"",nv(i),t.bracketSpacing?" ":"","}"])):i.length>=1&&a.push(uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,rv(nv([",",ov]),i)])),dv(wv(t)?",":""),t.bracketSpacing?ov:iv,"}"]))),a.push(" from ")):(o.importKind&&"type"===o.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(o),t.locStart(o.source))))&&a.push("{} from "),a.push(e.call(n,"source"),s),nv(a)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call((e=>Fv(e,t,n)),"body"),i=o.body.find((e=>"EmptyStatement"!==e.type)),u=o.directives&&o.directives.length>0,c=e.getParentNode(),l=e.getParentNode(1);return i||u||uD(o)||"ArrowFunctionExpression"!==c.type&&"FunctionExpression"!==c.type&&"FunctionDeclaration"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"ForStatement"!==c.type&&"WhileStatement"!==c.type&&"DoWhileStatement"!==c.type&&"DoExpression"!==c.type&&("CatchClause"!==c.type||l.finalizer)&&"TSModuleDeclaration"!==c.type?(a.push("{"),u&&e.each((e=>{a.push(cv(nv([sv,n(e),s]))),Gy(t.originalText,e.getValue(),t.locEnd)&&a.push(sv)}),"directives"),i&&a.push(cv(nv([sv,r]))),a.push(Na.printDanglingComments(e,t)),a.push(sv,"}"),nv(a)):"{}"}case"ReturnStatement":return nv(["return",iE(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===o.type,s=Wv(e);if(!r&&"Identifier"===o.callee.type&&("require"===o.callee.name||"define"===o.callee.name)||1===o.arguments.length&&KD(o.arguments[0],t.originalText,t)||!r&&JD(o,e.getParentNode()))return nv([r?"new ":"",e.call(n,"callee"),s,Mv(e,0,n),nv(["(",rv(", ",e.map(n,"arguments")),")"])]);const i="Identifier"===o.callee.type&&cD(o.callee.trailingComments);if(i&&(o.callee.trailingComments[0].printed=!0),!r&&ID(o.callee)&&!e.call((e=>ky(e,t)),"callee"))return function(e,t,n){const r=[];function o(e){const{originalText:n}=t,r=Xy(n,e,t.locEnd);return")"===n.charAt(r)?Hy(n,r+1,t.locEnd):Gy(n,e,t.locEnd)}function s(e){const i=e.getValue();"CallExpression"!==i.type&&"OptionalCallExpression"!==i.type||!ID(i.callee)&&"CallExpression"!==i.callee.type&&"OptionalCallExpression"!==i.callee.type?ID(i)?(r.unshift({node:i,needsParens:ky(e,t),printed:Na.printComments(e,(()=>"OptionalMemberExpression"===i.type||"MemberExpression"===i.type?Yv(e,0,n):Kv(e,0,n)),t)}),e.call((e=>s(e)),"object")):"TSNonNullExpression"===i.type?(r.unshift({node:i,printed:Na.printComments(e,(()=>"!"),t)}),e.call((e=>s(e)),"expression")):r.unshift({node:i,printed:e.call(n)}):(r.unshift({node:i,printed:nv([Na.printComments(e,(()=>nv([Wv(e),Mv(e,0,n),Nv(e,t,n)])),t),o(i)?sv:""])}),e.call((e=>s(e)),"callee"))}const i=e.getValue();r.unshift({node:i,printed:nv([Wv(e),Mv(e,0,n),Nv(e,t,n)])}),e.call((e=>s(e)),"callee");const a=[];let u=[r[0]],c=1;for(;ce.trailing))&&(a.push(u),u=[],l=!1)}function p(e){return/^[A-Z]|^[_$]+$/.test(e)}function f(e){return e.length<=t.tabWidth}function d(t){const n=e.getParentNode(),r=n&&"ExpressionStatement"===n.type,o=t[1].length&&t[1][0].node.computed;if(1===t[0].length){const e=t[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(p(e.name)||r&&f(e.name)||o)}const s=Ry(t[0]).node;return("MemberExpression"===s.type||"OptionalMemberExpression"===s.type)&&"Identifier"===s.property.type&&(p(s.property.name)||o)}u.length>0&&a.push(u);const h=a.length>=2&&!a[1][0].node.comments&&d(a);function g(e){const t=e.map((e=>e.printed));return e.length>0&&e[e.length-1].needsParens?nv(["(",...t,")"]):nv(t)}function m(e){return 0===e.length?"":cv(uv(nv([sv,rv(sv,e.map(g))])))}const y=a.map(g),D=nv(y),v=h?3:2,E=a.reduce(((e,t)=>e.concat(t)),[]),b=E.slice(1,-1).some((e=>pD(e.node)))||E.slice(0,-1).some((e=>yD(e.node)))||a[v]&&pD(a[v][0].node);if(a.length<=v&&!b)return BD(e)?D:uv(D);const C=Ry(h?a.slice(1,2)[0]:a[0]).node,A="CallExpression"!==C.type&&"OptionalCallExpression"!==C.type&&o(C),w=nv([g(a[0]),h?nv(a.slice(1,2).map(g)):"",A?sv:"",m(a.slice(h?2:1))]),S=r.map((({node:e})=>e)).filter(ED);return b||S.length>2&&S.some((e=>!e.arguments.every((e=>$D(e,0)))))||y.slice(0,-1).some(Dv)||(x=Ry(y),F=Ry(Ry(a)).node,ED(F)&&Dv(x)&&S.slice(0,-1).some((e=>e.arguments.some(xD))))?uv(w):nv([Dv(D)||A?hv:"",pv([D,w])]);var x,F}(e,t,n);const a=nv([r?"new ":"",e.call(n,"callee"),s,i?"/*:: ".concat(o.callee.trailingComments[0].value.slice(2).trim()," */"):"",Mv(e,0,n),Nv(e,t,n)]);return ED(o.callee)?uv(a):a}case"TSInterfaceDeclaration":return o.declare&&a.push("declare "),a.push(o.abstract?"abstract ":"",$v(e,0,n),"interface ",e.call(n,"id"),o.typeParameters?e.call(n,"typeParameters"):""," "),o.extends&&o.extends.length&&a.push(uv(cv(nv([iv,"extends ",(1===o.extends.length?DD:cv)(rv(nv([",",ov]),e.map(n,"extends")))," "])))),a.push(e.call(n,"body")),nv(a);case"ObjectTypeInternalSlot":return nv([o.static?"static ":"","[[",e.call(n,"id"),"]]",Wv(e),o.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===o.type?"members":"TSInterfaceBody"===o.type?"body":"properties";const i="ObjectTypeAnnotation"===o.type,a=[];i&&a.push("indexers","callProperties","internalSlots"),a.push(r);const u=a.map((e=>o[e][0])).sort(((e,n)=>t.locStart(e)-t.locStart(n)))[0],c=e.getParentNode(0),l=i&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),p="TSInterfaceBody"===o.type||l||"ObjectPattern"===o.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&o.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==o.type&&u&&jy(t.originalText,t.locStart(o),t.locStart(u)),f=l?";":"TSInterfaceBody"===o.type||"TSTypeLiteral"===o.type?dv(s,";"):",",d=o.exact?"{|":"{",h=o.exact?"|}":"}",g=[];a.forEach((r=>{e.each((e=>{const r=e.getValue();g.push({node:r,printed:n(e),loc:t.locStart(r)})}),r)}));let m=[];const y=g.sort(((e,t)=>e.loc-t.loc)).map((e=>{const n=nv(m.concat(uv(e.printed)));return m=[f,ov],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Wy(e.node)||m.shift(),Gy(t.originalText,e.node,t.locEnd)&&m.push(sv),n}));if(o.inexact){let n;if(uD(o)){const r=!o.comments.every(gm.isBlockComment),s=Na.printDanglingComments(e,t,!0);n=nv([s,r||Py(t.originalText,t.locEnd(o.comments[o.comments.length-1]))?sv:ov,"..."])}else n="...";y.push(nv(m.concat(n)))}const D=Ry(o[r]),v=!(o.inexact||D&&("RestElement"===D.type||Wy(D)));let E;if(0===y.length){if(!uD(o))return nv([d,h,Bv(e,t,n)]);E=uv(nv([d,Na.printDanglingComments(e,t),iv,h,Wv(e),Bv(e,t,n)]))}else E=nv([d,cv(nv([t.bracketSpacing?ov:iv,nv(y)])),dv(v&&(","!==f||wv(t))?f:""),nv([t.bracketSpacing?ov:iv,h]),Wv(e),Bv(e,t,n)]);return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,n)=>oE(e)&&("params"===t||"parameters"===t)&&0===n))||e.match(rE,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,n)=>oE(e)&&("params"===t||"parameters"===t)&&0===n))?E:uv(E,{shouldBreak:p})}case"ObjectProperty":case"Property":return o.method||"get"===o.kind||"set"===o.kind?kv(e,t,n):(o.shorthand?a.push(e.call(n,"value")):a.push(Qv(o.key,Tv(e,t,n),":",o.value,e.call(n,"value"),t)),nv(a));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return o.decorators&&0!==o.decorators.length&&a.push(Sv(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),("TSAbstractMethodDefinition"===o.type||o.abstract)&&a.push("abstract "),a.push(kv(e,t,n)),nv(a);case"ObjectMethod":return kv(e,t,n);case"Decorator":return nv(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===o.elements.length)uD(o)?a.push(uv(nv(["[",Na.printDanglingComments(e,t),iv,"]"]))):a.push("[]");else{const r=Ry(o.elements),s=!(r&&"RestElement"===r.type),i=s&&null===r,u=o.elements.length>1&&o.elements.every(((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const o=n[t+1];if(o&&r!==o.type)return!1;const s="ArrayExpression"===r?"elements":"properties";return e[s]&&e[s].length>1}));a.push(uv(nv(["[",cv(nv([iv,sE(e,t,"elements",n)])),i?",":"",dv(s&&!i&&wv(t)?",":""),Na.printDanglingComments(e,t,!0),iv,"]"]),{shouldBreak:u}))}return a.push(Wv(e),Bv(e,t,n)),nv(a);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each((e=>{0===e.getName()?t.push(n(e)):t.push(",",cv(nv([ov,n(e)])))}),"expressions"),uv(nv(t))}return uv(nv([rv(nv([",",ov]),e.map(n,"expressions"))]))}case"ThisExpression":case"ThisTypeAnnotation":case"TSThisType":return"this";case"Super":return"super";case"NullLiteral":case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"RegExpLiteral":return tE(o);case"NumericLiteral":return qy(o.extra.raw);case"BigIntLiteral":return(o.bigint||(o.extra?o.extra.raw:o.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(o.regex)return tE(o.regex);if("number"==typeof o.value)return qy(o.raw);if("string"!=typeof o.value)return""+o.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"==typeof o.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return eE(o,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":case"StringLiteralTypeAnnotation":return eE(o,t);case"UnaryExpression":return a.push(o.operator),/[a-z]$/.test(o.operator)&&a.push(" "),o.argument.comments&&o.argument.comments.length>0?a.push(uv(nv(["(",cv(nv([iv,e.call(n,"argument")])),iv,")"]))):a.push(e.call(n,"argument")),nv(a);case"UpdateExpression":return a.push(e.call(n,"argument"),o.operator),o.prefix&&a.reverse(),nv(a);case"ConditionalExpression":return xv(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?iv:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map((e=>n(e)),"declarations"),r=e.getParentNode(),i="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=o.declarations.some((e=>e.init));let c;return 1!==t.length||o.declarations[0].comments?t.length>0&&(c=cv(t[0])):c=t[0],a=[o.declare?"declare ":"",o.kind,c?nv([" ",c]):"",cv(nv(t.slice(1).map((e=>nv([",",u&&!i?sv:ov,e])))))],i&&r.body!==o||a.push(s),uv(nv(a))}case"TSTypeAliasDeclaration":{o.declare&&a.push("declare ");const r=Xv(o.id,o.typeAnnotation,o.typeAnnotation&&e.call(n,"typeAnnotation"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,s),uv(nv(a))}case"VariableDeclarator":return Qv(o.id,e.call(n,"id")," =",o.init,o.init&&e.call(n,"init"),t);case"WithStatement":return uv(nv(["with (",e.call(n,"object"),")",Zv(o.body,e.call(n,"body"))]));case"IfStatement":{const r=Zv(o.consequent,e.call(n,"consequent")),s=uv(nv(["if (",uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",r]));if(a.push(s),o.alternate){const r=yD(o.consequent)&&o.consequent.comments.some((e=>e.trailing&&!gm.isBlockComment(e)))||QD(o),s="BlockStatement"===o.consequent.type&&!r;a.push(s?" ":sv),uD(o)&&a.push(Na.printDanglingComments(e,t,!0),r?sv:" "),a.push("else",uv(Zv(o.alternate,e.call(n,"alternate"),"IfStatement"===o.alternate.type)))}return nv(a)}case"ForStatement":{const r=Zv(o.body,e.call(n,"body")),s=Na.printDanglingComments(e,t,!0),i=s?nv([s,iv]):"";return o.init||o.test||o.update?nv([i,uv(nv(["for (",uv(nv([cv(nv([iv,e.call(n,"init"),";",ov,e.call(n,"test"),";",ov,e.call(n,"update")])),iv])),")",r]))]):nv([i,uv(nv(["for (;;)",r]))])}case"WhileStatement":return uv(nv(["while (",uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",Zv(o.body,e.call(n,"body"))]));case"ForInStatement":return uv(nv([o.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Zv(o.body,e.call(n,"body"))]));case"ForOfStatement":return uv(nv(["for",o.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Zv(o.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Zv(o.body,e.call(n,"body")),r=uv(nv(["do",t]));return a=[r],"BlockStatement"===o.body.type?a.push(" "):a.push(sv),a.push("while ("),a.push(uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",s),nv(a)}case"DoExpression":return nv(["do ",e.call(n,"body")]);case"BreakStatement":return a.push("break"),o.label&&a.push(" ",e.call(n,"label")),a.push(s),nv(a);case"ContinueStatement":return a.push("continue"),o.label&&a.push(" ",e.call(n,"label")),a.push(s),nv(a);case"LabeledStatement":return"EmptyStatement"===o.body.type?nv([e.call(n,"label"),":;"]):nv([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return nv(["try ",e.call(n,"block"),o.handler?nv([" ",e.call(n,"handler")]):"",o.finalizer?nv([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(o.param){const r=o.param.comments&&o.param.comments.some((e=>!gm.isBlockComment(e)||e.leading&&Py(t.originalText,t.locEnd(e))||e.trailing&&Py(t.originalText,t.locStart(e),{backwards:!0}))),s=e.call(n,"param");return nv(["catch ",nv(r?["(",cv(nv([iv,s])),iv,") "]:["(",s,") "]),e.call(n,"body")])}return nv(["catch ",e.call(n,"body")]);case"ThrowStatement":return nv(["throw",iE(e,t,n)]);case"SwitchStatement":return nv([uv(nv(["switch (",cv(nv([iv,e.call(n,"discriminant")])),iv,")"]))," {",o.cases.length>0?cv(nv([sv,rv(sv,e.map((e=>{const r=e.getValue();return nv([e.call(n),o.cases.indexOf(r)!==o.cases.length-1&&Gy(t.originalText,r,t.locEnd)?sv:""])}),"cases"))])):"",sv,"}"]);case"SwitchCase":{o.test?a.push("case ",e.call(n,"test"),":"):a.push("default:");const r=o.consequent.filter((e=>"EmptyStatement"!==e.type));if(r.length>0){const o=e.call((e=>Fv(e,t,n)),"consequent");a.push(1===r.length&&"BlockStatement"===r[0].type?nv([" ",o]):cv(nv([sv,o])))}return nv(a)}case"DebuggerStatement":return nv(["debugger",s]);case"JSXAttribute":if(a.push(e.call(n,"name")),o.value){let r;if(WD(o.value)){let e=ZD(o.value).replace(/'/g,"'").replace(/"/g,'"');const n=zy(e,t.jsxSingleQuote?"'":'"'),s="'"===n?"'":""";e=e.slice(1,-1).replace(new RegExp(n,"g"),s),r=nv([n,e,n])}else r=e.call(n,"value");a.push("=",r)}return nv(a);case"JSXIdentifier":return""+o.name;case"JSXNamespacedName":return rv(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return rv(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return rv(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return nv(["{",e.call((e=>{const r=nv(["...",n(e)]),o=e.getValue();return o.comments&&o.comments.length?nv([cv(nv([iv,Na.printComments(e,(()=>r),t)])),iv]):r}),"JSXSpreadAttribute"===o.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=o.expression.comments&&o.expression.comments.length>0,s="JSXEmptyExpression"===o.expression.type||!r&&("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type||"ArrowFunctionExpression"===o.expression.type||"CallExpression"===o.expression.type||"OptionalCallExpression"===o.expression.type||"FunctionExpression"===o.expression.type||"TemplateLiteral"===o.expression.type||"TaggedTemplateExpression"===o.expression.type||"DoExpression"===o.expression.type||kD(t)&&("ConditionalExpression"===o.expression.type||vD(o.expression)));return uv(nv(s?["{",e.call(n,"expression"),gv,"}"]:["{",cv(nv([iv,e.call(n,"expression")])),iv,gv,"}"]))}case"JSXFragment":case"JSXElement":{const r=Na.printComments(e,(()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&bD(r))return nv([e.call(n,"openingElement"),e.call(n,"closingElement")]);const o="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),s="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return nv([o,nv(e.map(n,"children")),s]);r.children=r.children.map((e=>_D(e)?{type:"JSXText",value:" ",raw:" "}:e));const i=r.children.filter(kD).length>0,a=r.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let c=Dv(o)||i||u||a;const l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?nv([" "]):dv(nv([p,iv])," "),d=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,o){const s=e.getValue(),i=[];return e.map(((e,t)=>{const a=e.getValue();if(ND(a)){const e=ZD(a);if(MD(a)){const n=e.split(XD);if(""===n[0]){if(i.push(""),n.shift(),/\n/.test(n[0])){const e=s.children[t+1];i.push(zv(o,n[1],a,e))}else i.push(r);n.shift()}let u;if(""===Ry(n)&&(n.pop(),u=n.pop()),0===n.length)return;if(n.forEach(((e,t)=>{t%2==1?i.push(ov):i.push(e)})),void 0!==u)if(/\n/.test(u)){const e=s.children[t+1];i.push(zv(o,Ry(i),a,e))}else i.push(r);else{const e=s.children[t+1];i.push(Jv(o,Ry(i),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(i.push(""),i.push(sv)):(i.push(""),i.push(r))}else{const r=n(e);i.push(r);const u=s.children[t+1];if(u&&MD(u)){const e=ZD(u).trim().split(XD)[0];i.push(Jv(o,e,a,u))}else i.push(sv)}}),"children"),i}(e,0,n,f,d),g=r.children.some((e=>MD(e)));for(let e=h.length-2;e>=0;e--){const t=""===h[e]&&""===h[e+1],n=h[e]===sv&&""===h[e+1]&&h[e+2]===sv,r=(h[e]===iv||h[e]===sv)&&""===h[e+1]&&h[e+2]===f,o=h[e]===f&&""===h[e+1]&&(h[e+2]===iv||h[e+2]===sv),s=h[e]===f&&""===h[e+1]&&h[e+2]===f,i=h[e]===iv&&""===h[e+1]&&h[e+2]===sv||h[e]===sv&&""===h[e+1]&&h[e+2]===iv;n&&g||t||r||s||i?h.splice(e,2):o&&h.splice(e+1,2)}for(;h.length&&(vv(Ry(h))||Ev(Ry(h)));)h.pop();for(;h.length&&(vv(h[0])||Ev(h[0]))&&(vv(h[1])||Ev(h[1]));)h.shift(),h.shift();const m=[];h.forEach(((e,t)=>{if(e===f){if(1===t&&""===h[t-1])return 2===h.length?void m.push(p):void m.push(nv([p,sv]));if(t===h.length-1)return void m.push(p);if(""===h[t-1]&&h[t-2]===sv)return void m.push(p)}m.push(e),Dv(e)&&(c=!0)}));const y=g?fv(m):uv(nv(m),{shouldBreak:!0});if(l)return y;const D=uv(nv([o,cv(nv([sv,y])),sv,s]));return c?D:pv([uv(nv([o,nv(h),s])),D])}(e,t,n)),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const o=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),ED,(e=>"JSXExpressionContainer"===e.type)),s=ky(e,n);return uv(nv([s?"":dv("("),cv(nv([iv,t])),iv,s?"":dv(")")]),{shouldBreak:o})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),o=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!o)return nv(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&WD(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!o&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return uv(nv(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",nv(e.map(n,"attributes")),r.selfClosing?" />":">"]));const s=r.attributes.length&&yD(Ry(r.attributes)),i=!r.attributes.length&&!o||t.jsxBracketSameLine&&(!o||r.attributes.length)&&!s,a=r.attributes&&r.attributes.some((e=>e.value&&WD(e.value)&&e.value.value.includes("\n")));return uv(nv(["<",e.call(n,"name"),e.call(n,"typeParameters"),nv([cv(nv(e.map((e=>nv([ov,n(e)])),"attributes"))),r.selfClosing?ov:i?">":iv]),r.selfClosing?"/>":i?"":">"]),{shouldBreak:a})}case"JSXClosingElement":return nv([""]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=o.comments&&o.comments.length,r=n&&!o.comments.every(gm.isBlockComment),s="JSXOpeningFragment"===o.type;return nv([s?"<":""])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=o.comments&&!o.comments.every(gm.isBlockComment);return nv([Na.printDanglingComments(e,t,!n),n?sv:""])}case"ClassBody":return o.comments||0!==o.body.length?nv(["{",o.body.length>0?cv(nv([sv,e.call((e=>Fv(e,t,n)),"body")])):Na.printDanglingComments(e,t),sv,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{o.decorators&&0!==o.decorators.length&&a.push(Sv(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.declare&&a.push("declare "),o.static&&a.push("static "),("TSAbstractClassProperty"===o.type||o.abstract)&&a.push("abstract "),o.readonly&&a.push("readonly ");const r=oD(o);return r&&a.push(r),a.push(Tv(e,t,n),Wv(e),Bv(e,t,n)),o.value&&a.push(" =",Xv(o.key,o.value,e.call(n,"value"),t)),a.push(s),uv(nv(a))}case"ClassDeclaration":case"ClassExpression":return o.declare&&a.push("declare "),a.push(nv(Vv(e,t,n))),nv(a);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return a.push(e.call(n,"expression")),o.typeParameters&&a.push(e.call(n,"typeParameters")),nv(a);case"TemplateElement":return rv(av,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const s=e.getParentNode();if(TD(o,s)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some((e=>0!==e.length))){const o=[],s=t.map((e=>"${"+Cv(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}")),i=[{hasLineBreak:!1,cells:[]}];for(let t=1;te.cells.length))),u=Array.from({length:a}).fill(0),c=[{cells:r},...i.filter((e=>0!==e.cells.length))];for(const{cells:e}of c.filter((e=>!e.hasLineBreak)))e.forEach(((e,t)=>{u[t]=Math.max(u[t],Uy(e))}));return o.push(gv,"`",cv(nv([sv,rv(sv,c.map((e=>rv(" | ",e.cells.map(((t,n)=>e.hasLineBreak?t:t+" ".repeat(u[n]-Uy(t))))))))])),sv,"`"),nv(o)}}(o,r,t);if(e)return e}const i=VD(o);return i&&(r=r.map((e=>Cv(e,Object.assign({},t,{printWidth:1/0})).formatted))),a.push(gv,"`"),e.each((e=>{const s=e.getName();if(a.push(n(e)),s0&&"TSRestType"===Ry(o[r]).type;return uv(nv(["[",cv(nv([iv,sE(e,t,r,n)])),dv(wv(t,"all")&&!s?",":""),Na.printDanglingComments(e,t,!0),iv,"]"]))}case"ExistsTypeAnnotation":case"TSJSDocAllType":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":case"TSArrayType":return nv([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BooleanLiteralTypeAnnotation":return""+o.value;case"DeclareClass":return Uv(e,Vv(e,t,n));case"TSDeclareFunction":return nv([o.declare?"declare ":"",Pv(e,n,t),s]);case"DeclareFunction":return Uv(e,["function ",e.call(n,"id"),o.predicate?" ":"",e.call(n,"predicate"),s]);case"DeclareModule":return Uv(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return Uv(e,["module.exports",": ",e.call(n,"typeAnnotation"),s]);case"DeclareVariable":return Uv(e,["var ",e.call(n,"id"),s]);case"DeclareExportAllDeclaration":return nv(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return nv(["declare ",Rv(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return a.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),o.supertype&&a.push(": ",e.call(n,"supertype")),o.impltype&&a.push(" = ",e.call(n,"impltype")),a.push(s),"DeclareOpaqueType"===o.type?Uv(e,a):nv(a);case"EnumDeclaration":return nv(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===o.type||o.explicitType){let e=null;switch(o.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}a.push("of ",e," ")}return 0===o.members.length?a.push(uv(nv(["{",Na.printDanglingComments(e,t),iv,"}"]))):a.push(uv(nv(["{",cv(nv([sv,sE(e,t,"members",n),wv(t)?",":""])),Na.printDanglingComments(e,t,!0),sv,"}"]))),nv(a);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return nv([e.call(n,"id")," = ","object"==typeof o.init?e.call(n,"init"):String(o.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),s=e.getParentNode(1),i=e.getParentNode(2);let u="TSFunctionType"===o.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!oD(r)&&!r.optional&&t.locStart(r)===t.locStart(o)||"ObjectTypeCallProperty"===r.type||i&&"DeclareFunction"===i.type),c=u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const l=c&&u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===s.type;return UD(r,t)&&(u=!0,c=!0),l&&a.push("("),a.push(Lv(e,n,t,!1,!0)),(o.returnType||o.predicate||o.typeAnnotation)&&a.push(u?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),l&&a.push(")"),uv(nv(a))}case"TSRestType":return nv(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return nv([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return nv([e.call(n,"name"),Wv(e),o.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":case"ClassImplements":case"InterfaceExtends":return nv([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===o.type||o.declare)&&a.push("declare "),a.push("interface"),"DeclareInterface"!==o.type&&"InterfaceDeclaration"!==o.type||a.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),o.extends.length>0&&a.push(uv(cv(nv([ov,"extends ",(1===o.extends.length?DD:cv)(rv(nv([",",ov]),e.map(n,"extends")))])))),a.push(" ",e.call(n,"body")),uv(nv(a));case"TSClassImplements":return nv([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let s=!1;for(let e=0;e1&&(s=!0),r.push(" & ",e>1?cv(t[e]):t[e])):r.push(cv(nv([" &",ov,t[e]])));return uv(nv(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),s=!("TypeParameterInstantiation"===r.type||"TSTypeParameterInstantiation"===r.type||"GenericTypeAnnotation"===r.type||"TSTypeReference"===r.type||"TSTypeAssertion"===r.type||"TupleTypeAnnotation"===r.type||"TSTupleType"===r.type||"FunctionTypeParam"===r.type&&!r.name||("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&fD(t.originalText,o,t)),i=rE(o),a=e.map((e=>{let r=e.call(n);return i||(r=lv(2,r)),Na.printComments(e,(()=>r),t)}),"types");if(i)return rv(" | ",a);const u=s&&!fD(t.originalText,o,t),c=nv([dv(nv([u?ov:"","| "])),rv(nv([ov,"| "]),a)]);return ky(e,t)?uv(nv([cv(c),iv])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?uv(nv([cv(nv([dv(nv(["(",iv])),c])),iv,dv(")")])):uv(s?cv(c):c)}case"NullableTypeAnnotation":case"TSJSDocNullableType":return nv(["?",e.call(n,"typeAnnotation")]);case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"ObjectTypeCallProperty":return o.static&&a.push("static "),a.push(e.call(n,"value")),nv(a);case"ObjectTypeIndexer":{const t=oD(o);return nv([t||"","[",e.call(n,"id"),o.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=oD(o);let s="";return o.proto?s="proto ":o.static&&(s="static "),nv([s,FD(o)?o.kind+" ":"",r||"",Tv(e,t,n),Wv(e),SD(o,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return nv([e.call(n,"qualification"),".",e.call(n,"id")]);case"NumberLiteralTypeAnnotation":return Fs.strictEqual(typeof o.value,"number"),null!=o.extra?qy(o.extra.raw):qy(o.raw);case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===o.type||o.declare)&&a.push("declare ");const r=Xv(o.id,o.right,e.call(n,"right"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,s),uv(nv(a))}case"TypeCastExpression":return nv(["(",e.call(n,"expression"),Bv(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),o=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return o>=0&&t.originalText.slice(o).match(/^\/\*\s*::/)?nv(["/*:: ",qv(e,t,n,"params")," */"]):qv(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return qv(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return a.push("[",e.call(n,"name")),o.constraint&&a.push(" in ",e.call(n,"constraint")),a.push("]"),nv(a);const s=oD(o);s&&a.push(s),a.push(e.call(n,"name")),o.bound&&(a.push(": "),a.push(e.call(n,"bound"))),o.constraint&&a.push(" extends ",e.call(n,"constraint")),o.default&&a.push(" = ",e.call(n,"default"));const i=e.getNode(2);return r.params&&1===r.params.length&&GD(t)&&!o.constraint&&"ArrowFunctionExpression"===i.type&&a.push(","),nv(a)}case"TypeofTypeAnnotation":return nv(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return nv(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSAsExpression":return nv([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSPropertySignature":return o.export&&a.push("export "),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(Tv(e,t,n),Wv(e)),o.typeAnnotation&&(a.push(": "),a.push(e.call(n,"typeAnnotation"))),o.initializer&&a.push(" = ",e.call(n,"initializer")),nv(a);case"TSParameterProperty":return o.accessibility&&a.push(o.accessibility+" "),o.export&&a.push("export "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(e.call(n,"parameter")),nv(a);case"TSTypeReference":return nv([e.call(n,"typeName"),qv(e,t,n,"typeParameters")]);case"TSTypeQuery":return nv(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),i=o.parameters.length>1?dv(wv(t)?",":""):"",a=uv(nv([cv(nv([iv,rv(nv([", ",iv]),e.map(n,"parameters"))])),i,iv]));return nv([o.export?"export ":"",o.accessibility?nv([o.accessibility," "]):"",o.static?"static ":"",o.readonly?"readonly ":"","[",o.parameters?a:"",o.typeAnnotation?"]: ":"]",o.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?s:""])}case"TSTypePredicate":return nv([o.asserts?"asserts ":"",e.call(n,"parameterName"),o.typeAnnotation?nv([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return nv([e.call(n,"expression"),"!"]);case"TSImportType":return nv([o.isTypeOf?"typeof ":"","import(",e.call(n,o.parameter?"parameter":"argument"),")",o.qualifier?nv([".",e.call(n,"qualifier")]):"",qv(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return nv([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==o.type&&a.push("new "),a.push(uv(Lv(e,n,t,!1,!0))),o.returnType||o.typeAnnotation){const t="TSConstructorType"===o.type;a.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return nv(a);case"TSTypeOperator":return nv([o.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=jy(t.originalText,t.locStart(o),t.locEnd(o));return uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,o.readonly?nv([aD(o.readonly,"readonly")," "]):"",$v(e,0,n),e.call(n,"typeParameter"),o.optional?aD(o.optional,"?"):"",o.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),dv(s,"")])),Na.printDanglingComments(e,t,!0),t.bracketSpacing?ov:iv,"}"]),{shouldBreak:r})}case"TSMethodSignature":return a.push(o.accessibility?nv([o.accessibility," "]):"",o.export?"export ":"",o.static?"static ":"",o.readonly?"readonly ":"",o.computed?"[":"",e.call(n,"key"),o.computed?"]":"",Wv(e),Lv(e,n,t,!1,!0)),(o.returnType||o.typeAnnotation)&&a.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),uv(nv(a));case"TSNamespaceExportDeclaration":return a.push("export as namespace ",e.call(n,"id")),t.semi&&a.push(";"),uv(nv(a));case"TSEnumDeclaration":return o.declare&&a.push("declare "),o.modifiers&&a.push($v(e,0,n)),o.const&&a.push("const "),a.push("enum ",e.call(n,"id")," "),0===o.members.length?a.push(uv(nv(["{",Na.printDanglingComments(e,t),iv,"}"]))):a.push(uv(nv(["{",cv(nv([sv,sE(e,t,"members",n),wv(t,"es5")?",":""])),Na.printDanglingComments(e,t,!0),sv,"}"]))),nv(a);case"TSEnumMember":return a.push(e.call(n,"id")),o.initializer&&a.push(" = ",e.call(n,"initializer")),nv(a);case"TSImportEqualsDeclaration":return o.isExport&&a.push("export "),a.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&a.push(";"),uv(nv(a));case"TSExternalModuleReference":return nv(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),i=ND(o.id),u="TSModuleDeclaration"===r.type,c=o.body&&"TSModuleDeclaration"===o.body.type;if(u)a.push(".");else{o.declare&&a.push("declare "),a.push($v(e,0,n));const r=t.originalText.slice(t.locStart(o),t.locStart(o.id));"Identifier"===o.id.type&&"global"===o.id.name&&!/namespace|module/.test(r)||a.push(i||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return a.push(e.call(n,"id")),c?a.push(e.call(n,"body")):o.body?a.push(" ",uv(e.call(n,"body"))):a.push(s),nv(a)}case"PrivateName":return nv(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return o.escapedText;case"TSConditionalType":return xv(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return nv(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return a.push("#!",o.value,sv),Gy(t.originalText,o,t.locEnd)&&a.push(sv),nv(a);case"NGRoot":return nv([].concat(e.call(n,"node"),o.node.comments&&0!==o.node.comments.length?nv([" //",o.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return uv(rv(nv([";",ov]),e.map((e=>gD(e)?n(e):nv(["(",n(e),")"])),"expressions")));case"NGQuotedExpression":return nv([o.prefix,": ",o.value.trim()]);case"NGMicrosyntax":return nv(e.map(((e,t)=>nv([0===t?"":PD(e.getValue(),t,o)?" ":nv([";",ov]),n(e)])),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(o.name)?o.name:JSON.stringify(o.name);case"NGMicrosyntaxExpression":return nv([e.call(n,"expression"),null===o.alias?"":nv([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),s=PD(o,t,r)||(1===t&&("then"===o.key.name||"else"===o.key.name)||2===t&&"else"===o.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return nv([e.call(n,"key"),s?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return nv(["let ",e.call(n,"key"),null===o.value?"":nv([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return nv([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":case"TSJSDocUnknownType":return"?";case"TSJSDocNonNullableType":return nv(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return nv(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,r);if(!o||Ev(i))return i;const a=iD(e),u=[];if("ClassMethod"===o.type||"ClassPrivateMethod"===o.type||"ClassProperty"===o.type||"TSAbstractClassProperty"===o.type||"ClassPrivateProperty"===o.type||"MethodDefinition"===o.type||"TSAbstractMethodDefinition"===o.type||"TSDeclareMethod"===o.type);else if(o.decorators&&o.decorators.length>0&&!(a&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(o.decorators[0]))){const r="ClassExpression"===o.type||"ClassDeclaration"===o.type||hD(o,t)?sv:ov;e.each((e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),r)}),"decorators"),a&&u.unshift(sv)}else CD(o)&&o.declaration&&o.declaration.decorators&&o.declaration.decorators.length>0&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(o.declaration.decorators[0])?e.each((e=>{const t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),sv)}),"declaration","decorators"):s=ky(e,t);const c=[];if(s&&c.unshift("("),c.push(i),s){const t=e.getValue();lD(t)&&(c.push(" /*"),c.push(t.trailingComments[0].value.trimStart()),c.push("*/"),t.trailingComments[0].printed=!0),c.push(")")}return u.length>0?uv(nv(u.concat(c))):nv(c)},embed:$m,insertPragma:Qy,massageAstNode:qm,hasPrettierIgnore:mD,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(kD(t)||lD(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(cD(t.leadingComments)||cD(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Vy(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}(n)){const e=function(e){const t=e.value.split("\n");return nv(["/*",rv(sv,t.map(((e,n)=>0===n?e.trimEnd():" "+(n x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:el.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:dE,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:dE,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:el.singleQuote,jsxSingleQuote:{since:"1.15.0",category:dE,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:dE,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:dE,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},gE="JavaScript",mE="programming",yE="source.js",DE="javascript",vE="javascript",EE="text/javascript",bE="#f1e05a",CE=["js","node"],AE=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],wE=["Jakefile"],SE=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],xE={name:gE,type:mE,tmScope:yE,aceMode:DE,codemirrorMode:vE,codemirrorMimeType:EE,color:bE,aliases:CE,extensions:AE,filenames:wE,interpreters:SE,languageId:183},FE=Object.freeze({__proto__:null,name:gE,type:mE,tmScope:yE,aceMode:DE,codemirrorMode:vE,codemirrorMimeType:EE,color:bE,aliases:CE,extensions:AE,filenames:wE,interpreters:SE,languageId:183,default:xE}),TE="programming",kE="JavaScript",_E=[".jsx"],OE="source.js.jsx",NE="javascript",BE="text/jsx",ME={name:"JSX",type:TE,group:kE,extensions:_E,tmScope:OE,aceMode:NE,codemirrorMode:"jsx",codemirrorMimeType:BE,languageId:178},LE=Object.freeze({__proto__:null,name:"JSX",type:TE,group:kE,extensions:_E,tmScope:OE,aceMode:NE,codemirrorMode:"jsx",codemirrorMimeType:BE,languageId:178,default:ME}),IE="TypeScript",PE="programming",jE="#2b7489",RE=["ts"],UE=["deno","ts-node"],$E=[".ts"],qE="source.ts",VE="typescript",WE="javascript",YE="application/typescript",KE={name:IE,type:PE,color:jE,aliases:RE,interpreters:UE,extensions:$E,tmScope:qE,aceMode:VE,codemirrorMode:WE,codemirrorMimeType:YE,languageId:378},JE=Object.freeze({__proto__:null,name:IE,type:PE,color:jE,aliases:RE,interpreters:UE,extensions:$E,tmScope:qE,aceMode:VE,codemirrorMode:WE,codemirrorMimeType:YE,languageId:378,default:KE}),zE="programming",GE="TypeScript",HE=[".tsx"],XE="source.tsx",QE="javascript",ZE="text/jsx",eb=94901924,tb={name:"TSX",type:zE,group:GE,extensions:HE,tmScope:XE,aceMode:QE,codemirrorMode:"jsx",codemirrorMimeType:ZE,languageId:eb},nb=Object.freeze({__proto__:null,name:"TSX",type:zE,group:GE,extensions:HE,tmScope:XE,aceMode:QE,codemirrorMode:"jsx",codemirrorMimeType:ZE,languageId:eb,default:tb}),rb="JSON",ob="data",sb="source.json",ib="json",ab="javascript",ub="application/json",cb=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],lb=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],pb={name:rb,type:ob,tmScope:sb,aceMode:ib,codemirrorMode:ab,codemirrorMimeType:ub,searchable:false,extensions:cb,filenames:lb,languageId:174},fb=Object.freeze({__proto__:null,name:rb,type:ob,tmScope:sb,aceMode:ib,codemirrorMode:ab,codemirrorMimeType:ub,searchable:false,extensions:cb,filenames:lb,languageId:174,default:pb}),db="JSON with Comments",hb="data",gb="JSON",mb="source.js",yb="javascript",Db="javascript",vb="text/javascript",Eb=["jsonc"],bb=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],Cb=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],Ab={name:db,type:hb,group:gb,tmScope:mb,aceMode:yb,codemirrorMode:Db,codemirrorMimeType:vb,aliases:Eb,extensions:bb,filenames:Cb,languageId:423},wb=Object.freeze({__proto__:null,name:db,type:hb,group:gb,tmScope:mb,aceMode:yb,codemirrorMode:Db,codemirrorMimeType:vb,aliases:Eb,extensions:bb,filenames:Cb,languageId:423,default:Ab}),Sb="JSON5",xb="data",Fb=[".json5"],Tb="source.js",kb="javascript",_b="javascript",Ob="application/json",Nb={name:Sb,type:xb,extensions:Fb,tmScope:Tb,aceMode:kb,codemirrorMode:_b,codemirrorMimeType:Ob,languageId:175},Bb=Object.freeze({__proto__:null,name:Sb,type:xb,extensions:Fb,tmScope:Tb,aceMode:kb,codemirrorMode:_b,codemirrorMimeType:Ob,languageId:175,default:Nb}),Mb=it(FE),Lb=it(LE),Ib=it(JE),Pb=it(nb),jb=it(fb),Rb=it(wb),Ub=it(Bb);const $b=[nl(Mb,(e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])}))),nl(Mb,(()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),nl(Lb,(()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}))),nl(Ib,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),nl(Pb,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),nl(jb,(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}))),nl(jb,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])}))),nl(Rb,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])}))),nl(Ub,(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))];var qb={languages:$b,options:hE,printers:{estree:aE,"estree-json":fE}};const{cjkPattern:Vb,kPattern:Wb,punctuationPattern:Yb}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:Kb}=mi,Jb=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],zb=Jb.concat(["tableCell","paragraph","heading"]),Gb=new RegExp(Wb),Hb=new RegExp(Yb);function Xb(e,t){const[,n,r,o]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:o}}var Qb={mapAst:function(e,t){return function e(n,r,o){o=o||[];const s=Object.assign({},t(n,r,o));return s.children&&(s.children=s.children.map(((t,n)=>e(t,n,[s].concat(o))))),s}(e,null,null)},splitText:function(e,t){const n="non-cjk",r="cj-letter",o="cjk-punctuation",s=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Vb,")\n(").concat(Vb,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(((e,t,a)=>{t%2!=1?(0!==t&&t!==a.length-1||""!==e)&&e.split(new RegExp("(".concat(Vb,")"))).forEach(((e,t,s)=>{(0!==t&&t!==s.length-1||""!==e)&&(t%2!=0?i(Hb.test(e)?{type:"word",value:e,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:Gb.test(e)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&i({type:"word",value:e,kind:n,hasLeadingPunctuation:Hb.test(e[0]),hasTrailingPunctuation:Hb.test(Kb(e))}))})):s.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),s;function i(e){const t=Kb(s);var i,a;t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?s.push({type:"whitespace",value:" "}):(i=n,a=o,t.kind===i&&e.kind===a||t.kind===a&&e.kind===i||[t.value,e.value].some((e=>/\u3000/.test(e)))||s.push({type:"whitespace",value:""}))),s.push(e)}},punctuationPattern:Yb,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,o=new RegExp("^\\s{0,".concat(r,"}")),s=n.split("\n"),i=n[r],a=n.slice(r).match(new RegExp("^[".concat(i,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(a)).test(s[s.length-1].slice(c(s.length-1)));return s.slice(1,u?-1:void 0).map(((e,t)=>e.slice(c(t+1)).replace(o,""))).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:Xb,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(Xb(e.children[0],t.originalText).numberText),r=Number(Xb(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(Xb(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:Jb,INLINE_NODE_WRAPPER_TYPES:zb};const{builders:{hardline:Zb,literalline:eC,concat:tC,markAsRoot:nC},utils:{mapDoc:rC}}=Ui,{getFencedCodeBlockValue:oC}=Qb;var sC=function(e,t,n,r){const o=e.getValue();if("code"===o.type&&null!==o.lang){const e=o.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=En.getSupportInfo({plugins:r.plugins}).languages.find((t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find((t=>t===".".concat(e)))));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",i=e.repeat(Math.max(3,mi.getMaxContinuousCount(o.value,e)+1)),a=n(oC(o,r.originalText),{parser:t});return nC(tC([i,o.lang,Zb,s(a),i]))}}if("yaml"===o.type)return nC(tC(["---",Zb,o.value&&o.value.trim()?s(n(o.value,{parser:"yaml"})):"","---"]));switch(o.type){case"importExport":return n(o.value,{parser:"babel"});case"jsx":return n("<$>".concat(o.value,""),{parser:"__js_expression",rootMarker:"mdx"})}return null;function s(e){return rC(e,(e=>"string"==typeof e&&e.includes("\n")?tC(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:eC))):e))}};const iC=["format","prettier"];function aC(e){const t="@(".concat(iC.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var uC={startWithPragma:aC,hasPragma:e=>aC(Eu(e).content.trimStart()),insertPragma:e=>{const t=Eu(e),n="\x3c!-- @".concat(iC[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:cC,mapAst:lC,splitText:pC}=Qb,fC=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function dC(e,t,n){return lC(e,(e=>{if(!e.children)return e;const r=e.children.reduce(((e,r)=>{const o=e[e.length-1];return o&&t(o,r)?e.splice(-1,1,n(o,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var hC=function(e,t){return function(e){return dC(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e){return lC(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})))}(e=function(e,t){return lC(e,((e,n,[r])=>{if("text"!==e.type)return e;let{value:o}=e;return"paragraph"===r.type&&(0===n&&(o=o.trimStart()),n===r.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:pC(o,t)}}))}(e=function(e,t){return lC(e,((e,t,n)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t1)return!0;const s=n(r);return-1!==s&&(1===e.children.length?s%t.tabWidth==0:s===n(o)&&(s%t.tabWidth==0||cC(o,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return lC(e,((e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")})))}(e=function(e){return dC(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e,t){return lC(e,(e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&fC.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value})))}(e,t))),t),t),t)))};const{builders:{breakParent:gC,concat:mC,join:yC,line:DC,literalline:vC,markAsRoot:EC,hardline:bC,softline:CC,ifBreak:AC,fill:wC,align:SC,indent:xC,group:FC},utils:{mapDoc:TC},printer:{printDocToString:kC}}=Ui,{getFencedCodeBlockValue:_C,hasGitDiffFriendlyOrderedList:OC,splitText:NC,punctuationPattern:BC,INLINE_NODE_TYPES:MC,INLINE_NODE_WRAPPER_TYPES:LC}=Qb,{replaceEndOfLineWith:IC}=mi,PC=["importExport"],jC=["heading","tableCell","link"],RC=["listItem","definition","footnoteDefinition"];function UC(e,t,n,r){const o=e.getValue(),s=null===o.checked?"":o.checked?"[x] ":"[ ] ";return mC([s,KC(e,t,n,{processor:(e,o)=>{if(0===o&&"list"!==e.getValue().type)return SC(" ".repeat(s.length),e.call(n));const i=" ".repeat((a=t.tabWidth-r.length,c=3,a<(u=0)?u:a>c?c:a));var a,u,c;return mC([i,SC(i,e.call(n))])}})])}function $C(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const o of t.children)if(o.type===e.type&&n(o)?r++:r=-1,o===e)return r}(e,t,(t=>t.ordered===e.ordered))}function qC(e,t){const n=[].concat(t);let r,o=-1;for(;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function VC(e,t){const n=qC(e,t);return-1===n?null:e.getParentNode(n)}function WC(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return bC;const r="always"===n.proseWrap&&!VC(e,jC);return""!==t?r?DC:" ":r?CC:""}function YC(e,t,n){const r=[];let o=null;const{children:s}=e.getValue();return s.forEach(((e,t)=>{switch(zC(e)){case"start":null===o&&(o={index:t,offset:e.position.end.offset});break;case"end":null!==o&&(r.push({start:o,end:{index:t,offset:e.position.start.offset}}),o=null)}})),KC(e,t,n,{processor:(e,o)=>{if(0!==r.length){const e=r[0];if(o===e.start.index)return mC([s[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),s[e.end.index].value]);if(e.start.indexe.call(n)),i=e.getValue(),a=[];let u;return e.map(((e,n)=>{const r=e.getValue(),o=s(e,n);if(!1!==o){const e={parts:a,prevNode:u,parentNode:i,options:t};(function(e,t){const n=0===t.parts.length,r=MC.includes(e.type),o="html"===e.type&&LC.includes(t.parentNode.type);return n||r||o})(r,e)||(a.push(bC),u&&PC.includes(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&RC.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,s="next"===zC(t.prevNode),i="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(n||r||s||i||a)}(r,e)||GC(r,e))&&a.push(bC),GC(r,e)&&a.push(bC)),a.push(o),u=r}}),"children"),o(a)}function JC(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function zC(e){if("html"!==e.type)return!1;const t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function GC(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function HC(e){return TC(e,(e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce(((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e)),[]);return Object.assign({},e,{parts:ZC(t)})}))}function XC(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map((e=>"\\".concat(e))).join("|")).test(e)?"<".concat(e,">"):e}function QC(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+QC(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,o=e.split('"').length-1,s=r>o?'"':o>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(s,")"),"g"),"\\$1"),"".concat(s).concat(e).concat(s)}function ZC(e){return e.reduce(((e,t)=>{const n=mi.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e}),[])}var eA={preprocess:hC,print:function(e,t,n){const r=e.getValue();if(function(e){const t=VC(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return mC(NC(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((n=>"word"===n.type?n.value:""===n.value?"":WC(e,n.value,t))));switch(r.type){case"root":return 0===r.children.length?"":mC([HC(YC(e,t,n)),PC.includes(JC(r).type)?"":bC]);case"paragraph":return KC(e,t,n,{postprocessor:wC});case"sentence":return KC(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(BC,")(_+)"),"(_+)(".concat(BC,"|$)")].join("|"),"g"),((e,t,n,r,o)=>(n?"".concat(t).concat(n):"".concat(r).concat(o)).replace(/_/g,"\\_")));case"whitespace":{const n=e.getParentNode(),o=n.children.indexOf(r),s=n.children[o+1],i=s&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(s.value)?"never":t.proseWrap;return WC(e,r.value,{proseWrap:i})}case"emphasis":{const o=e.getParentNode(),s=o.children.indexOf(r),i=o.children[s-1],a=o.children[s+1],u=i&&"sentence"===i.type&&i.children.length>0&&"word"===mi.getLast(i.children).type&&!mi.getLast(i.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||VC(e,"emphasis")?"*":"_";return mC([u,KC(e,t,n),u])}case"strong":return mC(["**",KC(e,t,n),"**"]);case"delete":return mC(["~~",KC(e,t,n),"~~"]);case"inlineCode":{const e=mi.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return mC([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return mC(["<",n,">"])}case"[":return mC(["[",KC(e,t,n),"](",XC(r.url,")"),QC(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return mC(["![",r.alt||"","](",XC(r.url,")"),QC(r.title,t),")"]);case"blockquote":return mC(["> ",SC("> ",KC(e,t,n))]);case"heading":return mC(["#".repeat(r.depth)+" ",KC(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return SC(e,mC([e,mC(IC(r.value,bC))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,mi.getMaxContinuousCount(r.value,e)+1));return mC([n,r.lang||"",bC,mC(IC(_C(r,t.originalText),bC)),bC,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&mi.getLast(t.children)===r?r.value.trimEnd():r.value,o=/^$/.test(n);return mC(IC(n,o?bC:EC(vC)))}case"list":{const o=$C(r,e.getParentNode()),s=OC(r,t);return KC(e,t,n,{processor:(e,i)=>{const a=function(){const e=r.ordered?(0===i?r.start:s?1:r.start+i)+(o%2==0?". ":") "):o%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=r();return e+" ".repeat(n>=4?0:n);function r(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?mC([a,UC(e,t,n,a)]):mC([a,SC(" ".repeat(a.length),UC(e,t,n,a))])}})}case"thematicBreak":{const t=qC(e,"list");return-1===t?"---":$C(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return mC(["[",KC(e,t,n),"]","full"===r.referenceType?mC(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":return"full"===r.referenceType?mC(["![",r.alt||"","][",r.identifier,"]"]):mC(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""]);case"definition":{const e="always"===t.proseWrap?DC:" ";return FC(mC([mC(["[",r.identifier,"]:"]),xC(mC([e,XC(r.url),null===r.title?"":mC([e,QC(r.title,t,!1)])]))]))}case"footnote":return mC(["[^",KC(e,t,n),"]"]);case"footnoteReference":return mC(["[^",r.identifier,"]"]);case"footnoteDefinition":{const o=e.getParentNode().children[e.getName()+1],s=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return mC(["[^",r.identifier,"]: ",s?KC(e,t,n):FC(mC([SC(" ".repeat(t.tabWidth),KC(e,t,n,{processor:(e,t)=>0===t?FC(mC([CC,e.call(n)])):e.call(n)})),o&&"footnoteDefinition"===o.type?CC:""]))])}case"table":return function(e,t,n){const r=bC.parts[0],o=e.getValue(),s=[];e.map((e=>{const r=[];e.map((e=>{r.push(kC(e.call(n),t).formatted)}),"children"),s.push(r)}),"children");const i=s.reduce(((e,t)=>e.map(((e,n)=>Math.max(e,mi.getStringWidth(t[n]))))),s[0].map((()=>3))),a=yC(r,[l(s[0]),c(),yC(r,s.slice(1).map((e=>l(e))))]);if("never"!==t.proseWrap)return mC([gC,a]);const u=yC(r,[l(s[0],!0),c(!0),yC(r,s.slice(1).map((e=>l(e,!0))))]);return mC([gC,FC(AC(u,a))]);function c(e){return mC(["| ",yC(" | ",i.map(((t,n)=>{const r=e?3:t;switch(o.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}})))," |"])}function l(e,t){return mC(["| ",yC(" | ",t?e:e.map(((e,t)=>{switch(o.align[t]){case"right":return f(e,i[t]);case"center":return d(e,i[t]);default:return p(e,i[t])}})))," |"])}function p(e,t){const n=t-mi.getStringWidth(e);return mC([e," ".repeat(n)])}function f(e,t){const n=t-mi.getStringWidth(e);return mC([" ".repeat(n),e])}function d(e,t){const n=t-mi.getStringWidth(e),r=Math.floor(n/2),o=n-r;return mC([" ".repeat(r),e," ".repeat(o)])}}(e,t,n);case"tableCell":return KC(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?mC([" ",EC(vC)]):mC(["\\",bC]);case"liquidNode":return mC(IC(r.value,bC));case"importExport":case"jsx":return r.value;case"math":return mC(["$$",bC,r.value?mC([mC(IC(r.value,bC)),bC]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:sC,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&uC.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===zC(e.getParentNode().children[t-1])},insertPragma:uC.insertPragma},tA={proseWrap:el.proseWrap,singleQuote:el.singleQuote},nA="Markdown",rA="prose",oA=["pandoc"],sA="markdown",iA="text/x-gfm",aA=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],uA=["contents.lr"],cA="source.gfm",lA={name:nA,type:rA,aliases:oA,aceMode:sA,codemirrorMode:"gfm",codemirrorMimeType:iA,wrap:true,extensions:aA,filenames:uA,tmScope:cA,languageId:222},pA=it(Object.freeze({__proto__:null,name:nA,type:rA,aliases:oA,aceMode:sA,codemirrorMode:"gfm",codemirrorMimeType:iA,wrap:true,extensions:aA,filenames:uA,tmScope:cA,languageId:222,default:lA}));const fA=[nl(pA,(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((e=>".mdx"!==e))}))),nl(pA,(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))];var dA={languages:fA,options:tA,printers:{mdast:eA}};var hA={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:gA}=mi;function mA(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function yA(e){return"prettier-ignore"===e.value.trim()}function DA(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function vA(e){return e&&e.middleComments&&0!==e.middleComments.length}function EA(e){return e&&e.indicatorComment}function bA(e){return e&&e.trailingComment}function CA(e){return e&&e.endComments&&0!==e.endComments.length}function AA(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var wA={getLast:gA,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let o=0;oe(r,n,t)))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let o=e.position.end.offset-1;oe.slice(s)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?u(a.map((e=>0===e.length?[]:[e]))):u(a.map((e=>0===e.length?[]:AA(e))).reduce(((e,t,n)=>0===n||0===a[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(gA(e))?e.concat([t]):e.concat([e.pop().concat(t)])),[]).map((e=>e.reduce(((e,t)=>0!==e.length&&/\s$/.test(gA(e))?e.concat(e.pop()+" "+t):e.concat(t)),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function u(t){if("keep"===e.chomping)return 0===gA(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:AA(e))).reduce(((t,n,o)=>0===o||0===r[o-1].length||0===n.length||"quoteDouble"===e&&gA(gA(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(gA(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return CA(t.head)&&yA(gA(t.head.endComments))}return DA(t)&&yA(gA(t.leadingComments))},hasLeadingComments:DA,hasMiddleComments:vA,hasIndicatorComment:EA,hasTrailingComment:bA,hasEndComments:CA};const{insertPragma:SA,isPragma:xA}=hA,{getAncestorCount:FA,getBlockValueLineContents:TA,getFlowScalarLineContents:kA,getLast:_A,getLastDescendantNode:OA,hasLeadingComments:NA,hasMiddleComments:BA,hasIndicatorComment:MA,hasTrailingComment:LA,hasEndComments:IA,hasPrettierIgnore:PA,isLastDescendantNode:jA,isNextLineEmpty:RA,isNode:UA,isEmptyNode:$A,defineShortcut:qA,mapNode:VA}=wA,WA=Ui.builders,{conditionalGroup:YA,breakParent:KA,concat:JA,dedent:zA,dedentToRoot:GA,fill:HA,group:XA,hardline:QA,ifBreak:ZA,join:ew,line:tw,lineSuffix:nw,literalline:rw,markAsRoot:ow,softline:sw}=WA,{replaceEndOfLineWith:iw}=mi;function aw(e){switch(e.type){case"document":qA(e,"head",(()=>e.children[0])),qA(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":qA(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":qA(e,"key",(()=>e.children[0])),qA(e,"value",(()=>e.children[1]))}return e}function uw(e,t,n,r,o){switch(e.type){case"root":return JA([ew(QA,n.map(((t,r)=>{const s=e.children[r],i=e.children[r+1];return JA([o(t),fw(s,i)?JA([QA,"...",LA(s)?JA([" ",n.call(o,"trailingComment")]):""]):!i||LA(i.head)?"":JA([QA,"---"])])}),"children")),0===e.children.length||(i=OA(e),UA(i,["blockLiteral","blockFolded"])&&"keep"===i.chomping)?"":QA]);case"document":{const s=t.children[n.getName()+1];return ew(QA,["head"===dw(e,s,t,r)?ew(QA,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(o,"head"),JA(["---",LA(e.head)?JA([" ",n.call(o,"head","trailingComment")]):""])].filter(Boolean)):"",pw(e)?n.call(o,"body"):""].filter(Boolean))}case"documentHead":return ew(QA,[].concat(n.map(o,"children"),n.map(o,"endComments")));case"documentBody":{const t=ew(QA,n.map(o,"children")).parts,r=ew(QA,n.map(o,"endComments")).parts,s=0===t.length||0===r.length?"":(e=>UA(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":JA([QA,QA]):QA)(OA(e));return JA([].concat(t,s,r))}case"directive":return JA(["%",ew(" ",[e.name].concat(e.parameters))]);case"comment":return JA(["#",e.value]);case"alias":return JA(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return JA(["&",e.value]);case"plain":return yw(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){const s="quoteDouble"===e.type?n:t;return JA([s,yw(e.type,o,r),s])}if(o.includes(n))return JA([t,yw(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):o,r),t]);if(o.includes(t))return JA([n,yw(e.type,"quoteSingle"===e.type?o.replace(/''/g,t):o,r),n]);const s=r.singleQuote?t:n;return JA([s,yw(e.type,o,r),s])}case"blockFolded":case"blockLiteral":{const t=FA(n,(e=>UA(e,["sequence","mapping"]))),s=jA(n);return JA(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",MA(e)?JA([" ",n.call(o,"indicatorComment")]):"",(null===e.indent?zA:GA)(cw(null===e.indent?r.tabWidth:e.indent-1+t,JA(TA(e,{parentIndent:t,isLastDescendant:s,options:r}).reduce(((t,n,r,o)=>t.concat(0===r?QA:"",HA(ew(tw,n).parts),r!==o.length-1?0===n.length?QA:ow(rw):"keep"===e.chomping&&s?0===n.length?GA(QA):GA(rw):"")),[]))))])}case"sequence":case"mapping":return ew(QA,n.map(o,"children"));case"sequenceItem":return JA(["- ",cw(2,e.content?n.call(o,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(o,"content"):"";case"mappingItem":case"flowMappingItem":{const s=$A(e.key),i=$A(e.value);if(s&&i)return JA([": "]);const u=n.call(o,"key"),c=n.call(o,"value");if(i)return"flowMappingItem"===e.type&&"flowMapping"===t.type?u:"mappingItem"!==e.type||!hw(e.key.content,r)||LA(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?JA(["? ",cw(2,u)]):JA([u,gw(e)?" ":"",":"]);if(s)return JA([": ",cw(2,c)]);const l=Symbol("mappingKey");return NA(e.value)||!lw(e.key.content)?JA(["? ",cw(2,u),QA,ew("",n.map(o,"value","leadingComments").map((e=>JA([e,QA])))),": ",cw(2,c)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||NA(e.key.content)||BA(e.key.content)||LA(e.key.content)||IA(e.key)||NA(e.value.content)||BA(e.value.content)||IA(e.value)||!hw(e.value.content,r)?YA([JA([XA(JA([ZA("? "),XA(cw(2,u),{id:l})])),ZA(JA([QA,": ",cw(2,c)]),a(JA([gw(e)?" ":"",":",NA(e.value.content)||IA(e.value)&&e.value.content&&!UA(e.value.content,["mapping","sequence"])||"mapping"===t.type&&LA(e.key.content)&&lw(e.value.content)||UA(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?QA:e.value.content?tw:"",c])),{groupId:l})])]):JA([u,gw(e)?" ":"",": ",c])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",i="flowMapping"===e.type?"}":"]",u="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?tw:sw,c=0!==e.children.length&&"flowMappingItem"===(s=_A(e.children)).type&&$A(s.key)&&$A(s.value);return JA([t,a(JA([u,JA(n.map(((t,n)=>JA([o(t),n===e.children.length-1?"":JA([",",tw,e.children[n].position.start.line!==e.children[n+1].position.start.line?mw(t,r.originalText):""])])),"children")),ZA(",","")])),c?"":u,i])}case"flowSequenceItem":return n.call(o,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var s,i;function a(e){return WA.align(" ".repeat(r.tabWidth),e)}}function cw(e,t){return"number"==typeof e&&e>0?WA.align(" ".repeat(e),t):WA.align(e,t)}function lw(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function pw(e){return 0!==e.body.children.length||IA(e.body)}function fw(e,t){return LA(e)||t&&(0!==t.head.children.length||IA(t.head))}function dw(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||IA(e.head)||LA(e.head)?"head":!fw(e,t)&&!!t&&"root"}function hw(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function gw(e){return e.key.content&&"alias"===e.key.content.type}function mw(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&RA(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,sw):""}function yw(e,t,n){const r=kA(e,t,n);return ew(QA,r.map((e=>HA(ew(tw,e).parts))))}var Dw={preprocess:function(e){return VA(e,aw)},print:function(e,t,n){const r=e.getValue(),o=e.getParentNode(),s=r.tag?e.call(n,"tag"):"",i=r.anchor?e.call(n,"anchor"):"",a=UA(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!jA(e)?mw(e,t.originalText):"";return JA(["mappingValue"!==r.type&&NA(r)?JA([ew(QA,e.map(n,"leadingComments")),QA]):"",s,s&&i?" ":"",i,s||i?UA(r,["sequence","mapping"])&&!BA(r)?QA:" ":"",BA(r)?JA([1===r.middleComments.length?"":QA,ew(QA,e.map(n,"middleComments")),QA]):"",PA(e)?JA(iw(t.originalText.slice(r.position.start.offset,r.position.end.offset),rw)):XA(uw(r,o,e,t,n)),LA(r)&&!UA(r,["document","documentHead"])?nw(JA(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===o.type&&"mapping"===e.getParentNode(2).type&&lw(r)?"":KA,e.call(n,"trailingComment")])):"",a,IA(r)&&!UA(r,["documentHead","documentBody"])?cw("sequenceItem"===r.type?2:0,JA([QA,ew(QA,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(UA(t))switch(delete t.position,t.type){case"comment":if(xA(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:SA},vw={bracketSpacing:el.bracketSpacing,singleQuote:el.singleQuote,proseWrap:el.proseWrap},Ew="YAML",bw="data",Cw="source.yaml",Aw=["yml"],ww=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],Sw=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],xw="yaml",Fw="yaml",Tw="text/x-yaml",kw={name:Ew,type:bw,tmScope:Cw,aliases:Aw,extensions:ww,filenames:Sw,aceMode:xw,codemirrorMode:Fw,codemirrorMimeType:Tw,languageId:407};const _w=[nl(it(Object.freeze({__proto__:null,name:Ew,type:bw,tmScope:Cw,aliases:Aw,extensions:ww,filenames:Sw,aceMode:xw,codemirrorMode:Fw,codemirrorMimeType:Tw,languageId:407,default:kw})),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter((e=>"yarn.lock"!==e))})))];var Ow={languages:_w,printers:{yaml:Dw},options:vw};const{version:Nw}=mn,{getSupportInfo:Bw}=En,Mw=[jl,cp,Zp,Hg,qb,dA,Ow];function Lw(e,t=1){return(...n)=>{const r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...Mw,...Array.isArray(o)?o:Object.values(o)]}),e(...n)}}const Iw=Lw(au.formatWithCursor);return{formatWithCursor:Iw,format:(e,t)=>Iw(e,t).formatted,check(e,t){const{formatted:n}=Iw(e,t);return n===e},doc:Ui,getSupportInfo:Lw(Bw,0),version:Nw,util:la,__debug:{parse:Lw(au.parse),formatAST:Lw(au.formatAST),formatDoc:Lw(au.formatDoc),printToDoc:Lw(au.printToDoc),printDocToString:Lw(au.printDocToString)}}}()},4881:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r,o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;oe?r=o:n=o+1}var s=n-1;return{line:s,character:e-t[s]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){var t=u(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,r){return new s(e,t,n,r)},e.update=function(e,t,n){if(e instanceof s)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),r=0,o=[],s=0,a=i(t.map(c),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));sr&&o.push(n.substring(r,l)),u.newText.length&&o.push(u.newText),r=e.offsetAt(u.range.end)}return o.push(n.substr(r)),o.join("")}}(r||(r={}))},4767:(e,t,n)=>{"use strict";var r,o,s,i,a,u,c,l,p,f,d,h,g,m,y,D,v,E,b,C,A,w,S,x,F,T;n.d(t,{Ly:()=>s,e6:()=>i,Ye:()=>a,_Z:()=>u,so:()=>d,H_:()=>g,R9:()=>D,mY:()=>v,PY:()=>E,a4:()=>B,cm:()=>L,lO:()=>I,DM:()=>R,FG:()=>U,Ub:()=>$,cR:()=>z,yN:()=>Q,B2:()=>ee,JF:()=>te}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.uinteger(t.line)&&ue.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(ue.uinteger(e)&&ue.uinteger(t)&&ue.uinteger(n)&&ue.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return ue.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(i||(i={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&(ue.string(t.uri)||ue.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.targetRange)&&ue.string(t.targetUri)&&(i.is(t.targetSelectionRange)||ue.undefined(t.targetSelectionRange))&&(i.is(t.originSelectionRange)||ue.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ue.numberRange(t.red,0,1)&&ue.numberRange(t.green,0,1)&&ue.numberRange(t.blue,0,1)&&ue.numberRange(t.alpha,0,1)}}(c||(c={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return i.is(t.range)&&c.is(t.color)}}(l||(l={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ue.string(t.label)&&(ue.undefined(t.textEdit)||E.is(t))&&(ue.undefined(t.additionalTextEdits)||ue.typedArray(t.additionalTextEdits,E.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(f||(f={})),function(e){e.create=function(e,t,n,r,o){var s={startLine:e,endLine:t};return ue.defined(n)&&(s.startCharacter=n),ue.defined(r)&&(s.endCharacter=r),ue.defined(o)&&(s.kind=o),s},e.is=function(e){var t=e;return ue.uinteger(t.startLine)&&ue.uinteger(t.startLine)&&(ue.undefined(t.startCharacter)||ue.uinteger(t.startCharacter))&&(ue.undefined(t.endCharacter)||ue.uinteger(t.endCharacter))&&(ue.undefined(t.kind)||ue.string(t.kind))}}(d||(d={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ue.defined(t)&&a.is(t.location)&&ue.string(t.message)}}(h||(h={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(m||(m={})),function(e){e.is=function(e){var t=e;return null!=t&&ue.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,r,o,s){var i={range:e,message:t};return ue.defined(n)&&(i.severity=n),ue.defined(r)&&(i.code=r),ue.defined(o)&&(i.source=o),ue.defined(s)&&(i.relatedInformation=s),i},e.is=function(e){var t,n=e;return ue.defined(n)&&i.is(n.range)&&ue.string(n.message)&&(ue.number(n.severity)||ue.undefined(n.severity))&&(ue.integer(n.code)||ue.string(n.code)||ue.undefined(n.code))&&(ue.undefined(n.codeDescription)||ue.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ue.string(n.source)||ue.undefined(n.source))&&(ue.undefined(n.relatedInformation)||ue.typedArray(n.relatedInformation,h.is))}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.title)&&ue.string(t.command)}}(v||(v={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.string(t.newText)&&i.is(t.range)}}(E||(E={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&ue.objectLiteral(t)&&ue.string(t.label)&&(ue.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ue.string(t.description)||void 0===t.description)}}(b||(b={})),function(e){e.is=function(e){return"string"==typeof e}}(C||(C={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return E.is(t)&&(b.is(t.annotationId)||C.is(t.annotationId))}}(A||(A={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ue.defined(t)&&O.is(t.textDocument)&&Array.isArray(t.edits)}}(w||(w={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ue.string(t.oldUri)&&ue.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ue.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ue.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(F||(F={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ue.string(e.kind)?S.is(e)||x.is(e)||F.is(e):w.is(e)})))}}(T||(T={}));var k,_,O,N,B,M,L,I,P,j,R,U,$,q,V,W,Y,K,J,z,G,H,X,Q,Z,ee,te,ne,re,oe,se,ie=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=E.insert(e,t):C.is(n)?(o=n,r=A.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=E.replace(e,t):C.is(n)?(o=n,r=A.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=E.del(e):C.is(t)?(r=t,n=A.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=A.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ae(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(w.is(e)){var n=new ie(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ie(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(O.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new ie(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new ie(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(b.is(t)||C.is(t)?r=t:n=t,void 0===r?o=S.create(e,n):(s=C.is(r)?r:this._changeAnnotations.manage(r),o=S.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,s,i;if(b.is(n)||C.is(n)?o=n:r=n,void 0===o?s=x.create(e,t,r):(i=C.is(o)?o:this._changeAnnotations.manage(o),s=x.create(e,t,r,i)),this._workspaceEdit.documentChanges.push(s),void 0!==i)return i},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(b.is(t)||C.is(t)?r=t:n=t,void 0===r?o=F.create(e,n):(s=C.is(r)?r:this._changeAnnotations.manage(r),o=F.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)}}(k||(k={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.integer(t.version)}}(_||(_={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&(null===t.version||ue.integer(t.version))}}(O||(O={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.string(t.languageId)&&ue.integer(t.version)&&ue.string(t.text)}}(N||(N={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(B||(B={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(B||(B={})),function(e){e.is=function(e){var t=e;return ue.objectLiteral(e)&&B.is(t.kind)&&ue.string(t.value)}}(M||(M={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(L||(L={})),function(e){e.PlainText=1,e.Snippet=2}(I||(I={})),function(e){e.Deprecated=1}(P||(P={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ue.string(t.newText)&&i.is(t.insert)&&i.is(t.replace)}}(j||(j={})),function(e){e.asIs=1,e.adjustIndentation=2}(R||(R={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}($||($={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ue.string(t)||ue.objectLiteral(t)&&ue.string(t.language)&&ue.string(t.value)}}(q||(q={})),function(e){e.is=function(e){var t=e;return!!t&&ue.objectLiteral(t)&&(M.is(t.contents)||q.is(t.contents)||ue.typedArray(t.contents,q.is))&&(void 0===e.range||i.is(e.range))}}(V||(V={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(W||(W={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;i--){var a=o[i],u=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=s))throw new Error("Overlapping edit");r=r.substring(0,u)+a.newText+r.substring(c,r.length),s=u}return r}}(se||(se={}));var ue,ce=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;ne?r=o:n=o+1}var i=n-1;return s.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";n.d(t,{ad:()=>Bt,Yj:()=>Kt,_b:()=>Zt,lA:()=>l,qk:()=>p,_N:()=>f,UG:()=>y,vG:()=>d,jF:()=>h,xw:()=>g,Qc:()=>en,Vn:()=>C});const r=Symbol.for("yaml.alias"),o=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),a=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===r,p=e=>!!e&&"object"==typeof e&&e[c]===o,f=e=>!!e&&"object"==typeof e&&e[c]===s,d=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===a,g=e=>!!e&&"object"==typeof e&&e[c]===u;function m(e){if(e&&"object"==typeof e)switch(e[c]){case s:case u:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[c]){case r:case s:case a:case u:return!0}return!1}class D{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const v=Symbol("break visit"),E=Symbol("skip children"),b=Symbol("remove node");function C(e,t){"object"==typeof t&&(t.Collection||t.Node||t.Value)&&(t=Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t)),p(e)?A(null,e.contents,t,Object.freeze([e]))===b&&(e.contents=null):A(null,e,t,Object.freeze([]))}function A(e,t,n,r){let o;if("function"==typeof n?o=n(e,t,r):f(t)?n.Map&&(o=n.Map(e,t,r)):g(t)?n.Seq&&(o=n.Seq(e,t,r)):d(t)?n.Pair&&(o=n.Pair(e,t,r)):h(t)?n.Scalar&&(o=n.Scalar(e,t,r)):l(t)&&n.Alias&&(o=n.Alias(e,t,r)),y(o)||d(o)){const t=r[r.length-1];if(m(t))t.items[e]=o;else if(d(t))"key"===e?t.key=o:t.value=o;else{if(!p(t)){const e=l(t)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}t.contents=o}return A(e,o,n,r)}if("symbol"!=typeof o)if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const o=this.tags[n];return o?o+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>w[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&y(e.contents)){const t={};C(e.contents,((e,n)=>{y(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[o,s]of n)"!!"===o&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push(`%TAG ${o} ${s}`);return t.join("\n")}}function x(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function F(e){const t=new Set;return C(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function T(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}S.defaultYaml={explicit:!1,version:"1.2"},S.defaultTags={"!!":"tag:yaml.org,2002:"};class k extends D{constructor(e){super(r),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return C(e,{Node:(e,n)=>{if(n===this)return C.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:o}=t,s=this.resolve(r);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const i=n.get(s);if(!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=_(r,s,n)),i.count*i.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(x(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function _(e,t,n){if(l(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}if(m(t)){let r=0;for(const o of t.items){const t=_(e,o,n);t>r&&(r=t)}return r}if(d(t)){const r=_(e,t.key,n),o=_(e,t.value,n);return Math.max(r,o)}return 1}function O(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>O(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!h(r=e)&&!m(r)||!r.anchor)return e.toJSON(t,n);const o={aliasCount:0,count:1,res:void 0};n.anchors.set(e,o),n.onCreate=e=>{o.res=e,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}var r;return"bigint"!=typeof e||n&&n.keep?e:Number(e)}const N=e=>!e||"function"!=typeof e&&"object"!=typeof e;class B extends D{constructor(e){super(a),this.value=e}toJSON(e,t){return t&&t.keep?this.value:O(this.value,e,t)}toString(){return String(this.value)}}function M(e,t,n){var r,o;if(p(e)&&(e=e.contents),y(e))return e;if(d(e)){const t=null===(o=(r=n.schema[s]).createNode)||void 0===o?void 0:o.call(r,n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"function"==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:l,sourceObjects:f}=n;let h;if(i&&e&&"object"==typeof e){if(h=f.get(e),h)return h.anchor||(h.anchor=a(e)),new k(h.anchor);h={anchor:null,node:null},f.set(e,h)}t&&t.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let g=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify&&t.identify(e)&&!t.format))}(e,t,l.tags);if(!g){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new B(e);return h&&(h.node=t),t}g=e instanceof Map?l[s]:Symbol.iterator in Object(e)?l[u]:l[s]}c&&(c(g),delete n.onTagObj);const m=(null==g?void 0:g.createNode)?g.createNode(n.schema,e,n):new B(e);return t&&(m.tag=t),h&&(h.node=m),m}function L(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return M(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}B.BLOCK_FOLDED="BLOCK_FOLDED",B.BLOCK_LITERAL="BLOCK_LITERAL",B.PLAIN="PLAIN",B.QUOTE_DOUBLE="QUOTE_DOUBLE",B.QUOTE_SINGLE="QUOTE_SINGLE";const I=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class P extends D{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>y(t)||d(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(I(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(m(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,L(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(m(n))return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&h(r)?r.value:r:m(r)?r.getIn(t,n):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!d(t))return!1;const n=t.value;return null==n||e&&h(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return!!m(n)&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(m(r))r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,L(this.schema,t,n))}}}}P.maxFlowStringSingleLineLength=60;const j="flow",R="block",U="quoted";function $(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return e;const u=Math.max(1+s,1+o-t.length);if(e.length<=u)return e;const c=[],l={};let p,f,d=o-t.length;"number"==typeof r&&(r>o-Math.max(2,s)?c.push(0):d=o-r);let h,g=!1,m=-1,y=-1,D=-1;for(n===R&&(m=q(e,m),-1!==m&&(d=m+u));h=e[m+=1];){if(n===U&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}D=m}if("\n"===h)n===R&&(m=q(e,m)),d=m+u,p=void 0;else{if(" "===h&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=m)}if(m>=d)if(p)c.push(p),d=p+u,p=void 0;else if(n===U){for(;" "===f||"\t"===f;)f=h,h=e[m+=1],g=!0;const t=m>D+1?m-2:y-1;if(l[t])return e;c.push(t),l[t]=!0,d=t+u,p=void 0}else g=!0}f=h}if(g&&a&&a(),0===c.length)return e;i&&i();let v=e.slice(0,c[0]);for(let r=0;r({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),W=e=>/^(%|---|\.\.\.)/m.test(e);function Y(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(W(e)?" ":"");let i="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(i+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{i+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:"00"===t.substr(0,2)?i+="\\x"+t.substr(2):i+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,r.options.lineWidth,i.length));if(!n)return a?"|\n":">\n";let u,c;for(c=n.length;c>0;--c){const e=n[c-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let l=n.substring(c);const p=l.indexOf("\n");-1===p?u="-":n===l||p!==l.length-1?(u="+",s&&s()):u="",l&&(n=n.slice(0,-l.length),"\n"===l[l.length-1]&&(l=l.slice(0,-1)),l=l.replace(/\n+(?!\n|$)/g,`$&${i}`));let f,d=!1,h=-1;for(f=0;f")+(d?i?"2":"1":"")+u;return e&&(m+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),a?`${m}\n${i}${g}${n=n.replace(/\n+/g,`$&${i}`)}${l}`:`${m}\n${i}${$(`${g}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${i}`)}${l}`,i,R,V(r))}`}function z(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==B.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=B.QUOTE_DOUBLE);const u=e=>{switch(e){case B.BLOCK_FOLDED:case B.BLOCK_LITERAL:return o||s?Y(i.value,t):J(i,t,n,r);case B.QUOTE_DOUBLE:return Y(i.value,t);case B.QUOTE_SINGLE:return K(i.value,t);case B.PLAIN:return function(e,t,n,r){var o;const{type:s,value:i}=e,{actualString:a,implicitKey:u,indent:c,inFlow:l}=t;if(u&&/[\n[\]{},]/.test(i)||l&&/[[\]{},]/.test(i))return Y(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i)){const o=-1!==i.indexOf('"'),s=-1!==i.indexOf("'");let a;return a=o&&!s?K:s&&!o?Y:t.options.singleQuote?K:Y,u||l||-1===i.indexOf("\n")?a(i,t):J(e,t,n,r)}if(!u&&!l&&s!==B.PLAIN&&-1!==i.indexOf("\n"))return J(e,t,n,r);if(""===c&&W(i))return t.forceBlockIndent=!0,J(e,t,n,r);const p=i.replace(/\n+/g,`$&\n${c}`);if(a)for(const e of t.doc.schema.tags)if(e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null===(o=e.test)||void 0===o?void 0:o.test(p)))return Y(i,t);return u?p:$(p,c,j,V(t))}(i,t,n,r);default:return null}};let c=u(a);if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n;if(c=u(r),null===c)throw new Error(`Unsupported default string type ${r}`)}return c}const G=(e,t)=>({anchors:new Set,doc:e,indent:"",indentStep:"number"==typeof t.indent?" ".repeat(t.indent):" ",options:Object.assign({defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:!1,trueStr:"true",verifyAliasOrder:!0},t)});function H(e,t,n,r){if(d(e))return e.toString(t,n,r);if(l(e))return e.toString(t);let o;const s=y(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o||(o=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,r;if(h(t)){r=t.value;const o=e.filter((e=>e.identify&&e.identify(r)));n=o.find((e=>e.format===t.format))||o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,s));const i=function(e,t,{anchors:n,doc:r}){const o=[],s=(h(e)||m(e))&&e.anchor;return s&&x(s)&&(n.add(s),o.push(`&${s}`)),e.tag?o.push(r.directives.tagString(e.tag)):t.default||o.push(r.directives.tagString(t.tag)),o.join(" ")}(s,o,t);i.length>0&&(t.indentAtStart=(t.indentAtStart||0)+i.length+1);const a="function"==typeof o.stringify?o.stringify(s,t,n,r):h(s)?z(s,t,n,r):s.toString(t,n,r);return i?h(s)||"{"===a[0]||"["===a[0]?`${i} ${a}`:`${i}\n${t.indent}${a}`:a}const X=(e,t)=>/^\n+$/.test(e)?e.substring(1):e.replace(/^(?!$)(?: $)?/gm,`${t}#`);function Q(e,t,n){return n?n.includes("\n")?`${e}\n`+X(n,t):e.endsWith(" ")?`${e}#${n}`:`${e} #${n}`:e}function Z(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function ee(e,t,{key:n,value:r}){if(e&&e.doc.schema.merge&&te(n))if(g(r))for(const n of r.items)ne(e,t,n);else if(Array.isArray(r))for(const n of r)ne(e,t,n);else ne(e,t,r);else{const o=O(n,"",e);if(t instanceof Map)t.set(o,O(r,o,e));else if(t instanceof Set)t.add(o);else{const s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(y(e)&&n&&n.doc){const t=G(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),Z(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),i=O(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const te=e=>"<<"===e||h(e)&&"<<"===e.value&&(!e.type||e.type===B.PLAIN);function ne(e,t,n){const r=e&&l(n)?n.resolve(e.doc):n;if(!f(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function re(e,t,n){const r=M(e,void 0,n),o=M(t,void 0,n);return new oe(r,o)}class oe{constructor(e,t=null){Object.defineProperty(this,c,{value:i}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return y(t)&&(t=t.clone(e)),y(n)&&(n=n.clone(e)),new oe(t,n)}toJSON(e,t){return ee(t,t&&t.mapAsMap?new Map:{},this)}toString(e,t,n){return e&&e.doc?function({key:e,value:t},n,r,o){const{allNullValues:s,doc:i,indent:a,indentStep:u,options:{indentSeq:c,simpleKeys:l}}=n;let p=y(e)&&e.comment||null;if(l){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(m(e))throw new Error("With simple keys, collection cannot be used as a key value")}let f=!l&&(!e||p&&null==t&&!n.inFlow||m(e)||(h(e)?e.type===B.BLOCK_FOLDED||e.type===B.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!f&&(l||!s),indent:a+u});let d=!1,D=!1,v=H(e,n,(()=>d=!0),(()=>D=!0));if(!f&&!n.inFlow&&v.length>1024){if(l)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(s||null==t)return d&&r&&r(),f?`? ${v}`:v}else if(s&&!l||null==t&&f)return d&&(p=null),D&&!p&&o&&o(),Q(`? ${v}`,n.indent,p);d&&(p=null),v=f?`? ${Q(v,n.indent,p)}\n${a}:`:Q(`${v}:`,n.indent,p);let E="",b=null;y(t)?(t.spaceBefore&&(E="\n"),t.commentBefore&&(E+=`\n${X(t.commentBefore,n.indent)}`),b=t.comment):t&&"object"==typeof t&&(t=i.createNode(t)),n.implicitKey=!1,f||p||!h(t)||(n.indentAtStart=v.length+1),D=!1,c||!(u.length>=2)||n.inFlow||f||!g(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substr(2));let C=!1;const A=H(t,n,(()=>C=!0),(()=>D=!0));let w=" ";return E||p?w=`${E}\n${n.indent}`:!f&&m(t)?("["===A[0]||"{"===A[0])&&!A.includes("\n")||(w=`\n${n.indent}`):"\n"===A[0]&&(w=""),n.inFlow?(C&&r&&r(),v+w+A):(C&&(b=null),D&&!b&&o&&o(),Q(v+w+A,n.indent,b))}(this,e,t,n):JSON.stringify(this)}}const se={intAsBigInt:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"};function ie({comment:e,flow:t,items:n},r,{blockItem:o,flowChars:s,itemIndent:i,onChompKeep:a,onComment:u}){const{indent:c,indentStep:l}=r,p=t||r.inFlow;p&&(i+=l),r=Object.assign({},r,{indent:i,inFlow:p,type:null});let f=!0,h=!1;const g=n.reduce(((e,t,o)=>{let s=null;if(y(t)){!h&&t.spaceBefore&&e.push({comment:!0,str:""});let n=t.commentBefore;if(n&&h&&(n=n.replace(/^\n+/,"")),n){/^\n+$/.test(n)&&(n=n.substring(1));for(const t of n.match(/^.*$/gm)){const n=" "===t?"#":t?`#${t}`:"";e.push({comment:!0,str:n})}}t.comment&&(s=t.comment,f=!1)}else if(d(t)){const n=y(t.key)?t.key:null;if(n){!h&&n.spaceBefore&&e.push({comment:!0,str:""});let t=n.commentBefore;if(t&&h&&(t=t.replace(/^\n+/,"")),t){/^\n+$/.test(t)&&(t=t.substring(1));for(const n of t.match(/^.*$/gm)){const t=" "===n?"#":n?`#${n}`:"";e.push({comment:!0,str:t})}}n.comment&&(f=!1)}if(p){const e=y(t.value)?t.value:null;e?(e.comment&&(s=e.comment),(e.comment||e.commentBefore)&&(f=!1)):null==t.value&&n&&n.comment&&(s=n.comment)}}h=!1;let a=H(t,r,(()=>s=null),(()=>h=!0));return p&&oe.str));let r=2;for(const e of g){if(e.comment||e.str.includes("\n")){f=!1;break}r+=e.str.length+2}if(!f||r>P.maxFlowStringSingleLineLength){m=e;for(const e of n)m+=e?`\n${l}${c}${e}`:"\n";m+=`\n${c}${t}`}else m=`${e} ${n.join(" ")} ${t}`}else{const e=g.map(o);m=e.shift()||"";for(const t of e)m+=t?`\n${c}${t}`:"\n"}return e?(m+="\n"+X(e,c),u&&u()):h&&a&&a(),m}function ae(e,t){const n=h(t)?t.value:t;for(const r of e)if(d(r)){if(r.key===t||r.key===n)return r;if(h(r.key)&&r.key.value===n)return r}}class ue extends P{constructor(e){super(s,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){let n;n=d(e)?e:new oe(e&&"object"==typeof e&&"key"in e?e.key:e,e.value);const r=ae(this.items,n.key),o=this.schema&&this.schema.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);h(r.value)&&N(n.value)?r.value.value=n.value:r.value=n.value}else if(o){const e=this.items.findIndex((e=>o(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=ae(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ae(this.items,e),r=n&&n.value;return!t&&h(r)?r.value:r}has(e){return!!ae(this.items,e)}set(e,t){this.add(new oe(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)ee(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!d(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ie(this,e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const ce={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,s=new ue(e),i=(e,i)=>{if("function"==typeof o)i=o.call(t,e,i);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==i||r)&&s.items.push(re(e,i,n))};if(t instanceof Map)for(const[e,n]of t)i(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s},default:!0,nodeClass:ue,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(f(e)||t("Expected a mapping for this tag"),e)};class le extends P{constructor(e){super(u,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){const t=pe(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=pe(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&h(r)?r.value:r}has(e){const t=pe(e);return"number"==typeof t&&te.comment?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function pe(e){let t=h(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const fe={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,o=new le(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}o.items.push(M(s,void 0,n))}}return o},default:!0,nodeClass:le,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(g(e)||t("Expected a sequence for this tag"),e)},de={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>z(e,t=Object.assign({actualString:!0},t),n,r)},he={identify:e=>null==e,createNode:()=>new B(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new B(null),stringify:({source:e},t)=>e&&he.test.test(e)?e:t.options.nullStr},ge={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new B("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&ge.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function me({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}const ye={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:me},De={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},ve={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new B(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:me},Ee=e=>"bigint"==typeof e||Number.isInteger(e),be=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Ce(e,t,n){const{value:r}=e;return Ee(r)&&r>=0?n+r.toString(t):me(e)}const Ae={identify:e=>Ee(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>be(e,2,8,n),stringify:e=>Ce(e,8,"0o")},we={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>be(e,0,10,n),stringify:me},Se={identify:e=>Ee(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>be(e,2,16,n),stringify:e=>Ce(e,16,"0x")},xe=[ce,fe,de,he,ge,Ae,we,Se,ye,De,ve];function Fe(e){return"bigint"==typeof e||Number.isInteger(e)}const Te=({value:e})=>JSON.stringify(e),ke=[ce,fe].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Te},{identify:e=>null==e,createNode:()=>new B(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Te},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Te},{identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Fe(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Te}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),_e={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new oe(new B(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value||e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=d(r)?r:new oe(r)}}else t("Expected a sequence for this tag");return e}function Ne(e,t,n){const{replacer:r}=n,o=new le(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,a;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],a=e[i]}else i=e;o.items.push(re(i,a,n))}return o}const Be={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Oe,createNode:Ne};class Me extends le{constructor(){super(),this.add=ue.prototype.add.bind(this),this.delete=ue.prototype.delete.bind(this),this.get=ue.prototype.get.bind(this),this.has=ue.prototype.has.bind(this),this.set=ue.prototype.set.bind(this),this.tag=Me.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(d(e)?(r=O(e.key,"",t),o=O(e.value,r,t)):r=O(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}Me.tag="tag:yaml.org,2002:omap";const Le={collection:"seq",identify:e=>e instanceof Map,nodeClass:Me,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Oe(e,t),r=[];for(const{key:e}of n.items)h(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Me,n)},createNode(e,t,n){const r=Ne(e,t,n),o=new Me;return o.items=r.items,o}};function Ie({value:e,source:t},n){return t&&(e?Pe:je).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Pe={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new B(!0),stringify:Ie},je={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new B(!1),stringify:Ie},Re={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:me},Ue={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},$e={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new B(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:me},qe=e=>"bigint"==typeof e||Number.isInteger(e);function Ve(e,t,n,{intAsBigInt:r}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const s=parseInt(e,n);return"-"===o?-1*s:s}function We(e,t,n){const{value:r}=e;if(qe(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return me(e)}const Ye={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Ve(e,2,2,n),stringify:e=>We(e,2,"0b")},Ke={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Ve(e,1,8,n),stringify:e=>We(e,8,"0")},Je={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Ve(e,0,10,n),stringify:me},ze={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Ve(e,2,16,n),stringify:e=>We(e,16,"0x")};class Ge extends ue{constructor(e){super(e),this.tag=Ge.tag}add(e){let t;t=d(e)?e:"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new oe(e.key,null):new oe(e,null),ae(this.items,t.key)||this.items.push(t)}get(e,t){const n=ae(this.items,e);return!t&&d(n)?h(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=ae(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new oe(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}Ge.tag="tag:yaml.org,2002:set";const He={collection:"map",identify:e=>e instanceof Set,nodeClass:Ge,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(f(e)){if(e.hasAllNullValues(!0))return Object.assign(new Ge,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Ge(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(re(e,null,n));return o}};function Xe(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===n?o(-1)*s:s}function Qe(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return me(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const Ze={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Xe(e,n),stringify:Qe},et={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Xe(e,!1),stringify:Qe},tt={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(tt.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,s||0,i||0,a||0,u);const l=t[8];if(l&&"Z"!==l){let e=Xe(l,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},nt=[ce,fe,de,he,Pe,je,Ye,Ke,Je,ze,Re,Ue,$e,_e,Le,Be,He,Ze,et,tt],rt={core:xe,failsafe:[ce,fe,de],json:ke,yaml11:nt,"yaml-1.1":nt},ot={binary:_e,bool:ge,float:ve,floatExp:De,floatNaN:ye,floatTime:et,int:we,intHex:Se,intOct:Ae,intTime:Ze,map:ce,null:he,omap:Le,pairs:Be,seq:fe,set:He,timestamp:tt},st={"tag:yaml.org,2002:binary":_e,"tag:yaml.org,2002:omap":Le,"tag:yaml.org,2002:pairs":Be,"tag:yaml.org,2002:set":He,"tag:yaml.org,2002:timestamp":tt},it=(e,t)=>e.keyt.key?1:0;class at{constructor({customTags:e,merge:t,resolveKnownTags:n,schema:r,sortMapEntries:o}){this.merge=!!t,this.name=r||"core",this.knownTags=n?st:{},this.tags=function(e,t){let n=rt[t];if(!n){const e=Object.keys(rt).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e}`)}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=ot[e];if(t)return t;const n=Object.keys(ot).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}(e,this.name),Object.defineProperty(this,s,{value:ce}),Object.defineProperty(this,a,{value:de}),Object.defineProperty(this,u,{value:fe}),this.sortMapEntries=!0===o?it:o||null}clone(){const e=Object.create(at.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function ut(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:s,flow:i,keepUndefined:a,onTagObj:u,tag:c}=n||{},{onAnchor:l,setAnchors:p,sourceObjects:f}=function(e,t){const n=[],r=new Map;let o=null;return{onAnchor(r){n.push(r),o||(o=F(e));const s=T(t,o);return o.add(s),s},setAnchors(){for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!h(t.node)&&!m(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,s||"a"),d=M(e,c,{aliasDuplicateObjects:null==o||o,keepUndefined:null!=a&&a,onAnchor:l,onTagObj:u,replacer:r,schema:this.schema,sourceObjects:f});return i&&m(d)&&(d.flow=!0),p(),d}createPair(e,t,n={}){const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new oe(r,o)}delete(e){return!!lt(this.contents)&&this.contents.delete(e)}deleteIn(e){return I(e)?null!=this.contents&&(this.contents=null,!0):!!lt(this.contents)&&this.contents.deleteIn(e)}get(e,t){return m(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return I(e)?!t&&h(this.contents)?this.contents.value:this.contents:m(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!m(this.contents)&&this.contents.has(e)}hasIn(e){return I(e)?void 0!==this.contents:!!m(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=L(this.schema,[e],t):lt(this.contents)&&this.contents.set(e,t)}setIn(e,t){I(e)?this.contents=t:null==this.contents?this.contents=L(this.schema,Array.from(e),t):lt(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t){let n;switch(String(e)){case"1.1":this.directives.yaml.version="1.1",n=Object.assign({merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"},t);break;case"1.2":this.directives.yaml.version="1.2",n=Object.assign({merge:!1,resolveKnownTags:!0,schema:"core"},t);break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1' or '1.2' as version, but found: ${t}`)}}this.schema=new at(n)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:H},a=O(this.contents,t||"",i);if("function"==typeof o)for(const{count:e,res:t}of i.anchors.values())o(t,e);return"function"==typeof s?ut(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.marker&&(r=!0)}r&&n.push("---"),e.commentBefore&&(1!==n.length&&n.unshift(""),n.unshift(X(e.commentBefore,"")));const o=G(e,t);let s=!1,i=null;if(e.contents){y(e.contents)&&(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore&&n.push(X(e.contents.commentBefore,"")),o.forceBlockIndent=!!e.comment,i=e.contents.comment);const t=i?void 0:()=>s=!0;let a=H(e.contents,o,(()=>i=null),t);i&&(a=Q(a,"",i)),"|"!==a[0]&&">"!==a[0]||"---"!==n[n.length-1]?n.push(a):n[n.length-1]=`--- ${a}`}else n.push(H(e.contents,o));let a=e.comment;return a&&s&&(a=a.replace(/^\n+/,"")),a&&(s&&!i||""===n[n.length-1]||n.push(""),n.push(X(a,""))),n.join("\n")+"\n"}(this,e)}}function lt(e){if(m(e))return!0;throw new Error("Expected a YAML collection as document contents")}class pt extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class ft extends pt{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class dt extends pt{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const ht=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const e=Math.min(s-39,i.length-79);i="…"+i.substring(e),s-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),i=n+i}if(/[^ ]/.test(i)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>o&&(e=Math.min(t.col-o,80-s));const a=" ".repeat(s)+"^".repeat(e);n.message+=`:\n\n${i}\n${a}\n`}};function gt(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let a=!1,u=i,c=i,l="",p="",f=!1,d=!1,h=null,g=null,m=null,y=null,D=null;for(const r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&u&&"doc-start"!==n&&"\t"===r.source[0]&&s(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";l?l+=p+e:l=e,p="",u=!1;break}case"newline":u?l?l+=r.source:a=!0:p+=r.source,u=!0,f=!0,c=!0;break;case"anchor":h&&s(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),h=r,null===D&&(D=r.offset),u=!1,c=!1,d=!0;break;case"tag":g&&s(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===D&&(D=r.offset),u=!1,c=!1,d=!0;break;case n:(h||g)&&s(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),y=r,u=!1,c=!1;break;case"comma":if(t){m&&s(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),m=r,u=!1,c=!1;break}default:s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),u=!1,c=!1}const v=e[e.length-1],E=v?v.offset+v.source.length:o;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:m,found:y,spaceBefore:a,comment:l,hasNewline:f,anchor:h,tag:g,end:E,start:null!=D?D:E}}function mt(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(mt(t.key)||mt(t.value))return!0}return!1;default:return!0}}function yt(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const o="function"==typeof r?r:(t,n)=>t===n||h(t)&&h(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>o(e.key,n)))}const Dt="All mapping items must start at the same column";function vt(e,t,n,r){let o="";if(e){let s=!1,i="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=i+t:o=t,i="";break}case"newline":o&&(i+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=e.length}}return{comment:o,offset:t}}const Et="Block collections are not allowed within flow collections",bt=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Ct(e){let t,n;try{t=new RegExp("(.*?)(?"===o.mode?B.BLOCK_FOLDED:B.BLOCK_LITERAL,i=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[r&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e=0;--e){const t=i[e][1];if(""!==t&&"\r"!==t)break;a=e}if(!e.source||0===a){const t="+"===o.chomp?i.map((e=>e[0])).join("\n"):"";let n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:o.comment,range:[r,n,n]}}let u=e.indent+o.indent,c=e.offset+o.length,l=0;for(let e=0;eu&&(u=t.length),c+=t.length+r.length+1}let p="",f="",d=!1;for(let e=0;eu||"\t"===r[0]?(" "===f?f="\n":d||"\n"!==f||(f="\n\n"),p+=f+t.slice(u)+r,f="\n",d=!0):""===r?"\n"===f?p+="\n":f="\n":(p+=f+r,f=" ",d=!1)}switch(o.chomp){case"-":break;case"+":for(let e=a;en(r+e,t,o);switch(o){case"scalar":a=B.PLAIN,u=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Ct(e)}(s,c);break;case"single-quoted-scalar":a=B.QUOTE_SINGLE,u=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ct(e.slice(1,-1)).replace(/''/g,"'")}(s,c);break;case"double-quoted-scalar":a=B.QUOTE_DOUBLE,u=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):o)}else n+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const l=r+s.length,p=vt(i,l,t,n);return{value:u,type:a,comment:p.comment,range:[r,l,p.offset]}}(t,e.options.strict,r),c=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,l=n&&c?function(e,t,n,r,o){var s;if("!"===n)return e[a];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(null===(s=e.test)||void 0===s?void 0:s.test(t))return e;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[a])}(e.schema,o,c,n,r):function(e,t,n){var r;if(n)for(const n of e.tags)if(n.default&&(null===(r=n.test)||void 0===r?void 0:r.test(t)))return n;return e[a]}(e.schema,o,"scalar"===t.type);let p;try{const s=l.resolve(o,(e=>r(n||t,"TAG_RESOLVE_FAILED",e)),e.options);p=h(s)?s:new B(s)}catch(e){const s=e instanceof Error?e.message:String(e);r(n||t,"TAG_RESOLVE_FAILED",s),p=new B(o)}return p.range=u,p.source=o,s&&(p.type=s),c&&(p.tag=c),l.format&&(p.format=l.format),i&&(p.comment=i),p}function Ft(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r];break}}return e}const Tt={composeNode:kt,composeEmptyNode:_t};function kt(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:a}=n;let u;switch(t.type){case"alias":u=function({options:e},{offset:t,source:n,end:r},o){const s=new k(n.substring(1));""===s.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string");const i=t+n.length,a=vt(r,i,e.strict,o);return s.range=[t,i,a.offset],a.comment&&(s.comment=a.comment),s}(e,t,r),(i||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=xt(e,t,a,r),i&&(u.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,o){let s;switch(n.type){case"block-map":s=function({composeNode:e,composeEmptyNode:t},n,r,o){var s;const i=new ue(n.schema);let a=r.offset;for(const{start:u,key:c,sep:l,value:p}of r.items){const f=gt(u,{indicator:"explicit-key-ind",next:c||(null==l?void 0:l[0]),offset:a,onError:o,startOnNewline:!0}),d=!f.found;if(d){if(c&&("block-seq"===c.type?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&o(a,"BAD_INDENT",Dt)),!f.anchor&&!f.tag&&!l){f.comment&&(i.comment?i.comment+="\n"+f.comment:i.comment=f.comment);continue}}else(null===(s=f.found)||void 0===s?void 0:s.indent)!==r.indent&&o(a,"BAD_INDENT",Dt);d&&mt(c)&&o(c,"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");const h=f.end,g=c?e(n,c,f,o):t(n,h,u,null,f,o);yt(n,i.items,g)&&o(h,"DUPLICATE_KEY","Map keys must be unique");const m=gt(l||[],{indicator:"map-value-ind",next:p,offset:g.range[2],onError:o,startOnNewline:!c||"block-scalar"===c.type});if(a=m.end,m.found){d&&("block-map"!==(null==p?void 0:p.type)||m.hasNewline||o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&f.start0){const e=vt(p,f,n.options.strict,o);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[r.offset,f,e.offset]}else a.range=[r.offset,f,f];return a}(e,t,n,o)}if(!r)return s;const i=t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e)));if(!i)return s;const a=s.constructor;if("!"===i||i===a.tagName)return s.tag=a.tagName,s;const u=f(s)?"map":"seq";let c=t.schema.tags.find((e=>e.collection===u&&e.tag===i));if(!c){const e=t.schema.knownTags[i];if(!e||e.collection!==u)return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),s.tag=i,s;t.schema.tags.push(Object.assign({},e,{default:!1})),c=e}const l=c.resolve(s,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options),p=y(l)?l:new B(l);return p.range=s.range,p.tag=i,(null==c?void 0:c.format)&&(p.format=c.format),p}(Tt,e,t,a,r),i&&(u.anchor=i.source.substring(1));break;default:throw console.log(t),new Error(`Unsupporten token type: ${t.type}`)}return i&&""===u.anchor&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(u.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?u.comment=s:u.commentBefore=s),u}function _t(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:a},u){const c=xt(e,{type:"scalar",offset:Ft(t,n,r),indent:-1,source:""},a,u);return i&&(c.anchor=i.source.substring(1),""===c.anchor&&u(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(c.spaceBefore=!0),s&&(c.comment=s),c}function Ot(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Nt(e){var t;let n="",r=!1,o=!1;for(let s=0;s{const o=Ot(e);r?this.warnings.push(new dt(o,t,n)):this.errors.push(new ft(o,t,n))},this.directives=new S({version:e.version||se.version}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Nt(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.marker||!o)e.commentBefore=n;else if(m(o)&&!o.flow&&o.items.length>0){let e=o.items[0];d(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore;o.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Nt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Ot(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:o,end:s},i){const a=Object.assign({directives:t},e),u=new ct(void 0,a),c={directives:u.directives,options:u.options,schema:u.schema},l=gt(r,{indicator:"doc-start",next:o||(null==s?void 0:s[0]),offset:n,onError:i,startOnNewline:!0});l.found&&(u.directives.marker=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||l.hasNewline||i(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?kt(c,o,l,i):_t(c,l.end,r,null,l,i);const p=u.contents.range[2],f=vt(s,p,!1,i);return f.comment&&(u.comment=f.comment),u.range=[n,p,f.offset],u}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.marker&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new ft(Ot(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new ft(Ot(e),"UNEXPECTED_TOKEN",t));break}const t=vt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ft(Ot(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({directives:this.directives},this.options),n=new ct(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const Mt=Symbol("break visit"),Lt=Symbol("skip children"),It=Symbol("remove item");function Pt(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),jt(Object.freeze([]),e,t)}function jt(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n&&n[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Pt.parentCollection=(e,t)=>{const n=Pt.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n&&n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Rt(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const Ut="0123456789ABCDEFabcdef".split(""),$t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),qt=",[]{}".split(""),Vt=" ,[]{}\n\r\t".split(""),Wt=e=>!e||Vt.includes(e);class Yt{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next||"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Rt(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!Rt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Rt(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Wt),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),t=yield*this.pushSpaces(!0),e>0&&(this.indentValue=n=t)}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>Rt(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];for("\r"===n&&(n=this.buffer[--e]);" "===n||"\t"===n;)n=this.buffer[--e];if(!("\n"===n&&e>=this.pos))break;t=e}return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(Rt(t)||e&&","===t)break;n=r}else if(Rt(t)){let o=this.buffer[r+1];if("\r"===t&&("\n"===o?(r+=1,t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&qt.includes(o))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&qt.includes(t))break;n=r}return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Wt))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case":":case"?":case"-":if(Rt(this.charAt(1)))return 0===this.flowLevel&&(this.indentNext=this.indentValue+1),(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Rt(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if($t.includes(t))t=this.buffer[++e];else{if("%"!==t||!Ut.includes(this.buffer[e+1])||!Ut.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Kt{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null===(t=e[++n])||void 0===t?void 0:t.type););return e.splice(n,e.length)}function Qt(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||Jt(t.start,"explicit-key-ind")||Jt(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,Gt(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Zt{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Yt,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e||this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"!==t.type&&"flow-collection"!==t.type||(t.indent="indent"in e?e.indent:-1),"flow-collection"===t.type&&Qt(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!Jt(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&!zt(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const t=!this.onKeyLine&&this.indent===e.indent&&(n.sep||zt(n.start));switch(this.type){case"anchor":case"tag":return void(t||n.value?(e.items.push({start:[this.sourceToken]}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||Jt(n.start,"explicit-key-ind")?t||n.value?e.items.push({start:[this.sourceToken]}):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(n.sep)if(n.value||t&&!Jt(n.start,"explicit-key-ind"))e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Jt(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else if(Jt(n.start,"explicit-key-ind")&&Gt(n.key)&&!Jt(n.sep,"newline")){const e=Xt(n.start),t=n.key,r=n.sep;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:r}]})}else n.sep.push(this.sourceToken);else Object.assign(n,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(t||n.value?(e.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(r):(Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!0))}default:{const r=this.startBlockValue(e);if(r)return t&&"block-seq"!==r.type&&Jt(n.start,"explicit-key-ind")&&e.items.push({start:[]}),void this.stack.push(r)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],o=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(n.value||Jt(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"!==t.type||"map-value-ind"!==this.type&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=Xt(Ht(t));Qt(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Xt(Ht(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Xt(Ht(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function en(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const o=function(e,t={}){const{lineCounter:n,prettyErrors:r}=function(e){const t=!e||!1!==e.prettyErrors;return{lineCounter:e&&e.lineCounter||t&&new Kt||null,prettyErrors:t}}(t),o=new Zt(null==n?void 0:n.addNewLine),s=new Bt(t);let i=null;for(const t of s.compose(o.parse(e),!0,e.length))if(i){if("silent"!==i.options.logLevel){i.errors.push(new ft(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else i=t;return r&&n&&(i.errors.forEach(ht(e,n)),i.warnings.forEach(ht(e,n))),i}(e,n);if(!o)return null;if(o.warnings.forEach((e=>Z(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}}}]); -//# sourceMappingURL=7792.entry.js.map \ No newline at end of file +(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7792,8975],{6761:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t=!1);var n=e.length,r=0,a="",u=0,c=16,l=0,p=0,f=0,d=0,h=0;function g(t,n){for(var o=0,s=0;o=48&&i<=57)s=16*s+i-48;else if(i>=65&&i<=70)s=16*s+i-65+10;else{if(!(i>=97&&i<=102))break;s=16*s+i-97+10}r++,o++}return o=n)return u=n,c=17;var t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return c=15}if(s(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),l++,f=r,c=14;switch(t){case 123:return r++,c=1;case 125:return r++,c=2;case 91:return r++,c=3;case 93:return r++,c=4;case 58:return r++,c=6;case 44:return r++,c=5;case 34:return r++,a=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),h=2;break}var i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(s(i)){t+=e.substring(o,r),h=2;break}h=6}r++}else{if(t+=e.substring(o,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=g(4,!0);a>=0?t+=String.fromCharCode(a):h=4;break;default:h=5}o=r}}return t}(),c=10;case 47:var m=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:m,getToken:function(){return c},getTokenValue:function(){return a},getTokenOffset:function(){return u},getTokenLength:function(){return r-u},getTokenStartLine:function(){return p},getTokenStartCharacter:function(){return u-d},getTokenError:function(){return h}}}function o(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function s(e){return 10===e||13===e||8232===e||8233===e}function i(e){return e>=48&&e<=57}var a;n.d(t,{tU:()=>u,Hk:()=>l,F6:()=>p,zA:()=>f,Qc:()=>c}),function(e){e.DEFAULT={allowTrailingComma:!1}}(a||(a={}));var u=r,c=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=a.DEFAULT);var o=null,s=[],i=[];function u(e){Array.isArray(s)?s.push(e):null!==o&&(s[o]=e)}return function(e,t,n){void 0===n&&(n=a.DEFAULT);var o=r(e,!1);function s(e){return e?function(){return e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function i(e){return e?function(t){return e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var u=s(t.onObjectBegin),c=i(t.onObjectProperty),l=s(t.onObjectEnd),p=s(t.onArrayBegin),f=s(t.onArrayEnd),d=i(t.onLiteralValue),h=i(t.onSeparator),g=s(t.onComment),m=i(t.onError),y=n&&n.disallowComments,D=n&&n.allowTrailingComma;function v(){for(;;){var e=o.scan();switch(o.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:y||E(11);break;case 2:E(12);break;case 6:E(16)}switch(e){case 12:case 13:y?E(10):g();break;case 16:E(1);break;case 15:case 14:break;default:return e}}}function E(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var r=o.getToken();17!==r;){if(-1!==t.indexOf(r)){v();break}if(-1!==n.indexOf(r))break;r=v()}}function b(e){var t=o.getTokenValue();return e?d(t):c(t),v(),!0}v(),17===o.getToken()?!!n.allowEmptyContent||E(4,[],[]):function e(){switch(o.getToken()){case 3:return function(){p(),v();for(var t=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||E(4,[],[]),h(","),v(),4===o.getToken()&&D)break}else t&&E(6,[],[]);e()||E(4,[],[4,5]),t=!0}return f(),4!==o.getToken()?E(8,[4],[]):v(),!0}();case 1:return function(){u(),v();for(var t=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||E(4,[],[]),h(","),v(),2===o.getToken()&&D)break}else t&&E(6,[],[]);(10!==o.getToken()?(E(3,[],[2,5]),0):(b(!1),6===o.getToken()?(h(":"),v(),e()||E(4,[],[2,5])):E(5,[],[2,5]),1))||E(4,[],[2,5]),t=!0}return l(),2!==o.getToken()?E(7,[2],[]):v(),!0}();case 10:return b(!0);default:return function(){switch(o.getToken()){case 11:var e=o.getTokenValue(),t=Number(e);isNaN(t)&&(E(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return v(),!0}()}}()?17!==o.getToken()&&E(9,[],[]):E(4,[],[])}(e,{onObjectBegin:function(){var e={};u(e),i.push(s),s=e,o=null},onObjectProperty:function(e){o=e},onObjectEnd:function(){s=i.pop()},onArrayBegin:function(){var e=[];u(e),i.push(s),s=e,o=null},onArrayEnd:function(){s=i.pop()},onLiteralValue:u,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),s[0]},l=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t{"use strict";n.d(t,{j:()=>i});var r=n(7223),o=n(3488);let s=!1;function i(e){if(s)return;s=!0;const t=new r._i((e=>{self.postMessage(e)}),(t=>new o.ky(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{s||i(null)}},1023:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,s=-1,i=0,a=0;a<=e.length;++a){if(a2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=a,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,s=a,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),o=a-s-1;s=a,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var i;s>=0?i=arguments[s]:(void 0===e&&(e=process.cwd()),i=e),t(i),0!==i.length&&(r=i+"/"+r,o=47===i.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else i>c&&(47===e.charCodeAt(o+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(o+p);if(f!==n.charCodeAt(a+p))break;47===f&&(l=p)}var d="";for(p=o+l+1;p<=s;++p)p!==s&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,s=!0,i=e.length-1;i>=1;--i)if(47===(n=e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,s=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!i){o=r+1;break}}else-1===u&&(i=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=u))}return o===s?s=u:-1===s&&(s=e.length),e.slice(o,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!i){o=r+1;break}}else-1===s&&(i=!1,s=r+1);return-1===s?"":e.slice(o,s)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,s=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(s=!1,o=a+1),46===u?-1===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!s){r=a+1;break}}return-1===n||-1===o||0===i||1===i&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),s=47===o;s?(n.root="/",r=1):r=0;for(var i=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===i?i=l:1!==p&&(p=1):-1!==i&&(p=-1);else if(!c){a=l+1;break}return-1===i||-1===u||0===p||1===p&&i===u-1&&i===a+1?-1!==u&&(n.base=n.name=0===a&&s?e.slice(1,u):e.slice(a,u)):(0===a&&s?(n.name=e.slice(1,i),n.base=e.slice(1,u)):(n.name=e.slice(a,i),n.base=e.slice(a,u)),n.ext=e.slice(i,u)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},6060:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i}function c(e){return this instanceof c?(this.v=e,this):new c(e)}var l=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return i},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(i,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof c?Promise.resolve(n.value.v).then(u,l):p(s[0][2],n)}catch(e){p(s[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function p(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:c(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),p=o((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;nthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));r(p);var f=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0,t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t.Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"}}));r(f),f.Type,f.Char;var d=o((function(e,t){function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function o(e,t){const{lineStarts:n,src:o}=r(t);if(!n||!(e>=1)||e>n.length)return null;const s=n[e-1];let i=n[e];for(;i&&i>s&&"\n"===o[i-1];)--i;return o.slice(s,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:o}=r(t);if(!n||!o||e>o.length)return null;for(let t=0;tr)if(i<=r-10)s=s.substr(0,r-1)+"…";else{const e=Math.round(r/2);s.length>i+e&&(s=s.substr(0,i+e-1)+"…"),i-=s.length-r,s="…"+s.substr(1-r)}let a=1,u="";t&&(t.line===e.line&&i+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(s.length+1,r)-i,u="…"));const c=i>1?" ".repeat(i-1):"",l="^".repeat(a);return"".concat(s,"\n").concat(c).concat(l).concat(u)}}));r(d),d.getLinePos,d.getLine,d.getPrettyContext;var h=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{static copy(e){return new n(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;on);)++o;this.origStart=n+o;const s=o;for(;o=r);)++o;return this.origEnd=r+o,s}}t.default=n}));r(h);var g=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=h)&&n.__esModule?n:{default:n};class o{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=o.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==f.Char.DIRECTIVES_END&&r!==f.Char.DOCUMENT_END)return!1;const s=e[t+1],i=e[t+2];if(s!==r||i!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=o.endOfIndent(e,n);if(r>n+t)return r;{const t=o.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:o.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,s=!1,i="",a=e[t+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(s=!0),t=o.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}a=e[t+1]}return i||(i=" "),a&&r<=n&&(s=!0),{fold:i,offset:t,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||o.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return o.addStringTerminator(e,t.end,r)}}t.default=o}));r(g);var m=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends Error{constructor(e,t,r){if(!(r&&t instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=r,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);const t=e&&(0,d.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&(0,d.getPrettyContext)(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}t.YAMLError=s,t.YAMLReferenceError=class extends s{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=class extends s{constructor(e,t){super("YAMLSemanticError",e,t)}},t.YAMLSyntaxError=class extends s{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends s{constructor(e,t){super("YAMLWarning",e,t)}}}));r(m),m.YAMLWarning,m.YAMLSyntaxError,m.YAMLSemanticError,m.YAMLReferenceError,m.YAMLError;var y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(){super(f.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){this.context=e;const{src:o}=e;let s=t+1;for(;n.default.atBlank(o,s);){const e=n.default.endOfWhiteSpace(o,s);if("\n"!==e)break;s=e+1}return this.range=new r.default(t,s),s}}t.default=s}));r(y);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(y),r=s(g),o=s(h);function s(e){return e&&e.__esModule?e:{default:e}}class i extends r.default{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:s,src:i}=e;let{atLineStart:a,lineStart:u}=e;a||this.type!==f.Type.SEQ_ITEM||(this.error=new m.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=a?t-u:e.indent;let l=r.default.endOfWhiteSpace(i,t+1),p=i[l];const d="#"===p,h=[];let g=null;for(;"\n"===p||"#"===p;){if("#"===p){const e=r.default.endOfLine(i,l+1);h.push(new o.default(l,e)),l=e}else a=!0,u=l+1,"\n"===i[r.default.endOfWhiteSpace(i,u)]&&0===h.length&&(g=new n.default,u=g.parse({src:i},u)),l=r.default.endOfIndent(i,u);p=i[l]}if(r.default.nextNodeIsIndented(p,l-(u+c),this.type!==f.Type.SEQ_ITEM)?this.node=s({atLineStart:a,inCollection:!1,indent:c,lineStart:u,parent:this},l):p&&u>t+1&&(l=u-1),this.node){if(g){const t=e.parent.items||e.parent.contents;t&&t.push(g)}h.length&&Array.prototype.push.apply(this.props,h),l=this.node.range.end}else if(d){const e=h[0];this.props.push(e),l=e.end}else l=r.default.endOfLine(i,t+1);const y=this.node?this.node.valueRange.end:l;return this.valueRange=new o.default(t,y),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:o}=this;if(null!=o)return o;const s=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,s)}}t.default=i}));r(D);var v=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(){super(f.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.default(t,n),n}}t.default=s}));r(v);var E=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=u,t.default=void 0;var n=a(y),r=a(D),o=a(v),s=a(g),i=a(h);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){let t=e;for(;t instanceof r.default;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let o=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===f.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;o=e}else{if(n.type!==f.Type.BLANK_LINE)break;o=e}}if(-1===o)return null;const s=t.items.splice(o,n-o),i=s[0].range.start;for(;t.range.end=i,t.valueRange&&t.valueRange.end>i&&(t.valueRange.end=i),t!==e;)t=t.context.parent;return s}class c extends s.default{static nextContentHasIndent(e,t,n){const r=s.default.endOfLine(e,t)+1,o=e[t=s.default.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===f.Type.SEQ_ITEM?f.Type.SEQ:f.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:a}=e;let l=s.default.startOfLine(a,t);const p=this.items[0];p.context.parent=this,this.valueRange=i.default.copy(p.valueRange);const d=p.range.start-p.context.lineStart;let h=t;h=s.default.normalizeOffset(a,h);let g=a[h],m=s.default.endOfWhiteSpace(a,l)===h,y=!1;for(;g;){for(;"\n"===g||"#"===g;){if(m&&"\n"===g&&!y){const e=new n.default;if(h=e.parse({src:a},h),this.valueRange.end=h,h>=a.length){g=null;break}this.items.push(e),h-=1}else if("#"===g){if(h=a.length){g=null;break}}if(l=h+1,h=s.default.endOfIndent(a,l),s.default.atBlank(a,h)){const e=s.default.endOfWhiteSpace(a,h),t=a[e];t&&"\n"!==t&&"#"!==t||(h=e)}g=a[h],m=!0}if(!g)break;if(h!==l+d&&(m||":"!==g)){l>t&&(h=l);break}if(p.type===f.Type.SEQ_ITEM!=("-"===g)){let e=!0;if("-"===g){const t=a[h+1];e=!t||"\n"===t||"\t"===t||" "===t}if(e){l>t&&(h=l);break}}const e=r({atLineStart:m,inCollection:!0,indent:d,lineStart:l,parent:this},h);if(!e)return h;if(this.items.push(e),this.valueRange.end=e.valueRange.end,h=s.default.normalizeOffset(a,e.range.end),g=a[h],m=!1,y=e.includesTrailingLines,g){let e=h-1,t=a[e];for(;" "===t||"\t"===t;)t=a[--e];"\n"===t&&(l=e+1,m=!0)}const i=u(e);i&&Array.prototype.push.apply(this.items,i)}return h}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new i.default(l,l+3),l+3):(c?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){const{parseNode:t,src:o}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===o[a-1];)a-=1;let c=s.default.endOfWhiteSpace(o,e),l=a===e;for(this.valueRange=new i.default(c);!s.default.atDocumentBoundary(o,c,f.Char.DOCUMENT_END);){switch(o[c]){case"\n":if(l){const e=new n.default;c=e.parse({src:o},c),c{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===f.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}t.default=u}));r(C);var A=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{parse(e,t){this.context=e;const{src:o}=e;let s=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=s}));r(A);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}const s={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=s;class i extends n.default{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=s.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===s.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:o}=this.context;if(this.valueRange.isEmpty())return"";let i=null,a=o[t-1];for(;"\n"===a||"\t"===a||" "===a;){if(t-=1,t<=e){if(this.chomping===s.KEEP)break;return""}"\n"===a&&(i=t),a=o[t-1]}let u=t+1;i&&(this.chomping===s.KEEP?(u=i,t=this.valueRange.end):t=i);const c=r+this.blockIndent,l=this.type===f.Type.BLOCK_FOLDED;let p=!0,d="",h="",g=!1;for(let r=e;rc&&(c=n)}i="\n"===o[e]?e:a=n.default.endOfLine(o,e)}return this.chomping!==s.KEEP&&(i=o[a]?a+1:a),this.valueRange=new r.default(e+1,i),i}parse(e,t){this.context=e;const{src:r}=e;let o=this.parseBlockHeader(t);return o=n.default.endOfWhiteSpace(r,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}t.default=i}));r(w),w.Chomp;var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(y),r=i(v),o=i(g),s=i(h);function i(e){return e&&e.__esModule?e:{default:e}}class a extends o.default{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===f.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:i,src:a}=e;let{indent:u,lineStart:c}=e,l=a[t];this.items=[{char:l,offset:t}];let p=o.default.endOfWhiteSpace(a,t+1);for(l=a[p];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(c=p+1,"\n"===a[o.default.endOfWhiteSpace(a,c)]){const e=new n.default;c=e.parse({src:a},c),this.items.push(e)}if(p=o.default.endOfIndent(a,c),p<=c+u&&(l=a[p],p{if(n instanceof o.default)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;rn.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const s=t.filter((e=>e instanceof o.default));let i="",a=n.start;return s.forEach((t=>{const n=e.slice(a,t.range.start);a=t.range.end,i+=n+String(t),"\n"===i[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),i+=e.slice(a,n.end),o.default.addStringTerminator(e,n.end,i)}}t.default=a}));r(S);var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let o=r[t-1];for(;en?r.slice(n,o+1):e)}else s+=e}return s}parseBlockValue(e){const{indent:t,inFlow:r,src:o}=this.context;let i=e,a=e;for(let e=o[i];"\n"===e&&!n.default.atDocumentBoundary(o,i+1);e=o[i]){const e=n.default.endOfBlockIndent(o,t,i+1);if(null===e||"#"===o[e])break;"\n"===o[e]?i=e:(a=s.endOfLine(o,e,r),i=a)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=a,a}parse(e,t){this.context=e;const{inFlow:o,src:i}=e;let a=t;const u=i[a];return u&&"#"!==u&&"\n"!==u&&(a=s.endOfLine(i,t,o)),this.valueRange=new r.default(t,a),a=n.default.endOfWhiteSpace(i,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}t.default=s}));r(x);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:s}=this.context;'"'!==s[r-1]&&e.push(new m.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let a=t+1;ae?s.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(n.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(s)}parse(e,t){this.context=e;const{src:o}=e;let i=s.endOfQuote(o,t+1);return this.valueRange=new r.default(t,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i),i}}t.default=s}));r(F);var T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(g),r=o(h);function o(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:s}=this.context;"'"!==s[r-1]&&e.push(new m.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let a=t+1;ae?s.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:o}=e;let i=s.endOfQuote(o,t+1);return this.valueRange=new r.default(t,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i),i}}t.default=s}));r(T);var k=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(A),r=d(w),o=d(E),s=d(D),i=d(S),a=d(g),u=d(x),c=d(F),l=d(T),p=d(h);function d(e){return e&&e.__esModule?e:{default:e}}class y{static parseType(e,t,n){switch(e[t]){case"*":return f.Type.ALIAS;case">":return f.Type.BLOCK_FOLDED;case"|":return f.Type.BLOCK_LITERAL;case"{":return f.Type.FLOW_MAP;case"[":return f.Type.FLOW_SEQ;case"?":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_KEY:f.Type.PLAIN;case":":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_VALUE:f.Type.PLAIN;case"-":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.SEQ_ITEM:f.Type.PLAIN;case'"':return f.Type.QUOTE_DOUBLE;case"'":return f.Type.QUOTE_SINGLE;default:return f.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:d,inFlow:h,indent:g,lineStart:D,parent:v}={}){var E,b;b=(e,t)=>{if(a.default.atDocumentBoundary(this.src,t))return null;const d=new y(this,e),{props:h,type:g,valueStart:D}=d.parseProps(t),v=function(e,t){switch(e){case f.Type.ALIAS:return new n.default(e,t);case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return new r.default(e,t);case f.Type.FLOW_MAP:case f.Type.FLOW_SEQ:return new i.default(e,t);case f.Type.MAP_KEY:case f.Type.MAP_VALUE:case f.Type.SEQ_ITEM:return new s.default(e,t);case f.Type.COMMENT:case f.Type.PLAIN:return new u.default(e,t);case f.Type.QUOTE_DOUBLE:return new c.default(e,t);case f.Type.QUOTE_SINGLE:return new l.default(e,t);default:return null}}(g,h);let E=v.parse(d,D);if(v.range=new p.default(t,E),E<=t&&(v.error=new Error("Node#parse consumed no characters"),v.error.parseEnd=E,v.error.source=v,v.range.end=t+1),d.nodeStartsCollection(v)){v.error||d.atLineStart||d.parent.type!==f.Type.DOCUMENT||(v.error=new m.YAMLSyntaxError(v,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new o.default(v);return E=e.parse(new y(d),E),e.range=new p.default(t,E),e}return v},(E="parseNode")in this?Object.defineProperty(this,E,{value:b,enumerable:!0,configurable:!0,writable:!0}):this[E]=b,this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=d?d:e.inCollection||!1,this.inFlow=null!=h?h:e.inFlow||!1,this.indent=null!=g?g:e.indent,this.lineStart=null!=D?D:e.lineStart,this.parent=null!=v?v:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof s.default)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=a.default.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let s=!1,i=r[e=a.default.endOfWhiteSpace(r,e)];for(;i===f.Char.ANCHOR||i===f.Char.COMMENT||i===f.Char.TAG||"\n"===i;){if("\n"===i){const t=e+1,o=a.default.endOfIndent(r,t),i=o-(t+this.indent),u=n.type===f.Type.SEQ_ITEM&&n.context.atLineStart;if(!a.default.nextNodeIsIndented(r[o],i,!u))break;this.atLineStart=!0,this.lineStart=t,s=!1,e=o}else if(i===f.Char.COMMENT){const t=a.default.endOfLine(r,e+1);o.push(new p.default(e,t)),e=t}else{let t=a.default.endOfIdentifier(r,e+1);i===f.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=a.default.endOfIdentifier(r,t+5)),o.push(new p.default(e,t)),s=!0,e=a.default.endOfWhiteSpace(r,t)}i=r[e]}return s&&":"===i&&a.default.atBlank(r,e+1,!0)&&(e-=1),{props:o,type:y.parseType(r,e,t),valueStart:e}}}t.default=y}));r(k);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const o=[];let s=0;do{const t=new n.default,i=new r.default({src:e});s=t.parse(i,s),o.push(t)}while(s{if(0===t.length)return!1;for(let e=1;eo.join("...\n"),o};var n=o(C),r=o(k);function o(e){return e&&e.__esModule?e:{default:e}}}));r(_);var O=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));r(O),O.addCommentBefore;var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),r)));if(t&&"function"==typeof t.toJSON){const e=r&&r.anchors&&r.anchors.find((e=>e.node===t));e&&(r.onCreate=t=>{e.res=t,delete r.onCreate});const o=t.toJSON(n,r);return e&&r.onCreate&&r.onCreate(o),o}return t}}));r(N);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{}}));r(B);var M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(N),r=o(B);function o(e){return e&&e.__esModule?e:{default:e}}class s extends r.default{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=s}));r(M);var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(O),r=a(N),o=a(I),s=a(B),i=a(M);function a(e){return e&&e.__esModule?e:{default:e}}class u extends s.default{constructor(e,t=null){super(),this.key=e,this.value=t,this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){null==this.key&&(this.key=new i.default(null)),this.key.commentBefore=e}addToJSMap(e,t){const n=(0,r.default)(this.key,"",e);if(t instanceof Map){const o=(0,r.default)(this.value,n,e);t.set(n,o)}else if(t instanceof Set)t.add(n);else{const o=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof s.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t))(this.key,n,e);t[o]=(0,r.default)(this.value,o,e)}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:a}=e.doc.options;let{key:u,value:c}=this,l=u instanceof s.default&&u.comment;if(a){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof o.default)throw new Error("With simple keys, collection cannot be used as a key value")}const p=!a&&(!u||l||u instanceof o.default||u.type===f.Type.BLOCK_FOLDED||u.type===f.Type.BLOCK_LITERAL),{doc:d,indent:h}=e;e=Object.assign({},e,{implicitKey:!p,indent:h+" "});let g=!1,m=d.schema.stringify(u,e,(()=>l=null),(()=>g=!0));if(m=(0,n.default)(m,e.indent,l),e.allNullValues&&!a)return this.comment?(m=(0,n.default)(m,e.indent,this.comment),t&&t()):g&&!l&&r&&r(),e.inFlow?m:"? ".concat(m);m=p?"? ".concat(m,"\n").concat(h,":"):"".concat(m,":"),this.comment&&(m=(0,n.default)(m,e.indent,this.comment),t&&t());let y="",D=null;if(c instanceof s.default){if(c.spaceBefore&&(y="\n"),c.commentBefore){const t=c.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(t)}D=c.comment}else c&&"object"==typeof c&&(c=d.schema.createNode(c,!0));e.implicitKey=!1,!p&&!this.comment&&c instanceof i.default&&(e.indentAtStart=m.length+1),g=!1;const v=d.schema.stringify(c,e,(()=>D=null),(()=>g=!0));let E=" ";return y||this.comment?E="".concat(y,"\n").concat(e.indent):!p&&c instanceof o.default&&(("["===v[0]||"{"===v[0])&&!v.includes("\n")||(E="\n".concat(e.indent))),g&&!D&&r&&r(),(0,n.default)(m+E+v,e.indent,D)}}t.default=u}));r(L);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=i(O),r=i(B),o=i(L),s=i(M);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e],o=Number.isInteger(n)&&n>=0?[]:{};o[n]=r,r=o}return e.createNode(r,!1)}const c=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;t.isEmptyPath=c;class l extends r.default{constructor(e){super(),a(this,"items",[]),this.schema=e}addIn(e,t){if(c(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof l)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,u(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof s.default?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!(e instanceof o.default))return!1;const t=e.value;return null==t||t instanceof s.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,u(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:o,itemIndent:s},i,a){const{doc:u,indent:c}=e,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(s+=" ");const f=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:s,inFlow:p,type:null});let d=!1,h=!1;const g=this.items.reduce(((t,r,o)=>{let i;r&&(!d&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(i=r.comment),p&&(!d&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(h=!0)),d=!1;let a=u.schema.stringify(r,e,(()=>i=null),(()=>d=!0));return p&&!h&&a.includes("\n")&&(h=!0),p&&oe.str));if(h||n.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){m=e;for(const e of n)m+=e?"\n ".concat(c).concat(e):"\n";m+="\n".concat(c).concat(t)}else m="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{const e=g.map(t);m=e.shift();for(const t of e)m+=t?"\n".concat(c).concat(t):"\n"}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(c,"#")),i&&i()):d&&a&&a(),m}}t.default=l,a(l,"maxFlowStringSingleLineLength",60)}));r(I),I.isEmptyPath;var P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(N),r=i(I),o=i(B),s=i(L);function i(e){return e&&e.__esModule?e:{default:e}}const a=(e,t)=>{if(e instanceof u){const n=t.find((t=>t.node===e.source));return n.count*n.aliasCount}if(e instanceof r.default){let n=0;for(const r of e.items){const e=a(r,t);e>n&&(n=e)}return n}if(e instanceof s.default){const n=a(e.key,t),r=a(e.value,t);return Math.max(n,r)}return 1};class u extends o.default{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:s}){let i=Object.keys(n).find((e=>n[e]===t));if(!i&&s&&(i=r.anchors.getName(t)||r.anchors.newName()),i)return"*".concat(i).concat(o?" ":"");const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(a," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=f.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,n.default)(this.source,e,t);const{anchors:r,maxAliasCount:o}=t,s=r.find((e=>e.node===this.source));if(!s||void 0===s.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new m.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=a(this.source,r)),s.count*s.aliasCount>o)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new m.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return s.res}toString(e){return u.stringify(this,e)}}var c,l;t.default=u,(l="default")in(c=u)?Object.defineProperty(c,l,{value:true,enumerable:!0,configurable:!0,writable:!0}):c[l]=true}));r(P);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=i,t.default=void 0;var n=s(I),r=s(L),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){const n=t instanceof o.default?t.value:t;for(const o of e)if(o instanceof r.default){if(o.key===t||o.key===n)return o;if(o.key&&o.key.value===n)return o}}class a extends n.default{add(e,t){e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e);const n=i(this.items,e.key),o=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(o){const t=this.items.findIndex((t=>o(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=i(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=i(this.items,e),r=n&&n.value;return!t&&r instanceof o.default?r.value:r}has(e){return!!i(this.items,e)}set(e,t){this.add(new r.default(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}t.default=a}));r(j),j.findPair;var R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(N),r=s(I),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}function i(e){let t=e instanceof o.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}class a extends r.default{add(e){this.items.push(e)}delete(e){const t=i(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=i(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof o.default?r.value:r}has(e){const t=i(e);return"number"==typeof t&&t"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}t.default=a}));r(R);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=i(j),r=i(L),o=i(M),s=i(R);function i(e){return e&&e.__esModule?e:{default:e}}t.MERGE_KEY="<<";class a extends r.default{constructor(e){if(e instanceof r.default){let t=e.value;t instanceof s.default||(t=new s.default,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o.default("<<"),new s.default);this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}t.default=a}));r(U),U.MERGE_KEY;var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P),r=a(j),o=a(U),s=a(M),i=a(R);function a(e){return e&&e.__esModule?e:{default:e}}class u{static validAnchorNode(e){return e instanceof s.default||e instanceof i.default||e instanceof r.default}constructor(e){var t;t={},"map"in this?Object.defineProperty(this,"map",{value:t,enumerable:!0,configurable:!0,writable:!0}):this.map=t,this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.default(e)}createMergePair(...e){const t=new o.default;return t.value.items=e.map((e=>{if(e instanceof n.default){if(e.source instanceof r.default)return e}else if(e instanceof r.default)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!u.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}t.default=u}));r($);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(I),r=s(L),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}const i=(e,t)=>{if(e&&"object"==typeof e){const{tag:s}=e;e instanceof n.default?(s&&(t[s]=!0),e.items.forEach((e=>i(e,t)))):e instanceof r.default?(i(e.key,t),i(e.value,t)):e instanceof o.default&&s&&(t[s]=!0)}return t};t.default=e=>Object.keys(i(e,{}))}));r(q);var V=o((function(e,n){function r(e,n){if(t&&t._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=t&&t.process;r?r(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}Object.defineProperty(n,"__esModule",{value:!0}),n.warn=r,n.warnFileDeprecation=function(e){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;const n=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");r("The endpoint 'yaml/".concat(n,"' will be removed in a future release."),"DeprecationWarning")},n.warnOptionDeprecation=function(e,n){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(o[e])return;o[e]=!0;let s="The option '".concat(e,"' will be removed in a future release");s+=n?", use '".concat(n,"' instead."):".",r(s,"DeprecationWarning")};const o={}}));r(V),V.warn,V.warnFileDeprecation,V.warnOptionDeprecation;var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,{indentAtStart:o,lineWidth:s=80,minContentWidth:i=20,onFold:a,onOverflow:u}){if(!s||s<0)return e;const c=Math.max(1+i,1+s-t.length);if(e.length<=c)return e;const l=[],p={};let f,d,h,g=s-("number"==typeof o?o:t.length),m=!1,y=-1;for("block"===r&&(y=n(e,y),-1!==y&&(g=y+c));f=e[y+=1];){if("quoted"===r&&"\\"===f)switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}if("\n"===f)"block"===r&&(y=n(e,y)),g=y+c,d=void 0;else{if(" "===f&&h&&" "!==h&&"\n"!==h&&"\t"!==h){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=y)}if(y>=g)if(d)l.push(d),g=d+c,d=void 0;else if("quoted"===r){for(;" "===h||"\t"===h;)h=f,f=e[y+=1],m=!0;l.push(y-2),p[y-2]=!0,g=y-2+c,d=void 0}else m=!0}h=f}if(m&&u&&u(),0===l.length)return e;a&&a();let D=e.slice(0,l[0]);for(let n=0;n{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}}));r(W),W.FOLD_QUOTED,W.FOLD_BLOCK,W.FOLD_FLOW;var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;const n={defaultType:f.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n,t.boolOptions={trueStr:"true",falseStr:"false"},t.nullOptions={nullStr:"null"};const r={defaultType:f.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));r(Y),Y.strOptions,Y.nullOptions,Y.boolOptions,Y.binaryOptions;var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},t.stringifyString=function(e,t,r,u){const{defaultType:c}=Y.strOptions,{implicitKey:l,inFlow:p}=t;let{type:d,value:h}=e;"string"!=typeof h&&(h=String(h),e=Object.assign({},e,{value:h}));const g=c=>{switch(c){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return a(e,t,r,u);case f.Type.QUOTE_DOUBLE:return s(h,t);case f.Type.QUOTE_SINGLE:return i(h,t);case f.Type.PLAIN:return function(e,t,r,u){const{comment:c,type:l,value:p}=e,{actualString:d,implicitKey:h,indent:g,inFlow:m,tags:y}=t;if(h&&/[\n[\]{},]/.test(p)||m&&/[[\]{},]/.test(p))return s(p,t);if(!p||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(p))return h||m||-1===p.indexOf("\n")?-1!==p.indexOf('"')&&-1===p.indexOf("'")?i(p,t):s(p,t):a(e,t,r,u);if(!h&&!m&&l!==f.Type.PLAIN&&-1!==p.indexOf("\n"))return a(e,t,r,u);const D=p.replace(/\n+/g,"$&\n".concat(g));if(d&&"string"!=typeof y.resolveScalar(D).value)return s(p,t);const v=h?D:(0,n.default)(D,g,n.FOLD_FLOW,o(t));return!c||m||-1===v.indexOf("\n")&&-1===c.indexOf("\n")?v:(r&&r(),(0,O.addCommentBefore)(v,g,c))}(e,t,r,u);default:return null}};d!==f.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(h)?d=f.Type.QUOTE_DOUBLE:!l&&!p||d!==f.Type.BLOCK_FOLDED&&d!==f.Type.BLOCK_LITERAL||(d=f.Type.QUOTE_DOUBLE);let m=g(d);if(null===m&&(m=g(c),null===m))throw new Error("Unsupported default string type ".concat(c));return m};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(W);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}const o=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},Y.strOptions.fold):Y.strOptions.fold;function s(e,t){const{implicitKey:r,indent:s}=t,{jsonEncoding:i,minMultiLineLength:a}=Y.strOptions.doubleQuoted,u=JSON.stringify(e);if(i)return u;let c="",l=0;for(let e=0,t=u[e];t;t=u[++e])if(" "===t&&"\\"===u[e+1]&&"n"===u[e+2]&&(c+=u.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(u[e+1]){case"u":{c+=u.slice(l,e);const t=u.substr(e+2,4);switch(t){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:"00"===t.substr(0,2)?c+="\\x"+t.substr(2):c+=u.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===u[e+2]||u.lengtht)return!0;if(o=r+1,n-o<=t)return!1}return!0}(r,Y.strOptions.fold.lineWidth-u.length));let p=l?"|":">";if(!r)return p+"\n";let d="",h="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?p+="-":r!==e&&t===e.length-1||(p+="+",a&&a()),h=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(p+=c);const t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),h&&(h=h.replace(/\n+(?!\n|$)/g,"$&".concat(u))),d&&(d=d.replace(/\n+/g,"$&".concat(u))),e&&(p+=" #"+e.replace(/ ?[\r\n]+/g," "),i&&i()),!r)return"".concat(p).concat(c,"\n").concat(u).concat(h);if(l)return r=r.replace(/\n+/g,"$&".concat(u)),"".concat(p,"\n").concat(u).concat(d).concat(r).concat(h);r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(u));const g=(0,n.default)("".concat(d).concat(r).concat(h),u,n.FOLD_BLOCK,Y.strOptions.fold);return"".concat(p,"\n").concat(u).concat(g)}}));r(K),K.stringifyNumber,K.stringifyString;var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){let n,r,o;switch(t.type){case f.Type.FLOW_MAP:n="}",r="flow map";break;case f.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new m.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==f.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const s="Expected ".concat(r," to end with ").concat(n);let i;"number"==typeof o.offset?(i=new m.YAMLSemanticError(t,s),i.offset=o.offset+1):(i=new m.YAMLSemanticError(o,s),o.range&&o.range.end&&(i.offset=o.range.end-o.range.start)),e.push(i)}},t.checkKeyLength=function(e,t,n,r,o){if(!r||"number"!=typeof o)return;const s=t.items[n];let i=s&&s.range&&s.range.start;if(!i)for(let e=n-1;e>=0;--e){const r=t.items[e];if(r&&r.range){i=r.range.end+2*(n-e);break}}if(i>o+1024){const n=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new m.YAMLSemanticError(t,'The "'.concat(n,'" key is too long')))}},t.resolveComments=function(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}}));r(J),J.checkFlowCollectionEnd,J.checkKeyLength,J.resolveComments;var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==f.Type.MAP&&t.type!==f.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new m.YAMLSyntaxError(t,n)),null}const{comments:u,items:c}=t.type===f.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o,i=null,a=!1,u="{";for(let c=0;c0){r=new n.default(f.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};const e=c.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},"number"==typeof c.range.origStart){const e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const p=new s.default(i,e.resolveNode(r));l(c,p),o.push(p),(0,J.checkKeyLength)(e.errors,t,u,i,a),i=void 0,a=null}break;default:void 0!==i&&o.push(new s.default(i)),i=e.resolveNode(c),a=c.range.start,c.error&&e.errors.push(c.error);e:for(let n=u+1;;++n){const r=t.items[n];switch(r&&r.type){case f.Type.BLANK_LINE:case f.Type.COMMENT:continue e;case f.Type.MAP_VALUE:break e;default:e.errors.push(new m.YAMLSemanticError(c,"Implicit map keys need to be followed by map values"));break e}}if(c.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new m.YAMLSemanticError(c,t))}}}return void 0!==i&&o.push(new s.default(i)),{comments:r,items:o}}(e,t),p=new r.default;p.items=c,(0,J.resolveComments)(p,u);let d=!1;for(let n=0;n{if(e instanceof i.default){const{type:t}=e.source;return t!==f.Type.MAP&&t!==f.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new m.YAMLSemanticError(t,s))}else for(let o=n+1;o{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==f.Char.COMMENT)return!1;for(let t=e;te instanceof n.default&&e.key instanceof o.default))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new m.YAMLWarning(t,n))}return t.resolved=a,a};var n=s(L),r=s(R),o=s(I);function s(e){return e&&e.__esModule?e:{default:e}}}));r(H);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(H),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}var s={createNode:function(e,t,n){const o=new r.default(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);o.items.push(t)}return o},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=s}));r(X);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;const n=(e,t)=>{const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""};t.resolveString=n;var r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),(0,K.stringifyString)(e,t,n,r)),options:Y.strOptions};t.default=r}));r(Q),Q.resolveString;var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(G),r=s(X),o=s(Q);function s(e){return e&&e.__esModule?e:{default:e}}var i=[n.default,r.default,o.default];t.default=i}));r(Z);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.floatObj=t.expObj=t.nanObj=t.hexObj=t.intObj=t.octObj=t.boolObj=t.nullObj=void 0;var n=o(M),r=o(Z);function o(e){return e&&e.__esModule?e:{default:e}}const s={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr};t.nullObj=s;const i={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:Y.boolOptions,stringify:({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr};t.boolObj=i;const a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)};t.octObj=a;const u={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:K.stringifyNumber};t.intObj=u;const c={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)};t.hexObj=c;const l={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber};t.nanObj=l;const p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};t.expObj=p;const f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:K.stringifyNumber};t.floatObj=f;var d=r.default.concat([s,i,a,u,c,l,p,f]);t.default=d}));r(ee),ee.floatObj,ee.expObj,ee.nanObj,ee.hexObj,ee.intObj,ee.octObj,ee.boolObj,ee.nullObj;var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(G),r=s(X),o=s(M);function s(e){return e&&e.__esModule?e:{default:e}}const i=[n.default,r.default,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Q.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new o.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];i.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var a=i;t.default=a}));r(te);var ne=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},re=[],oe=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ie=!1;function ae(){ie=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+re[o>>12&63]+re[o>>6&63]+re[63&o]);return s.join("")}function ce(e){var t;ie||ae();for(var n=e.length,r=n%3,o="",s=[],i=0,a=n-r;ia?a:i+16383));return 1===r?(t=e[n-1],o+=re[t>>2],o+=re[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=re[t>>10],o+=re[t>>4&63],o+=re[t<<2&63],o+="="),s.push(o),s.join("")}function le(e,t,n,r,o){var s,i,a=8*o-r-1,u=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+e[t+p],p+=f,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=r;l>0;i=256*i+e[t+p],p+=f,l-=8);if(0===s)s=1-c;else{if(s===u)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),s-=c}return(d?-1:1)*i*Math.pow(2,s-r)}function pe(e,t,n,r,o,s){var i,a,u,c=8*s-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=l?(a=0,i=l):i+p>=1?(a=(t*u-1)*Math.pow(2,o),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+d]=255&a,d+=h,a/=256,o-=8);for(i=i<0;e[n+d]=255&i,d+=h,i/=256,c-=8);e[n+d-h]|=128*g}var fe={}.toString,de=Array.isArray||function(e){return"[object Array]"==fe.call(e)};function he(){return me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ge(e,t){if(he()=he())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+he().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function Ae(e,t){if(Ce(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return He(e).length;default:if(r)return Ge(e).length;t=(""+t).toLowerCase(),r=!0}}function we(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return je(this,t,n);case"utf8":case"utf-8":return Le(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Pe(this,t,n);case"base64":return Me(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Se(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xe(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=me.from(t,r)),Ce(t))return 0===t.length?-1:Fe(e,t,n,r,o);if("number"==typeof t)return t&=255,me.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Fe(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Fe(e,t,n,r,o){var s,i=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,u/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(s=n;sa&&(n=a-u),s=n;s>=0;s--){for(var p=!0,f=0;fo&&(r=o):r=o;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;i>8,o=n%256,s.push(o),s.push(r);return s}(t,e.length-n),e,n,r)}function Me(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Le(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(s=e[o+1]))&&(u=(31&c)<<6|63&s)>127&&(l=u);break;case 3:s=e[o+1],i=e[o+2],128==(192&s)&&128==(192&i)&&(u=(15&c)<<12|(63&s)<<6|63&i)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[o+1],i=e[o+2],a=e[o+3],128==(192&s)&&128==(192&i)&&128==(192&a)&&(u=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",s=t;sn)throw new RangeError("Trying to access beyond buffer length")}function $e(e,t,n,r,o,s){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function qe(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function Ve(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function We(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ye(e,t,n,r,o){return o||We(e,0,n,4),pe(e,t,n,r,23,4),n+4}function Ke(e,t,n,r,o){return o||We(e,0,n,8),pe(e,t,n,r,52,8),n+8}me.TYPED_ARRAY_SUPPORT=void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,me.poolSize=8192,me._augment=function(e){return e.__proto__=me.prototype,e},me.from=function(e,t,n){return ye(null,e,t,n)},me.TYPED_ARRAY_SUPPORT&&(me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array),me.alloc=function(e,t,n){return function(e,t,n,r){return De(t),t<=0?ge(e,t):void 0!==n?"string"==typeof r?ge(e,t).fill(n,r):ge(e,t).fill(n):ge(e,t)}(null,e,t,n)},me.allocUnsafe=function(e){return ve(null,e)},me.allocUnsafeSlow=function(e){return ve(null,e)},me.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Qe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qe(e.slice(0,0))}(e))},me.compare=function(e,t){if(!Ce(e)||!Ce(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,s=Math.min(n,r);o0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},me.prototype.compare=function(e,t,n,r,o){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),a=Math.min(s,i),u=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return Te(this,e,t,n);case"utf8":case"utf-8":return ke(this,e,t,n);case"ascii":return _e(this,e,t,n);case"latin1":case"binary":return Oe(this,e,t,n);case"base64":return Ne(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Be(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},me.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},me.prototype.readUInt8=function(e,t){return t||Ue(e,1,this.length),this[e]},me.prototype.readUInt16LE=function(e,t){return t||Ue(e,2,this.length),this[e]|this[e+1]<<8},me.prototype.readUInt16BE=function(e,t){return t||Ue(e,2,this.length),this[e]<<8|this[e+1]},me.prototype.readUInt32LE=function(e,t){return t||Ue(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},me.prototype.readUInt32BE=function(e,t){return t||Ue(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},me.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e],o=1,s=0;++s=(o*=128)&&(r-=Math.pow(2,8*t)),r},me.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=t,o=1,s=this[e+--r];r>0&&(o*=256);)s+=this[e+--r]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*t)),s},me.prototype.readInt8=function(e,t){return t||Ue(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},me.prototype.readInt16LE=function(e,t){t||Ue(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},me.prototype.readInt16BE=function(e,t){t||Ue(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},me.prototype.readInt32LE=function(e,t){return t||Ue(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},me.prototype.readInt32BE=function(e,t){return t||Ue(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},me.prototype.readFloatLE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!0,23,4)},me.prototype.readFloatBE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!1,23,4)},me.prototype.readDoubleLE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!0,52,8)},me.prototype.readDoubleBE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!1,52,8)},me.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$e(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+n},me.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,255,0),me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},me.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},me.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},me.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),me.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ve(this,e,t,!0),t+4},me.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},me.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var s=0,i=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+n},me.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var s=n-1,i=1,a=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/i>>0)-a&255;return t+n},me.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,127,-128),me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},me.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qe(this,e,t,!0),t+2},me.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qe(this,e,t,!1),t+2},me.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ve(this,e,t,!0),t+4},me.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ve(this,e,t,!1),t+4},me.prototype.writeFloatLE=function(e,t,n){return Ye(this,e,t,!0,n)},me.prototype.writeFloatBE=function(e,t,n){return Ye(this,e,t,!1,n)},me.prototype.writeDoubleLE=function(e,t,n){return Ke(this,e,t,!0,n)},me.prototype.writeDoubleBE=function(e,t,n){return Ke(this,e,t,!1,n)},me.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(s<1e3||!me.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function He(e){return function(e){var t,n,r,o,s,i;ie||ae();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[a-2]?2:"="===e[a-1]?1:0,i=new se(3*a/4-s),r=s>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,i[u++]=o>>8&255,i[u++]=255&o;return 2===s?(o=oe[e.charCodeAt(t)]<<2|oe[e.charCodeAt(t+1)]>>4,i[u++]=255&o):1===s&&(o=oe[e.charCodeAt(t)]<<10|oe[e.charCodeAt(t+1)]<<4|oe[e.charCodeAt(t+2)]>>2,i[u++]=o>>8&255,i[u++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Je,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xe(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{{const n=(0,Q.resolveString)(e,t);return me.from(n,"base64")}},options:Y.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,s)=>{let i;if(i=n instanceof me?n.toString("base64"):me.from(n.buffer).toString("base64"),t||(t=Y.binaryOptions.defaultType),t===f.Type.QUOTE_DOUBLE)n=i;else{const{lineWidth:e}=Y.binaryOptions,r=Math.ceil(i.length/e),o=new Array(r);for(let t=0,n=0;t1){const e="Each pair must have its own sequence indicator";throw new m.YAMLSemanticError(t,e)}const e=o.items[0]||new r.default;o.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(o.commentBefore,"\n").concat(e.commentBefore):o.commentBefore),o.comment&&(e.comment=e.comment?"".concat(o.comment,"\n").concat(e.comment):o.comment),o=e}s.items[e]=o instanceof r.default?o:new r.default(o)}}return s}function u(e,t,n){const r=new s.default(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,s;if(Array.isArray(o)){if(2!==o.length)throw new TypeError("Expected [key, value] tuple: ".concat(o));t=o[0],s=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(o));t=e[0],s=o[t]}else t=o;const i=e.createPair(t,s,n);r.items.push(i)}return r}var c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:u};t.default=c}));r(et),et.parsePairs,et.createPairs;var tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=a(N),r=a(j),o=a(L),s=a(M),i=a(R);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.default{constructor(){super(),u(this,"add",r.default.prototype.add.bind(this)),u(this,"delete",r.default.prototype.delete.bind(this)),u(this,"get",r.default.prototype.get.bind(this)),u(this,"has",r.default.prototype.has.bind(this)),u(this,"set",r.default.prototype.set.bind(this)),this.tag=c.tag}toJSON(e,t){const r=new Map;t&&t.onCreate&&t.onCreate(r);for(const e of this.items){let s,i;if(e instanceof o.default?(s=(0,n.default)(e.key,"",t),i=(0,n.default)(e.value,s,t)):s=(0,n.default)(e,"",t),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}}t.YAMLOMap=c,u(c,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=(0,et.parsePairs)(e,t),r=[];for(const{key:e}of n.items)if(e instanceof s.default){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new m.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new c,n)},createNode:function(e,t,n){const r=(0,et.createPairs)(e,t,n),o=new c;return o.items=r.items,o}};t.default=l}));r(tt),tt.YAMLOMap;var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(j),s=u(L),i=u(z),a=u(M);function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}class l extends o.default{constructor(){super(),this.tag=l.tag}add(e){const t=e instanceof s.default?e:new s.default(e);(0,o.findPair)(this.items,t.key)||this.items.push(t)}get(e,t){const n=(0,o.findPair)(this.items,e);return!t&&n instanceof s.default?n.key instanceof a.default?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof t));const n=(0,o.findPair)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new s.default(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}t.YAMLSet=l,r="tag:yaml.org,2002:set","tag"in(n=l)?Object.defineProperty(n,"tag",{value:r,enumerable:!0,configurable:!0,writable:!0}):n.tag=r;var p={identify:e=>e instanceof Set,nodeClass:l,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=(0,i.default)(e,t);if(!n.hasAllNullValues())throw new m.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new l,n)},createNode:function(e,t,n){const r=new l;for(const o of t)r.items.push(e.createPair(o,null,n));return r}};t.default=p}));r(nt),nt.YAMLSet;var rt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;const n=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},r=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,K.stringifyNumber)(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.intTime=o;const s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.floatTime=s;const i={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,o,s,i,a,u,c)=>{u&&(u=(u+"00").substr(1,3));let l=Date.UTC(t,r-1,o,s||0,i||0,a||0,u||0);if(c&&"Z"!==c){let e=n(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=i}));r(rt),rt.timestamp,rt.floatTime,rt.intTime;var ot=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(M),r=u(Z),o=u(Ze),s=u(tt),i=u(et),a=u(nt);function u(e){return e&&e.__esModule?e:{default:e}}const c=({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr;var l=r.default.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:Y.boolOptions,stringify:c},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:Y.boolOptions,stringify:c},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:K.stringifyNumber}],o.default,s.default,i.default,a.default,rt.intTime,rt.floatTime,rt.timestamp);t.default=l}));r(ot);var st=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(ee),r=f(Z),o=f(te),s=f(ot),i=f(G),a=f(X),u=f(Ze),c=f(tt),l=f(et),p=f(nt);function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}const h={core:n.default,failsafe:r.default,json:o.default,yaml11:s.default};t.schemas=h;const g={binary:u.default,bool:n.boolObj,float:n.floatObj,floatExp:n.expObj,floatNaN:n.nanObj,floatTime:rt.floatTime,int:n.intObj,intHex:n.hexObj,intOct:n.octObj,intTime:rt.intTime,map:i.default,null:n.nullObj,omap:c.default,pairs:l.default,seq:a.default,set:p.default,timestamp:rt.timestamp};t.tags=g}));r(st),st.tags,st.schemas;var it=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(P),r=a(I),o=a(B),s=a(L),i=a(M);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){if(this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?(e,t)=>e.keyt.key?1:0:r||null,this.tags=st.schemas[n.replace(/\W/g,"")],!this.tags){const e=Object.keys(st.schemas).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(e))}if(!e&&o&&(e=o,(0,V.warnOptionDeprecation)("tags","customTags")),Array.isArray(e))for(const t of e)this.tags=this.tags.concat(t);else"function"==typeof e&&(this.tags=e(this.tags.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(t,'"; use one of ').concat(e))}this.tags[e]=n}}}createNode(e,t,r,s){if(e instanceof o.default)return e;let a;if(r){r.startsWith("!!")&&(r=c.defaultPrefix+r.slice(2));const e=this.tags.filter((e=>e.tag===r));if(a=e.find((e=>!e.format))||e[0],!a)throw new Error("Tag ".concat(r," not found"))}else if(a=this.tags.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)),!a){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!=typeof e)return t?new i.default(e):e;a=e instanceof Map?st.tags.map:e[Symbol.iterator]?st.tags.seq:st.tags.map}s?s.wrapScalars=t:s={wrapScalars:t},s.onTagObj&&(s.onTagObj(a),delete s.onTagObj);const u={};if(e&&"object"==typeof e&&s.prevObjects){const t=s.prevObjects.get(e);if(t){const e=new n.default(t);return s.aliasNodes.push(e),e}u.value=e,s.prevObjects.set(e,u)}return u.node=a.createNode?a.createNode(this,e,s):t?new i.default(e):e,r&&u.node instanceof o.default&&(u.node.tag=r),u.node}createPair(e,t,n){const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new s.default(r,o)}resolveScalar(e,t){t||(t=this.tags);for(let n=0;ne===n)),s=o.find((({test:e})=>!e));t.error&&e.errors.push(t.error);try{if(s){let n=s.resolve(e,t);n instanceof r.default||(n=new i.default(n)),t.resolved=n}else{const n=(0,Q.resolveString)(e,t);"string"==typeof n&&o.length>0&&(t.resolved=this.resolveScalar(n,o))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}resolveNodeWithFallback(e,t,n){const r=this.resolveNode(e,t,n);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return r;const o=(({type:e})=>e===f.Type.FLOW_MAP||e===f.Type.MAP)(t)?c.defaultTags.MAP:(({type:e})=>e===f.Type.FLOW_SEQ||e===f.Type.SEQ)(t)?c.defaultTags.SEQ:c.defaultTags.STR;if(o){e.warnings.push(new m.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(o)));const r=this.resolveNode(e,t,o);return r.tag=n,r}return e.errors.push(new m.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}getTagObject(e){if(e instanceof n.default)return n.default;if(e.tag){const t=this.tags.filter((t=>t.tag===e.tag));if(t.length>0)return t.find((t=>t.format===e.format))||t[0]}let t,r;if(e instanceof i.default){r=e.value;const n=this.tags.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));t=n.find((t=>t.format===e.format))||n.find((e=>!e.format))}else r=e,t=this.tags.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return t}stringifyProps(e,t,{anchors:n,doc:r}){const o=[],s=r.anchors.getName(e);return s&&(n[s]=e,o.push("&".concat(s))),e.tag?o.push(r.stringifyTag(e.tag)):t.default||o.push(r.stringifyTag(t.tag)),o.join(" ")}stringify(e,t,n,i){let a;if(!(e instanceof o.default)){const n={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=this.createNode(e,!0,null,n);const{anchors:r}=t.doc;for(const e of n.aliasNodes){e.source=e.source.node;let t=r.getName(e.source);t||(t=r.newName(),r.map[t]=e.source)}}if(t.tags=this,e instanceof s.default)return e.toString(t,n,i);a||(a=this.getTagObject(e));const u=this.stringifyProps(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const c="function"==typeof a.stringify?a.stringify(e,t,n,i):e instanceof r.default?e.toString(t,n,i):(0,K.stringifyString)(e,t,n,i);return u?e instanceof r.default&&"{"!==c[0]&&"["!==c[0]?"".concat(u,"\n").concat(t.indent).concat(c):"".concat(u," ").concat(c):c}}t.default=c,u(c,"defaultPrefix","tag:yaml.org,2002:"),u(c,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));r(it);var at=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r,o,s=y(O),i=y($),a=y(q),u=y(it),c=y(P),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(I),p=y(B),d=y(M),h=y(N);function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}class D{constructor(e){this.anchors=new i.default(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}assertCollectionContents(){if(this.contents instanceof l.default)return!0;throw new Error("Expected a YAML collection as document contents")}add(e){return this.assertCollectionContents(),this.contents.add(e)}addIn(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}delete(e){return this.assertCollectionContents(),this.contents.delete(e)}deleteIn(e){return(0,l.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}getDefaults(){return D.defaults[this.version]||D.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof l.default?this.contents.get(e,t):void 0}getIn(e,t){return(0,l.isEmptyPath)(e)?!t&&this.contents instanceof d.default?this.contents.value:this.contents:this.contents instanceof l.default?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof l.default&&this.contents.has(e)}hasIn(e){return(0,l.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof l.default&&this.contents.hasIn(e)}set(e,t){this.assertCollectionContents(),this.contents.set(e,t)}setIn(e,t){(0,l.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:s,valueRange:i}=e;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(n,t),o&&(this.directivesEndMarker=!0),this.range=i?[i.start,i.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof m.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof m.YAMLError&&e.makePretty()}return this}parseDirectives(e,t){const n=[];let r=!1;if(e.forEach((e=>{const{comment:t,name:o}=e;switch(o){case"TAG":this.resolveTagDirective(e),r=!0;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e),r=!0;break;default:if(o){const t="YAML only supports %TAG and %YAML directives, and not %".concat(o);this.warnings.push(new m.YAMLWarning(e,t))}}t&&n.push(t)})),t&&!r&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e),this.version=t.version}this.commentBefore=n.join("\n")||null}parseContents(e){const t={before:[],after:[]},n=[];let r=!1;switch(e.forEach((e=>{if(e.valueRange){if(1===n.length){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new m.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);r&&(t.spaceBefore=!0,r=!1),n.push(t)}else null!==e.comment?(0===n.length?t.before:t.after).push(e.comment):e.type===f.Type.BLANK_LINE&&(r=!0,0===n.length&&t.before.length>0&&!this.commentBefore&&(this.commentBefore=t.before.join("\n"),t.before=[]))})),n.length){case 0:this.contents=null,t.after=t.before;break;case 1:if(this.contents=n[0],this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof l.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?"".concat(e,"\n").concat(t.commentBefore):e}}else t.after=t.before.concat(t.after);break;default:this.contents=n,this.contents[0]?this.contents[0].commentBefore=t.before.join("\n")||null:t.after=t.before.concat(t.after)}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,n]=e.parameters;if(t&&n)if(this.tagPrefixes.every((e=>e.handle!==t)))this.tagPrefixes.push({handle:t,prefix:n});else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new m.YAMLSemanticError(e,t))}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new m.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if("YAML:1.0"===e.name&&(t="1.0"),this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new m.YAMLSemanticError(e,t))}if(t){if(!D.defaults[t]){const n=this.version||this.options.version,r="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(t);this.warnings.push(new m.YAMLWarning(e,r))}this.version=t}else{const t="Insufficient parameters given for %YAML directive";this.errors.push(new m.YAMLSemanticError(e,t))}}resolveTagName(e){const{tag:t,type:n}=e;let r=!1;if(t){const{handle:n,suffix:o,verbatim:s}=t;if(s){if("!"!==s&&"!!"!==s)return s;const t="Verbatim tags aren't resolved, so ".concat(s," is invalid.");this.errors.push(new m.YAMLSemanticError(e,t))}else if("!"!==n||o){let t=this.tagPrefixes.find((e=>e.handle===n));if(!t){const e=this.getDefaults().tagPrefixes;e&&(t=e.find((e=>e.handle===n)))}if(t){if(o){if("!"===n&&"1.0"===(this.version||this.options.version)){if("^"===o[0])return o;if(/[:/]/.test(o)){const e=o.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(o)}}return t.prefix+decodeURIComponent(o)}this.errors.push(new m.YAMLSemanticError(e,"The ".concat(n," tag has no suffix.")))}else{const t="The ".concat(n," tag handle is non-default and was not declared.");this.errors.push(new m.YAMLSemanticError(e,t))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return u.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return u.default.defaultTags.SEQ;case f.Type.PLAIN:return r?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:n,schema:r}=this;let o=!1,s=!1;const i={before:[],after:[]},a=(e=>e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type))(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:r}of a)switch(e.context.src[t]){case f.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";n.push(new m.YAMLSemanticError(e,t))}const o=e.context.src.slice(t+1,r),{header:s,valueRange:a}=e;a&&(t>a.start||s&&t>s.start)?i.after.push(o):i.before.push(o)}break;case f.Char.ANCHOR:if(o){const t="A node can have at most one anchor";n.push(new m.YAMLSemanticError(e,t))}o=!0;break;case f.Char.TAG:if(s){const t="A node can have at most one tag";n.push(new m.YAMLSemanticError(e,t))}s=!0}if(o){const n=e.anchor,r=t.getNode(n);r&&(t.map[t.newName(n)]=r),t.map[n]=e}let u;if(e.type===f.Type.ALIAS){if(o||s){const t="An alias node must not specify any properties";n.push(new m.YAMLSemanticError(e,t))}const r=e.rawValue,i=t.getNode(r);if(!i){const t="Aliased anchor not found: ".concat(r);return n.push(new m.YAMLReferenceError(e,t)),null}u=new c.default(i),t._cstAliases.push(u)}else{const o=this.resolveTagName(e);if(o)u=r.resolveNodeWithFallback(this,e,o);else{if(e.type!==f.Type.PLAIN){const t="Failed to resolve ".concat(e.type," node here");return n.push(new m.YAMLSyntaxError(e,t)),null}try{u=r.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),n.push(t),null}}}if(u){u.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(u.cstNode=e),this.options.keepNodeTypes&&(u.type=e.type);const t=i.before.join("\n");t&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(t):t);const n=i.after.join("\n");n&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(n):n)}return e.resolved=u}listNonDefaultTags(){return(0,a.default)(this.contents).filter((e=>0!==e.indexOf(u.default.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}stringifyTag(e){if("1.0"===(this.version||this.options.version)){const t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];const n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}{let t=this.tagPrefixes.find((t=>0===e.indexOf(t.prefix)));if(!t){const n=this.getDefaults().tagPrefixes;t=n&&n.find((t=>0===e.indexOf(t.prefix)))}if(!t)return"!"===e[0]?e:"!<".concat(e,">");const n=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return t.handle+n}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:n,maxAliasCount:r}=this.options,o=t&&("string"!=typeof e||!(this.contents instanceof d.default)),s={doc:this,keep:o,mapAsMap:o&&!!n,maxAliasCount:r},i=Object.keys(this.anchors.map);return i.length>0&&(s.anchors=i.map((e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]})))),(0,h.default)(this.contents,e,s)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=!1;if(this.version){let n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}const n=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:r,prefix:o})=>{n.some((e=>0===e.indexOf(o)))&&(e.push("%TAG ".concat(r," ").concat(o)),t=!0)})),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));const r={anchors:{},doc:this,indent:""};let o=!1,i=null;if(this.contents){this.contents instanceof p.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),r.forceBlockIndent=!!this.comment,i=this.contents.comment);const n=i?null:()=>o=!0,a=this.schema.stringify(this.contents,r,(()=>i=null),n);e.push((0,s.default)(a,"",i))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,r));return this.comment&&(o&&!i||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}t.default=D,n=D,r="defaults",o={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}},r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o}));r(at);var ut=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(_),r=s(at),o=s(it);function s(e){return e&&e.__esModule?e:{default:e}}const i={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};class a extends r.default{constructor(e){super(Object.assign({},i,e))}}function u(e,t){const r=(0,n.default)(e),o=new a(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new m.YAMLSemanticError(r[1],e))}return o}var c={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const s=Object.assign({},r.default.defaults[i.version],i);return new o.default(s).createNode(e,t,n)},defaultOptions:i,Document:a,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach((e=>(0,V.warn)(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const r=[];let o;for(const s of(0,n.default)(e)){const e=new a(t);e.parse(s,o),r.push(e),o=e}return r},parseCST:n.default,parseDocument:u,stringify:function(e,t){const n=new a(t);return n.contents=e,String(n)}};t.default=c}));r(ut);var ct=ut.default,lt=o((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));r(lt),lt.defineParents;var pt=o((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));r(pt),pt.getPointText;var ft=o((function(e,t){function n(e,t){if(t.position.end.offsete.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type&&("mappingValue"===e.type||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){lt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n1&&"document"!==n.type&&"documentHead"!==n.type){var s=n.position.end,i=t[s.line-1].trailingAttachableNode;(!i||s.column>=i.position.end.column)&&(t[s.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var a=n.position,u=0,c=(r=a.start,[(s=a.end).line].concat(r.line===s.line?[]:r.line));u=p.position.end.column)&&(t[l-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var o=e.position.start.line,s=t[o-1].trailingAttachableNode;if(s){if(s.trailingComment)throw new Error("Unexpected multiple trailing comment at "+pt.getPointText(e.position.start));return lt.defineParents(e,s),void(s.trailingComment=e)}for(var i=o;i>=r.position.start.line;i--){var a=t[i-1].trailingNode,u=void 0;if(a)u=a;else{if(i===o||!t[i-1].comment)continue;u=t[i-1].comment._parent}for(;;){if(n(u,e))return lt.defineParents(e,u),void u.endComments.push(e);if(!u._parent)break;u=u._parent}break}for(i=o+1;i<=r.position.end.line;i++){var c=t[i-1].leadingAttachableNode;if(c)return lt.defineParents(e,c),void c.leadingComments.push(e)}var l=r.children[1];lt.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));r(ft),ft.attachComments;var dt=o((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));r(dt),dt.createNode;var ht,gt=(ht=l)&&ht.default||ht,mt=o((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return gt.__assign(gt.__assign({},dt.createNode("root",e)),{children:t,comments:n})}}));r(mt),mt.createRoot;var yt=o((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}}));r(yt),yt.removeCstBlankLine;var Dt=o((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));r(Dt),Dt.createLeadingCommentAttachable;var vt=o((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));r(vt),vt.createTrailingCommentAttachable;var Et=o((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return gt.__assign(gt.__assign({},Dt.createLeadingCommentAttachable()),vt.createTrailingCommentAttachable())}}));r(Et),Et.createCommentAttachable;var bt=o((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("alias",e)),Et.createCommentAttachable()),t),{value:n})}}));r(bt),bt.createAlias;var Ct=o((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return bt.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));r(Ct),Ct.transformAlias;var At=o((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return gt.__assign(gt.__assign({},e),{type:"blockFolded"})}}));r(At),At.createBlockFolded;var wt=o((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,o,s){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("blockValue",e)),Dt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:s})}}));r(wt),wt.createBlockValue;var St=o((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));r(St),St.PropLeadingCharacter;var xt=o((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("anchor",e)),{value:t})}}));r(xt),xt.createAnchor;var Ft=o((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("comment",e)),{value:t})}}));r(Ft),Ft.createComment;var Tt=o((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));r(Tt),Tt.createContent;var kt=o((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return gt.__assign(gt.__assign({},dt.createNode("tag",e)),{value:t})}}));r(kt),kt.createTag;var _t=o((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],s=null,i=null,a=null,u=0,c=r.props;u=0;a--){var u=e.contents[a];if("COMMENT"===u.type){var c=t.transformNode(u);n&&n.line===c.position.start.line?s.unshift(c):i?r.unshift(c):c.position.start.offset>=e.valueRange.origEnd?o.unshift(c):r.unshift(c)}else i=!0}if(o.length>1)throw new Error("Unexpected multiple document trailing comments at "+pt.getPointText(o[1].position.start));if(s.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+pt.getPointText(s[1].position.start));return{comments:r,endComments:[],documentTrailingComment:Vt.getLast(o)||null,documentHeadTrailingComment:Vt.getLast(s)||null}}(o,t,n),i=s.comments,a=s.endComments,u=s.documentTrailingComment,c=s.documentHeadTrailingComment,l=t.transformNode(e.contents),p=function(e,t,n){var r=Wt.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var s=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o});return{position:s,documentEndPoint:-1===r?s.end:n.transformOffset(e.valueRange.origEnd+3)}}(o,l,t),f=p.position,d=p.documentEndPoint;return(r=t.comments).push.apply(r,gt.__spreadArrays(i,a)),{documentBody:qt.createDocumentBody(f,l,a),documentEndPoint:d,documentTrailingComment:u,documentHeadTrailingComment:c}}}));r(Yt),Yt.transformDocumentBody;var Kt=o((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("documentHead",e)),$t.createEndCommentAttachable(n)),vt.createTrailingCommentAttachable(r)),{children:t})}}));r(Kt),Kt.createDocumentHead;var Jt=o((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],s=!1,i=e.directives.length-1;i>=0;i--){var a=t.transformNode(e.directives[i]);"comment"===a.type?s?r.unshift(a):o.unshift(a):(s=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),s=o.directives,i=o.comments,a=o.endComments,u=function(e,t,n){var r=Wt.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(o.origStart=t[0].position.start.offset),{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,s,t),c=u.position,l=u.endMarkerPoint;return(n=t.comments).push.apply(n,gt.__spreadArrays(i,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Kt.createDocumentHead(c,s,a,e)},documentHeadEndMarkerPoint:l}}}));r(Jt),Jt.transformDocumentHead;var zt=o((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=Jt.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,s=Yt.transformDocumentBody(e,t,o),i=s.documentBody,a=s.documentEndPoint,u=s.documentTrailingComment,c=r(s.documentHeadTrailingComment);return u&&t.comments.push(u),Rt.createDocument(Ut.createPosition(c.position.start,a),c,i,u)}}));r(zt),zt.transformDocument;var Gt=o((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("flowCollection",e)),Et.createCommentAttachable()),t),{children:n})}}));r(Gt),Gt.createFlowCollection;var Ht=o((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return gt.__assign(gt.__assign({},Gt.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));r(Ht),Ht.createFlowMapping;var Xt=o((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign({},dt.createNode("flowMappingItem",e)),Dt.createLeadingCommentAttachable()),{children:[t,n]})}}));r(Xt),Xt.createFlowMappingItem;var Qt=o((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,o=e;r=0;r--)if(n.test(e[r]))return r;return-1}}));r(hn),hn.findLastCharIndex;var gn=o((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return dn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:hn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));r(gn),gn.transformPlain;var mn=o((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return gt.__assign(gt.__assign({},e),{type:"quoteDouble"})}}));r(mn),mn.createQuoteDouble;var yn=o((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("quoteValue",e)),t),Et.createCommentAttachable()),{value:n})}}));r(yn),yn.createQuoteValue;var Dn=o((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return yn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));r(Dn),Dn.transformAstQuoteValue;var vn=o((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return mn.createQuoteDouble(Dn.transformAstQuoteValue(e,t))}}));r(vn),vn.transformQuoteDouble;var En=o((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return gt.__assign(gt.__assign({},e),{type:"quoteSingle"})}}));r(En),En.createQuoteSingle;var bn=o((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return En.createQuoteSingle(Dn.transformAstQuoteValue(e,t))}}));r(bn),bn.transformQuoteSingle;var Cn=o((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return gt.__assign(gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("sequence",e)),Dt.createLeadingCommentAttachable()),$t.createEndCommentAttachable()),t),{children:n})}}));r(Cn),Cn.createSequence;var An=o((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return gt.__assign(gt.__assign(gt.__assign(gt.__assign({},dt.createNode("sequenceItem",e)),Et.createCommentAttachable()),$t.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(An),An.createSequenceItem;var wn=o((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Qt.extractComments(e.cstNode.items,t).map((function(n,r){Pt.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return An.createSequenceItem(Ut.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return Cn.createSequence(Ut.createPosition(n[0].position.start,Vt.getLast(n).position.end),t.transformContent(e),n)}}));r(wn),wn.transformSeq;var Sn=o((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Ct.transformAlias(e,t);case"BLOCK_FOLDED":return Nt.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Mt.transformBlockLiteral(e,t);case"COMMENT":return Lt.transformComment(e,t);case"DIRECTIVE":return jt.transformDirective(e,t);case"DOCUMENT":return zt.transformDocument(e,t);case"FLOW_MAP":return sn.transformFlowMap(e,t);case"FLOW_SEQ":return cn.transformFlowSeq(e,t);case"MAP":return fn.transformMap(e,t);case"PLAIN":return gn.transformPlain(e,t);case"QUOTE_DOUBLE":return vn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return bn.transformQuoteSingle(e,t);case"SEQ":return wn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));r(Sn),Sn.transformNode;var xn=o((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));r(xn),xn.createError;var Fn=o((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return xn.createError(e.message,t.text,t.transformRange(n))}}));r(Fn),Fn.transformError;var Tn=o((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));r(Tn),Tn.createPoint;var kn=o((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Tn.createPoint(e,n.line+1,n.column+1)}}));r(kn),kn.transformOffset;var _n=o((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Ut.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));r(_n),_n.transformRange;var On=o((function(e,t){t.__esModule=!0,t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,!0):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,!0):void 0};e.forEach((function(e){return function e(t,n){if(t&&"object"==typeof t&&!0!==n(t))for(var r=0,o=Object.keys(t);re.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var u=t.children;if(u.forEach(e),"document"===t.type){var c=t.children,l=c[0],p=c[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=p.position.start:p.position.start.offset===p.position.end.offset&&(p.position.start=p.position.end=l.position.end)}var f=Bn.createUpdater(t.position,n,r,i),d=Bn.createUpdater(t.position,o,s,a);"endComments"in t&&0!==t.endComments.length&&(f(t.endComments[0].position.start),d(Vt.getLast(t.endComments).position.end));var h=u.filter((function(e){return null!==e}));if(0!==h.length){var g=h[0],m=Vt.getLast(h);f(g.position.start),d(m.position.end),"leadingComments"in g&&0!==g.leadingComments.length&&f(g.leadingComments[0].position.start),"tag"in g&&g.tag&&f(g.tag.position.start),"anchor"in g&&g.anchor&&f(g.anchor.position.start),"trailingComment"in m&&m.trailingComment&&d(m.trailingComment.position.end)}}}}));r(Mn),Mn.updatePositions;var Ln=o((function(e,t){t.__esModule=!0,t.parse=function(e){var t=ct.parseCST(e);On.addOrigRange(t);var n=t.map((function(e){return new ct.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new p.default(e),comments:r,transformOffset:function(e){return kn.transformOffset(e,o)},transformRange:function(e){return _n.transformRange(e,o)},transformNode:function(e){return Sn.transformNode(e,o)},transformContent:function(e){return _t.transformContent(e,o)}},s=n.find((function(e){return 0!==e.errors.length}));if(s)throw Fn.transformError(s.errors[0],o);n.forEach((function(e){return yt.removeCstBlankLine(e.cstNode)}));var i=mt.createRoot(o.transformRange({origStart:0,origEnd:o.text.length}),n.map(o.transformNode),r);return ft.attachComments(i),Mn.updatePositions(i),Nn.removeFakeNodes(i),i}}));r(Ln),Ln.parse;var In=o((function(e,t){t.__esModule=!0,gt.__exportStar(Ln,t)}));r(In);const{hasPragma:Pn}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};var jn={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=In.parse(e);return delete t.comments,t}catch(e){throw e&&e.position?function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,e.position):e}},hasPragma:Pn,locStart:e=>e.position.start.offset,locEnd:e=>e.position.end.offset}}},Rn=jn.parsers;e.default=jn,e.parsers=Rn,Object.defineProperty(e,"__esModule",{value:!0})}(t)},9691:function(e,t,n){e.exports=function(){"use strict";var e="prettier",t="2.0.5",r="Prettier is an opinionated code formatter",o="./bin/prettier.js",s="prettier/prettier",i="https://prettier.io",a="James Long",u="./index.js",c={node:">=10.13.0"},l={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},p={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},f={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},d={name:e,version:t,description:r,bin:o,repository:s,homepage:i,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:p,scripts:f},h=Object.freeze({__proto__:null,name:e,version:t,description:r,bin:o,repository:s,homepage:i,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:p,scripts:f,default:d});function g(){}function m(e,t,n,r,o){for(var s=0,i=t.length,a=0,u=0;se.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(u+=c.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function y(e){return{newPos:e.newPos,components:e.components.slice(0)}}g.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var o=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var i=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,u=1,c=i+a,l=[{newPos:-1,components:[]}],p=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=i&&p+1>=a)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var r=void 0,c=l[n-1],p=l[n+1],f=(p?p.newPos:0)-n;c&&(l[n-1]=void 0);var d=c&&c.newPos+1=i&&f+1>=a)return s(m(o,r.components,t,e,o.useLongestToken));l[n]=r}else l[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>c)return r();f()||e()}),0)}();else for(;u<=c;){var d=f();if(d)return d}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,s=n.length,i=e.newPos,a=i-r,u=0;i+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],s=0;function i(){var e={};for(o.push(e);s2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=B(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,s=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!u(t+1,s[t],o,i)&&++c>l)return!1;t++}}return!0}for(var h=0;h0?S[0]:" ",F=S.length>0?S.substr(1):S,T=C.linedelimiters[w];if(" "===x)A++;else if("-"===x)s.splice(A,1),i.splice(A,1);else if("+"===x)s.splice(A,0,F),i.splice(A,0,T),A++;else if("\\"===x){var k=C.lines[w-1]?C.lines[w-1][0]:null;"+"===k?r=!0:"-"===k&&(o=!0)}}}if(r)for(;!s[s.length-1];)s.pop(),i.pop();else o&&(s.push(""),i.push("\n"));for(var _=0;_0?u(g.lines.slice(-i.context)):[],l-=f.length,p-=f.length)}(s=f).push.apply(s,T(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=o.length:d+=o.length}else{if(l)if(o.length<=2*i.context&&e=a.length-2&&o.length<=i.context){var E=/\n$/.test(n),b=/\n$/.test(r),C=0==o.length&&f.length>v.oldLines;!E&&C&&f.splice(v.oldLines,0,"\\ No newline at end of file"),(E||C)&&b||f.push("\\ No newline at end of file")}c.push(v),l=0,p=0,f=[]}d+=o.length,h+=o.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")},canonicalize:O}),ne=Object.freeze({__proto__:null,default:{}});const re=/[\\/]/;function oe(e){return e.split(re).pop()}var se=Object.freeze({__proto__:null,extname:function(e){const t=oe(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:oe,isAbsolute:function(){return!0}}),ie=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ae=[],ue=[],ce="undefined"!=typeof Uint8Array?Uint8Array:Array,le=!1;function pe(){le=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ae[i>>12&63]+ae[i>>6&63]+ae[63&i]);var i;return o.join("")}function de(e){var t;le||pe();for(var n=e.length,r=n%3,o="",s=[],i=16383,a=0,u=n-r;au?u:a+i));return 1===r?(t=e[n-1],o+=ae[t>>2],o+=ae[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=ae[t>>10],o+=ae[t>>4&63],o+=ae[t<<2&63],o+="="),s.push(o),s.join("")}function he(e,t,n,r,o){var s,i,a=8*o-r-1,u=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+e[t+p],p+=f,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=r;l>0;i=256*i+e[t+p],p+=f,l-=8);if(0===s)s=1-c;else{if(s===u)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),s-=c}return(d?-1:1)*i*Math.pow(2,s-r)}function ge(e,t,n,r,o,s){var i,a,u,c=8*s-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=l?(a=0,i=l):i+p>=1?(a=(t*u-1)*Math.pow(2,o),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+d]=255&a,d+=h,a/=256,o-=8);for(i=i<0;e[n+d]=255&i,d+=h,i/=256,c-=8);e[n+d-h]|=128*g}var me={}.toString,ye=Array.isArray||function(e){return"[object Array]"==me.call(e)};function De(){return Ee.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ve(e,t){if(De()=De())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De().toString(16)+" bytes");return 0|e}function xe(e){return!(null==e||!e._isBuffer)}function Fe(e,t){if(xe(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ze(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return et(e).length;default:if(r)return Ze(e).length;t=(""+t).toLowerCase(),r=!0}}function Te(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ve(this,t,n);case"utf8":case"utf-8":return Re(this,t,n);case"ascii":return $e(this,t,n);case"latin1":case"binary":return qe(this,t,n);case"base64":return je(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function ke(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _e(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Ee.from(t,r)),xe(t))return 0===t.length?-1:Oe(e,t,n,r,o);if("number"==typeof t)return t&=255,Ee.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Oe(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Oe(e,t,n,r,o){var s,i=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,u/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(s=n;sa&&(n=a-u),s=n;s>=0;s--){for(var p=!0,f=0;fo&&(r=o):r=o;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;i>8,o=n%256,s.push(o),s.push(r);return s}(t,e.length-n),e,n,r)}function je(e,t,n){return 0===t&&n===e.length?de(e):de(e.slice(t,n))}function Re(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(s=e[o+1]))&&(u=(31&c)<<6|63&s)>127&&(l=u);break;case 3:s=e[o+1],i=e[o+2],128==(192&s)&&128==(192&i)&&(u=(15&c)<<12|(63&s)<<6|63&i)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[o+1],i=e[o+2],a=e[o+3],128==(192&s)&&128==(192&i)&&128==(192&a)&&(u=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=Ue)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ee.prototype.compare=function(e,t,n,r,o){if(!xe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),a=Math.min(s,i),u=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return Ne(this,e,t,n);case"utf8":case"utf-8":return Be(this,e,t,n);case"ascii":return Me(this,e,t,n);case"latin1":case"binary":return Le(this,e,t,n);case"base64":return Ie(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},Ee.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ue=4096;function $e(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;oo)&&(n=o);for(var s="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ke(e,t,n,r,o,s){if(!xe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function Je(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function ze(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Ge(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function He(e,t,n,r,o){return o||Ge(e,0,n,4),ge(e,t,n,r,23,4),n+4}function Xe(e,t,n,r,o){return o||Ge(e,0,n,8),ge(e,t,n,r,52,8),n+8}Ee.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ee.prototype.readUInt8=function(e,t){return t||Ye(e,1,this.length),this[e]},Ee.prototype.readUInt16LE=function(e,t){return t||Ye(e,2,this.length),this[e]|this[e+1]<<8},Ee.prototype.readUInt16BE=function(e,t){return t||Ye(e,2,this.length),this[e]<<8|this[e+1]},Ee.prototype.readUInt32LE=function(e,t){return t||Ye(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ee.prototype.readUInt32BE=function(e,t){return t||Ye(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ee.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ye(e,t,this.length);for(var r=this[e],o=1,s=0;++s=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ee.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ye(e,t,this.length);for(var r=t,o=1,s=this[e+--r];r>0&&(o*=256);)s+=this[e+--r]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*t)),s},Ee.prototype.readInt8=function(e,t){return t||Ye(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ee.prototype.readInt16LE=function(e,t){t||Ye(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ee.prototype.readInt16BE=function(e,t){t||Ye(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ee.prototype.readInt32LE=function(e,t){return t||Ye(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ee.prototype.readInt32BE=function(e,t){return t||Ye(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ee.prototype.readFloatLE=function(e,t){return t||Ye(e,4,this.length),he(this,e,!0,23,4)},Ee.prototype.readFloatBE=function(e,t){return t||Ye(e,4,this.length),he(this,e,!1,23,4)},Ee.prototype.readDoubleLE=function(e,t){return t||Ye(e,8,this.length),he(this,e,!0,52,8)},Ee.prototype.readDoubleBE=function(e,t){return t||Ye(e,8,this.length),he(this,e,!1,52,8)},Ee.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Ke(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+n},Ee.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,255,0),Ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ee.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Je(this,e,t,!0),t+2},Ee.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Je(this,e,t,!1),t+2},Ee.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),Ee.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ze(this,e,t,!0),t+4},Ee.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},Ee.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Ke(this,e,t,n,o-1,-o)}var s=0,i=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+n},Ee.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Ke(this,e,t,n,o-1,-o)}var s=n-1,i=1,a=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/i>>0)-a&255;return t+n},Ee.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,127,-128),Ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ee.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Je(this,e,t,!0),t+2},Ee.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Je(this,e,t,!1),t+2},Ee.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),Ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ze(this,e,t,!0),t+4},Ee.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},Ee.prototype.writeFloatLE=function(e,t,n){return He(this,e,t,!0,n)},Ee.prototype.writeFloatBE=function(e,t,n){return He(this,e,t,!1,n)},Ee.prototype.writeDoubleLE=function(e,t,n){return Xe(this,e,t,!0,n)},Ee.prototype.writeDoubleBE=function(e,t,n){return Xe(this,e,t,!1,n)},Ee.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(s<1e3||!Ee.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function et(e){return function(e){var t,n,r,o,s,i;le||pe();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[a-2]?2:"="===e[a-1]?1:0,i=new ce(3*a/4-s),r=s>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,i[u++]=o>>8&255,i[u++]=255&o;return 2===s?(o=ue[e.charCodeAt(t)]<<2|ue[e.charCodeAt(t+1)]>>4,i[u++]=255&o):1===s&&(o=ue[e.charCodeAt(t)]<<10|ue[e.charCodeAt(t+1)]<<4|ue[e.charCodeAt(t+2)]>>2,i[u++]=o>>8&255,i[u++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function tt(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function nt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function st(e,t){return e(t={exports:{}},t.exports),t.exports}function it(e){return e&&e.default||e}var at=it(ne);var ut=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:at.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){at.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,o=0;for(;;){let s=e[r++];if(s===this.newLineCharacter)t=e.slice(o,r),n.push(t),o=r;else if(!s)break}let s=e.slice(o,r);return s.length&&n.push(s),n}_readChunk(e){let t,n=0;const r=[];do{const e=new Ee(this.options.readChunk);t=at.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let o=Ee.concat(r);return t=0||(o[n]=e[n]);return o}function gt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mt(){throw new Error("setTimeout has not been defined")}function yt(){throw new Error("clearTimeout has not been defined")}var Dt=mt,vt=yt;function Et(e){if(Dt===setTimeout)return setTimeout(e,0);if((Dt===mt||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(e,0);try{return Dt(e,0)}catch(t){try{return Dt.call(null,e,0)}catch(t){return Dt.call(this,e,0)}}}"function"==typeof ie.setTimeout&&(Dt=setTimeout),"function"==typeof ie.clearTimeout&&(vt=clearTimeout);var bt,Ct=[],At=!1,wt=-1;function St(){At&&bt&&(At=!1,bt.length?Ct=bt.concat(Ct):wt=-1,Ct.length&&xt())}function xt(){if(!At){var e=Et(St);At=!0;for(var t=Ct.length;t;){for(bt=Ct,Ct=[];++wt1)for(var n=1;nconsole.error("SEMVER",...e):()=>{};var $t={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},qt=st((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=$t,r=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let i=0;const a=(e,t,n)=>{const a=i++;Ut(a,t),s[e]=a,o[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(o[s.NUMERICIDENTIFIER],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[s.NUMERICIDENTIFIERLOOSE],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(o[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(o[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(o[s.BUILDIDENTIFIER],"(?:\\.").concat(o[s.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(o[s.MAINVERSION]).concat(o[s.PRERELEASE],"?").concat(o[s.BUILD],"?")),a("FULL","^".concat(o[s.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(o[s.MAINVERSIONLOOSE]).concat(o[s.PRERELEASELOOSE],"?").concat(o[s.BUILD],"?")),a("LOOSE","^".concat(o[s.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(o[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(o[s.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:".concat(o[s.PRERELEASE],")?").concat(o[s.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[s.PRERELEASELOOSE],")?").concat(o[s.BUILD],"?")+")?)?"),a("XRANGE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",o[s.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(o[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(o[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(o[s.GTLT],"\\s*(").concat(o[s.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],"|").concat(o[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(o[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*")}));qt.re,qt.src,qt.t,qt.tildeTrimReplace,qt.caretTrimReplace,qt.comparatorTrimReplace;const Vt=/^[0-9]+$/,Wt=(e,t)=>{const n=Vt.test(e),r=Vt.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eWt(t,e)};const{MAX_LENGTH:Kt,MAX_SAFE_INTEGER:Jt}=$t,{re:zt,t:Gt}=qt,{compareIdentifiers:Ht}=Yt;class Xt{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Xt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Kt)throw new TypeError("version is longer than ".concat(Kt," characters"));Ut("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?zt[Gt.LOOSE]:zt[Gt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Jt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var Qt=Xt;var Zt=(e,t,n)=>new Qt(e,n).compare(new Qt(t,n));var en=(e,t,n)=>Zt(e,t,n)<0;var tn=(e,t,n)=>Zt(e,t,n)>=0,nn=st((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:dn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:ln},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:dn,description:nn(an()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:ln},printWidth:{since:"0.0.0",category:dn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:hn,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:nn(sn()),cliCategory:pn},rangeStart:{since:"1.4.0",category:hn,type:"int",default:0,range:{start:0,end:1/0,step:1},description:nn(on()),cliCategory:pn},requirePragma:{since:"1.7.0",category:hn,type:"boolean",default:!1,description:nn(rn()),cliCategory:fn},tabWidth:{type:"int",category:dn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:dn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},mn=it(h);const yn={compare:Zt,lt:en,gte:tn},Dn=mn.version,vn=gn.options;var En={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const o=Dn.split("-",1)[0],s=((e,t)=>Object.entries(e).map((([e,n])=>Object.assign({[t]:e},n))))(Object.assign({},...e.map((({options:e})=>e)),vn),"name").filter((e=>i(e)&&a(e))).sort(((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(i).sort(((e,t)=>yn.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>i(e)&&a(e))));const n=e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).reduce(((e,n)=>(e[n.name]=n.defaultOptions[t.name],e)),{});return Object.assign({},t,{pluginDefaults:n})}));return{languages:e.reduce(((e,t)=>e.concat(t.languages||[])),[]).filter(i),options:s};function i(e){return t||!("since"in e)||e.since&&yn.gte(o,e.since)}function a(e){return n||!("deprecated"in e)||e.deprecated&&yn.lt(o,e.deprecated)}}},bn=function(e,t){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},bn(e,t)};var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function wn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i}function Sn(e){return this instanceof Sn?(this.v=e,this):new Sn(e)}var xn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}bn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Cn},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(i,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof Sn?Promise.resolve(n.value.v).then(u,c):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:Sn(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=An(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),Fn=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((e=>t.apiDescriptor.value(e))).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n])))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));ot(Fn),Fn.apiDescriptor;var Tn=it(xn),kn=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(Fn,t)}));ot(kn);var _n=/[|\\{}()[\]^$+*?.]/g,On=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(_n,"\\$&")},Nn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Bn=st((function(e){var t={};for(var n in Nn)Nn.hasOwnProperty(n)&&(t[Nn[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var s=r[o].channels,i=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:s}),Object.defineProperty(r[o],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(r,o,s),a=Math.max(r,o,s),u=a-i;return a===i?t=0:r===a?t=(o-s)/u:o===a?t=2+(s-r)/u:s===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+a)/2,[t,100*(a===i?0:n<=.5?u/(a+i):u/(2-a-i)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,s,i=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(i,a,u),l=c-Math.min(i,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?o=s=0:(s=l/c,t=p(i),n=p(a),r=p(u),i===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,s,i=1/0;for(var a in Nn)if(Nn.hasOwnProperty(a)){var u=(o=e,s=Nn[a],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,s,i=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[s=255*u,s,s];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*s;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return r=(2-s)*i,n=s*a,[o,100*(n=(n/=(t=(2-s)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,s,i,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:s=n,i=o,a=c;break;case 1:s=o,i=n,a=c;break;case 2:s=c,i=n,a=o;break;case 3:s=c,i=o,a=n;break;case 4:s=o,i=c,a=n;break;case 5:s=n,i=c,a=o}return[255*s,255*i,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,s=e[1]/100,i=e[2]/100;return n=-.9689*o+1.8758*s+.0415*i,r=.0557*o+-.204*s+1.057*i,t=(t=3.2406*o+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),i=Math.pow(t,3),a=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],s=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.max(Math.max(n,r),o),i=Math.min(Math.min(n,r),o),a=s-i;return t=a<=0?0:s===n?(r-o)/a%6:s===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,s=[0,0,0],i=t%1*6,a=i%1,u=1-a;switch(Math.floor(i)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=u,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=u,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=u}return o=(1-n)*r,[255*(n*s[0]+o),255*(n*s[1]+o),255*(n*s[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Mn(e){var t=function(){for(var e={},t=Object.keys(Bn),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var jn=Pn,Rn=st((function(e){const t=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(jn,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(s,0)},o.color.ansi256={ansi256:n(s,0)},o.color.ansi16m={rgb:r(i,0)},o.bgColor.ansi={ansi:t(s,10)},o.bgColor.ansi256={ansi256:n(s,10)},o.bgColor.ansi16m={rgb:r(i,10)};for(let e of Object.keys(jn)){if("object"!=typeof jn[e])continue;const s=jn[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(o.color.ansi[e]=t(s.ansi16,0),o.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(o.color.ansi256[e]=n(s.ansi256,0),o.bgColor.ansi256[e]=n(s.ansi256,10)),"rgb"in s&&(o.color.ansi16m[e]=r(s.rgb,0),o.bgColor.ansi16m[e]=r(s.rgb,10))}return o}})})),Un={EOL:"\n"},$n=(e,t)=>{t=t||Rt.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in qn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in qn))||"codeship"===qn.CI_NAME?1:t;if("TEAMCITY_VERSION"in qn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(qn.TEAMCITY_VERSION)?1:0;if("truecolor"===qn.COLORTERM)return 3;if("TERM_PROGRAM"in qn){const e=parseInt((qn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(qn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(qn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(qn.TERM)||"COLORTERM"in qn?1:(qn.TERM,t)}(e),0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Vn=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Vn=!0),"FORCE_COLOR"in qn&&(Vn=0===qn.FORCE_COLOR.length||0!==parseInt(qn.FORCE_COLOR,10));var Yn={supportsColor:Wn,stdout:Wn(Rt.stdout),stderr:Wn(Rt.stderr)};const Kn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,zn=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Gn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Xn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Hn.get(e)||e}function Qn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(zn)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Gn,((e,t,n)=>t?Xn(t):n)))}else n.push(Number(t));return n}function Zn(e){Jn.lastIndex=0;const t=[];let n;for(;null!==(n=Jn.exec(e));){const e=n[1];if(n[2]){const r=Qn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function er(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var tr=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Kn,((t,s,i,a,u,c)=>{if(s)o.push(Xn(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:er(e,n)(t)),n.push({inverse:i,styles:Zn(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(er(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},nr=st((function(e){const t=Yn.stdout,n="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),s=Object.create(null);function i(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}n&&(Rn.blue.open="");for(const e of Object.keys(Rn))Rn[e].closeRe=new RegExp(On(Rn[e].close),"g"),s[e]={get(){const t=Rn[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},Rn.color.closeRe=new RegExp(On(Rn.color.close),"g");for(const e of Object.keys(Rn.color.ansi))o.has(e)||(s[e]={get(){const t=this.level;return function(){const n={open:Rn.color[r[t]][e].apply(null,arguments),close:Rn.color.close,closeRe:Rn.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Rn.bgColor.closeRe=new RegExp(On(Rn.bgColor.close),"g");for(const e of Object.keys(Rn.bgColor.ansi))o.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:Rn.bgColor[r[t]][e].apply(null,arguments),close:Rn.bgColor.close,closeRe:Rn.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),s);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{const r=["".concat(nr.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(nr.default.blue("string"==typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));ot(rr),rr.commonDeprecatedHandler;var or=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(rr,t)}));ot(or);var sr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(nr.default.red(n.descriptor.key(e))," value."),"Expected ".concat(nr.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(nr.default.red(n.descriptor.value(t)),".")].join(" ")}));ot(sr),sr.commonInvalidHandler;var ir=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(sr,t)}));ot(ir);var ar=[],ur=[],cr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:o})=>{const s=["Ignored unknown option ".concat(nr.default.yellow(n.pair({key:e,value:t})),".")],i=Object.keys(o).sort().find((t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,o=t.length;if(0===r)return o;if(0===o)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;if(0===r)return o;for(var s,i,a,u,c=0;ci?u>i?i+1:u:u>a?a+1:u;return i}(e,t)<3));i&&s.push("Did you mean ".concat(nr.default.blue(n.key(i)),"?")),r.warn(s.join(" "))}}));ot(cr),cr.levenUnknownHandler;var lr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(cr,t)}));ot(lr);var pr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(or,t),Tn.__exportStar(ir,t),Tn.__exportStar(lr,t)}));ot(pr);var fr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),i=Object.create(r);for(const e of n)e in t&&(i[e]=s(t[e],r,o.prototype[e].length));return i}t.createSchema=r;class o{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function s(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=o}));ot(fr),fr.createSchema,fr.Schema;var dr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));ot(dr),dr.AliasSchema;var hr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));ot(hr),hr.AnySchema;var gr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Tn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((({value:e})=>({value:[e]}))))}return n}forward(e,t){const n=[];for(const o of e){const e=t.normalizeForwardResult(this._valueSchema.forward(o,t),o);n.push(...e.map(r))}return n}redirect(e,t){const n=[],o=[];for(const s of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&n.push(e.remain),o.push(...e.redirect.map(r))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));ot(gr),gr.ArraySchema;var mr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}t.BooleanSchema=n}));ot(mr),mr.BooleanSchema;var yr=st((function(e,t){function n(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>n(e,t))):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const o of e)t(o)?n.push(o):r.push(o);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,o=["undefined","object","boolean","number","string"];return n!==r?o.indexOf(n)-o.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));ot(yr),yr.recordFromArray,yr.mapFromArray,yr.createAutoChecklist,yr.partition,yr.isInt,yr.comparePrimitive,yr.normalizeDefaultResult,yr.normalizeValidateResult,yr.normalizeDeprecatedResult,yr.normalizeTransferResult,yr.normalizeForwardResult,yr.normalizeRedirectResult;var Dr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{constructor(e){super(e),this._choices=yr.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(yr.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));ot(Dr),Dr.ChoiceSchema;var vr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}t.NumberSchema=n}));ot(vr),vr.NumberSchema;var Er=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends vr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&yr.isInt(e)}}t.IntegerSchema=n}));ot(Er),Er.IntegerSchema;var br=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends fr.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}t.StringSchema=n}));ot(br),br.StringSchema;var Cr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(dr,t),Tn.__exportStar(hr,t),Tn.__exportStar(gr,t),Tn.__exportStar(mr,t),Tn.__exportStar(Dr,t),Tn.__exportStar(Er,t),Tn.__exportStar(vr,t),Tn.__exportStar(br,t)}));ot(Cr);var Ar=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=Fn.apiDescriptor,t.defaultUnknownHandler=cr.levenUnknownHandler,t.defaultInvalidHandler=ir.commonInvalidHandler,t.defaultDeprecatedHandler=rr.commonDeprecatedHandler}));ot(Ar),Ar.defaultDescriptor,Ar.defaultUnknownHandler,Ar.defaultInvalidHandler,Ar.defaultDeprecatedHandler;var wr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=Ar.defaultDescriptor,unknown:o=Ar.defaultUnknownHandler,invalid:s=Ar.defaultInvalidHandler,deprecated:i=Ar.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:yr.recordFromArray(e,"name"),normalizeDefaultResult:yr.normalizeDefaultResult,normalizeDeprecatedResult:yr.normalizeDeprecatedResult,normalizeForwardResult:yr.normalizeForwardResult,normalizeRedirectResult:yr.normalizeRedirectResult,normalizeValidateResult:yr.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=s,this._deprecatedHandler=i,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=yr.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const e of Object.keys(this._utils.schemas)){const r=this._utils.schemas[e];if(!(e in t)){const t=yr.normalizeDefaultResult(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(const e of Object.keys(this._utils.schemas)){const n=this._utils.schemas[e];e in t&&(t[e]=n.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,o]=yr.partition(Object.keys(e),(e=>e in this._utils.schemas));for(const o of r){const r=this._utils.schemas[o],s=r.preprocess(e[o],this._utils),i=yr.normalizeValidateResult(r.validate(s,this._utils),s);if(!0!==i){const{value:e}=i,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=yr.normalizeDeprecatedResult(r.deprecated(e,this._utils),s,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(const{value:e}of n){const n={key:o,value:e};if(!this._hasDeprecationWarned(n)){const r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};yr.normalizeForwardResult(r.forward(s,this._utils),s).forEach(a);const c=yr.normalizeRedirectResult(r.redirect(s,this._utils),s);if(c.redirect.forEach(a),"remain"in c){const e=c.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(const r of o){const o=e[r],s=this._unknownHandler(r,o,this._utils);if(s)for(const e of Object.keys(s)){const r={[e]:s[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));ot(wr),wr.normalize,wr.Normalizer;var Sr=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Tn.__exportStar(kn,t),Tn.__exportStar(pr,t),Tn.__exportStar(Cr,t),Tn.__exportStar(wr,t),Tn.__exportStar(fr,t)}));ot(Sr);const xr=[],Fr=[],Tr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,o=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;let s,i,a,u,c=0;for(;ci?u>i?i+1:u:u>a?a+1:u;return i};var kr=Tr,_r=Tr;kr.default=_r;var Or={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Nr={};for(const e of Object.keys(Or))Nr[Or[e]]=e;const Br={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Mr=Br;for(const e of Object.keys(Br)){if(!("channels"in Br[e]))throw new Error("missing channels property: "+e);if(!("labels"in Br[e]))throw new Error("missing channel labels property: "+e);if(Br[e].labels.length!==Br[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Br[e];delete Br[e].channels,delete Br[e].labels,Object.defineProperty(Br[e],"channels",{value:t}),Object.defineProperty(Br[e],"labels",{value:n})}function Lr(e){const t=function(){const e={},t=Object.keys(Mr);for(let n=t.length,r=0;r1&&(o-=1)),[360*o,100*s,100*c]},Br.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Br.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*s,100*r]},Br.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},Br.rgb.keyword=function(e){const t=Nr[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(Or)){const i=(s=Or[t],((o=e)[0]-s[0])**2+(o[1]-s[1])**2+(o[2]-s[2])**2);i.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Br.rgb.lab=function(e){const t=Br.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},Br.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,u[e]=255*i;return u},Br.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},Br.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},Br.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},Br.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,0!=(1&i)&&(s=1-s);const u=n+s*(a-n);let c,l,p;switch(i){default:case 6:case 0:c=a,l=u,p=n;break;case 1:c=u,l=a,p=n;break;case 2:c=n,l=a,p=u;break;case 3:c=n,l=u,p=a;break;case 4:c=u,l=n,p=a;break;case 5:c=a,l=n,p=u}return[255*c,255*l,255*p]},Br.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},Br.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},Br.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Br.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},Br.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},Br.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Br.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=null===t?Br.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(i+=60),i},Br.hsv.ansi16=function(e){return Br.rgb.ansi16(Br.hsv.rgb(e),e[2])},Br.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Br.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Br.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Br.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Br.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Br.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,u;return a=i<1?s/(1-i):0,u=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,u/=6,u%=1,[360*u,100*i,100*a]},Br.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},Br.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Br.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let u=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},Br.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Br.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Br.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Br.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Br.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Br.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Br.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Br.gray.hsl=function(e){return[0,0,e[0]]},Br.gray.hsv=Br.gray.hsl,Br.gray.hwb=function(e){return[0,100,e[0]]},Br.gray.cmyk=function(e){return[0,0,0,e[0]]},Br.gray.lab=function(e){return[e[0],0,0]},Br.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Br.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const jr={};Object.keys(Mr).forEach((e=>{jr[e]={},Object.defineProperty(jr[e],"channels",{value:Mr[e].channels}),Object.defineProperty(jr[e],"labels",{value:Mr[e].labels});const t=function(e){const t=Lr(e),n={},r=Object.keys(t);for(let e=r.length,o=0;o{const r=t[n];jr[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Rr=jr,Ur=st((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},o=e=>e,s=(e,t,n)=>[e,t,n],i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=Rr);const o=r?10:0,s={};for(const[r,i]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?s[a]=e(n,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",i(a.color,"ansi",(()=>u(t,"ansi16",o,!1))),i(a.color,"ansi256",(()=>u(n,"ansi256",o,!1))),i(a.color,"ansi16m",(()=>u(r,"rgb",s,!1))),i(a.bgColor,"ansi",(()=>u(t,"ansi16",o,!0))),i(a.bgColor,"ansi256",(()=>u(n,"ansi256",o,!0))),i(a.bgColor,"ansi16m",(()=>u(r,"rgb",s,!0))),a}})})),$r=()=>!1,qr=(e,t=Rt.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}function Kr(e,t){if(0===Wr)return 0;if(qr("color=16m")||qr("color=full")||qr("color=truecolor"))return 3;if(qr("color=256"))return 2;if(e&&!t&&void 0===Wr)return 0;const n=Wr||0;if("dumb"===Vr.TERM)return n;if("win32"===Rt.platform){const e=Un.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Vr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Vr))||"codeship"===Vr.CI_NAME?1:n;if("TEAMCITY_VERSION"in Vr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Vr.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Vr)return 1;if("truecolor"===Vr.COLORTERM)return 3;if("TERM_PROGRAM"in Vr){const e=parseInt((Vr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Vr.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Vr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Vr.TERM)||"COLORTERM"in Vr?1:n}qr("no-color")||qr("no-colors")||qr("color=false")||qr("color=never")?Wr=0:(qr("color")||qr("colors")||qr("color=true")||qr("color=always"))&&(Wr=1),"FORCE_COLOR"in Vr&&(Wr="true"===Vr.FORCE_COLOR?1:"false"===Vr.FORCE_COLOR?0:0===Vr.FORCE_COLOR.length?1:Math.min(parseInt(Vr.FORCE_COLOR,10),3));var Jr={supportsColor:function(e){return Yr(Kr(e,e&&e.isTTY))},stdout:Yr(Kr(!0,$r(1))),stderr:Yr(Kr(!0,$r(2)))};var zr={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let s=0,i="";do{i+=e.substr(s,r-s)+t+n,s=r+o,r=e.indexOf(t,s)}while(-1!==r);return i+=e.substr(s),i},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,s="";do{const i="\r"===e[r-1];s+=e.substr(o,(i?r-1:r)-o)+t+(i?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return s+=e.substr(o),s}};const Gr=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Xr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Zr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function eo(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Zr.get(e)||e}function to(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(o=t.match(Xr)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Qr,((e,t,n)=>t?eo(t):n)))}else n.push(r)}return n}function no(e){Hr.lastIndex=0;const t=[];let n;for(;null!==(n=Hr.exec(e));){const e=n[1];if(n[2]){const r=to(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function ro(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=t.length>0?r[e](...t):r[e]}return r}var oo=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Gr,((t,s,i,a,u,c)=>{if(s)o.push(eo(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:ro(e,n)(t)),n.push({inverse:i,styles:no(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ro(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:so,stderr:io}=Jr,{stringReplaceAll:ao,stringEncaseCRLFWithFirstIndex:uo}=zr,co=["ansi","ansi","ansi256","ansi16m"],lo=Object.create(null);class po{constructor(e){return fo(e)}}const fo=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=so?so.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>bo(t.template,...e),Object.setPrototypeOf(t,ho.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=po,t.template};function ho(e){return fo(e)}for(const[e,t]of Object.entries(Ur))lo[e]={get(){const n=Do(this,yo(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};lo.visible={get(){const e=Do(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const go=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of go)lo[e]={get(){const{level:t}=this;return function(...n){const r=yo(Ur.color[co[t]][e](...n),Ur.color.close,this._styler);return Do(this,r,this._isEmpty)}}};for(const e of go)lo["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=yo(Ur.bgColor[co[t]][e](...n),Ur.bgColor.close,this._styler);return Do(this,r,this._isEmpty)}}};const mo=Object.defineProperties((()=>{}),Object.assign({},lo,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),yo=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},Do=(e,t,n)=>{const r=(...e)=>vo(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,mo),r._generator=e,r._styler=t,r._isEmpty=n,r},vo=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=ao(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=uo(t,o,r,s)),r+t+o};let Eo;const bo=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e1===e.length?"-".concat(e):"--".concat(e),value:e=>Sr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?wo.key(e):""===t?"".concat(wo.key(e)," without an argument"):"".concat(wo.key(e),"=").concat(t)};class So extends Sr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"==typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find((t=>kr(t,e)<3));if(n)return t.logger.warn(["Unknown flag ".concat(Ao.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Ao.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let xo;function Fo(e,t,{logger:n,isCLI:r=!1,passThrough:o=!1}={}){const s=o?Array.isArray(o)?(e,t)=>o.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):Sr.levenUnknownHandler,i=r?wo:Sr.apiDescriptor,a=function(e,{isCLI:t}){const n=[];t&&n.push(Sr.AnySchema.create({name:"_"}));for(const r of e)n.push(To(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(Sr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),u=new Sr.Normalizer(a,{logger:n,unknown:s,descriptor:i}),c=!1!==n;c&&xo&&(u._hasDeprecationWarned=xo);const l=u.normalize(e);return c&&(xo=u._hasDeprecationWarned),l}function To(e,{isCLI:t,optionInfos:n}){let r;const o={name:e.name},s={};switch(e.type){case"int":r=Sr.IntegerSchema,t&&(o.preprocess=e=>Number(e));break;case"string":case"path":r=Sr.StringSchema;break;case"choice":r=Sr.ChoiceSchema,o.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":r=Sr.BooleanSchema;break;case"flag":r=So,o.flags=n.map((e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[]))).reduce(((e,t)=>e.concat(t)),[]);break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):o.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){const e=o.preprocess||(e=>e);o.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?Sr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},s,{valueSchema:r.create(o)})):r.create(Object.assign({},o,{},s))}var ko={normalizeApiOptions:function(e,t,n){return Fo(e,t,n)},normalizeCliOptions:function(e,t,n){return Fo(e,t,Object.assign({isCLI:!0},n))}},_o=e=>e[e.length-1];function Oo(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?Oo(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?Oo(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function No(e){const t=e.nodes&&_o(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,No(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var Bo={locStart:Oo,locEnd:No,composeLoc:function(e,t=e){const n="number"==typeof t?t:-1,r=Oo(e),o=-1!==n?r+n:No(t),s=e.loc.start;return{start:r,end:o,range:[r,o],loc:{start:s,end:-1!==n?{line:s.line,column:s.column+n}:t.loc.end}}}},Mo=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));ot(Mo),Mo.matchToToken;var Lo=st((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Io=(Lo.isExpression,Lo.isStatement,Lo.isIterationStatement,Lo.isSourceElement,Lo.isProblematicIfStatement,Lo.trailingStatement,st((function(e){!function(){var t,n,r,o,s,i;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=new Array(128),i=0;i<128;++i)o[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?s[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()}))),Po=(Io.isDecimalDigit,Io.isHexDigit,Io.isOctalDigit,Io.isWhiteSpace,Io.isLineTerminator,Io.isIdentifierStartES5,Io.isIdentifierPartES5,Io.isIdentifierStartES6,Io.isIdentifierPartES6,st((function(e){!function(){var t=Io;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function i(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(s=e.charCodeAt(n))&&s<=57343))return!1;o=1024*(o-55296)+(s-56320)+65536}if(!i(o))return!1;i=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:o,isReservedWordES6:s,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:i,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return i(e)&&!o(e,t)},isIdentifierES6:function(e,t){return a(e)&&!s(e,t)}}}()}))),jo=(Po.isKeywordES5,Po.isKeywordES6,Po.isReservedWordES5,Po.isReservedWordES6,Po.isRestrictedWord,Po.isIdentifierNameES5,Po.isIdentifierNameES6,Po.isIdentifierES5,Po.isIdentifierES6,st((function(e,t){t.ast=Lo,t.code=Io,t.keyword=Po}))),Ro=(jo.ast,jo.code,jo.keyword,/[|\\{}()[\]^$+*?.]/g),Uo=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ro,"\\$&")},$o={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qo=st((function(e){var t={};for(var n in $o)$o.hasOwnProperty(n)&&(t[$o[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var s=r[o].channels,i=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:s}),Object.defineProperty(r[o],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(r,o,s),a=Math.max(r,o,s),u=a-i;return a===i?t=0:r===a?t=(o-s)/u:o===a?t=2+(s-r)/u:s===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+a)/2,[t,100*(a===i?0:n<=.5?u/(a+i):u/(2-a-i)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,s,i=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(i,a,u),l=c-Math.min(i,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?o=s=0:(s=l/c,t=p(i),n=p(a),r=p(u),i===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,s,i=1/0;for(var a in $o)if($o.hasOwnProperty(a)){var u=(o=e,s=$o[a],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,s,i=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[s=255*u,s,s];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*s;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,u,i];case 1:return[a,r,i];case 2:return[i,r,u];case 3:return[i,a,r];case 4:return[u,i,r];case 5:return[r,i,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return r=(2-s)*i,n=s*a,[o,100*(n=(n/=(t=(2-s)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,s,i,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:s=n,i=o,a=c;break;case 1:s=o,i=n,a=c;break;case 2:s=c,i=n,a=o;break;case 3:s=c,i=o,a=n;break;case 4:s=o,i=c,a=n;break;case 5:s=n,i=c,a=o}return[255*s,255*i,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,s=e[1]/100,i=e[2]/100;return n=-.9689*o+1.8758*s+.0415*i,r=.0557*o+-.204*s+1.057*i,t=(t=3.2406*o+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),i=Math.pow(t,3),a=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],s=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.max(Math.max(n,r),o),i=Math.min(Math.min(n,r),o),a=s-i;return t=a<=0?0:s===n?(r-o)/a%6:s===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,s=[0,0,0],i=t%1*6,a=i%1,u=1-a;switch(Math.floor(i)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=u,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=u,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=u}return o=(1-n)*r,[255*(n*s[0]+o),255*(n*s[1]+o),255*(n*s[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Vo(e){var t=function(){for(var e={},t=Object.keys(qo),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Jo=Ko,zo=st((function(e){const t=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Jo,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(s,0)},o.color.ansi256={ansi256:n(s,0)},o.color.ansi16m={rgb:r(i,0)},o.bgColor.ansi={ansi:t(s,10)},o.bgColor.ansi256={ansi256:n(s,10)},o.bgColor.ansi16m={rgb:r(i,10)};for(let e of Object.keys(Jo)){if("object"!=typeof Jo[e])continue;const s=Jo[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(o.color.ansi[e]=t(s.ansi16,0),o.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(o.color.ansi256[e]=n(s.ansi256,0),o.bgColor.ansi256[e]=n(s.ansi256,10)),"rgb"in s&&(o.color.ansi16m[e]=r(s.rgb,0),o.bgColor.ansi16m[e]=r(s.rgb,10))}return o}})}));const Go=Rt.env;let Ho;function Xo(e){return t=function(e){if(!1===Ho)return 0;if($n("color=16m")||$n("color=full")||$n("color=truecolor"))return 3;if($n("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ho)return 0;const t=Ho?1:0;if("win32"===Rt.platform){const e=Un.release().split(".");return Number(Rt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Go)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Go))||"codeship"===Go.CI_NAME?1:t;if("TEAMCITY_VERSION"in Go)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Go.TEAMCITY_VERSION)?1:0;if("truecolor"===Go.COLORTERM)return 3;if("TERM_PROGRAM"in Go){const e=parseInt((Go.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Go.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Go.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Go.TERM)||"COLORTERM"in Go?1:(Go.TERM,t)}(e),0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Ho=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Ho=!0),"FORCE_COLOR"in Go&&(Ho=0===Go.FORCE_COLOR.length||0!==parseInt(Go.FORCE_COLOR,10));var Qo={supportsColor:Xo,stdout:Xo(Rt.stdout),stderr:Xo(Rt.stderr)};const Zo=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,es=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ts=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ns=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,rs=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function os(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):rs.get(e)||e}function ss(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(ts)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(ns,((e,t,n)=>t?os(t):n)))}else n.push(Number(t));return n}function is(e){es.lastIndex=0;const t=[];let n;for(;null!==(n=es.exec(e));){const e=n[1];if(n[2]){const r=ss(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function as(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var us=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Zo,((t,s,i,a,u,c)=>{if(s)o.push(os(s));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:as(e,n)(t)),n.push({inverse:i,styles:is(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(as(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},cs=st((function(e){const t=Qo.stdout,n="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),s=Object.create(null);function i(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}n&&(zo.blue.open="");for(const e of Object.keys(zo))zo[e].closeRe=new RegExp(Uo(zo[e].close),"g"),s[e]={get(){const t=zo[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},zo.color.closeRe=new RegExp(Uo(zo.color.close),"g");for(const e of Object.keys(zo.color.ansi))o.has(e)||(s[e]={get(){const t=this.level;return function(){const n={open:zo.color[r[t]][e].apply(null,arguments),close:zo.color.close,closeRe:zo.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});zo.bgColor.closeRe=new RegExp(Uo(zo.bgColor.close),"g");for(const e of Object.keys(zo.bgColor.ansi))o.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:zo.bgColor[r[t]][e].apply(null,arguments),close:zo.bgColor.close,closeRe:zo.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),s);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;ns(e))).join("\n"):e[0]}))):e;var o,s};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Mo),r=s(jo),o=s(cs);function s(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){return o.default.supportsColor||e.forceColor}function p(e){let t=o.default;return e.forceColor&&(t=new o.default.constructor({enabled:!0,level:1})),t}})));ot(ls),ls.shouldHighlight,ls.getChalk;var ps=st((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=i,t.default=function(e,t,n,r={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Rt.emitWarning?Rt.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return i(e,{start:{column:n=Math.max(n,0),line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(ls);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let o=!1;const s=/\r\n|[\n\r\u2028\u2029]/;function i(e,t,r={}){const o=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),i=(0,n.getChalk)(r),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(i),u=(e,t)=>o?e(t):t,c=e.split(s),{start:l,end:p,markerLines:f}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,{},e.end),{linesAbove:s=2,linesBelow:i=3}=n||{},a=r.line,u=r.column,c=o.line,l=o.column;let p=Math.max(a-(s+1),0),f=Math.min(t.length,c+i);-1===a&&(p=0),-1===c&&(f=t.length);const d=c-a,h={};if(d)for(let e=0;e<=d;e++){const n=e+a;if(u)if(0===e){const e=t[n-1].length;h[n]=[u,e-u+1]}else if(e===d)h[n]=[0,l];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=u===l?!u||[u,0]:[u,l-u];return{start:p,end:f,markerLines:h}}(t,c,r),d=t.start&&"number"==typeof t.start.column,h=String(p).length;let g=(o?(0,n.default)(e,r):e).split(s).slice(l,p).map(((e,t)=>{const n=l+1+t,o=" ".concat(n).slice(-h),s=" ".concat(o," | "),i=f[n],c=!f[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",u(a.gutter,s.replace(/\d/g," ")),n,u(a.marker,"^").repeat(o)].join(""),c&&r.message&&(t+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,s),e,t].join("")}return" ".concat(u(a.gutter,s)).concat(e)})).join("\n");return r.message&&!d&&(g="".concat(" ".repeat(h+1)).concat(r.message,"\n").concat(g)),o?i.reset(g):g}}));ot(ps),ps.codeFrameColumns;const{ConfigError:fs}=dt,{locStart:ds,locEnd:hs}=Bo,gs=Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptor;function ys(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of gs(n.parsers))Object.defineProperty(t,e,ms(n.parsers,e));return t}function Ds(e,t){if(t=t||ys(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:ds,locEnd:hs};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new fs("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var vs={parse:function(e,t){const n=ys(t),r=Object.keys(n).reduce(((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse})),{}),o=Ds(t,n);try{return o.preprocess&&(e=o.preprocess(e,t)),{text:e,ast:o.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const r=ps;throw t.codeFrame=r.codeFrameColumns(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Ds};const{UndefinedParserError:Es}=dt,{getSupportInfo:bs}=En,{resolveParser:Cs}=vs,As={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function ws(e,t){const n=se.basename(e).toLowerCase(),r=bs({plugins:t}).languages.filter((e=>null!==e.since));let o=r.find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.find((e=>e.toLowerCase()===n))));if(!o&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=at.openSync(e,"r")}catch(e){return""}try{const e=new ut(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch(e){return""}finally{try{at.closeSync(t)}catch(e){}}}(e);o=r.find((e=>e.interpreters&&e.interpreters.includes(t)))}return o&&o.parsers[0]}var Ss={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=bs({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,o=Object.assign({},As,{},ct(r.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!n.parser)if(n.filepath){if(n.parser=ws(n.filepath,n.plugins),!n.parser)throw new Es("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const s=Cs(ko.normalizeApiOptions(n,[r.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;const i=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find((e=>e.printers&&e.printers[t]));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=i.printers[n.astFormat];const a=r.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[i.name])).reduce(((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[i.name]})),{}),u=Object.assign({},o,{},a);return Object.keys(u).forEach((e=>{null==n[e]&&(n[e]=u[e])})),"json"===n.parser&&(n.trailingComma="none"),ko.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(As)},t))},hiddenDefaults:As,inferParser:ws};var xs=function e(t,n,r){if(Array.isArray(t))return t.map((t=>e(t,n,r))).filter(Boolean);if(!t||"object"!=typeof t)return t;const o={};for(const r of Object.keys(t))"function"!=typeof t[r]&&(o[r]=e(t[r],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,o,r);if(null===e)return;if(e)return e}return o};function Fs(){}function Ts(e){return{type:"concat",parts:e}}function ks(e){return{type:"indent",contents:e}}function _s(e,t){return{type:"align",contents:t,n:e}}function Os(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}Fs.ok=function(){},Fs.strictEqual=function(){};const Ns={type:"break-parent"},Bs=Ts([{type:"line",hard:!0},Ns]),Ms=Ts([{type:"line",hard:!0,literal:!0},Ns]);var Ls={concat:Ts,join:function(e,t){const n=[];for(let r=0;r0){for(let e=0;e"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const Ps=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var js=Ps,Rs=Ps;js.default=Rs;const Us=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Is(e);let t=0;for(let n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=js(r)?2:1)}return t};var $s=Us,qs=Us;$s.default=qs;const Vs=/[|\\{}()[\]^$+*?.-]/g;var Ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Vs,"\\$&")};const Ys=/[^\x20-\x7F]/;function Ks(e){return(t,n,r)=>{const o=r&&r.backwards;if(!1===n)return!1;const{length:s}=t;let i=n;for(;i>=0&&i"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(((e,t)=>{e.forEach((e=>{oi[e]=t}))}));const ii={"==":!0,"!=":!0,"===":!0,"!==":!0},ai={"*":!0,"/":!0,"%":!0},ui={">>":!0,">>>":!0,"<<":!0};function ci(e){return e.left?ci(e.left):e}function li(e,t,n){let r=0;for(let o=n=n||0;o(n.match(i.regex)||[]).length?i.quote:s.quote),a}function fi(e,t,n){const r='"'===t?"'":'"',o=e.replace(/\\([\s\S])|(['"])/g,((e,o,s)=>o===r?o:s===t?"\\"+s:s||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(o)?o:"\\"+o)));return t+o+t}function di(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some((e=>hi(e)&&!e.unignore))||e.prettierIgnore)}function hi(e){return"prettier-ignore"===e.value.trim()}function gi(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var mi={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?Ys.test(e)?$s(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ws(t),")+"),"g"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ws(t),")+"),"g"));if(null===n)return 0;const r=new Map;let o=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>o&&(o=n)}for(let e=1;e1?e[e.length-2]:null},getLast:_o,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ni,getNextNonSpaceNonCommentCharacterIndex:ri,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(ri(e,t,n))},skip:Ks,skipWhitespace:Js,skipSpaces:zs,skipToLineEnd:Gs,skipEverythingButNewLine:Hs,skipInlineComment:Xs,skipTrailingComment:Qs,skipNewline:Zs,isNextLineEmptyAfterIndex:ti,isNextLineEmpty:function(e,t,n){return ti(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=zs(e,r,{backwards:!0}),r=Zs(e,r,{backwards:!0}),r=zs(e,r,{backwards:!0}),r!==Zs(e,r,{backwards:!0})},hasNewline:ei,hasNewlineInRange:function(e,t,n){for(let r=t;r=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:Di}=mi,{convertEndOfLineToChars:vi}=yi,{concat:Ei,fill:bi,cursor:Ci}=Ls;let Ai;function wi(e,t){return xi(e,{type:"indent"},t)}function Si(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?xi(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):xi(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function xi(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let o="",s=0,i=0,a=0;for(const e of r)switch(e.type){case"indent":l(),n.useTabs?u(1):c(n.tabWidth);break;case"stringAlign":l(),o+=e.n,s+=e.n.length;break;case"numberAlign":i+=1,a+=e.n;break;default:throw new Error("Unexpected type '".concat(e.type,"'"))}return p(),Object.assign({},e,{value:o,length:s,queue:r});function u(e){o+="\t".repeat(e),s+=n.tabWidth*e}function c(e){o+=" ".repeat(e),s+=e}function l(){n.useTabs?(i>0&&u(i),f()):p()}function p(){a>0&&c(a),f()}function f(){i=0,a=0}}function Fi(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Ti(e,t,n,r,o){let s=t.length;const i=[e],a=[];for(;n>=0;){if(0===i.length){if(0===s)return!0;i.push(t[s-1]),s--;continue}const[e,u,c]=i.pop();if("string"==typeof c)a.push(c),n-=Di(c);else switch(c.type){case"concat":for(let t=c.parts.length-1;t>=0;t--)i.push([e,u,c.parts[t]]);break;case"indent":i.push([wi(e,r),u,c.contents]);break;case"align":i.push([Si(e,c.n,r),u,c.contents]);break;case"trim":n+=Fi(a);break;case"group":if(o&&c.break)return!1;i.push([e,c.break?1:u,c.contents]),c.id&&(Ai[c.id]=i[i.length-1][1]);break;case"fill":for(let t=c.parts.length-1;t>=0;t--)i.push([e,u,c.parts[t]]);break;case"if-break":{const t=c.groupId?Ai[c.groupId]:u;1===t&&c.breakContents&&i.push([e,u,c.breakContents]),2===t&&c.flatContents&&i.push([e,u,c.flatContents]);break}case"line":switch(u){case 2:if(!c.hard){c.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const ki={};function _i(e,t,n,r){const o=[e];for(;0!==o.length;){const e=o.pop();if(e===ki){n(o.pop());continue}let s=!0;if(t&&!1===t(e)&&(s=!1),n&&(o.push(e),o.push(ki)),s)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)o.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&o.push(e.flatContents),e.breakContents&&o.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)o.push(e.expandedStates[t]);else o.push(e.contents);else e.contents&&o.push(e.contents)}}function Oi(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map((e=>Oi(e,t)));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&Oi(e.breakContents,t),r=e.flatContents&&Oi(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=Oi(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Ni(e,t,n){let r=n,o=!1;return _i(e,(function(e){const n=t(e);if(void 0!==n&&(o=!0,r=n),o)return!1})),r}function Bi(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Mi(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Li(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Ii(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Pi(e){if("concat"===e.type){const t=[];for(let n=0;nji(Pi(e))},Ui={builders:Ls,printer:{printDocToString:function(e,t){Ai={};const n=t.printWidth,r=vi(t.endOfLine);let o=0;const s=[[{value:"",length:0,queue:[]},1,e]],i=[];let a=!1,u=[];for(;0!==s.length;){const[e,c,l]=s.pop();if("string"==typeof l){const e="\n"!==r&&l.includes("\n")?l.replace(/\n/g,r):l;i.push(e),o+=Di(e)}else switch(l.type){case"cursor":i.push(Ci.placeholder);break;case"concat":for(let t=l.parts.length-1;t>=0;t--)s.push([e,c,l.parts[t]]);break;case"indent":s.push([wi(e,t),c,l.contents]);break;case"align":s.push([Si(e,l.n,t),c,l.contents]);break;case"trim":o-=Fi(i);break;case"group":switch(c){case 2:if(!a){s.push([e,l.break?1:2,l.contents]);break}case 1:{a=!1;const r=[e,2,l.contents],i=n-o;if(!l.break&&Ti(r,s,i,t))s.push(r);else if(l.expandedStates){const n=l.expandedStates[l.expandedStates.length-1];if(l.break){s.push([e,1,n]);break}for(let r=1;r=l.expandedStates.length){s.push([e,1,n]);break}{const n=[e,2,l.expandedStates[r]];if(Ti(n,s,i,t)){s.push(n);break}}}}else s.push([e,1,l.contents]);break}}l.id&&(Ai[l.id]=s[s.length-1][1]);break;case"fill":{const r=n-o,{parts:i}=l;if(0===i.length)break;const[a,u]=i,p=[e,2,a],f=[e,1,a],d=Ti(p,[],r,t,!0);if(1===i.length){d?s.push(p):s.push(f);break}const h=[e,2,u],g=[e,1,u];if(2===i.length){d?(s.push(h),s.push(p)):(s.push(g),s.push(f));break}i.splice(0,2);const m=[e,c,bi(i)],y=i[0];Ti([e,2,Ei([a,u,y])],[],r,t,!0)?(s.push(m),s.push(h),s.push(p)):d?(s.push(m),s.push(g),s.push(p)):(s.push(m),s.push(g),s.push(f));break}case"if-break":{const t=l.groupId?Ai[l.groupId]:c;1===t&&l.breakContents&&s.push([e,c,l.breakContents]),2===t&&l.flatContents&&s.push([e,c,l.flatContents]);break}case"line-suffix":u.push([e,c,l.contents]);break;case"line-suffix-boundary":u.length>0&&s.push([e,c,{type:"line",hard:!0}]);break;case"line":switch(c){case 2:if(!l.hard){l.soft||(i.push(" "),o+=1);break}a=!0;case 1:if(u.length){s.push([e,c,l]),s.push(...u.reverse()),u=[];break}l.literal?e.root?(i.push(r,e.root.value),o=e.root.length):(i.push(r),o=0):(o-=Fi(i),i.push(r+e.value),o=e.length)}}}const c=i.indexOf(Ci.placeholder);if(-1!==c){const e=i.indexOf(Ci.placeholder,c+1),t=i.slice(0,c).join(""),n=i.slice(c+1,e).join("");return{formatted:t+n+i.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:i.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ni(e,Mi,!1)},isLineNext:function(e){return Ni(e,Bi,!1)},traverseDoc:_i,findInDoc:Ni,mapDoc:Oi,propagateBreaks:function(e){const t=new Set,n=[];_i(e,(function(e){if("break-parent"===e.type&&Li(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Li(n)}),!0)},removeLines:function(e){return Oi(e,Ii)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:Ri};const{getMaxContinuousCount:$i,getStringWidth:qi,getAlignmentSize:Vi,getIndentSize:Wi,skip:Yi,skipWhitespace:Ki,skipSpaces:Ji,skipNewline:zi,skipToLineEnd:Gi,skipEverythingButNewLine:Hi,skipInlineComment:Xi,skipTrailingComment:Qi,hasNewline:Zi,hasNewlineInRange:ea,hasSpaces:ta,isNextLineEmpty:na,isNextLineEmptyAfterIndex:ra,isPreviousLineEmpty:oa,getNextNonSpaceNonCommentCharacterIndex:sa,makeString:ia,addLeadingComment:aa,addDanglingComment:ua,addTrailingComment:ca}=mi;var la={getMaxContinuousCount:$i,getStringWidth:qi,getAlignmentSize:Vi,getIndentSize:Wi,skip:Yi,skipWhitespace:Ki,skipSpaces:Ji,skipNewline:zi,skipToLineEnd:Gi,skipEverythingButNewLine:Hi,skipInlineComment:Xi,skipTrailingComment:Qi,hasNewline:Zi,hasNewlineInRange:ea,hasSpaces:ta,isNextLineEmpty:na,isNextLineEmptyAfterIndex:ra,isPreviousLineEmpty:oa,getNextNonSpaceNonCommentCharacterIndex:sa,makeString:ia,addLeadingComment:aa,addDanglingComment:ua,addTrailingComment:ca};const{concat:pa,line:fa,hardline:da,breakParent:ha,indent:ga,lineSuffix:ma,join:ya,cursor:Da}=Ui.builders,{hasNewline:va,skipNewline:Ea,isPreviousLineEmpty:ba}=mi,{addLeadingComment:Ca,addDanglingComment:Aa,addTrailingComment:wa}=la,Sa=Symbol("child-nodes");function xa(e,t,n){if(!e)return;const{printer:r,locStart:o,locEnd:s}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(o(n[t])<=o(e)&&s(n[t])<=s(e));--t);return void n.splice(t+1,0,e)}}else if(e[Sa])return e[Sa];const i=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.keys(e).filter((e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e)).map((t=>e[t]));return i?(n||Object.defineProperty(e,Sa,{value:n=[],enumerable:!1}),i.forEach((e=>{xa(e,t,n)})),n):void 0}function Fa(e,t,n){const{locStart:r,locEnd:o}=n,s=xa(e,n);let i,a,u=0,c=s.length;for(;u>1,l=s[e];if(r(l)-r(t)<=0&&o(t)-o(l)<=0)return t.enclosingNode=l,void Fa(l,t,n);if(o(l)-r(t)<=0)i=l,u=e+1;else{if(!(o(t)-r(l)<=0))throw new Error("Comment location overlaps with node location");a=l,c=e}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){const{quasis:e}=t.enclosingNode,r=_a(e,t,n);i&&_a(e,i,n)!==r&&(i=null),a&&_a(e,a,n)!==r&&(a=null)}i&&(t.precedingNode=i),a&&(t.followingNode=a)}function Ta(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:o,followingNode:s,enclosingNode:i}=e[0],a=n.printer.getGapRegex&&n.printer.getGapRegex(i)||/^[\s(]*$/;let u,c=n.locStart(s);for(u=r;u>0;--u){const r=e[u-1];Fs.strictEqual(r.precedingNode,o),Fs.strictEqual(r.followingNode,s);const i=t.slice(n.locEnd(r),c);if(!a.test(i))break;c=n.locStart(r)}e.forEach(((e,t)=>{t{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(s(a)-s(t)<=0)return void Ca(t,a);if(i(a)-i(t)>=0)return void wa(t,a)}Fa(t,a,r);const{precedingNode:c,enclosingNode:l,followingNode:p}=a,f=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,d=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,g=e.length-1===u;if(va(n,s(a),{backwards:!0}))f(a,n,r,t,g)||(p?Ca(p,a):c?wa(c,a):Aa(l||t,a));else if(va(n,i(a)))d(a,n,r,t,g)||(c?wa(c,a):p?Ca(p,a):Aa(l||t,a));else if(h(a,n,r,t,g));else if(c&&p){const e=o.length;e>0&&o[e-1].followingNode!==a.followingNode&&Ta(o,n,r),o.push(a)}else c?wa(c,a):p?Ca(p,a):Aa(l||t,a)})),Ta(o,n,r),e.forEach((e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))},printComments:function(e,t,n,r){const o=e.getValue(),s=t(e),i=o&&o.comments;if(!i||0===i.length)return Oa(e,n,s);const a=[],u=[r?";":"",s];return e.each((e=>{const t=e.getValue(),{leading:r,trailing:o}=t;if(r){const r=function(e,t,n){const r=e.getValue(),o=ka(e,n);if(!o)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=va(n.originalText,n.locEnd(r))?va(n.originalText,n.locStart(r),{backwards:!0})?da:fa:" ";return pa([o,e])}return pa([o,da])}(e,0,n);if(!r)return;a.push(r);const o=n.originalText,s=Ea(o,n.locEnd(t));!1!==s&&va(o,s)&&a.push(da)}else o&&u.push(function(e,t,n){const r=e.getValue(),o=ka(e,n);if(!o)return"";const s=n.printer.isBlockComment&&n.printer.isBlockComment(r),i=e.getNode(1),a=e.getNode(2),u=a&&("ClassDeclaration"===a.type||"ClassExpression"===a.type)&&a.superClass===i;if(va(n.originalText,n.locStart(r),{backwards:!0})){const e=ba(n.originalText,r,n.locStart);return ma(pa([da,e?da:"",o]))}return pa(s||u?[" ",o]:[ma(pa([" ",o])),s?"":ha])}(e,0,n))}),"comments"),Oa(e,n,pa(a.concat(u)))},printDanglingComments:function(e,t,n,r){const o=[],s=e.getValue();return s&&s.comments?(e.each((e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||o.push(ka(e,t))}),"comments"),0===o.length?"":n?ya(da,o):ga(pa([da,ya(da,o)]))):""},getSortedChildNodes:xa};function Ba(e,t){const n=Ma(e.stack,t);return-1===n?null:e.stack[n]}function Ma(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var La=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return _o(this.stack)}getNode(e=0){return Ba(this,e)}getParentNode(e=0){return Ba(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let o=_o(n);for(const e of t)o=o[e],n.push(e,o);const s=e(this);return n.length=r,s}callParent(e,t=0){const n=Ma(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return this.stack.push(...r),o}each(e,...t){const{stack:n}=this,{length:r}=n;let o=_o(n);for(const e of t)o=o[e],n.push(e,o);for(let t=0;tfunction(e,t,n,r){const o=Ia(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),s=vs.parse(e,o),{ast:i}=s;e=s.text;const a=i.comments;return delete i.comments,Na.attach(a,i,e,o),r(i,o)}(e,t,n,r)),n)}};const ja=Ui,Ra=ja.builders,{concat:Ua,hardline:$a,addAlignmentToDoc:qa}=Ra,Va=ja.utils;function Wa(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const o=new Map;let s=function e(n,s){const i=n.getValue(),a=i&&"object"==typeof i&&void 0===s;if(a&&o.has(i))return o.get(i);let u;return u=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Ya(n,t,e,s):Na.printComments(n,(n=>Ya(n,t,e,s)),t,s&&s.needsSemi),a&&o.set(i,u),u}(new La(e));return n>0&&(s=qa(Ua([$a,s]),n,t.tabWidth)),Va.propagateBreaks(s),s}function Ya(e,t,n,r){Fs.ok(e instanceof La);const o=e.getValue(),{printer:s}=t;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(o),t.locEnd(o));if(o)try{const r=Pa.printSubtree(e,n,t,Wa);if(r)return r}catch(e){if(rt.PRETTIER_DEBUG)throw e}return s.print(e,t,n,r)}var Ka=Wa;function Ja(e,t,n,r,o){r=r||(()=>!0),o=o||[];const s=n.locStart(e,n.locStart),i=n.locEnd(e,n.locEnd);if(s<=t&&t<=i){for(const s of Na.getSortedChildNodes(e,n)){const i=Ja(s,t,n,r,[e].concat(o));if(i)return i}if(r(e))return{node:e,parentNodes:o}}}function za(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],o=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return o.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var Ga={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),o=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let s;for(s=t.rangeEnd;s>t.rangeStart&&!e[s-1].match(/\S/);--s);const i=Ja(n,o,t,(e=>za(t,e))),a=Ja(n,s,t,(e=>za(t,e)));if(!i||!a)return{rangeStart:0,rangeEnd:0};const u=function(e,t,n){let r=e.node,o=t.node;if(r===o)return{startNode:r,endNode:o};for(const r of t.parentNodes){if(!("Program"!==r.type&&"File"!==r.type&&n.locStart(r)>=n.locStart(e.node)))break;o=r}for(const o of e.parentNodes){if(!("Program"!==o.type&&"File"!==o.type&&n.locEnd(o)<=n.locEnd(t.node)))break;r=o}return{startNode:r,endNode:o}}(i,a,t),{startNode:c,endNode:l}=u;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:Ja},Ha=it(te);const Xa=Ss.normalize,{guessEndOfLine:Qa,convertEndOfLineToChars:Za}=yi,{printer:{printDocToString:eu},debug:{printDocToDebug:tu}}=Ui,nu=Symbol("cursor"),ru={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function ou(e,t,n){const r=t.comments;return r&&(delete t.comments,Na.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function su(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=vs.parse(e,t),{ast:o}=r;if(e=r.text,t.cursorOffset>=0){const e=Ga.findNodeAtOffset(o,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const s=ou(e,o,t),i=Ka(o,t,n),a=eu(i,t);if(function(e){if(e){for(let t=0;t{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}))}}(s),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Za(t.endOfLine)}if(t.cursorOffset>=0){let n,r,o,s,i;if(t.cursorNode&&a.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),o=t.cursorOffset-n,s=a.cursorNodeStart,i=a.cursorNodeText):(n=0,r=e,o=t.cursorOffset,s=0,i=a.formatted),r===i)return{formatted:a.formatted,cursorOffset:s+o};const u=r.split("");u.splice(o,0,nu);const c=i.split(""),l=Ha.diffArrays(u,c);let p=s;for(const e of l)if(e.removed){if(e.value.includes(nu))break}else p+=e.count;return{formatted:a.formatted,cursorOffset:p}}return{formatted:a.formatted}}function iu(e,t){const n=vs.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Qa(e));const o=t.cursorOffset>=0,s=t.rangeStart>0,i=t.rangeEndt[e]-t[n]));for(let r=n.length-1;r>=0;r--){const o=n[r];e=e.slice(0,t[o])+ru[o]+e.slice(t[o])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r(t[o]=n,"")))}}const a="\ufeff"===e.charAt(0);a&&(e=e.slice(1),o&&t.cursorOffset++,s&&t.rangeStart++,i&&t.rangeEnd++),o||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const u=s||i?function(e,t){const n=vs.parse(e,t),{ast:r}=n;e=n.text;const o=Ga.calculateRange(e,t,r),{rangeStart:s,rangeEnd:i}=o,a=e.slice(s,i),u=Math.min(s,e.lastIndexOf("\n",s)+1),c=e.slice(u,s),l=mi.getAlignmentSize(c,t.tabWidth),p=su(a,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=i?m=t.cursorOffset-i+(s+f.length):void 0!==p.cursorOffset&&(m=p.cursorOffset+s),"lf"===t.endOfLine)g=d+f+h;else{const e=Za(t.endOfLine);if(m>=0){const t=[d,f,h];let n=0,r=m;for(;n(m=t,"")))}else g=d.replace(/\n/g,e)+f+h.replace(/\n/g,e)}return{formatted:g,cursorOffset:m}}(e,t):su(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return a&&(u.formatted="\ufeff"+u.formatted,o&&u.cursorOffset++),u}var au={formatWithCursor:(e,t)=>iu(e,t=Xa(t)),parse(e,t,n){t=Xa(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=vs.parse(e,t);return n&&(r.ast=xs(r.ast,t)),r},formatAST(e,t){t=Xa(t);const n=Ka(e,t);return eu(n,t)},formatDoc:(e,t)=>iu(tu(e),t=Xa(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=Xa(t);const n=vs.parse(e,t),{ast:r}=n;return ou(e=n.text,r,t),Ka(r,t)},printDocToString:(e,t)=>eu(e,Xa(t))};var uu=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach((e=>{delete t[e]})),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,((e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:cu,literalline:lu,concat:pu,markAsRoot:fu},utils:{mapDoc:du}}=Ui;var hu=function(e,t,n){const r=e.getValue();return"yaml"===r.type?fu(pu(["---",cu,r.value.trim()?function(e){return du(e,(e=>"string"==typeof e&&e.includes("\n")?pu(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:lu))):e))}(n(r.value,{parser:"yaml"})):"","---",cu])):null};const gu=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter((e=>"\r\n"===e)).length;return n>t.length-n?"\r\n":"\n"};var mu=gu;mu.graceful=e=>"string"==typeof e&&gu(e)||"\n";var yu=st((function(e,t){function n(){const e=Un;return n=function(){return e},e}function r(){const e=(t=mu)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(i);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(i);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function({comments:e="",pragmas:t={}}){const o=(0,r().default)(e)||n().EOL,s=" *",i=Object.keys(t),a=i.map((e=>d(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+o)).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){const e=t[i[0]];return"".concat("/**"," ").concat(d(i[0],e)[0]).concat(" */")}}const u=e.split(o).map((e=>"".concat(s," ").concat(e))).join(o)+o;return"/**"+o+(e?u:"")+(e&&i.length?s+o:"")+a+" */"};const o=/\*\/$/,s=/^\/\*\*/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(s,"").replace(o,"").replace(p,"$1");let i="";for(;i!==e;)i=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();const f=Object.create(null),d=e.replace(l,"").replace(u,"").trimRight();let h;for(;h=l.exec(e);){const e=h[2].replace(a,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=[].concat(f[h[1]],e):f[h[1]]=e}return{comments:d,pragmas:f}}function d(e,t){return[].concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}}));ot(yu),yu.extract,yu.strip,yu.parse,yu.parseWithComments,yu.print;var Du={hasPragma:function(e){const t=Object.keys(yu.parse(yu.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=yu.parseWithComments(yu.extract(e)),n=Object.assign({format:""},t.pragmas),r=yu.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),o=yu.strip(e);return r+(o.startsWith("\n")?"\n":"\n\n")+o}};const vu={"---":"yaml","+++":"toml"};var Eu=function(e){const t=Object.keys(vu).map(Ws).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,o,s]=n;return{frontMatter:{type:vu[o],value:s,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}};var bu={hasPragma:function(e){return Du.hasPragma(Eu(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=Eu(e);return(t?t.raw+"\n\n":"")+Du.insertPragma(n)}},Cu=function(e,t){let n=0;for(let r=0;r","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:ku,isDivisionNode:_u,isAdditionNode:Ou,isSubtractionNode:Nu,isModuloNode:Bu,isMathOperatorNode:function(e){return ku(e)||_u(e)||Ou(e)||Nu(e)||Bu(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:Mu,isKeyValuePairInParenGroupNode:Lu,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(Lu(t)||n&&Lu(n)))return!1;const r=Tu(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!Lu(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&xu.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Pu}=bu,{printNumber:ju,printString:Ru,hasIgnoreComment:Uu,hasNewline:$u}=mi,{isNextLineEmpty:qu}=la,{restoreQuotesInInlineComments:Vu}=Su,{builders:{concat:Wu,join:Yu,line:Ku,hardline:Ju,softline:zu,group:Gu,fill:Hu,indent:Xu,dedent:Qu,ifBreak:Zu},utils:{removeLines:ec}}=Ui,{getAncestorNode:tc,getPropOfDeclNode:nc,maybeToLowerCase:rc,insideValueFunctionNode:oc,insideICSSRuleNode:sc,insideAtRuleNode:ic,insideURLFunctionInImportAtRuleNode:ac,isKeyframeAtRuleKeywords:uc,isWideKeywords:cc,isSCSS:lc,isLastNode:pc,isLessParser:fc,isSCSSControlDirectiveNode:dc,isDetachedRulesetDeclarationNode:hc,isRelationalOperatorNode:gc,isEqualityOperatorNode:mc,isMultiplicationNode:yc,isDivisionNode:Dc,isAdditionNode:vc,isSubtractionNode:Ec,isMathOperatorNode:bc,isEachKeywordNode:Cc,isForKeywordNode:Ac,isURLFunctionNode:wc,isIfElseKeywordNode:Sc,hasComposesNode:xc,hasParensAroundNode:Fc,hasEmptyRawBefore:Tc,isKeyValuePairNode:kc,isDetachedRulesetCallNode:_c,isTemplatePlaceholderNode:Oc,isTemplatePropNode:Nc,isPostcssSimpleVarNode:Bc,isSCSSMapItemNode:Mc,isInlineValueCommentNode:Lc,isHashNode:Ic,isLeftCurlyBraceNode:Pc,isRightCurlyBraceNode:jc,isWordNode:Rc,isColonNode:Uc,isMediaAndSupportsKeywords:$c,isColorAdjusterFuncNode:qc,lastLineHasInlineComment:Vc}=Iu;function Wc(e){switch(e.trailingComma){case"all":case"es5":return!0;default:return!1}}function Yc(e,t,n){const r=e.getValue(),o=[];let s=0;return e.map((e=>{const i=r.nodes[s-1];if(i&&"css-comment"===i.type&&"prettier-ignore"===i.text.trim()){const n=e.getValue();o.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else o.push(e.call(n));s!==r.nodes.length-1&&("css-comment"===r.nodes[s+1].type&&!$u(t.originalText,t.locStart(r.nodes[s+1]),{backwards:!0})&&"yaml"!==r.nodes[s].type&&"toml"!==r.nodes[s].type||"css-atrule"===r.nodes[s+1].type&&"else"===r.nodes[s+1].name&&"css-comment"!==r.nodes[s].type?o.push(" "):(o.push(t.__isHTMLStyleAttribute?Ku:Ju),qu(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[s].type&&"toml"!==r.nodes[s].type&&o.push(Ju))),s++}),"nodes"),Wu(o)}const Kc=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Jc=new RegExp(Kc.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function zc(e,t){return e.replace(Kc,(e=>Ru(e,t)))}function Gc(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Hc(e){return e.replace(Jc,((e,t,n,r,o)=>!n&&r?Xc(r)+rc(o||""):e))}function Xc(e){return ju(e).replace(/\.0(?=$|e)/,"")}var Qc={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return Wu([r.raw,Ju]);case"css-root":{const r=Yc(e,t,n);return r.parts.length?Wu([r,t.__isHTMLStyleAttribute?"":Ju]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return Wu([e.call(n,"selector"),r.important?" !important":"",r.nodes?Wu([r.selector&&"selector-unknown"===r.selector.type&&Vc(r.selector.value)?Ku:" ","{",r.nodes.length>0?Xu(Wu([Ju,Yc(e,t,n)])):"",Ju,"}",hc(r)?";":""]):";"]);case"css-decl":{const o=e.getParentNode();return Wu([r.raws.before.replace(/[\s;]/g,""),sc(e)?r.prop:rc(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",xc(r)?ec(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?Wu([" {",Xu(Wu([zu,Yc(e,t,n)])),zu,"}"]):Nc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const o=e.getParentNode(),s=Oc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(fc(t)){if(r.mixin)return Wu([e.call(n,"selector"),r.important?" !important":"",s?"":";"]);if(r.function)return Wu([r.name,Wu([e.call(n,"params")]),s?"":";"]);if(r.variable)return Wu(["@",r.name,": ",r.value?Wu([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?Wu(["{",Xu(Wu([r.nodes.length>0?zu:"",Yc(e,t,n)])),zu,"}"]):"",s?"":";"])}return Wu(["@",_c(r)||r.name.endsWith(":")?r.name:rc(r.name),r.params?Wu([_c(r)?"":Oc(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?Wu([Ju,Ju]):/^\s*\n/.test(r.raws.afterName)?Ju:" ":" ",e.call(n,"params")]):"",r.selector?Xu(Wu([" ",e.call(n,"selector")])):"",r.value?Gu(Wu([" ",e.call(n,"value"),dc(r)?Fc(r)?" ":Ku:""])):"else"===r.name?" ":"",r.nodes?Wu([dc(r)?"":" ","{",Xu(Wu([r.nodes.length>0?zu:"",Yc(e,t,n)])),zu,"}"]):s?"":";"])}case"media-query-list":{const t=[];return e.each((e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))}),"nodes"),Gu(Xu(Yu(Ku,t)))}case"media-query":return Wu([Yu(" ",e.map(n,"nodes")),pc(e,r)?"":","]);case"media-type":case"media-value":return Hc(zc(r.value,t));case"media-feature-expression":return r.nodes?Wu(["(",Wu(e.map(n,"nodes")),")"]):r.value;case"media-feature":return rc(zc(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return Wu([r.value," "]);case"media-keyword":case"selector-string":return zc(r.value,t);case"media-url":return zc(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return Gu(Wu([ic(e,"custom-selector")?Wu([tc(e,"css-atrule").customSelector,Ku]):"",Yu(Wu([",",ic(e,["extend","custom-selector","nest"])?Ku:Ju]),e.map(n,"nodes"))]));case"selector-selector":return Gu(Xu(Wu(e.map(n,"nodes"))));case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),o=n&&t.nodes[n-1];return Wu([r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===o.type?r.value:Hc(uc(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return Wu(["#",r.value]);case"selector-class":return Wu([".",Hc(zc(r.value,t))]);case"selector-attribute":return Wu(["[",r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?Gc(zc(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ku;return Wu([n,r.value,pc(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ku:"",o=Hc(zc(r.value.trim(),t))||Ku;return Wu([n,o])}case"selector-universal":return Wu([r.namespace?Wu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return Wu([rc(r.value),r.nodes&&r.nodes.length>0?Wu(["(",Yu(", ",e.map(n,"nodes")),")"]):""]);case"selector-unknown":{const n=tc(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Hc(zc(rc(r.value),t));const o=e.getParentNode();if(o.raws&&o.raws.selector){const e=t.locStart(o),n=e+o.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Wu([r.inline?"//":"/*",Vu(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),o=e.getParentNode(1),s=nc(e),i=s&&"value-value"===t.type&&("grid"===s||s.startsWith("grid-template")),a=tc(e,"css-atrule"),u=a&&dc(a),c=e.map(n,"groups"),l=[],p=oc(e,"url");let f=!1,d=!1;for(let t=0;t0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return Wu([r.open?e.call(n,"open"):"",Yu(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e{const t=e.getValue(),r=n(e);return kc(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Gu(r.contents.contents.parts[1]),Gu(Qu(r))):r}),"groups"))])),Zu(!a&&lc(t.parser,t.originalText)&&s&&Wc(t)?",":""),zu,r.close?e.call(n,"close"):""]),{shouldBreak:s})}case"value-func":return Wu([r.value,ic(e,"supports")&&$c(r)?" ":"",e.call(n,"group")]);case"value-number":return Wu([Xc(r.value),rc(r.unit)]);case"value-word":return r.isColor&&r.isHex||cc(r.value)?r.value.toLowerCase():r.value;case"value-colon":return Wu([r.value,oc(e,"url")?"":Ku]);case"value-string":return Ru(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return Wu(["@",r.value]);default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:hu,insertPragma:Pu,hasPrettierIgnore:Uu,massageAstNode:uu};const Zc="Common";var el={bracketSpacing:{since:"0.0.0",category:Zc,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Zc,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Zc,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},tl={singleQuote:el.singleQuote},nl=function(e,t){const{languageId:n}=e,r=ht(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},rl="markup",ol="source.css",sl="text/css",il="#563d7c",al=[".css"],ul={name:"CSS",type:rl,tmScope:ol,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:sl,color:il,extensions:al,languageId:50},cl=Object.freeze({__proto__:null,name:"CSS",type:rl,tmScope:ol,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:sl,color:il,extensions:al,languageId:50,default:ul}),ll="PostCSS",pl="markup",fl="source.postcss",dl=[".pcss",".postcss"],hl="text",gl=262764437,ml={name:ll,type:pl,tmScope:fl,group:"CSS",extensions:dl,aceMode:hl,languageId:gl},yl=Object.freeze({__proto__:null,name:ll,type:pl,tmScope:fl,group:"CSS",extensions:dl,aceMode:hl,languageId:gl,default:ml}),Dl="Less",vl="markup",El=[".less"],bl="source.css.less",Cl="less",Al="text/css",wl={name:Dl,type:vl,group:"CSS",extensions:El,tmScope:bl,aceMode:Cl,codemirrorMode:"css",codemirrorMimeType:Al,languageId:198},Sl=Object.freeze({__proto__:null,name:Dl,type:vl,group:"CSS",extensions:El,tmScope:bl,aceMode:Cl,codemirrorMode:"css",codemirrorMimeType:Al,languageId:198,default:wl}),xl="SCSS",Fl="markup",Tl="source.css.scss",kl="scss",_l="text/x-scss",Ol=[".scss"],Nl={name:xl,type:Fl,tmScope:Tl,group:"CSS",aceMode:kl,codemirrorMode:"css",codemirrorMimeType:_l,extensions:Ol,languageId:329},Bl=Object.freeze({__proto__:null,name:xl,type:Fl,tmScope:Tl,group:"CSS",aceMode:kl,codemirrorMode:"css",codemirrorMimeType:_l,extensions:Ol,languageId:329,default:Nl}),Ml=it(cl),Ll=it(yl),Il=it(Sl),Pl=it(Bl);var jl={languages:[nl(Ml,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]}))),nl(Ll,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),nl(Il,(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),nl(Pl,(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],options:tl,printers:{postcss:Qc}};var Rl={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:Ul,join:$l,hardline:ql,line:Vl,softline:Wl,group:Yl,indent:Kl,ifBreak:Jl}=Ui.builders,{hasIgnoreComment:zl}=mi,{isNextLineEmpty:Gl}=la,{insertPragma:Hl}=Rl;function Xl(e,t,n){return 0===n.directives.length?"":Ul([" ",Yl(Kl(Ul([Wl,$l(Ul([Jl(""," "),Wl]),e.map(t,"directives"))])))])}function Ql(e,t,n){const r=e.getValue().length;return e.map(((e,o)=>{const s=n(e);return Gl(t.originalText,e.getValue(),t.locEnd)&&on(e)),"interfaces");for(let e=0;e0&&o.push(Zl(s[e-1],n,t)),o.push(i[e])}return o}var tp={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":{const o=[];return e.map(((e,s)=>{o.push(Ul([e.call(n)])),s!==r.definitions.length-1&&(o.push(ql),Gl(t.originalText,e.getValue(),t.locEnd)&&o.push(ql))}),"definitions"),Ul([Ul(o),ql])}case"OperationDefinition":{const o="{"!==t.originalText[t.locStart(r)],s=!!r.name;return Ul([o?r.operation:"",o&&s?Ul([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"variableDefinitions"))])),Wl,")"])):"",Xl(e,n,r),r.selectionSet&&(o||s)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return Ul(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"variableDefinitions"))])),Wl,")"])):""," on ",e.call(n,"typeCondition"),Xl(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return Ul(["{",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"selections"))])),ql,"}"]);case"Field":return Yl(Ul([r.alias?Ul([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",Xl(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?Ul(['"""',ql,$l(ql,r.value.replace(/"""/g,"\\$&").split("\n")),ql,'"""']):Ul(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Ul(["$",e.call(n,"name")]);case"ListValue":return Yl(Ul(["[",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"values"))])),Wl,"]"]));case"ObjectValue":return Yl(Ul(["{",t.bracketSpacing&&r.fields.length>0?" ":"",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.map(n,"fields"))])),Wl,Jl("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Ul([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Ul(["@",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Ul([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Ul([" = ",e.call(n,"defaultValue")]):"",Xl(e,n,r)]);case"TypeExtensionDefinition":return Ul(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Ul([" implements ",Ul(ep(e,t,n))]):"",Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"FieldDefinition":return Ul([e.call(n,"description"),r.description?ql:"",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",": ",e.call(n,"type"),Xl(e,n,r)]);case"DirectiveDefinition":return Ul([e.call(n,"description"),r.description?ql:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Yl(Ul(["(",Kl(Ul([Wl,$l(Ul([Jl("",", "),Wl]),e.call((e=>Ql(e,t,n)),"arguments"))])),Wl,")"])):"",r.repeatable?" repeatable":"",Ul([" on ",$l(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Xl(e,n,r),r.values.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"values"))])),ql,"}"]):""]);case"EnumValueDefinition":return Ul([e.call(n,"description"),r.description?ql:"",e.call(n,"name"),Xl(e,n,r)]);case"InputValueDefinition":return Ul([e.call(n,"description"),r.description?r.description.block?ql:Vl:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Ul([" = ",e.call(n,"defaultValue")]):"",Xl(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"SchemaDefinition":return Ul(["schema",Xl(e,n,r)," {",r.operationTypes.length>0?Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"operationTypes"))])):"",ql,"}"]);case"OperationTypeDefinition":return Ul([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Xl(e,n,r),r.fields.length>0?Ul([" {",Kl(Ul([ql,$l(ql,e.call((e=>Ql(e,t,n)),"fields"))])),ql,"}"]):""]);case"FragmentSpread":return Ul(["...",e.call(n,"name"),Xl(e,n,r)]);case"InlineFragment":return Ul(["...",r.typeCondition?Ul([" on ",e.call(n,"typeCondition")]):"",Xl(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Yl(Ul([e.call(n,"description"),r.description?ql:"",Yl(Ul(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Xl(e,n,r),r.types.length>0?Ul([" =",Jl(""," "),Kl(Ul([Jl(Ul([Vl," "])),$l(Ul([Vl,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Ul([e.call(n,"description"),r.description?ql:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Xl(e,n,r)]);case"NonNullType":return Ul([e.call(n,"type"),"!"]);case"ListType":return Ul(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:zl,insertPragma:Hl,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},np={bracketSpacing:el.bracketSpacing},rp="GraphQL",op="data",sp=[".graphql",".gql",".graphqls"],ip="source.graphql",ap="text",up={name:rp,type:op,extensions:sp,tmScope:ip,aceMode:ap,languageId:139};var cp={languages:[nl(it(Object.freeze({__proto__:null,name:rp,type:op,extensions:sp,tmScope:ip,aceMode:ap,languageId:139,default:up})),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],options:np,printers:{graphql:tp}};function lp(e,t){return e&&t.some((t=>e.type===t))}function pp(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},o=r.children||r.body||[],s=o.indexOf(n);return-1!==s&&o[s+t]}function fp(e,t=1){return pp(e,-t)}function dp(e){return pp(e,1)}function hp(e){return lp(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var gp={getNextNode:dp,getPreviousNode:fp,hasPrettierIgnore:function(e){const t=e.getValue(),n=fp(e,2);return hp(t)||hp(n)},isGlimmerComponent:function(e){return lp(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return lp(dp(e),t)},isNodeOfSomeType:lp,isParentOfSomeType:function(e,t){return lp(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return lp(fp(e),t)},isWhitespaceNode:function(e){return lp(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:mp,join:yp,softline:Dp,hardline:vp,line:Ep,group:bp,indent:Cp,ifBreak:Ap}=Ui.builders,{getNextNode:wp,getPreviousNode:Sp,hasPrettierIgnore:xp,isGlimmerComponent:Fp,isNextNodeOfSomeType:Tp,isParentOfSomeType:kp,isPreviousNodeOfSomeType:_p,isWhitespaceNode:Op}=gp,Np=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Bp(e,t,n){return mp(e.map(((r,o)=>{const s=e.getValue(),i=0===o,a=o===e.getParentNode(0).children.length-1&&!i;return Op(s)&&a?n(r,t,n):i?mp([Dp,n(r,t,n)]):n(r,t,n)}),"children"))}function Mp(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},o=t.singleQuote?r:n,s=o===r?n:r;let i=!1;(e.includes(o.quote)||e.includes(s.quote))&&(i=(e.match(o.regex)||[]).length>(e.match(s.regex)||[]).length);const a=i?s:o,u=e.replace(a.regex,"\\".concat(a.quote));return mp([a.quote,u,a.quote])}function Lp(e,t){return e.call(t,"path")}function Ip(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Pp(e,t){const n=[Lp(e,t),...Ip(e,t)];return Cp(bp(yp(Ep,n)))}function jp(e){const t=e.getValue();return t.program&&t.program.blockParams.length?mp([" as |",t.program.blockParams.join(" "),"|"]):""}function Rp(e,t,{open:n=!1,close:r=!1}={}){return bp(mp([n?"{{~#":"{{#",Pp(e,t),jp(e),Dp,r?"~}}":"}}"]))}function Up(e,t,{open:n=!1,close:r=!1}={}){return mp([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function $p(e){return(e="string"==typeof e?e:"").split("\n").length-1}function qp(e=0,t=0){return new Array(Math.min(e,t)).fill(vp)}function Vp(e,t,n){let r=0,o=0;for(;;){if(o===e.length)return null;let s=e.indexOf("\n",o);if(-1===s&&(s=e.length),r===t)return o+n>s?null:o+n;if(-1===s)return null;r+=1,o=s+1}}var Wp={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(xp(e)){const e=Vp(t.originalText,r.loc.start.line-1,r.loc.start.column),n=Vp(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return bp(mp(e.map(n,"body")));case"ElementNode":{const o=r.children.length>0,s=r.children.some((e=>!Op(e))),i=Fp(r)&&(!o||!s)||Np.includes(r.tag),a=i?mp([" />",Dp]):">",u=i?"/>":">",c=(e,t)=>Cp(mp([r.attributes.length?Ep:"",yp(Ep,e.map(t,"attributes")),r.modifiers.length?Ep:"",yp(Ep,e.map(t,"modifiers")),r.comments.length?Ep:"",yp(Ep,e.map(t,"comments"))])),l=wp(e);return mp([bp(mp(["<",r.tag,c(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Ap(Dp,""),Ap(u,a)])),i?"":bp(mp([s?Cp(Bp(e,t,n)):"",Ap(o?vp:"",""),mp([""])])),l&&"ElementNode"===l.type?vp:""])}case"BlockStatement":{const t=e.getParentNode(1),o=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],s=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],i=s?e=>e:Cp,a=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return mp([o?mp([r.openStrip.open?"{{~else ":"{{else ",Pp(e,n),r.openStrip.close?"~}}":"}}"]):Rp(e,n,r.openStrip),Cp(mp([vp,e.call(n,"program")])),r.inverse&&!s?mp([vp,a]):"",r.inverse?i(mp([vp,e.call(n,"inverse")])):"",o?"":mp([vp,Up(e,n,r.closeStrip)])]);if(o)return mp([mp([r.openStrip.open?"{{~else":"{{else ",Pp(e,n),r.openStrip.close?"~}}":"}}"]),Cp(mp([vp,e.call(n,"program")]))]);const u=r.program.body.some((e=>!Op(e)));return mp([Rp(e,n,r.openStrip),bp(mp([Cp(mp([Dp,e.call(n,"program")])),u?vp:Dp,Up(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return bp(mp(["{{",Pp(e,n),Dp,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:o,close:s}=r.strip,i=(t?"{{{":"{{")+(o?"~":""),a=(s?"~":"")+(t?"}}}":"}}"),u=kp(e,["AttrNode","ConcatStatement","ElementNode"])?[i,Cp(Dp)]:[i];return bp(mp([...u,Pp(e,n),Dp,a]))}case"SubExpression":{const t=Ip(e,n),r=t.length>0?Cp(mp([Ep,bp(yp(Ep,t))])):"";return bp(mp(["(",Lp(e,n),r,Dp,")"]))}case"AttrNode":{const o="TextNode"===r.value.type;if(o&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return mp([r.name]);const s=e.call(n,"value"),i=o?Mp(s.parts.join(),t):s;return mp([r.name,"=",i])}case"ConcatStatement":return mp(['"',mp(e.map((e=>n(e)),"parts").filter((e=>""!==e))),'"']);case"Hash":return mp([yp(Ep,e.map(n,"pairs"))]);case"HashPair":return mp([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!Sp(e),o=!wp(e),s=!/\S/.test(r.chars),i=$p(r.chars),a="Block"===e.getParentNode(0).type,u="ElementNode"===e.getParentNode(0).type,c="Template"===e.getParentNode(0).type;let l=function(e){return $p(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),p=function(e){return $p(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||o)&&s&&(a||u||c))return"";s&&i?(l=Math.min(i,t),p=0):(Tp(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)),(_p(e,["ElementNode"])||_p(e,["BlockStatement"]))&&(l=Math.max(l,1)));let f="",d="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(f=" "),n({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],printers:{glimmer:Wp}},ef=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),tf=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],nf=["title"],rf=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],of=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],sf=["autoplay","controls","crossorigin","loop","muted","preload","src"],af=["href","target"],uf=["color","face","size"],cf=["dir"],lf=["cite"],pf=["alink","background","bgcolor","link","text","vlink"],ff=["clear"],df=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],hf=["height","width"],gf=["align"],mf=["align","char","charoff","span","valign","width"],yf=["align","char","charoff","span","valign","width"],Df=["value"],vf=["cite","datetime"],Ef=["open"],bf=["title"],Cf=["open"],Af=["compact"],wf=["align"],Sf=["compact"],xf=["height","src","type","width"],Ff=["disabled","form","name"],Tf=["color","face","size"],kf=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],_f=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Of=["cols","rows"],Nf=["align"],Bf=["align"],Mf=["align"],Lf=["align"],If=["align"],Pf=["align"],jf=["profile"],Rf=["align","noshade","size","width"],Uf=["manifest","version"],$f=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],qf=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Vf=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Wf=["cite","datetime"],Yf=["prompt"],Kf=["accesskey","for","form"],Jf=["accesskey","align"],zf=["type","value"],Gf=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Hf=["name"],Xf=["compact"],Qf=["charset","content","http-equiv","name","scheme"],Zf=["high","low","max","min","optimum","value"],ed=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],td=["compact","reversed","start","type"],nd=["disabled","label"],rd=["disabled","label","selected","value"],od=["for","form","name"],sd=["align"],id=["name","type","value","valuetype"],ad=["width"],ud=["max","value"],cd=["cite"],ld=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],pd=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],fd=["name"],dd=["media","sizes","src","srcset","type"],hd=["media","nonce","title","type"],gd=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],md=["align","char","charoff","valign"],yd=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Dd=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],vd=["align","char","charoff","valign"],Ed=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],bd=["align","char","charoff","valign"],Cd=["datetime"],Ad=["align","bgcolor","char","charoff","valign"],wd=["default","kind","label","src","srclang"],Sd=["compact","type"],xd=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Fd={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:tf,abbr:nf,applet:rf,area:of,audio:sf,base:af,basefont:uf,bdo:cf,blockquote:lf,body:pf,br:ff,button:df,canvas:hf,caption:gf,col:mf,colgroup:yf,data:Df,del:vf,details:Ef,dfn:bf,dialog:Cf,dir:Af,div:wf,dl:Sf,embed:xf,fieldset:Ff,font:Tf,form:kf,frame:_f,frameset:Of,h1:Nf,h2:Bf,h3:Mf,h4:Lf,h5:If,h6:Pf,head:jf,hr:Rf,html:Uf,iframe:$f,img:qf,input:Vf,ins:Wf,isindex:Yf,label:Kf,legend:Jf,li:zf,link:Gf,map:Hf,menu:Xf,meta:Qf,meter:Zf,object:ed,ol:td,optgroup:nd,option:rd,output:od,p:sd,param:id,pre:ad,progress:ud,q:cd,script:ld,select:pd,slot:fd,source:dd,style:hd,table:gd,tbody:md,td:yd,textarea:Dd,tfoot:vd,th:Ed,thead:bd,time:Cd,tr:Ad,track:wd,ul:Sd,video:xd},Td=Object.freeze({__proto__:null,a:tf,abbr:nf,applet:rf,area:of,audio:sf,base:af,basefont:uf,bdo:cf,blockquote:lf,body:pf,br:ff,button:df,canvas:hf,caption:gf,col:mf,colgroup:yf,data:Df,del:vf,details:Ef,dfn:bf,dialog:Cf,dir:Af,div:wf,dl:Sf,embed:xf,fieldset:Ff,font:Tf,form:kf,frame:_f,frameset:Of,h1:Nf,h2:Bf,h3:Mf,h4:Lf,h5:If,h6:Pf,head:jf,hr:Rf,html:Uf,iframe:$f,img:qf,input:Vf,ins:Wf,isindex:Yf,label:Kf,legend:Jf,li:zf,link:Gf,map:Hf,menu:Xf,meta:Qf,meter:Zf,object:ed,ol:td,optgroup:nd,option:rd,output:od,p:sd,param:id,pre:ad,progress:ud,q:cd,script:ld,select:pd,slot:fd,source:dd,style:hd,table:gd,tbody:md,td:yd,textarea:Dd,tfoot:vd,th:Ed,thead:bd,time:Cd,tr:Ad,track:wd,ul:Sd,video:xd,default:Fd}),kd=it(ef),_d=it(Td);const{CSS_DISPLAY_TAGS:Od,CSS_DISPLAY_DEFAULT:Nd,CSS_WHITE_SPACE_TAGS:Bd,CSS_WHITE_SPACE_DEFAULT:Md}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},Ld=Id(kd);function Id(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Pd(e,t){return!(!e.endSourceSpan||("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)&&("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)&&("ieConditionalComment"!==e.type||e.complete)&&("vue"!==t.parser||"element"!==e.type||"root"!==e.parent.type||["template","style","script","html"].includes(e.fullName))&&(!Gd(e)||!e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))))}function jd(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Rd(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Hd(e)&&("script"===e.name||"style"===e.name))}function Ud(e){return"yaml"===e.type||"toml"===e.type}function $d(e){return Xd(e).startsWith("pre")}function qd(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vd(e){return Jd(e)||"element"===e.type&&"br"===e.fullName||Wd(e)}function Wd(e){return Yd(e)&&Kd(e)}function Yd(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Jd(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function zd(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Gd(e){return Xd(e).startsWith("pre")}function Hd(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Xd(e){return"element"===e.type&&(!e.namespace||Hd(e))&&Bd[e.name]||Md}var Qd={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(_d,Id),HTML_TAGS:Ld,canHaveInterpolation:function(e){return e.children&&!Rd(e)},countChars:function(e,t){let n=0;for(let r=0;r!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const o=e.stack[r];o&&"object"==typeof o&&!Array.isArray(o)&&t(o)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&ee.slice(t))).join("\n")},forceBreakChildren:qd,forceBreakContent:function(e){return qd(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){return e.children&&e.children.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&Yd(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Kd(e.lastChild))},forceNextEmptyLine:function(e){return Ud(e)||e.next&&e.sourceSpan.end.line+1"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||Hd(e))&&Od[e.name]||Nd}},getNodeCssStyleWhiteSpace:Xd,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:jd,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!(t=e.cssDisplay,zd(t)||"inline-block"===t||Rd(e));var t},isFrontMatterNode:Ud,isIndentationSensitiveNode:$d,isLeadingSpaceSensitiveNode:function(e){const t=!(Ud(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Gd(e.parent)&&(!e.prev&&("root"===e.parent.type||Gd(e)&&e.parent||Rd(e.parent)||(n=e.parent.cssDisplay,zd(n)||"inline-block"===n))||e.prev&&!function(e){return!zd(e)}(e.prev.cssDisplay))));var n;return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:Gd,isScriptLikeTag:Rd,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!(Ud(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Gd(e.parent)&&(!e.next&&("root"===e.parent.type||Gd(e)&&e.parent||Rd(e.parent)||(t=e.parent.cssDisplay,zd(t)||"inline-block"===t))||e.next&&!function(e){return!zd(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return Rd(e)||"interpolation"===e.type||$d(e)},isUnknownNamespace:Hd,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return Jd(e)||e.prev&&Vd(e.prev)||Wd(e)},preferHardlineAsTrailingSpaces:Vd,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(jd(e)||Pd(e.parent,t))},shouldPreserveContent:Pd,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}};const{canHaveInterpolation:Zd,getNodeCssStyleDisplay:eh,isDanglingSpaceSensitiveNode:th,isIndentationSensitiveNode:nh,isLeadingSpaceSensitiveNode:rh,isTrailingSpaceSensitiveNode:oh,isWhitespaceSensitiveNode:sh}=Qd,ih=[function(e){return e.map((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e}))},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o"cdata"===e.type),(e=>"")))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map((e=>{if(!Zd(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let o=r.sourceSpan.start,s=null;const i=r.value.split(n);for(let n=0;n{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const n=sh(e),r=nh(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(((e,r)=>{if("text"!==r.type||n)return e.concat(r);const o=[],[,s,i,a]=r.value.match(/^(\s*)([\s\S]*?)(\s*)$/);s&&o.push({type:t});const u=r.sourceSpan.constructor;return i&&o.push({type:"text",value:i,sourceSpan:new u(r.sourceSpan.start.moveBy(s.length),r.sourceSpan.end.moveBy(-a.length))}),a&&o.push({type:t}),e.concat(o)}),[]).reduce(((e,n,r,o)=>{if(n.type===t)return e;const s=0!==r&&o[r-1].type===t,i=r!==o.length-1&&o[r+1].type===t;return e.concat(Object.assign({},n,{hasLeadingSpaces:s,hasTrailingSpaces:i}))}),[])})}))},function(e,t){return e.map((e=>Object.assign(e,{cssDisplay:eh(e,t)})))},function(e){return e.map((e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})))},function(e,t){return e.map((e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})))},function(e){return e.map((e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:th(e)}):e.clone({children:e.children.map((e=>Object.assign({},e,{isLeadingSpaceSensitive:rh(e),isTrailingSpaceSensitive:oh(e)}))).map(((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})))}):e))},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r")+o.firstChild.value+"")+s.value,sourceSpan:new i(n.sourceSpan.start,s.sourceSpan.end),isTrailingSpaceSensitive:a,hasTrailingSpaces:u}))}else t.push(o)}return e.clone({children:t})}}return e}))}];var ah=function(e,t){for(const n of ih)e=n(e,t);return e};var uh={hasPragma:function(e){return/^\s*/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:ch,group:lh}}=Ui;var ph={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:o}=function(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;const s={};s.for=o[3].trim();const i=o[1].trim().replace(r,""),a=i.match(n);return a?(s.alias=i.replace(n,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=i,{left:"".concat([s.alias,s.iterator1,s.iterator2].filter(Boolean).join(",")),operator:o[2],right:s.for}}(e);return ch([lh(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const fh=/^\d+$/;var dh=e=>function(e){return e.sort().filter(((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1])))}(e.split(",").map((e=>{const t={};return e.trim().split(/\s+/).forEach(((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),o=e[e.length-1],s=parseInt(r,10),i=parseFloat(r);if("w"===o&&fh.test(r))t.width=s;else if("h"===o&&fh.test(r))t.height=s;else{if("x"!==o||Number.isNaN(i))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=i}})),t})));const{builders:{concat:hh,ifBreak:gh,join:mh,line:yh}}=Ui,Dh=dh;var vh={printImgSrcset:function(e){const t=Dh(e),n=t.some((e=>e.width)),r=t.some((e=>e.height));if(n+r+t.some((e=>e.density))>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"width":r?"height":"density",s=n?"w":r?"h":"x",i=e=>Math.max(...e),a=t.map((e=>e.url)),u=i(a.map((e=>e.length))),c=t.map((e=>e[o])).map((e=>e?e.toString():"")),l=c.map((e=>{const t=e.indexOf(".");return-1===t?e.length:t})),p=i(l);return mh(hh([",",yh]),a.map(((e,t)=>{const n=[e],r=c[t];if(r){const o=u-e.length+1,i=p-l[t],a=" ".repeat(o+i);n.push(gh(a," "),r+s)}return hh(n)})))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:Eh,utils:{stripTrailingHardline:bh,mapDoc:Ch}}=Ui,{breakParent:Ah,dedentToRoot:wh,fill:Sh,group:xh,hardline:Fh,ifBreak:Th,indent:kh,join:_h,line:Oh,literalline:Nh,markAsRoot:Bh,softline:Mh}=Eh,{countChars:Lh,countParents:Ih,dedentString:Ph,forceBreakChildren:jh,forceBreakContent:Rh,forceNextEmptyLine:Uh,getLastDescendant:$h,getPrettierIgnoreAttributeCommentData:qh,hasPrettierIgnore:Vh,inferScriptParser:Wh,isScriptLikeTag:Yh,isTextLikeNode:Kh,normalizeParts:Jh,preferHardlineAsLeadingSpaces:zh,shouldNotPrintClosingTag:Gh,shouldPreserveContent:Hh,unescapeQuoteEntities:Xh}=Qd,{replaceEndOfLineWith:Qh}=mi,{insertPragma:Zh}=uh,{printVueFor:eg,printVueSlotScope:tg,isVueEventBindingExpression:ng}=ph,{printImgSrcset:rg,printClassNames:og}=vh;function sg(e){const t=Jh(e);return 0===t.length?"":1===t.length?t[0]:Eh.concat(t)}function ig(e,t,n){const r=e.getValue();if(jh(r))return sg([Ah,sg(e.map((e=>{const t=e.getValue(),n=t.prev?i(t.prev,t):"";return sg([n?sg([n,Uh(t.prev)?Fh:""]):"",s(e)])}),"children"))]);const o=r.children.map((()=>Symbol("")));return sg(e.map(((e,t)=>{const n=e.getValue();if(Kh(n)){if(n.prev&&Kh(n.prev)){const t=i(n.prev,n);if(t)return Uh(n.prev)?sg([Fh,Fh,s(e)]):sg([t,s(e)])}return s(e)}const r=[],a=[],u=[],c=[],l=n.prev?i(n.prev,n):"",p=n.next?i(n,n.next):"";return l&&(Uh(n.prev)?r.push(Fh,Fh):l===Fh?r.push(Fh):Kh(n.prev)?a.push(l):a.push(Th("",Mh,{groupId:o[t-1]}))),p&&(Uh(n)?Kh(n.next)&&c.push(Fh,Fh):p===Fh?Kh(n.next)&&c.push(Fh):u.push(p)),sg([].concat(r,xh(sg([sg(a),xh(sg([s(e),sg(u)]),{id:o[t]})])),c))}),"children"));function s(e){const r=e.getValue();return Vh(r)?sg([].concat(Dg(r,t),Qh(t.originalText.slice(t.locStart(r)+(r.prev&&dg(r.prev)?bg(r).length:0),t.locEnd(r)-(r.next&&gg(r.next)?wg(r,t).length:0)),Nh),Eg(r,t))):Hh(r,t)?sg([].concat(Dg(r,t),xh(ag(e,t,n)),Qh(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&hg(r.firstChild)?-Cg(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&yg(r.lastChild)?Ag(r,t).length:mg(r)?-wg(r.lastChild,t).length:0)),Nh),lg(r,t),Eg(r,t))):n(e)}function i(e,t){return Kh(e)&&Kh(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?zh(t)?Fh:Oh:"":zh(t)?Fh:Mh:dg(e)&&(Vh(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&gg(t)?"":!t.isLeadingSpaceSensitive||zh(t)||gg(t)&&e.lastChild&&yg(e.lastChild)&&e.lastChild.lastChild&&yg(e.lastChild.lastChild)?Fh:t.hasLeadingSpaces?Oh:Mh}}function ag(e,t,n){const r=e.getValue(),o="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return sg([ug(r,t),r.attrs&&0!==r.attrs.length?sg([kh(sg([o?" ":Oh,_h(Oh,(r=>{const o="boolean"==typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map((e=>{const r=e.getValue();return o(r)?sg(Qh(t.originalText.slice(t.locStart(r),t.locEnd(r)),Nh)):n(e)}),"attrs")})(r.prev&&"comment"===r.prev.type&&qh(r.prev.value)))])),r.firstChild&&hg(r.firstChild)||r.isSelfClosing&&mg(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?o?" ":Oh:o?"":Mh]):r.isSelfClosing?" ":"",r.isSelfClosing?"":cg(r)])}function ug(e,t){return e.prev&&dg(e.prev)?"":sg([Dg(e,t),bg(e)])}function cg(e){return e.firstChild&&hg(e.firstChild)?"":Cg(e)}function lg(e,t){return sg([e.isSelfClosing?"":pg(e,t),fg(e,t)])}function pg(e,t){return e.lastChild&&yg(e.lastChild)?"":sg([vg(e,t),Ag(e,t)])}function fg(e,t){return(e.next?gg(e.next):mg(e.parent))?"":sg([wg(e,t),Eg(e,t)])}function dg(e){return e.next&&!Kh(e.next)&&Kh(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function hg(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function gg(e){return e.prev&&!Kh(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function mg(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Kh($h(e.lastChild))}function yg(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Kh($h(e))}function Dg(e,t){return hg(e)?Cg(e.parent):gg(e)?wg(e.prev,t):""}function vg(e,t){return mg(e)?wg(e.lastChild,t):""}function Eg(e,t){return yg(e)?Ag(e.parent,t):dg(e)?bg(e.next):""}function bg(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Cg(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function Ag(e,t){if(e.isSelfClosing,Gh(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Sg(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Qh(t,Nh):Qh(Ph(t.replace(/^\s*?\n|\n\s*?$/g,"")),Fh):_h(Oh,t.split(/[\t\n\f\r ]+/)).parts}var xg={preprocess:ah,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),Eh.concat([xh(ig(e,t,n)),Fh]);case"element":case"ieConditionalComment":{const s=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return sg([xh(sg([xh(ag(e,t,n),{id:i}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Oh:"":sg([Rh(r)?Ah:"",(o=sg([s?Th(Mh,"",{groupId:i}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Oh:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?wh(Mh):Mh,ig(e,t,n)]),s?Th(kh(o),o,{groupId:i}):Yh(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?o:kh(o)),(r.next?gg(r.next):mg(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":s?Th(Mh,"",{groupId:i}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Oh:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Ih(e,(e=>e.parent&&"root"!==e.parent.type)),"}$")).test(r.lastChild.value)?"":Mh])])),lg(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return sg([ug(r),fg(r)]);case"interpolation":return sg([ug(r,t),sg(e.map(n,"children")),fg(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return sg([sg(Qh(n,Nh)),t?Fh:""])}return Sh(Jh([].concat(Dg(r,t),Sg(r),Eg(r,t))));case"docType":return sg([xh(sg([ug(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),fg(r,t)]);case"comment":return sg([Dg(r,t),sg(Qh(t.originalText.slice(t.locStart(r),t.locEnd(r)),Nh)),Eg(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=Xh(r.value),t=Lh(e,"'")Xh(e.value);let s=!1;const i=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(s=!0)},a=e=>xh(e),u=(e,t=!0)=>xh(sg([kh(sg([Mh,e])),t?Mh:""])),c=e=>s?a(e):u(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:i},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return u(rg(o()));if("class"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return og(e)}if("style"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return u(l(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return eg(o(),l);if("slot-scope"===e.fullName)return tg(o(),l);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=o();return c(ng(e)?l(e,{parser:"__js_expression"}):bh(l(e,{parser:"__vue_event_binding"})))}if(r(t))return c(l(o(),{parser:"__vue_expression"}));if(r(n))return c(l(o(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],s=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],i=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(t(o(),{parser:"__ng_action"}));if(r(s))return c(t(o(),{parser:"__ng_binding"}));if(r(i)){const t=o().trim();return u(Sh(Sg(e,t)),!t.includes("@@"))}if(r(n))return c(t(o(),{parser:"__ng_directive"}));const a=/\{\{([\s\S]+?)\}\}/g,p=o();if(a.test(p)){const e=[];return p.split(a).forEach(((n,r)=>{if(r%2==0)e.push(sg(Qh(n,Nh)));else try{e.push(xh(sg(["{{",kh(sg([Oh,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Oh,"}}"])))}catch(t){e.push("{{",sg(Qh(n,Nh)),"}}")}})),xh(sg(e))}}return null}(o,((e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t))),r);if(e)return sg([o.rawName,'="',xh(Ch(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"']);break}case"yaml":return Bh(sg(["---",Fh,0===o.value.trim().length?"":n(o.value,{parser:"yaml"}),"---"]))}}};const Fg="HTML";var Tg={htmlWhitespaceSensitivity:{since:"1.15.0",category:Fg,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:Fg,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kg="HTML",_g="markup",Og="text.html.basic",Ng="html",Bg="htmlmixed",Mg="text/html",Lg="#e34c26",Ig=["xhtml"],Pg=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],jg={name:kg,type:_g,tmScope:Og,aceMode:Ng,codemirrorMode:Bg,codemirrorMimeType:Mg,color:Lg,aliases:Ig,extensions:Pg,languageId:146},Rg=Object.freeze({__proto__:null,name:kg,type:_g,tmScope:Og,aceMode:Ng,codemirrorMode:Bg,codemirrorMimeType:Mg,color:Lg,aliases:Ig,extensions:Pg,languageId:146,default:jg}),Ug="markup",$g="#2c3e50",qg=[".vue"],Vg="text.html.vue",Wg="html",Yg={name:"Vue",type:Ug,color:$g,extensions:qg,tmScope:Vg,aceMode:Wg,languageId:391},Kg=Object.freeze({__proto__:null,name:"Vue",type:Ug,color:$g,extensions:qg,tmScope:Vg,aceMode:Wg,languageId:391,default:Yg}),Jg=it(Rg),zg=it(Kg);const Gg=[nl(Jg,(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),nl(Jg,(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])}))),nl(Jg,(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),nl(zg,(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))];var Hg={languages:Gg,printers:{html:xg},options:Tg};const{addLeadingComment:Xg,addTrailingComment:Qg,addDanglingComment:Zg,getNextNonSpaceNonCommentCharacterIndex:em}=la;function tm(e,t){const n=e.body.filter((e=>"EmptyStatement"!==e.type));0===n.length?Zg(e,t):Xg(n[0],t)}function nm(e,t){"BlockStatement"===e.type?tm(e,t):Xg(e,t)}function rm(e,t,n,r,o,s){return!(!n||"IfStatement"!==n.type||!r||(")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd)?(Qg(t,o),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Qg(t,o):Zg(n,o),0):"BlockStatement"===r.type?(tm(r,o),0):"IfStatement"===r.type?(nm(r.consequent,o),0):n.consequent!==r||(Xg(r,o),0)))}function om(e,t,n,r,o,s){return!(!n||"WhileStatement"!==n.type||!r||(")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd)?(Qg(t,o),0):"BlockStatement"!==r.type||(tm(r,o),0)))}function sm(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(Qg(t,r),0):"BlockStatement"===n.type?(tm(n,r),0):"TryStatement"===n.type?(nm(n.finalizer,r),0):"CatchClause"!==n.type||(nm(n.body,r),0)))}function im(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?Qg(e.decorators[e.decorators.length-1],r):Xg(e,r),0))}function am(e,t,n,r,o){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==mi.getNextNonSpaceNonCommentCharacter(e,n,o.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Qg(n,r),!0)}function um(e,t,n,r,o,s){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Qg(t,o),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&dm(n)&&")"===mi.getNextNonSpaceNonCommentCharacter(e,o,s.locEnd))return Qg(t,o),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,s.locEnd(mi.getLast(n.params||n.parameters)));const t=mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,s.locEnd(n.id));return mi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(s.locStart(o)>t)return tm(r,o),!0}return!1}function cm(e,t){return!(!e||"ImportSpecifier"!==e.type||(Xg(e,t),0))}function lm(e,t){return!(!e||"LabeledStatement"!==e.type||(Xg(e,t),0))}function pm(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Zg(t,n):Xg(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?Zg(e,n):Xg(e,n),0))}function fm(e){return"Block"===e.type||"CommentBlock"===e.type}function dm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function hm(e){return fm(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var gm={handleOwnLineComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return um(t,s,i,a,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type||(Xg(e,n),0))}(i,a,e)||rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||sm(i,s,a,e)||im(i,0,a,e)||cm(i,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(Xg(e,n),0))}(i,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&mi.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(mi.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Qg(e,r),!0))}(s,i,a,e)||pm(i,r,e,o)||function(e,t,n,r,o){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&mi.hasNewline(e,o.locEnd(r)))&&(Qg(n,r),!0)}(t,i,s,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(Xg(e,t),0))}(i,e)||am(t,i,s,e,n)||lm(i,e)},handleEndOfLineComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return function(e,t){return!(!e||!hm(t)||(Xg(e,t),0))}(a,e)||um(t,s,i,a,e,n)||function(e,t,n,r,o,s){const i=t&&!mi.hasNewlineInRange(o,s.locEnd(t),s.locStart(r));return!(t&&i||!e||"ConditionalExpression"!==e.type||!n||(Xg(n,r),0))}(i,s,a,e,t,n)||cm(i,e)||rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||sm(i,s,a,e)||im(i,0,a,e)||lm(i,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Xg(t.arguments[0],n),!0)}(s,i,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(Xg(e,t),0))}(i,e)||pm(i,r,e,o)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(Xg(e,n),0))}(i,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!fm(n)||(Xg(t,n),0))}(i,a,e)},handleRemainingComment:function(e,t,n,r,o){const{precedingNode:s,enclosingNode:i,followingNode:a}=e;return!!(rm(t,s,i,a,e,n)||om(t,s,i,a,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(Qg(e.value.left,n),0))}(i,s,e)||function(e,t,n,r){return!(")"!==mi.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(t&&(dm(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Zg(t,n),0):!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(Zg(t.value,n),0)))}(t,i,e,n)||am(t,i,s,e,n)||pm(i,r,e,o)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const o=em(e,n,r.locEnd);return"=>"===e.slice(o,o+2)&&(Zg(t,n),!0)}(t,i,e,n)||function(e,t,n,r,o){return!("("!==mi.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(Qg(n,r),0))}(t,i,s,e,n)||function(e,t,n,r,o){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(Xg(r.name,o),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(Qg(n.constraint,o),0)))}(0,i,s,a,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(Qg(e,t),0))}(i,e)||function(e,t,n,r,o){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==mi.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||(Qg(t,r),0))}(t,i,a,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((e=>e.leading&&t(e)))},isBlockComment:fm,isTypeCastComment:hm,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:mm,hasLeadingComment:ym}=gm,{builders:{indent:Dm,join:vm,line:Em,hardline:bm,softline:Cm,literalline:Am,concat:wm,group:Sm,dedentToRoot:xm},utils:{mapDoc:Fm,stripTrailingHardline:Tm}}=Ui;function km(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function _m(e,t){return Fm(e,(e=>{if(!e.parts)return e;const n=[];return e.parts.forEach((e=>{"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):km(e)):n.push(e)})),Object.assign({},e,{parts:n})}))}function Om(e){const t=[];let n=!1;return e.map((e=>e.trim())).forEach(((e,r,o)=>{""!==e&&(""===o[r-1]&&n?t.push(wm([bm,e])):t.push(e),n=!0)})),0===t.length?null:vm(bm,t)}function Nm(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((e=>"jsx"===e.name.name))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Bm(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...Mm)}const Mm=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Lm(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Pm(n.object)||jm(n);case"CallExpression":return Pm(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Pm(n.callee.object.object)||jm(n.callee.object))||"CallExpression"===n.callee.object.type&&Pm(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Im(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Pm(e){return"Identifier"===e.type&&"styled"===e.name}function jm(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Rm(e,t){return ym(e,(e=>mm(e)&&e.value===" ".concat(t," ")))}let Um=0;var $m=function(e,t,n,r){const o=e.getValue(),s=e.getParentNode(),i=e.getParentNode(1);switch(o.type){case"TemplateLiteral":{if([Nm,Lm,Im,Bm].some((t=>t(e)))){const r=o.quasis.map((e=>e.value.raw));let s=0;const i=r.reduce(((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+s+++"-id"+t),"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const o=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const o=Fm(e,(e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const o=t.indexOf("@"),s=o+1;if(o>-1&&"string"==typeof t[s]&&t[s].startsWith("prettier-placeholder")){const e=t[o],n=t[s],r=t.slice(s+1);t=t.slice(0,o).concat([e+n]).concat(r)}const i=t.findIndex((e=>"string"==typeof e&&e.startsWith("@prettier-placeholder")));if(i>-1){const e=t[i],o=t.slice(i+1),s=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),a=s[1],u=s[2],c=n[a];r++,t=t.slice(0,i).concat(["${",c,"}"+u]).concat(o)}return Object.assign({},e,{parts:t})}));return n.length===r?o:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!o)throw new Error("Couldn't insert all the expressions");return wm(["`",Dm(wm([bm,Tm(o)])),Cm,"`"])}(n(i,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return Rm(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){const r=o.expressions?e.map(t,"expressions"):[],s=o.quasis.length;if(1===s&&""===o.quasis[0].value.raw.trim())return"``";const i=[];for(let e=0;e2&&""===c[0].trim()&&""===c[1].trim(),d=l>2&&""===c[l-1].trim()&&""===c[l-2].trim(),h=c.every((e=>/^\s*(?:#[^\r\n]*)?$/.test(e)));if(!a&&/#[^\r\n]*$/.test(c[l-1]))return null;let g=null;g=h?Om(c):Tm(n(u,{parser:"graphql"})),g?(g=_m(g,!1),!t&&f&&i.push(""),i.push(g),!a&&d&&i.push("")):t||a||!f||i.push(""),p&&i.push(wm(["${",p,"}"]))}return wm(["`",Dm(wm([bm,vm(bm,i)])),bm,"`"])}const s=function(e){return Rm(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?"html":function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...Mm)}(e)?"angular":void 0;if(s)return function(e,t,n,r,o){const s=e.getValue(),i=Um;Um=Um+1>>>0;const a=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(i,"_IN_JS"),u=s.quasis.map(((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t))).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";const l=new RegExp(a("(\\d+)"),"g");let p=0;const f=Fm(Tm(n(u,{parser:r,__onHtmlRoot(e){p=e.children.length}})),(e=>{if("string"!=typeof e)return e;const t=[],n=e.split(l);for(let e=0;e1?Dm(Sm(f)):Sm(f),h,"`"]))}(e,t,n,s,r);break}case"TemplateElement":if(i&&"TaggedTemplateExpression"===i.type&&1===s.quasis.length&&"Identifier"===i.tag.type&&("md"===i.tag.name||"markdown"===i.tag.name)){const e=s.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return wm([""!==t?Dm(wm([Cm,a(e.replace(new RegExp("^".concat(t),"gm"),""))])):wm([Am,xm(a(e))]),Cm])}}function a(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return Tm(_m(t,!0))}};var qm=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach((e=>{delete t[e]})),e.loc&&null===e.loc.source&&delete t.loc.source,"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name))&&t.children.filter((e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type)).map((e=>e.expression)).reduce(((e,t)=>e.concat(t.quasis)),[]).forEach((e=>delete e.value)),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach((e=>delete e.value));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach(((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach((e=>delete e.value))}))}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach((e=>delete e.value)),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some((t=>e.value===" ".concat(t," ")))))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach((e=>delete e.value))};const{getLast:Vm,hasNewline:Wm,hasNewlineInRange:Ym,hasIgnoreComment:Km,hasNodeIgnoreComment:Jm,skipWhitespace:zm}=mi,Gm=jo.keyword.isIdentifierNameES5,Hm="(?:(?=.)\\s)",Xm=new RegExp("^".concat(Hm,"*:")),Qm=new RegExp("^".concat(Hm,"*::"));function Zm(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>Zm(e,t)));const n=t(e);return"boolean"==typeof n?n:Object.keys(e).some((n=>Zm(e[n],t)))}function ey(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}const ty=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function ny(e){return e&&ty.has(e.type)}function ry(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function oy(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function sy(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function iy(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function ay(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function uy(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function cy(e){return"get"===e.kind||"set"===e.kind}function ly(e,t,n){return n.locStart(e)===n.locStart(t)}function py(e,t){return cy(e)||ly(e,e.value,t)}const fy=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const dy=/^(skip|[fx]?(it|describe|test))$/;function hy(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const gy=new RegExp("([ \n\r\t]+)"),my=new RegExp("[^ \n\r\t]");function yy(e){return ry(e)&&(my.test(Ey(e))||!/\n/.test(Ey(e)))}function Dy(e,t,n){return uy(t)?Jm(t):t.comments&&t.comments.some((t=>t.leading&&Wm(e,n.locEnd(t))))}function vy(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function Ey(e){return e.extra?e.extra.raw:e.raw}var by={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!(t||"get"===e.kind||"set"===e.kind||!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(uy))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&ny(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some((e=>!e.leading&&!e.trailing))},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Qm)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Xm)},hasLeadingComment:function(e){return e.comments&&e.comments.some((e=>e.leading))},hasLeadingOwnLineComment:Dy,hasNakedLeftSide:ey,hasNewlineBetweenOrAfterDecorators:function(e,t){return Ym(t.originalText,t.locStart(e.decorators[0]),t.locEnd(Vm(e.decorators)))||Wm(t.originalText,t.locEnd(Vm(e.decorators)))},hasNgSideEffect:function(e){return Zm(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:Zm,hasPrettierIgnore:function(e){return Km(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&uy(t)&&uy(n)))return!1;let r=null;for(let e=n.children.indexOf(t);e>0;e--){const t=n.children[e-1];if("JSXText"!==t.type||yy(t)){r=t;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find((e=>"prettier-ignore"===e.value.trim()))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((e=>e.trailing))},identity:function(e){return e},isBinaryish:function(e){return fy.has(e.type)},isCallOrOptionalCallExpression:hy,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return ry(t)&&!yy(t)},isExportDeclaration:ny,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),o=zm(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(o,o+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(iy(n)){if(t+=1,t>1)return!0}else if(hy(n))for(const e of n.arguments)if(iy(e))return!0;return!1},isFunctionNotation:py,isFunctionOrArrowExpression:iy,isGetterOrSetter:cy,isJestEachTemplateLiteral:function(e,t){const n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:uy,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&ry(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter((e=>"EmptyStatement"!==e.type));return r&&r[r.length-1]===n},isLiteral:ry,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return hy(t)&&hy(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),o="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(o&&o.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null==e||r(e))):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:yy,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:oy,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||py(e,t))},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:sy,isStringPropSafeToCoerceToIdentifier:function(e,t){return sy(e.key)&&Gm(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&vy(e)||"TaggedTemplateExpression"===e.type&&vy(e.quasi))&&!Wm(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(ay(t)&&n&&e(n))return iy(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return ay(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&dy.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&dy.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||sy(t.arguments[0])))return!(t.arguments[2]&&!oy(t.arguments[2]))&&((2===t.arguments.length?iy(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||ay(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!uy(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||ly(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:gy,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=Vm(e.comments.filter((e=>!e.leading&&!e.trailing)));return t&&!gm.isBlockComment(t)},rawText:Ey,returnArgumentHasLeadingComment:function(e,t){if(Dy(e.originalText,t,e))return!0;if(ey(t)){let r,o=t;for(;r=(n=o).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(o=r,Dy(e.originalText,o,e))return!0}var n;return!1}};const{getLeftSidePathName:Cy,hasFlowShorthandAnnotationComment:Ay,hasNakedLeftSide:wy,hasNode:Sy}=by;function xy(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),o=e.getNode();if(e.getValue()!==o)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(o)&&Fy(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&Ay(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name));if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==o||"ArrowFunctionExpression"!==o.type&&"AssignmentExpression"!==o.type&&"AwaitExpression"!==o.type&&"BinaryExpression"!==o.type&&"ConditionalExpression"!==o.type&&"LogicalExpression"!==o.type&&"NewExpression"!==o.type&&"ObjectExpression"!==o.type&&"ParenthesizedExpression"!==o.type&&"SequenceExpression"!==o.type&&"TaggedTemplateExpression"!==o.type&&"UnaryExpression"!==o.type&&"UpdateExpression"!==o.type&&"YieldExpression"!==o.type))return!0;if("ExportDefaultDeclaration"===n.type)return Ty(e,t)||"SequenceExpression"===o.type;if("Decorator"===n.type&&n.expression===o){let e=!1,t=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===o&&"SequenceExpression"!==o.type&&mi.startsWithNoLookaheadToken(o,!1)||"ExpressionStatement"===n.type&&mi.startsWithNoLookaheadToken(o,!0))return!0;switch(o.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===o;case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===o.operator&&t(o))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===o;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":return n.left===o&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"LogicalExpression":if("LogicalExpression"===o.type)return n.operator!==o.operator;case"BinaryExpression":{if(!o.operator&&"TSTypeAssertion"!==o.type)return!0;const e=n.operator,t=mi.getPrecedence(e),s=o.operator,i=mi.getPrecedence(s);return t>i||(t===i&&"right"===r?(Fs.strictEqual(n.right,o),!0):t===i&&!mi.shouldFlatten(e,s)||(t"ObjectTypeAnnotation"===e.type&&Sy(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}(o)}return!1}function Fy(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(Fy);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(Fy);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(Fy);break;case"UnaryExpression":if(n.prefix)return e.callParent(Fy)}return!1}function Ty(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!xy(e,t):!(!wy(n)||"ExportDefaultDeclaration"!==r.type&&xy(e,t))&&e.call((e=>Ty(e,t)),...Cy(e,n))}var ky=xy;const{builders:{concat:_y,join:Oy,line:Ny}}=Ui;var By={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((e=>{const{params:t}=e.getValue();return _y([t.length>1?"(":"",Oy(_y([",",Ny]),e.map(n,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((e=>Oy(_y([",",Ny]),e.map(n,"params"))),"program","body",0):void 0}};var My=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:Ly,getNextNonSpaceNonCommentCharacter:Iy,hasNewline:Py,hasNewlineInRange:jy,getLast:Ry,getStringWidth:Uy,printString:$y,printNumber:qy,hasIgnoreComment:Vy,hasNodeIgnoreComment:Wy,getPenultimate:Yy,startsWithNoLookaheadToken:Ky,getIndentSize:Jy,getPreferredQuote:zy}=mi,{isNextLineEmpty:Gy,isNextLineEmptyAfterIndex:Hy,getNextNonSpaceNonCommentCharacterIndex:Xy}=la,{insertPragma:Qy}=Du,{printHtmlBinding:Zy,isVueEventBindingExpression:eD}=By,{classChildNeedsASIProtection:tD,classPropMayCauseASIProblems:nD,conditionalExpressionChainContainsJSX:rD,getFlowVariance:oD,getLeftSidePathName:sD,getParentExportDeclaration:iD,getTypeScriptMappedTypeModifier:aD,hasDanglingComments:uD,hasFlowAnnotationComment:cD,hasFlowShorthandAnnotationComment:lD,hasLeadingComment:pD,hasLeadingOwnLineComment:fD,hasNakedLeftSide:dD,hasNewlineBetweenOrAfterDecorators:hD,hasNgSideEffect:gD,hasPrettierIgnore:mD,hasTrailingComment:yD,identity:DD,isBinaryish:vD,isCallOrOptionalCallExpression:ED,isEmptyJSXElement:bD,isExportDeclaration:CD,isFlowAnnotationComment:AD,isFunctionCompositionArgs:wD,isFunctionNotation:SD,isFunctionOrArrowExpression:xD,isGetterOrSetter:FD,isJestEachTemplateLiteral:TD,isJSXNode:kD,isJSXWhitespaceExpression:_D,isLastStatement:OD,isLiteral:ND,isLongCurriedCallExpression:BD,isMeaningfulJSXText:MD,isMemberExpressionChain:LD,isMemberish:ID,isNgForOf:PD,isNumericLiteral:jD,isObjectType:RD,isObjectTypePropertyAFunction:UD,isSimpleCallArgument:$D,isSimpleFlowType:qD,isSimpleTemplateLiteral:VD,isStringLiteral:WD,isStringPropSafeToCoerceToIdentifier:YD,isTemplateOnItsOwnLine:KD,isTestCall:JD,isTheOnlyJSXElementInMarkdown:zD,isTSXFile:GD,isTypeAnnotationAFunction:HD,matchJsxWhitespaceRegex:XD,needsHardlineAfterDanglingComment:QD,rawText:ZD,returnArgumentHasLeadingComment:ev}=by,tv=new WeakMap,{builders:{concat:nv,join:rv,line:ov,hardline:sv,softline:iv,literalline:av,group:uv,indent:cv,align:lv,conditionalGroup:pv,fill:fv,ifBreak:dv,breakParent:hv,lineSuffixBoundary:gv,addAlignmentToDoc:mv,dedent:yv},utils:{willBreak:Dv,isLineNext:vv,isEmpty:Ev,removeLines:bv},printer:{printDocToString:Cv}}=Ui;let Av=0;function wv(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;default:return!1}}function Sv(e,t,n){const r=e.getValue();return uv(nv([rv(ov,e.map(n,"decorators")),hD(r,t)?sv:ov]))}function xv(e,t,n,r){const o=e.getValue(),s=o[r.consequentNodePropertyName],i=o[r.alternateNodePropertyName],a=[];let u=!1;const c=e.getParentNode(),l=c.type===r.conditionalNodeType&&r.testNodePropertyNames.some((e=>c[e]===o));let p,f,d=c.type===r.conditionalNodeType&&!l,h=0;do{f=p||o,p=e.getParentNode(h),h++}while(p&&p.type===r.conditionalNodeType&&r.testNodePropertyNames.every((e=>p[e]!==f)));const g=p||c,m=f;if(r.shouldCheckJsx&&(kD(o[r.testNodePropertyNames[0]])||kD(s)||kD(i)||rD(m))){u=!0,d=!0;const t=e=>nv([dv("(",""),cv(nv([iv,e])),iv,dv(")","")]),o=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;a.push(" ? ",o(s)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",i.type===r.conditionalNodeType||o(i)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const u=nv([ov,"? ",s.type===r.conditionalNodeType?dv("","("):"",lv(2,e.call(n,r.consequentNodePropertyName)),s.type===r.conditionalNodeType?dv("",")"):"",ov,": ",i.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):lv(2,e.call(n,r.alternateNodePropertyName))]);a.push(c.type!==r.conditionalNodeType||c[r.alternateNodePropertyName]===o||l?u:t.useTabs?yv(cv(u)):lv(Math.max(0,t.tabWidth-2),u))}const y=!u&&("MemberExpression"===c.type||"OptionalMemberExpression"===c.type||"NGPipeExpression"===c.type&&c.left===o)&&!c.computed,D=(e=>c===g?uv(e):e)(nv([].concat((v=nv(r.beforeParts()),c.type===r.conditionalNodeType&&c[r.alternateNodePropertyName]===o?lv(2,v):v),d?nv(a):cv(nv(a)),r.afterParts(y))));var v;return l?uv(nv([cv(nv([iv,D])),iv])):D}function Fv(e,t,n){const r=[],o=e.getNode(),s="ClassBody"===o.type;return e.map(((e,i)=>{const a=e.getValue();if(!a)return;if("EmptyStatement"===a.type)return;const u=n(e),c=t.originalText,l=[];if(t.semi||s||zD(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>nE(e,t)),"expression")}(e,t)?l.push(u):a.comments&&a.comments.some((e=>e.leading))?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&s)if(nD(e))l.push(";");else if("ClassProperty"===a.type){const e=o.body[i+1];tD(e)&&l.push(";")}Gy(c,a,t.locEnd)&&!OD(e)&&l.push(sv),r.push(nv(l))})),rv(sv,r)}function Tv(e,t,n){const r=e.getNode();if(r.computed)return nv(["[",e.call(n,"key"),"]"]);const o=e.getParentNode(),{key:s}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===s.type)return nv(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!tv.has(o)){const e=(o.properties||o.body||o.members).some((e=>!e.computed&&e.key&&WD(e.key)&&!YD(e,t)));tv.set(o,e)}if("Identifier"===s.type&&("json"===t.parser||"consistent"===t.quoteProps&&tv.get(o))){const n=$y(JSON.stringify(s.name),t);return e.call((e=>Na.printComments(e,(()=>n),t)),"key")}return YD(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!tv.get(o))?e.call((e=>Na.printComments(e,(()=>s.value),t)),"key"):e.call(n,"key")}function kv(e,t,n){const r=e.getNode(),{kind:o}=r,s=r.value||r,i=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(Fs.ok("get"===o||"set"===o),i.push(o," ")):(s.async&&i.push("async "),s.generator&&i.push("*")),i.push(Tv(e,t,n),r.optional||r.key.optional?"?":"",r===s?_v(e,t,n):e.call((e=>_v(e,t,n)),"value")),nv(i)}function _v(e,t,n){const r=[Mv(e,0,n),uv(nv([Lv(e,n,t),jv(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),nv(r)}function Ov(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&Ov(e.expression)||"TSAsExpression"===e.type&&Ov(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||kD(e.body))}function Nv(e,t,n){const r=e.getValue(),o=r.arguments;if(0===o.length)return nv(["(",Na.printDanglingComments(e,t,!0),")"]);if(2===o.length&&"ArrowFunctionExpression"===o[0].type&&0===o[0].params.length&&"BlockStatement"===o[0].body.type&&"ArrayExpression"===o[1].type&&!o.find((e=>e.comments)))return nv(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let s=!1,i=!1,a=!1;const u=o.length-1,c=e.map(((e,r)=>{const o=e.getNode(),c=[n(e)];return r===u||(Gy(t.originalText,o,t.locEnd)?(0===r&&(a=!0),s=!0,c.push(",",sv,sv)):c.push(",",ov)),i=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each((e=>{const t=nv([n(e)]);r=r||Dv(t)}),"params"),r}(o,e),nv(c)}),"arguments"),l=r.callee&&"Import"===r.callee.type||!wv(t,"all")?"":",";function p(){return uv(nv(["(",cv(nv([ov,nv(c)])),l,ov,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&wD(o))return p();const f=function(e){if(2!==e.length)return!1;const[t,n]=e;return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||Ov(n))}(o),d=function(e){const t=Ry(e),n=Yy(e);return!pD(t)&&!yD(t)&&Ov(t)&&(!n||n.type!==t.type)}(o);if(f||d){const t=(f?c.slice(1).some(Dv):c.slice(0,-1).some(Dv))||s||i;let u,l=0;e.each((e=>{f&&0===l&&(u=[nv([e.call((e=>n(e,{expandFirstArg:!0}))),c.length>1?",":"",a?sv:ov,a?sv:""])].concat(c.slice(1))),d&&l===o.length-1&&(u=c.slice(0,-1).concat(e.call((e=>n(e,{expandLastArg:!0}))))),l++}),"arguments");const h=c.some(Dv),g=nv(["(",nv(u),")"]);return nv([h?hv:"",pv([h||r.typeArguments||r.typeParameters?dv(p(),g):g,nv(f?["(",uv(u[0],{shouldBreak:!0}),nv(u.slice(1)),")"]:["(",nv(c.slice(0,-1)),uv(Ry(u),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const h=nv(["(",cv(nv([iv,nv(c)])),dv(l),iv,")"]);return BD(e)?h:uv(h,{shouldBreak:c.some(Dv)||s})}function Bv(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const o=e.getParentNode(),s=r.definite||o&&"VariableDeclarator"===o.type&&o.definite,i="DeclareFunction"===o.type&&o.id===r;return AD(t.originalText,r.typeAnnotation,t)?nv([" /*: ",e.call(n,"typeAnnotation")," */"]):nv([i?"":s?"!: ":": ",e.call(n,"typeAnnotation")])}function Mv(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function Lv(e,t,n,r,o){const s=e.getValue(),i=e.getParentNode(),a=s.parameters?"parameters":"params",u=JD(i),c=oE(s),l=r&&!(s[a]&&s[a].some((e=>e.comments))),p=o?Mv(e,0,t):"";let f=[];if(s[a]){const r=s[a].length-1;f=e.map(((e,o)=>{const i=[],a=e.getValue();return i.push(t(e)),o===r?s.rest&&i.push(",",ov):u||c||l?i.push(", "):Gy(n.originalText,a,n.locEnd)?i.push(",",sv,sv):i.push(",",ov),nv(i)}),a)}if(s.rest&&f.push(nv(["...",e.call(t,"rest")])),0===f.length)return nv([p,"(",Na.printDanglingComments(e,n,!0,(e=>")"===Iy(n.originalText,e,n.locEnd))),")"]);const d=Ry(s[a]);if(l)return uv(nv([bv(p),"(",nv(f.map(bv)),")"]));const h=s[a].every((e=>!e.decorators));if(c&&h)return nv([p,"(",nv(f),")"]);if(u)return nv([p,"(",nv(f),")"]);if((UD(i,n)||HD(i,n)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===s)&&1===s[a].length&&null===s[a][0].name&&s[a][0].typeAnnotation&&null===s.typeParameters&&qD(s[a][0].typeAnnotation)&&!s.rest)return"always"===n.arrowParens?nv(["(",nv(f),")"]):nv(f);const g=!(d&&"RestElement"===d.type||s.rest);return nv([p,"(",cv(nv([iv,nv(f)])),dv(g&&wv(n,"all")?",":""),iv,")"])}function Iv(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&!(1!==(n=e.getValue()).params.length||n.rest||n.typeParameters||uD(n)||"Identifier"!==n.params[0].type||n.params[0].typeAnnotation||n.params[0].comments||n.params[0].optional||n.predicate||n.returnType);var n}function Pv(e,t,n){const r=e.getValue(),o=[];return r.async&&o.push("async "),r.generator?o.push("function* "):o.push("function "),r.id&&o.push(e.call(t,"id")),o.push(Mv(e,0,t),uv(nv([Lv(e,t,n),jv(e,t,n)])),r.body?" ":"",e.call(t,"body")),nv(o)}function jv(e,t,n){const r=e.getValue(),o=e.call(t,"returnType");if(r.returnType&&AD(n.originalText,r.returnType,n))return nv([" /*: ",o," */"]);const s=[o];return r.returnType&&r.returnType.typeAnnotation&&s.unshift(": "),r.predicate&&s.push(r.returnType?" ":": ",e.call(t,"predicate")),nv(s)}function Rv(e,t,n){const r=e.getValue(),o=t.semi?";":"",s=["export "],i=r.default||"ExportDefaultDeclaration"===r.type;if(i&&s.push("default "),s.push(Na.printDanglingComments(e,t,!0)),QD(r)&&s.push(sv),r.declaration)s.push(e.call(n,"declaration")),i&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&s.push(o);else{if(r.specifiers&&r.specifiers.length>0){const o=[],i=[],a=[];e.each((t=>{const r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?i.push(n(t)):"ExportNamespaceSpecifier"===r&&a.push(nv(["* as ",n(t)]))}),"specifiers");const u=0!==a.length&&0!==o.length,c=0!==i.length&&(0!==a.length||0!==o.length),l=o.length>1||i.length>0||r.specifiers&&r.specifiers.some((e=>e.comments));let p="";0!==o.length&&(p=l?uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,rv(nv([",",ov]),o)])),dv(wv(t)?",":""),t.bracketSpacing?ov:iv,"}"])):nv(["{",t.bracketSpacing?" ":"",nv(o),t.bracketSpacing?" ":"","}"])),s.push("type"===r.exportKind?"type ":"",nv(i),nv([c?", ":""]),nv(a),nv([u?", ":""]),p)}else s.push("{}");r.source&&s.push(" from ",e.call(n,"source")),s.push(o)}return nv(s)}function Uv(e,t){const n=iD(e);return n?Fs.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),nv(t)}function $v(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?nv([rv(" ",e.map(n,"modifiers"))," "]):""}function qv(e,t,n,r){const o=e.getValue();if(!o[r])return"";if(!Array.isArray(o[r]))return e.call(n,r);const s=e.getNode(2),i=e.getNode(3),a=e.getNode(4);return null!=s&&JD(s)||0===o[r].length||1===o[r].length&&(rE(o[r][0])||"GenericTypeAnnotation"===o[r][0].type&&rE(o[r][0].id)||"TSTypeReference"===o[r][0].type&&rE(o[r][0].typeName)||"NullableTypeAnnotation"===o[r][0].type||a&&"VariableDeclarator"===a.type&&"TSTypeAnnotation"===s.type&&"ArrowFunctionExpression"!==i.type&&"TSUnionType"!==o[r][0].type&&"UnionTypeAnnotation"!==o[r][0].type&&"TSIntersectionType"!==o[r][0].type&&"IntersectionTypeAnnotation"!==o[r][0].type&&"TSConditionalType"!==o[r][0].type&&"TSMappedType"!==o[r][0].type&&"TSTypeOperator"!==o[r][0].type&&"TSIndexedAccessType"!==o[r][0].type&&"TSArrayType"!==o[r][0].type)?nv(["<",rv(", ",e.map(n,r)),function(n){if(!uD(n))return"";const r=n.comments.every(gm.isBlockComment),o=Na.printDanglingComments(e,t,r);return r?o:nv([o,sv])}(o),">"]):uv(nv(["<",cv(nv([iv,rv(nv([",",ov]),e.map(n,r))])),dv("typescript"!==t.parser&&"babel-ts"!==t.parser&&wv(t,"all")?",":""),iv,">"]))}function Vv(e,t,n){const r=e.getValue(),o=[];r.abstract&&o.push("abstract "),o.push("class"),r.id&&o.push(" ",e.call(n,"id")),o.push(e.call(n,"typeParameters"));const s=[];if(r.superClass){const i=nv(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?s.push(uv(nv([ov,e.call((e=>Na.printComments(e,(()=>i),t)),"superClass")]))):o.push(nv([" ",e.call((e=>Na.printComments(e,(()=>i),t)),"superClass")]))}else r.extends&&r.extends.length>0&&o.push(" extends ",rv(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&s.push(ov,"mixins ",uv(cv(rv(nv([",",ov]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&s.push(ov,"implements",uv(cv(nv([ov,rv(nv([",",ov]),e.map(n,"implements"))])))),s.length>0&&o.push(uv(cv(nv(s)))),r.body&&r.body.comments&&fD(t.originalText,r.body,t)?o.push(sv):o.push(" "),o.push(e.call(n,"body")),o}function Wv(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function Yv(e,t,n){const r=e.call(n,"property"),o=e.getValue(),s=Wv(e);return o.computed?!o.property||jD(o.property)?nv([s,"[",r,"]"]):uv(nv([s,"[",cv(nv([iv,r])),iv,"]"])):nv([s,".",r])}function Kv(e,t,n){return nv(["::",e.call(n,"callee")])}function Jv(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?iv:sv:iv}function zv(e,t,n,r){return e?sv:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?sv:iv:sv}function Gv(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!kD(e.right))}function Hv(e,t,n,r,o){let s=[];const i=e.getValue();if(vD(i)){Ly(i.operator,i.left.operator)?s=s.concat(e.call((e=>Hv(e,t,n,!0,o)),"left")):s.push(e.call(t,"left"));const a=Gv(i),u=("|>"===i.operator||"NGPipeExpression"===i.type||"|"===i.operator&&"__vue_expression"===n.parser)&&!fD(n.originalText,i.right,n),c="NGPipeExpression"===i.type?"|":i.operator,l="NGPipeExpression"===i.type&&0!==i.arguments.length?uv(cv(nv([iv,": ",rv(nv([iv,":",dv(" ")]),e.map(t,"arguments").map((e=>lv(2,uv(e)))))]))):"",p=nv(a?[c," ",e.call(t,"right"),l]:[u?iv:"",c,u?" ":ov,e.call(t,"right"),l]),f=e.getParentNode(),d=!(o&&"LogicalExpression"===i.type)&&f.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;s.push(" ",d?uv(p):p),r&&i.comments&&(s=Na.printComments(e,(()=>nv(s)),n))}else s.push(e.call(t));return s}function Xv(e,t,n,r){return fD(r.originalText,t,r)?cv(nv([ov,n])):vD(t)&&!Gv(t)||"ConditionalExpression"===t.type&&vD(t.test)&&!Gv(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||WD(e)||"MemberExpression"===e.type)&&(WD(t)||LD(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?uv(cv(nv([ov,n]))):nv([" ",n])}function Qv(e,t,n,r,o,s){if(!r)return t;const i=Xv(e,r,o,s);return uv(nv([t,n,i]))}function Zv(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?nv([" ",t]):cv(nv([ov,t]))}function eE(e,t,n){const r=ZD(e),o=n||"DirectiveLiteral"===e.type;return $y(r,t,o)}function tE(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function nE(e,t){const n=e.getValue();return!!(ky(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!Iv(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||kD(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!dD(n)&&e.call((e=>nE(e,t)),...sD(e,n))}function rE(e){if(qD(e)||RD(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,n=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&n)return!0}return!1}function oE(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&RD(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&RD(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function sE(e,t,n,r){const o=[];let s=[];return e.each((e=>{o.push(nv(s)),o.push(uv(r(e))),s=[",",ov],e.getValue()&&Gy(t.originalText,e.getValue(),t.locEnd)&&s.push(iv)}),n),nv(o)}function iE(e,t,n){const r=e.getValue(),o=t.semi?";":"",s=[];r.argument&&(ev(t,r.argument)?s.push(nv([" (",cv(nv([sv,e.call(n,"argument")])),sv,")"])):vD(r.argument)||"SequenceExpression"===r.argument.type?s.push(uv(nv([dv(" ("," "),cv(nv([iv,e.call(n,"argument")])),iv,dv(")")]))):s.push(" ",e.call(n,"argument")));const i=Array.isArray(r.comments)&&r.comments[r.comments.length-1],a=i&&("CommentLine"===i.type||"Line"===i.type);return a&&s.push(o),uD(r)&&s.push(" ",Na.printDanglingComments(e,t,!0)),a||s.push(o),nv(s)}var aE={preprocess:My,print:function(e,t,n,r){const o=e.getValue();let s=!1;const i=function(e,t,n,r){const o=e.getValue(),s=t.semi?";":"";if(!o)return"";if("string"==typeof o)return o;const i=Zy(e,t,n);if(i)return i;let a=[];switch(o.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return nv([e.call(n,"node"),sv]);case"File":return o.program&&o.program.interpreter&&a.push(e.call((e=>e.call(n,"interpreter")),"program")),a.push(e.call(n,"program")),nv(a);case"Program":return o.directives&&e.each((e=>{a.push(n(e),s,sv),Gy(t.originalText,e.getValue(),t.locEnd)&&a.push(sv)}),"directives"),a.push(e.call((e=>Fv(e,t,n)),"body")),a.push(Na.printDanglingComments(e,t,!0)),o.body.every((({type:e})=>"EmptyStatement"===e))&&!o.comments||a.push(sv),nv(a);case"EmptyStatement":case"NGEmptyExpression":return"";case"ExpressionStatement":if(o.directive)return nv([eE(o.expression,t,!0),s]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===o)return nv([e.call(n,"expression"),eD(o.expression)?";":""])}return nv([e.call(n,"expression"),zD(t,e)?"":s]);case"ParenthesizedExpression":return o.expression.comments?uv(nv(["(",cv(nv([iv,e.call(n,"expression")])),iv,")"])):nv(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Qv(o.left,e.call(n,"left"),nv([" ",o.operator]),o.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),s=e.getParentNode(1),i=o!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),a=Hv(e,n,t,!1,i);if(i)return nv(a);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===o||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return uv(nv([cv(nv([iv,nv(a)])),iv]));const u="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===s.type||"|"!==o.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==o.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===s.type&&1===s.body.length)||o===r.body&&"ArrowFunctionExpression"===r.type||o!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type&&"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||"TemplateLiteral"===r.type,c="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,l=vD(o.left)&&Ly(o.operator,o.left.operator);if(u||Gv(o)&&!l||!Gv(o)&&c)return uv(nv(a));if(0===a.length)return"";const p=kD(o.right),f=nv(p?a.slice(1,-1):a.slice(1)),d=Symbol("logicalChain-"+ ++Av),h=uv(nv([a.length>0?a[0]:"",cv(f)]),{id:d});if(!p)return h;const g=Ry(a);return uv(nv([h,dv(cv(g),g,{groupId:d})]))}case"AssignmentPattern":return nv([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type),r=uv(nv(["<",cv(nv([iv,e.call(n,"typeAnnotation")])),iv,">"])),s=nv([dv("("),cv(nv([iv,e.call(n,"expression")])),iv,dv(")")]);return t?pv([nv([r,e.call(n,"expression")]),nv([r,uv(s,{shouldBreak:!0})]),nv([r,e.call(n,"expression")])]):uv(nv([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,s=0;do{r=e.getParentNode(s),s++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const i=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return nv([e.call(n,"object"),i?Yv(e,0,n):uv(cv(nv([iv,Yv(e,0,n)])))])}case"MetaProperty":return nv([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return o.object&&a.push(e.call(n,"object")),a.push(uv(cv(nv([iv,Kv(e,0,n)])))),nv(a);case"Identifier":return nv([o.name,Wv(e),Bv(e,t,n)]);case"V8IntrinsicIdentifier":return nv(["%",o.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return nv(["...",e.call(n,"argument"),Bv(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return a.push(Pv(e,n,t)),o.body||a.push(s),nv(a);case"ArrowFunctionExpression":{o.async&&a.push("async "),Iv(e,t)?a.push(e.call(n,"params",0)):a.push(uv(nv([Lv(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),jv(e,n,t)])));const s=Na.printDanglingComments(e,t,!0,(e=>{const n=Xy(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)}));s&&a.push(" ",s),a.push(" =>");const i=e.call((e=>n(e,r)),"body");if(!fD(t.originalText,o.body,t)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||kD(o.body)||KD(o.body,t.originalText,t)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return uv(nv([nv(a)," ",i]));if("SequenceExpression"===o.body.type)return uv(nv([nv(a),uv(nv([" (",cv(nv([iv,i])),iv,")"]))]));const u=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(o.comments&&o.comments.length),c=r&&r.expandLastArg&&wv(t,"all"),l="ConditionalExpression"===o.body.type&&!Ky(o.body,!1);return uv(nv([nv(a),uv(nv([cv(nv([ov,l?dv("","("):"",i,l?dv("",")"):""])),u?nv([dv(c?",":""),iv]):""]))]))}case"YieldExpression":return a.push("yield"),o.delegate&&a.push("*"),o.argument&&a.push(" ",e.call(n,"argument")),nv(a);case"AwaitExpression":{a.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===o||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===o?uv(nv([cv(nv([iv,nv(a)])),iv])):nv(a)}case"ImportSpecifier":return o.importKind&&a.push(e.call(n,"importKind")," "),a.push(e.call(n,"imported")),o.local&&o.local.name!==o.imported.name&&a.push(" as ",e.call(n,"local")),nv(a);case"ExportSpecifier":return a.push(e.call(n,"local")),o.exported&&o.exported.name!==o.local.name&&a.push(" as ",e.call(n,"exported")),nv(a);case"ImportNamespaceSpecifier":return a.push("* as "),a.push(e.call(n,"local")),nv(a);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return nv(["export = ",e.call(n,"expression"),s]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Rv(e,t,n);case"ExportAllDeclaration":return a.push("export "),"type"===o.exportKind&&a.push("type "),a.push("* "),o.exported&&a.push("as ",e.call(n,"exported")," "),a.push("from ",e.call(n,"source"),s),nv(a);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{a.push("import "),o.importKind&&"value"!==o.importKind&&a.push(o.importKind+" ");const r=[],i=[];return o.specifiers&&o.specifiers.length>0?(e.each((e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):i.push(n(e))}),"specifiers"),r.length>0&&a.push(rv(", ",r)),r.length>0&&i.length>0&&a.push(", "),1===i.length&&0===r.length&&o.specifiers&&!o.specifiers.some((e=>e.comments))?a.push(nv(["{",t.bracketSpacing?" ":"",nv(i),t.bracketSpacing?" ":"","}"])):i.length>=1&&a.push(uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,rv(nv([",",ov]),i)])),dv(wv(t)?",":""),t.bracketSpacing?ov:iv,"}"]))),a.push(" from ")):(o.importKind&&"type"===o.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(o),t.locStart(o.source))))&&a.push("{} from "),a.push(e.call(n,"source"),s),nv(a)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call((e=>Fv(e,t,n)),"body"),i=o.body.find((e=>"EmptyStatement"!==e.type)),u=o.directives&&o.directives.length>0,c=e.getParentNode(),l=e.getParentNode(1);return i||u||uD(o)||"ArrowFunctionExpression"!==c.type&&"FunctionExpression"!==c.type&&"FunctionDeclaration"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"ForStatement"!==c.type&&"WhileStatement"!==c.type&&"DoWhileStatement"!==c.type&&"DoExpression"!==c.type&&("CatchClause"!==c.type||l.finalizer)&&"TSModuleDeclaration"!==c.type?(a.push("{"),u&&e.each((e=>{a.push(cv(nv([sv,n(e),s]))),Gy(t.originalText,e.getValue(),t.locEnd)&&a.push(sv)}),"directives"),i&&a.push(cv(nv([sv,r]))),a.push(Na.printDanglingComments(e,t)),a.push(sv,"}"),nv(a)):"{}"}case"ReturnStatement":return nv(["return",iE(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===o.type,s=Wv(e);if(!r&&"Identifier"===o.callee.type&&("require"===o.callee.name||"define"===o.callee.name)||1===o.arguments.length&&KD(o.arguments[0],t.originalText,t)||!r&&JD(o,e.getParentNode()))return nv([r?"new ":"",e.call(n,"callee"),s,Mv(e,0,n),nv(["(",rv(", ",e.map(n,"arguments")),")"])]);const i="Identifier"===o.callee.type&&cD(o.callee.trailingComments);if(i&&(o.callee.trailingComments[0].printed=!0),!r&&ID(o.callee)&&!e.call((e=>ky(e,t)),"callee"))return function(e,t,n){const r=[];function o(e){const{originalText:n}=t,r=Xy(n,e,t.locEnd);return")"===n.charAt(r)?Hy(n,r+1,t.locEnd):Gy(n,e,t.locEnd)}function s(e){const i=e.getValue();"CallExpression"!==i.type&&"OptionalCallExpression"!==i.type||!ID(i.callee)&&"CallExpression"!==i.callee.type&&"OptionalCallExpression"!==i.callee.type?ID(i)?(r.unshift({node:i,needsParens:ky(e,t),printed:Na.printComments(e,(()=>"OptionalMemberExpression"===i.type||"MemberExpression"===i.type?Yv(e,0,n):Kv(e,0,n)),t)}),e.call((e=>s(e)),"object")):"TSNonNullExpression"===i.type?(r.unshift({node:i,printed:Na.printComments(e,(()=>"!"),t)}),e.call((e=>s(e)),"expression")):r.unshift({node:i,printed:e.call(n)}):(r.unshift({node:i,printed:nv([Na.printComments(e,(()=>nv([Wv(e),Mv(e,0,n),Nv(e,t,n)])),t),o(i)?sv:""])}),e.call((e=>s(e)),"callee"))}const i=e.getValue();r.unshift({node:i,printed:nv([Wv(e),Mv(e,0,n),Nv(e,t,n)])}),e.call((e=>s(e)),"callee");const a=[];let u=[r[0]],c=1;for(;ce.trailing))&&(a.push(u),u=[],l=!1)}function p(e){return/^[A-Z]|^[_$]+$/.test(e)}function f(e){return e.length<=t.tabWidth}function d(t){const n=e.getParentNode(),r=n&&"ExpressionStatement"===n.type,o=t[1].length&&t[1][0].node.computed;if(1===t[0].length){const e=t[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(p(e.name)||r&&f(e.name)||o)}const s=Ry(t[0]).node;return("MemberExpression"===s.type||"OptionalMemberExpression"===s.type)&&"Identifier"===s.property.type&&(p(s.property.name)||o)}u.length>0&&a.push(u);const h=a.length>=2&&!a[1][0].node.comments&&d(a);function g(e){const t=e.map((e=>e.printed));return e.length>0&&e[e.length-1].needsParens?nv(["(",...t,")"]):nv(t)}function m(e){return 0===e.length?"":cv(uv(nv([sv,rv(sv,e.map(g))])))}const y=a.map(g),D=nv(y),v=h?3:2,E=a.reduce(((e,t)=>e.concat(t)),[]),b=E.slice(1,-1).some((e=>pD(e.node)))||E.slice(0,-1).some((e=>yD(e.node)))||a[v]&&pD(a[v][0].node);if(a.length<=v&&!b)return BD(e)?D:uv(D);const C=Ry(h?a.slice(1,2)[0]:a[0]).node,A="CallExpression"!==C.type&&"OptionalCallExpression"!==C.type&&o(C),w=nv([g(a[0]),h?nv(a.slice(1,2).map(g)):"",A?sv:"",m(a.slice(h?2:1))]),S=r.map((({node:e})=>e)).filter(ED);return b||S.length>2&&S.some((e=>!e.arguments.every((e=>$D(e,0)))))||y.slice(0,-1).some(Dv)||(x=Ry(y),F=Ry(Ry(a)).node,ED(F)&&Dv(x)&&S.slice(0,-1).some((e=>e.arguments.some(xD))))?uv(w):nv([Dv(D)||A?hv:"",pv([D,w])]);var x,F}(e,t,n);const a=nv([r?"new ":"",e.call(n,"callee"),s,i?"/*:: ".concat(o.callee.trailingComments[0].value.slice(2).trim()," */"):"",Mv(e,0,n),Nv(e,t,n)]);return ED(o.callee)?uv(a):a}case"TSInterfaceDeclaration":return o.declare&&a.push("declare "),a.push(o.abstract?"abstract ":"",$v(e,0,n),"interface ",e.call(n,"id"),o.typeParameters?e.call(n,"typeParameters"):""," "),o.extends&&o.extends.length&&a.push(uv(cv(nv([iv,"extends ",(1===o.extends.length?DD:cv)(rv(nv([",",ov]),e.map(n,"extends")))," "])))),a.push(e.call(n,"body")),nv(a);case"ObjectTypeInternalSlot":return nv([o.static?"static ":"","[[",e.call(n,"id"),"]]",Wv(e),o.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===o.type?"members":"TSInterfaceBody"===o.type?"body":"properties";const i="ObjectTypeAnnotation"===o.type,a=[];i&&a.push("indexers","callProperties","internalSlots"),a.push(r);const u=a.map((e=>o[e][0])).sort(((e,n)=>t.locStart(e)-t.locStart(n)))[0],c=e.getParentNode(0),l=i&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),p="TSInterfaceBody"===o.type||l||"ObjectPattern"===o.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&o.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==o.type&&u&&jy(t.originalText,t.locStart(o),t.locStart(u)),f=l?";":"TSInterfaceBody"===o.type||"TSTypeLiteral"===o.type?dv(s,";"):",",d=o.exact?"{|":"{",h=o.exact?"|}":"}",g=[];a.forEach((r=>{e.each((e=>{const r=e.getValue();g.push({node:r,printed:n(e),loc:t.locStart(r)})}),r)}));let m=[];const y=g.sort(((e,t)=>e.loc-t.loc)).map((e=>{const n=nv(m.concat(uv(e.printed)));return m=[f,ov],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Wy(e.node)||m.shift(),Gy(t.originalText,e.node,t.locEnd)&&m.push(sv),n}));if(o.inexact){let n;if(uD(o)){const r=!o.comments.every(gm.isBlockComment),s=Na.printDanglingComments(e,t,!0);n=nv([s,r||Py(t.originalText,t.locEnd(o.comments[o.comments.length-1]))?sv:ov,"..."])}else n="...";y.push(nv(m.concat(n)))}const D=Ry(o[r]),v=!(o.inexact||D&&("RestElement"===D.type||Wy(D)));let E;if(0===y.length){if(!uD(o))return nv([d,h,Bv(e,t,n)]);E=uv(nv([d,Na.printDanglingComments(e,t),iv,h,Wv(e),Bv(e,t,n)]))}else E=nv([d,cv(nv([t.bracketSpacing?ov:iv,nv(y)])),dv(v&&(","!==f||wv(t))?f:""),nv([t.bracketSpacing?ov:iv,h]),Wv(e),Bv(e,t,n)]);return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,n)=>oE(e)&&("params"===t||"parameters"===t)&&0===n))||e.match(rE,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,n)=>oE(e)&&("params"===t||"parameters"===t)&&0===n))?E:uv(E,{shouldBreak:p})}case"ObjectProperty":case"Property":return o.method||"get"===o.kind||"set"===o.kind?kv(e,t,n):(o.shorthand?a.push(e.call(n,"value")):a.push(Qv(o.key,Tv(e,t,n),":",o.value,e.call(n,"value"),t)),nv(a));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return o.decorators&&0!==o.decorators.length&&a.push(Sv(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),("TSAbstractMethodDefinition"===o.type||o.abstract)&&a.push("abstract "),a.push(kv(e,t,n)),nv(a);case"ObjectMethod":return kv(e,t,n);case"Decorator":return nv(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===o.elements.length)uD(o)?a.push(uv(nv(["[",Na.printDanglingComments(e,t),iv,"]"]))):a.push("[]");else{const r=Ry(o.elements),s=!(r&&"RestElement"===r.type),i=s&&null===r,u=o.elements.length>1&&o.elements.every(((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const o=n[t+1];if(o&&r!==o.type)return!1;const s="ArrayExpression"===r?"elements":"properties";return e[s]&&e[s].length>1}));a.push(uv(nv(["[",cv(nv([iv,sE(e,t,"elements",n)])),i?",":"",dv(s&&!i&&wv(t)?",":""),Na.printDanglingComments(e,t,!0),iv,"]"]),{shouldBreak:u}))}return a.push(Wv(e),Bv(e,t,n)),nv(a);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each((e=>{0===e.getName()?t.push(n(e)):t.push(",",cv(nv([ov,n(e)])))}),"expressions"),uv(nv(t))}return uv(nv([rv(nv([",",ov]),e.map(n,"expressions"))]))}case"ThisExpression":case"ThisTypeAnnotation":case"TSThisType":return"this";case"Super":return"super";case"NullLiteral":case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"RegExpLiteral":return tE(o);case"NumericLiteral":return qy(o.extra.raw);case"BigIntLiteral":return(o.bigint||(o.extra?o.extra.raw:o.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(o.regex)return tE(o.regex);if("number"==typeof o.value)return qy(o.raw);if("string"!=typeof o.value)return""+o.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"==typeof o.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return eE(o,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":case"StringLiteralTypeAnnotation":return eE(o,t);case"UnaryExpression":return a.push(o.operator),/[a-z]$/.test(o.operator)&&a.push(" "),o.argument.comments&&o.argument.comments.length>0?a.push(uv(nv(["(",cv(nv([iv,e.call(n,"argument")])),iv,")"]))):a.push(e.call(n,"argument")),nv(a);case"UpdateExpression":return a.push(e.call(n,"argument"),o.operator),o.prefix&&a.reverse(),nv(a);case"ConditionalExpression":return xv(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?iv:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map((e=>n(e)),"declarations"),r=e.getParentNode(),i="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=o.declarations.some((e=>e.init));let c;return 1!==t.length||o.declarations[0].comments?t.length>0&&(c=cv(t[0])):c=t[0],a=[o.declare?"declare ":"",o.kind,c?nv([" ",c]):"",cv(nv(t.slice(1).map((e=>nv([",",u&&!i?sv:ov,e])))))],i&&r.body!==o||a.push(s),uv(nv(a))}case"TSTypeAliasDeclaration":{o.declare&&a.push("declare ");const r=Xv(o.id,o.typeAnnotation,o.typeAnnotation&&e.call(n,"typeAnnotation"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,s),uv(nv(a))}case"VariableDeclarator":return Qv(o.id,e.call(n,"id")," =",o.init,o.init&&e.call(n,"init"),t);case"WithStatement":return uv(nv(["with (",e.call(n,"object"),")",Zv(o.body,e.call(n,"body"))]));case"IfStatement":{const r=Zv(o.consequent,e.call(n,"consequent")),s=uv(nv(["if (",uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",r]));if(a.push(s),o.alternate){const r=yD(o.consequent)&&o.consequent.comments.some((e=>e.trailing&&!gm.isBlockComment(e)))||QD(o),s="BlockStatement"===o.consequent.type&&!r;a.push(s?" ":sv),uD(o)&&a.push(Na.printDanglingComments(e,t,!0),r?sv:" "),a.push("else",uv(Zv(o.alternate,e.call(n,"alternate"),"IfStatement"===o.alternate.type)))}return nv(a)}case"ForStatement":{const r=Zv(o.body,e.call(n,"body")),s=Na.printDanglingComments(e,t,!0),i=s?nv([s,iv]):"";return o.init||o.test||o.update?nv([i,uv(nv(["for (",uv(nv([cv(nv([iv,e.call(n,"init"),";",ov,e.call(n,"test"),";",ov,e.call(n,"update")])),iv])),")",r]))]):nv([i,uv(nv(["for (;;)",r]))])}case"WhileStatement":return uv(nv(["while (",uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",Zv(o.body,e.call(n,"body"))]));case"ForInStatement":return uv(nv([o.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Zv(o.body,e.call(n,"body"))]));case"ForOfStatement":return uv(nv(["for",o.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Zv(o.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Zv(o.body,e.call(n,"body")),r=uv(nv(["do",t]));return a=[r],"BlockStatement"===o.body.type?a.push(" "):a.push(sv),a.push("while ("),a.push(uv(nv([cv(nv([iv,e.call(n,"test")])),iv])),")",s),nv(a)}case"DoExpression":return nv(["do ",e.call(n,"body")]);case"BreakStatement":return a.push("break"),o.label&&a.push(" ",e.call(n,"label")),a.push(s),nv(a);case"ContinueStatement":return a.push("continue"),o.label&&a.push(" ",e.call(n,"label")),a.push(s),nv(a);case"LabeledStatement":return"EmptyStatement"===o.body.type?nv([e.call(n,"label"),":;"]):nv([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return nv(["try ",e.call(n,"block"),o.handler?nv([" ",e.call(n,"handler")]):"",o.finalizer?nv([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(o.param){const r=o.param.comments&&o.param.comments.some((e=>!gm.isBlockComment(e)||e.leading&&Py(t.originalText,t.locEnd(e))||e.trailing&&Py(t.originalText,t.locStart(e),{backwards:!0}))),s=e.call(n,"param");return nv(["catch ",nv(r?["(",cv(nv([iv,s])),iv,") "]:["(",s,") "]),e.call(n,"body")])}return nv(["catch ",e.call(n,"body")]);case"ThrowStatement":return nv(["throw",iE(e,t,n)]);case"SwitchStatement":return nv([uv(nv(["switch (",cv(nv([iv,e.call(n,"discriminant")])),iv,")"]))," {",o.cases.length>0?cv(nv([sv,rv(sv,e.map((e=>{const r=e.getValue();return nv([e.call(n),o.cases.indexOf(r)!==o.cases.length-1&&Gy(t.originalText,r,t.locEnd)?sv:""])}),"cases"))])):"",sv,"}"]);case"SwitchCase":{o.test?a.push("case ",e.call(n,"test"),":"):a.push("default:");const r=o.consequent.filter((e=>"EmptyStatement"!==e.type));if(r.length>0){const o=e.call((e=>Fv(e,t,n)),"consequent");a.push(1===r.length&&"BlockStatement"===r[0].type?nv([" ",o]):cv(nv([sv,o])))}return nv(a)}case"DebuggerStatement":return nv(["debugger",s]);case"JSXAttribute":if(a.push(e.call(n,"name")),o.value){let r;if(WD(o.value)){let e=ZD(o.value).replace(/'/g,"'").replace(/"/g,'"');const n=zy(e,t.jsxSingleQuote?"'":'"'),s="'"===n?"'":""";e=e.slice(1,-1).replace(new RegExp(n,"g"),s),r=nv([n,e,n])}else r=e.call(n,"value");a.push("=",r)}return nv(a);case"JSXIdentifier":return""+o.name;case"JSXNamespacedName":return rv(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return rv(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return rv(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return nv(["{",e.call((e=>{const r=nv(["...",n(e)]),o=e.getValue();return o.comments&&o.comments.length?nv([cv(nv([iv,Na.printComments(e,(()=>r),t)])),iv]):r}),"JSXSpreadAttribute"===o.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=o.expression.comments&&o.expression.comments.length>0,s="JSXEmptyExpression"===o.expression.type||!r&&("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type||"ArrowFunctionExpression"===o.expression.type||"CallExpression"===o.expression.type||"OptionalCallExpression"===o.expression.type||"FunctionExpression"===o.expression.type||"TemplateLiteral"===o.expression.type||"TaggedTemplateExpression"===o.expression.type||"DoExpression"===o.expression.type||kD(t)&&("ConditionalExpression"===o.expression.type||vD(o.expression)));return uv(nv(s?["{",e.call(n,"expression"),gv,"}"]:["{",cv(nv([iv,e.call(n,"expression")])),iv,gv,"}"]))}case"JSXFragment":case"JSXElement":{const r=Na.printComments(e,(()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&bD(r))return nv([e.call(n,"openingElement"),e.call(n,"closingElement")]);const o="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),s="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return nv([o,nv(e.map(n,"children")),s]);r.children=r.children.map((e=>_D(e)?{type:"JSXText",value:" ",raw:" "}:e));const i=r.children.filter(kD).length>0,a=r.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let c=Dv(o)||i||u||a;const l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?nv([" "]):dv(nv([p,iv])," "),d=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,o){const s=e.getValue(),i=[];return e.map(((e,t)=>{const a=e.getValue();if(ND(a)){const e=ZD(a);if(MD(a)){const n=e.split(XD);if(""===n[0]){if(i.push(""),n.shift(),/\n/.test(n[0])){const e=s.children[t+1];i.push(zv(o,n[1],a,e))}else i.push(r);n.shift()}let u;if(""===Ry(n)&&(n.pop(),u=n.pop()),0===n.length)return;if(n.forEach(((e,t)=>{t%2==1?i.push(ov):i.push(e)})),void 0!==u)if(/\n/.test(u)){const e=s.children[t+1];i.push(zv(o,Ry(i),a,e))}else i.push(r);else{const e=s.children[t+1];i.push(Jv(o,Ry(i),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(i.push(""),i.push(sv)):(i.push(""),i.push(r))}else{const r=n(e);i.push(r);const u=s.children[t+1];if(u&&MD(u)){const e=ZD(u).trim().split(XD)[0];i.push(Jv(o,e,a,u))}else i.push(sv)}}),"children"),i}(e,0,n,f,d),g=r.children.some((e=>MD(e)));for(let e=h.length-2;e>=0;e--){const t=""===h[e]&&""===h[e+1],n=h[e]===sv&&""===h[e+1]&&h[e+2]===sv,r=(h[e]===iv||h[e]===sv)&&""===h[e+1]&&h[e+2]===f,o=h[e]===f&&""===h[e+1]&&(h[e+2]===iv||h[e+2]===sv),s=h[e]===f&&""===h[e+1]&&h[e+2]===f,i=h[e]===iv&&""===h[e+1]&&h[e+2]===sv||h[e]===sv&&""===h[e+1]&&h[e+2]===iv;n&&g||t||r||s||i?h.splice(e,2):o&&h.splice(e+1,2)}for(;h.length&&(vv(Ry(h))||Ev(Ry(h)));)h.pop();for(;h.length&&(vv(h[0])||Ev(h[0]))&&(vv(h[1])||Ev(h[1]));)h.shift(),h.shift();const m=[];h.forEach(((e,t)=>{if(e===f){if(1===t&&""===h[t-1])return 2===h.length?void m.push(p):void m.push(nv([p,sv]));if(t===h.length-1)return void m.push(p);if(""===h[t-1]&&h[t-2]===sv)return void m.push(p)}m.push(e),Dv(e)&&(c=!0)}));const y=g?fv(m):uv(nv(m),{shouldBreak:!0});if(l)return y;const D=uv(nv([o,cv(nv([sv,y])),sv,s]));return c?D:pv([uv(nv([o,nv(h),s])),D])}(e,t,n)),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const o=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),ED,(e=>"JSXExpressionContainer"===e.type)),s=ky(e,n);return uv(nv([s?"":dv("("),cv(nv([iv,t])),iv,s?"":dv(")")]),{shouldBreak:o})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),o=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!o)return nv(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&WD(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!o&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return uv(nv(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",nv(e.map(n,"attributes")),r.selfClosing?" />":">"]));const s=r.attributes.length&&yD(Ry(r.attributes)),i=!r.attributes.length&&!o||t.jsxBracketSameLine&&(!o||r.attributes.length)&&!s,a=r.attributes&&r.attributes.some((e=>e.value&&WD(e.value)&&e.value.value.includes("\n")));return uv(nv(["<",e.call(n,"name"),e.call(n,"typeParameters"),nv([cv(nv(e.map((e=>nv([ov,n(e)])),"attributes"))),r.selfClosing?ov:i?">":iv]),r.selfClosing?"/>":i?"":">"]),{shouldBreak:a})}case"JSXClosingElement":return nv([""]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=o.comments&&o.comments.length,r=n&&!o.comments.every(gm.isBlockComment),s="JSXOpeningFragment"===o.type;return nv([s?"<":""])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=o.comments&&!o.comments.every(gm.isBlockComment);return nv([Na.printDanglingComments(e,t,!n),n?sv:""])}case"ClassBody":return o.comments||0!==o.body.length?nv(["{",o.body.length>0?cv(nv([sv,e.call((e=>Fv(e,t,n)),"body")])):Na.printDanglingComments(e,t),sv,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{o.decorators&&0!==o.decorators.length&&a.push(Sv(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.declare&&a.push("declare "),o.static&&a.push("static "),("TSAbstractClassProperty"===o.type||o.abstract)&&a.push("abstract "),o.readonly&&a.push("readonly ");const r=oD(o);return r&&a.push(r),a.push(Tv(e,t,n),Wv(e),Bv(e,t,n)),o.value&&a.push(" =",Xv(o.key,o.value,e.call(n,"value"),t)),a.push(s),uv(nv(a))}case"ClassDeclaration":case"ClassExpression":return o.declare&&a.push("declare "),a.push(nv(Vv(e,t,n))),nv(a);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return a.push(e.call(n,"expression")),o.typeParameters&&a.push(e.call(n,"typeParameters")),nv(a);case"TemplateElement":return rv(av,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const s=e.getParentNode();if(TD(o,s)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some((e=>0!==e.length))){const o=[],s=t.map((e=>"${"+Cv(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}")),i=[{hasLineBreak:!1,cells:[]}];for(let t=1;te.cells.length))),u=Array.from({length:a}).fill(0),c=[{cells:r},...i.filter((e=>0!==e.cells.length))];for(const{cells:e}of c.filter((e=>!e.hasLineBreak)))e.forEach(((e,t)=>{u[t]=Math.max(u[t],Uy(e))}));return o.push(gv,"`",cv(nv([sv,rv(sv,c.map((e=>rv(" | ",e.cells.map(((t,n)=>e.hasLineBreak?t:t+" ".repeat(u[n]-Uy(t))))))))])),sv,"`"),nv(o)}}(o,r,t);if(e)return e}const i=VD(o);return i&&(r=r.map((e=>Cv(e,Object.assign({},t,{printWidth:1/0})).formatted))),a.push(gv,"`"),e.each((e=>{const s=e.getName();if(a.push(n(e)),s0&&"TSRestType"===Ry(o[r]).type;return uv(nv(["[",cv(nv([iv,sE(e,t,r,n)])),dv(wv(t,"all")&&!s?",":""),Na.printDanglingComments(e,t,!0),iv,"]"]))}case"ExistsTypeAnnotation":case"TSJSDocAllType":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":case"TSArrayType":return nv([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BooleanLiteralTypeAnnotation":return""+o.value;case"DeclareClass":return Uv(e,Vv(e,t,n));case"TSDeclareFunction":return nv([o.declare?"declare ":"",Pv(e,n,t),s]);case"DeclareFunction":return Uv(e,["function ",e.call(n,"id"),o.predicate?" ":"",e.call(n,"predicate"),s]);case"DeclareModule":return Uv(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return Uv(e,["module.exports",": ",e.call(n,"typeAnnotation"),s]);case"DeclareVariable":return Uv(e,["var ",e.call(n,"id"),s]);case"DeclareExportAllDeclaration":return nv(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return nv(["declare ",Rv(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return a.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),o.supertype&&a.push(": ",e.call(n,"supertype")),o.impltype&&a.push(" = ",e.call(n,"impltype")),a.push(s),"DeclareOpaqueType"===o.type?Uv(e,a):nv(a);case"EnumDeclaration":return nv(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===o.type||o.explicitType){let e=null;switch(o.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}a.push("of ",e," ")}return 0===o.members.length?a.push(uv(nv(["{",Na.printDanglingComments(e,t),iv,"}"]))):a.push(uv(nv(["{",cv(nv([sv,sE(e,t,"members",n),wv(t)?",":""])),Na.printDanglingComments(e,t,!0),sv,"}"]))),nv(a);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return nv([e.call(n,"id")," = ","object"==typeof o.init?e.call(n,"init"):String(o.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),s=e.getParentNode(1),i=e.getParentNode(2);let u="TSFunctionType"===o.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!oD(r)&&!r.optional&&t.locStart(r)===t.locStart(o)||"ObjectTypeCallProperty"===r.type||i&&"DeclareFunction"===i.type),c=u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const l=c&&u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===s.type;return UD(r,t)&&(u=!0,c=!0),l&&a.push("("),a.push(Lv(e,n,t,!1,!0)),(o.returnType||o.predicate||o.typeAnnotation)&&a.push(u?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),l&&a.push(")"),uv(nv(a))}case"TSRestType":return nv(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return nv([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return nv([e.call(n,"name"),Wv(e),o.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":case"ClassImplements":case"InterfaceExtends":return nv([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===o.type||o.declare)&&a.push("declare "),a.push("interface"),"DeclareInterface"!==o.type&&"InterfaceDeclaration"!==o.type||a.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),o.extends.length>0&&a.push(uv(cv(nv([ov,"extends ",(1===o.extends.length?DD:cv)(rv(nv([",",ov]),e.map(n,"extends")))])))),a.push(" ",e.call(n,"body")),uv(nv(a));case"TSClassImplements":return nv([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let s=!1;for(let e=0;e1&&(s=!0),r.push(" & ",e>1?cv(t[e]):t[e])):r.push(cv(nv([" &",ov,t[e]])));return uv(nv(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),s=!("TypeParameterInstantiation"===r.type||"TSTypeParameterInstantiation"===r.type||"GenericTypeAnnotation"===r.type||"TSTypeReference"===r.type||"TSTypeAssertion"===r.type||"TupleTypeAnnotation"===r.type||"TSTupleType"===r.type||"FunctionTypeParam"===r.type&&!r.name||("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&fD(t.originalText,o,t)),i=rE(o),a=e.map((e=>{let r=e.call(n);return i||(r=lv(2,r)),Na.printComments(e,(()=>r),t)}),"types");if(i)return rv(" | ",a);const u=s&&!fD(t.originalText,o,t),c=nv([dv(nv([u?ov:"","| "])),rv(nv([ov,"| "]),a)]);return ky(e,t)?uv(nv([cv(c),iv])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?uv(nv([cv(nv([dv(nv(["(",iv])),c])),iv,dv(")")])):uv(s?cv(c):c)}case"NullableTypeAnnotation":case"TSJSDocNullableType":return nv(["?",e.call(n,"typeAnnotation")]);case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"ObjectTypeCallProperty":return o.static&&a.push("static "),a.push(e.call(n,"value")),nv(a);case"ObjectTypeIndexer":{const t=oD(o);return nv([t||"","[",e.call(n,"id"),o.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=oD(o);let s="";return o.proto?s="proto ":o.static&&(s="static "),nv([s,FD(o)?o.kind+" ":"",r||"",Tv(e,t,n),Wv(e),SD(o,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return nv([e.call(n,"qualification"),".",e.call(n,"id")]);case"NumberLiteralTypeAnnotation":return Fs.strictEqual(typeof o.value,"number"),null!=o.extra?qy(o.extra.raw):qy(o.raw);case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===o.type||o.declare)&&a.push("declare ");const r=Xv(o.id,o.right,e.call(n,"right"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,s),uv(nv(a))}case"TypeCastExpression":return nv(["(",e.call(n,"expression"),Bv(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),o=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return o>=0&&t.originalText.slice(o).match(/^\/\*\s*::/)?nv(["/*:: ",qv(e,t,n,"params")," */"]):qv(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return qv(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return a.push("[",e.call(n,"name")),o.constraint&&a.push(" in ",e.call(n,"constraint")),a.push("]"),nv(a);const s=oD(o);s&&a.push(s),a.push(e.call(n,"name")),o.bound&&(a.push(": "),a.push(e.call(n,"bound"))),o.constraint&&a.push(" extends ",e.call(n,"constraint")),o.default&&a.push(" = ",e.call(n,"default"));const i=e.getNode(2);return r.params&&1===r.params.length&&GD(t)&&!o.constraint&&"ArrowFunctionExpression"===i.type&&a.push(","),nv(a)}case"TypeofTypeAnnotation":return nv(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return nv(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSAsExpression":return nv([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSPropertySignature":return o.export&&a.push("export "),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(Tv(e,t,n),Wv(e)),o.typeAnnotation&&(a.push(": "),a.push(e.call(n,"typeAnnotation"))),o.initializer&&a.push(" = ",e.call(n,"initializer")),nv(a);case"TSParameterProperty":return o.accessibility&&a.push(o.accessibility+" "),o.export&&a.push("export "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(e.call(n,"parameter")),nv(a);case"TSTypeReference":return nv([e.call(n,"typeName"),qv(e,t,n,"typeParameters")]);case"TSTypeQuery":return nv(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),i=o.parameters.length>1?dv(wv(t)?",":""):"",a=uv(nv([cv(nv([iv,rv(nv([", ",iv]),e.map(n,"parameters"))])),i,iv]));return nv([o.export?"export ":"",o.accessibility?nv([o.accessibility," "]):"",o.static?"static ":"",o.readonly?"readonly ":"","[",o.parameters?a:"",o.typeAnnotation?"]: ":"]",o.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?s:""])}case"TSTypePredicate":return nv([o.asserts?"asserts ":"",e.call(n,"parameterName"),o.typeAnnotation?nv([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return nv([e.call(n,"expression"),"!"]);case"TSImportType":return nv([o.isTypeOf?"typeof ":"","import(",e.call(n,o.parameter?"parameter":"argument"),")",o.qualifier?nv([".",e.call(n,"qualifier")]):"",qv(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return nv([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==o.type&&a.push("new "),a.push(uv(Lv(e,n,t,!1,!0))),o.returnType||o.typeAnnotation){const t="TSConstructorType"===o.type;a.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return nv(a);case"TSTypeOperator":return nv([o.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=jy(t.originalText,t.locStart(o),t.locEnd(o));return uv(nv(["{",cv(nv([t.bracketSpacing?ov:iv,o.readonly?nv([aD(o.readonly,"readonly")," "]):"",$v(e,0,n),e.call(n,"typeParameter"),o.optional?aD(o.optional,"?"):"",o.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),dv(s,"")])),Na.printDanglingComments(e,t,!0),t.bracketSpacing?ov:iv,"}"]),{shouldBreak:r})}case"TSMethodSignature":return a.push(o.accessibility?nv([o.accessibility," "]):"",o.export?"export ":"",o.static?"static ":"",o.readonly?"readonly ":"",o.computed?"[":"",e.call(n,"key"),o.computed?"]":"",Wv(e),Lv(e,n,t,!1,!0)),(o.returnType||o.typeAnnotation)&&a.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),uv(nv(a));case"TSNamespaceExportDeclaration":return a.push("export as namespace ",e.call(n,"id")),t.semi&&a.push(";"),uv(nv(a));case"TSEnumDeclaration":return o.declare&&a.push("declare "),o.modifiers&&a.push($v(e,0,n)),o.const&&a.push("const "),a.push("enum ",e.call(n,"id")," "),0===o.members.length?a.push(uv(nv(["{",Na.printDanglingComments(e,t),iv,"}"]))):a.push(uv(nv(["{",cv(nv([sv,sE(e,t,"members",n),wv(t,"es5")?",":""])),Na.printDanglingComments(e,t,!0),sv,"}"]))),nv(a);case"TSEnumMember":return a.push(e.call(n,"id")),o.initializer&&a.push(" = ",e.call(n,"initializer")),nv(a);case"TSImportEqualsDeclaration":return o.isExport&&a.push("export "),a.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&a.push(";"),uv(nv(a));case"TSExternalModuleReference":return nv(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),i=ND(o.id),u="TSModuleDeclaration"===r.type,c=o.body&&"TSModuleDeclaration"===o.body.type;if(u)a.push(".");else{o.declare&&a.push("declare "),a.push($v(e,0,n));const r=t.originalText.slice(t.locStart(o),t.locStart(o.id));"Identifier"===o.id.type&&"global"===o.id.name&&!/namespace|module/.test(r)||a.push(i||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return a.push(e.call(n,"id")),c?a.push(e.call(n,"body")):o.body?a.push(" ",uv(e.call(n,"body"))):a.push(s),nv(a)}case"PrivateName":return nv(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return o.escapedText;case"TSConditionalType":return xv(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return nv(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return a.push("#!",o.value,sv),Gy(t.originalText,o,t.locEnd)&&a.push(sv),nv(a);case"NGRoot":return nv([].concat(e.call(n,"node"),o.node.comments&&0!==o.node.comments.length?nv([" //",o.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return uv(rv(nv([";",ov]),e.map((e=>gD(e)?n(e):nv(["(",n(e),")"])),"expressions")));case"NGQuotedExpression":return nv([o.prefix,": ",o.value.trim()]);case"NGMicrosyntax":return nv(e.map(((e,t)=>nv([0===t?"":PD(e.getValue(),t,o)?" ":nv([";",ov]),n(e)])),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(o.name)?o.name:JSON.stringify(o.name);case"NGMicrosyntaxExpression":return nv([e.call(n,"expression"),null===o.alias?"":nv([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),s=PD(o,t,r)||(1===t&&("then"===o.key.name||"else"===o.key.name)||2===t&&"else"===o.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return nv([e.call(n,"key"),s?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return nv(["let ",e.call(n,"key"),null===o.value?"":nv([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return nv([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":case"TSJSDocUnknownType":return"?";case"TSJSDocNonNullableType":return nv(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return nv(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,r);if(!o||Ev(i))return i;const a=iD(e),u=[];if("ClassMethod"===o.type||"ClassPrivateMethod"===o.type||"ClassProperty"===o.type||"TSAbstractClassProperty"===o.type||"ClassPrivateProperty"===o.type||"MethodDefinition"===o.type||"TSAbstractMethodDefinition"===o.type||"TSDeclareMethod"===o.type);else if(o.decorators&&o.decorators.length>0&&!(a&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(o.decorators[0]))){const r="ClassExpression"===o.type||"ClassDeclaration"===o.type||hD(o,t)?sv:ov;e.each((e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),r)}),"decorators"),a&&u.unshift(sv)}else CD(o)&&o.declaration&&o.declaration.decorators&&o.declaration.decorators.length>0&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(o.declaration.decorators[0])?e.each((e=>{const t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),sv)}),"declaration","decorators"):s=ky(e,t);const c=[];if(s&&c.unshift("("),c.push(i),s){const t=e.getValue();lD(t)&&(c.push(" /*"),c.push(t.trailingComments[0].value.trimStart()),c.push("*/"),t.trailingComments[0].printed=!0),c.push(")")}return u.length>0?uv(nv(u.concat(c))):nv(c)},embed:$m,insertPragma:Qy,massageAstNode:qm,hasPrettierIgnore:mD,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(kD(t)||lD(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(cD(t.leadingComments)||cD(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Vy(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}(n)){const e=function(e){const t=e.value.split("\n");return nv(["/*",rv(sv,t.map(((e,n)=>0===n?e.trimEnd():" "+(n x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:el.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:dE,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:dE,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:el.singleQuote,jsxSingleQuote:{since:"1.15.0",category:dE,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:dE,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:dE,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},gE="JavaScript",mE="programming",yE="source.js",DE="javascript",vE="javascript",EE="text/javascript",bE="#f1e05a",CE=["js","node"],AE=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],wE=["Jakefile"],SE=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],xE={name:gE,type:mE,tmScope:yE,aceMode:DE,codemirrorMode:vE,codemirrorMimeType:EE,color:bE,aliases:CE,extensions:AE,filenames:wE,interpreters:SE,languageId:183},FE=Object.freeze({__proto__:null,name:gE,type:mE,tmScope:yE,aceMode:DE,codemirrorMode:vE,codemirrorMimeType:EE,color:bE,aliases:CE,extensions:AE,filenames:wE,interpreters:SE,languageId:183,default:xE}),TE="programming",kE="JavaScript",_E=[".jsx"],OE="source.js.jsx",NE="javascript",BE="text/jsx",ME={name:"JSX",type:TE,group:kE,extensions:_E,tmScope:OE,aceMode:NE,codemirrorMode:"jsx",codemirrorMimeType:BE,languageId:178},LE=Object.freeze({__proto__:null,name:"JSX",type:TE,group:kE,extensions:_E,tmScope:OE,aceMode:NE,codemirrorMode:"jsx",codemirrorMimeType:BE,languageId:178,default:ME}),IE="TypeScript",PE="programming",jE="#2b7489",RE=["ts"],UE=["deno","ts-node"],$E=[".ts"],qE="source.ts",VE="typescript",WE="javascript",YE="application/typescript",KE={name:IE,type:PE,color:jE,aliases:RE,interpreters:UE,extensions:$E,tmScope:qE,aceMode:VE,codemirrorMode:WE,codemirrorMimeType:YE,languageId:378},JE=Object.freeze({__proto__:null,name:IE,type:PE,color:jE,aliases:RE,interpreters:UE,extensions:$E,tmScope:qE,aceMode:VE,codemirrorMode:WE,codemirrorMimeType:YE,languageId:378,default:KE}),zE="programming",GE="TypeScript",HE=[".tsx"],XE="source.tsx",QE="javascript",ZE="text/jsx",eb=94901924,tb={name:"TSX",type:zE,group:GE,extensions:HE,tmScope:XE,aceMode:QE,codemirrorMode:"jsx",codemirrorMimeType:ZE,languageId:eb},nb=Object.freeze({__proto__:null,name:"TSX",type:zE,group:GE,extensions:HE,tmScope:XE,aceMode:QE,codemirrorMode:"jsx",codemirrorMimeType:ZE,languageId:eb,default:tb}),rb="JSON",ob="data",sb="source.json",ib="json",ab="javascript",ub="application/json",cb=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],lb=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],pb={name:rb,type:ob,tmScope:sb,aceMode:ib,codemirrorMode:ab,codemirrorMimeType:ub,searchable:false,extensions:cb,filenames:lb,languageId:174},fb=Object.freeze({__proto__:null,name:rb,type:ob,tmScope:sb,aceMode:ib,codemirrorMode:ab,codemirrorMimeType:ub,searchable:false,extensions:cb,filenames:lb,languageId:174,default:pb}),db="JSON with Comments",hb="data",gb="JSON",mb="source.js",yb="javascript",Db="javascript",vb="text/javascript",Eb=["jsonc"],bb=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],Cb=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],Ab={name:db,type:hb,group:gb,tmScope:mb,aceMode:yb,codemirrorMode:Db,codemirrorMimeType:vb,aliases:Eb,extensions:bb,filenames:Cb,languageId:423},wb=Object.freeze({__proto__:null,name:db,type:hb,group:gb,tmScope:mb,aceMode:yb,codemirrorMode:Db,codemirrorMimeType:vb,aliases:Eb,extensions:bb,filenames:Cb,languageId:423,default:Ab}),Sb="JSON5",xb="data",Fb=[".json5"],Tb="source.js",kb="javascript",_b="javascript",Ob="application/json",Nb={name:Sb,type:xb,extensions:Fb,tmScope:Tb,aceMode:kb,codemirrorMode:_b,codemirrorMimeType:Ob,languageId:175},Bb=Object.freeze({__proto__:null,name:Sb,type:xb,extensions:Fb,tmScope:Tb,aceMode:kb,codemirrorMode:_b,codemirrorMimeType:Ob,languageId:175,default:Nb}),Mb=it(FE),Lb=it(LE),Ib=it(JE),Pb=it(nb),jb=it(fb),Rb=it(wb),Ub=it(Bb);const $b=[nl(Mb,(e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])}))),nl(Mb,(()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),nl(Lb,(()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}))),nl(Ib,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),nl(Pb,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),nl(jb,(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}))),nl(jb,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])}))),nl(Rb,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])}))),nl(Ub,(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))];var qb={languages:$b,options:hE,printers:{estree:aE,"estree-json":fE}};const{cjkPattern:Vb,kPattern:Wb,punctuationPattern:Yb}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:Kb}=mi,Jb=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],zb=Jb.concat(["tableCell","paragraph","heading"]),Gb=new RegExp(Wb),Hb=new RegExp(Yb);function Xb(e,t){const[,n,r,o]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:o}}var Qb={mapAst:function(e,t){return function e(n,r,o){o=o||[];const s=Object.assign({},t(n,r,o));return s.children&&(s.children=s.children.map(((t,n)=>e(t,n,[s].concat(o))))),s}(e,null,null)},splitText:function(e,t){const n="non-cjk",r="cj-letter",o="cjk-punctuation",s=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Vb,")\n(").concat(Vb,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(((e,t,a)=>{t%2!=1?(0!==t&&t!==a.length-1||""!==e)&&e.split(new RegExp("(".concat(Vb,")"))).forEach(((e,t,s)=>{(0!==t&&t!==s.length-1||""!==e)&&(t%2!=0?i(Hb.test(e)?{type:"word",value:e,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:Gb.test(e)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&i({type:"word",value:e,kind:n,hasLeadingPunctuation:Hb.test(e[0]),hasTrailingPunctuation:Hb.test(Kb(e))}))})):s.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),s;function i(e){const t=Kb(s);var i,a;t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?s.push({type:"whitespace",value:" "}):(i=n,a=o,t.kind===i&&e.kind===a||t.kind===a&&e.kind===i||[t.value,e.value].some((e=>/\u3000/.test(e)))||s.push({type:"whitespace",value:""}))),s.push(e)}},punctuationPattern:Yb,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,o=new RegExp("^\\s{0,".concat(r,"}")),s=n.split("\n"),i=n[r],a=n.slice(r).match(new RegExp("^[".concat(i,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(a)).test(s[s.length-1].slice(c(s.length-1)));return s.slice(1,u?-1:void 0).map(((e,t)=>e.slice(c(t+1)).replace(o,""))).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:Xb,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(Xb(e.children[0],t.originalText).numberText),r=Number(Xb(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(Xb(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:Jb,INLINE_NODE_WRAPPER_TYPES:zb};const{builders:{hardline:Zb,literalline:eC,concat:tC,markAsRoot:nC},utils:{mapDoc:rC}}=Ui,{getFencedCodeBlockValue:oC}=Qb;var sC=function(e,t,n,r){const o=e.getValue();if("code"===o.type&&null!==o.lang){const e=o.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=En.getSupportInfo({plugins:r.plugins}).languages.find((t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find((t=>t===".".concat(e)))));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",i=e.repeat(Math.max(3,mi.getMaxContinuousCount(o.value,e)+1)),a=n(oC(o,r.originalText),{parser:t});return nC(tC([i,o.lang,Zb,s(a),i]))}}if("yaml"===o.type)return nC(tC(["---",Zb,o.value&&o.value.trim()?s(n(o.value,{parser:"yaml"})):"","---"]));switch(o.type){case"importExport":return n(o.value,{parser:"babel"});case"jsx":return n("<$>".concat(o.value,""),{parser:"__js_expression",rootMarker:"mdx"})}return null;function s(e){return rC(e,(e=>"string"==typeof e&&e.includes("\n")?tC(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:eC))):e))}};const iC=["format","prettier"];function aC(e){const t="@(".concat(iC.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var uC={startWithPragma:aC,hasPragma:e=>aC(Eu(e).content.trimStart()),insertPragma:e=>{const t=Eu(e),n="\x3c!-- @".concat(iC[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:cC,mapAst:lC,splitText:pC}=Qb,fC=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function dC(e,t,n){return lC(e,(e=>{if(!e.children)return e;const r=e.children.reduce(((e,r)=>{const o=e[e.length-1];return o&&t(o,r)?e.splice(-1,1,n(o,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var hC=function(e,t){return function(e){return dC(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e){return lC(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})))}(e=function(e,t){return lC(e,((e,n,[r])=>{if("text"!==e.type)return e;let{value:o}=e;return"paragraph"===r.type&&(0===n&&(o=o.trimStart()),n===r.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:pC(o,t)}}))}(e=function(e,t){return lC(e,((e,t,n)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t1)return!0;const s=n(r);return-1!==s&&(1===e.children.length?s%t.tabWidth==0:s===n(o)&&(s%t.tabWidth==0||cC(o,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return lC(e,((e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")})))}(e=function(e){return dC(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e,t){return lC(e,(e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&fC.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value})))}(e,t))),t),t),t)))};const{builders:{breakParent:gC,concat:mC,join:yC,line:DC,literalline:vC,markAsRoot:EC,hardline:bC,softline:CC,ifBreak:AC,fill:wC,align:SC,indent:xC,group:FC},utils:{mapDoc:TC},printer:{printDocToString:kC}}=Ui,{getFencedCodeBlockValue:_C,hasGitDiffFriendlyOrderedList:OC,splitText:NC,punctuationPattern:BC,INLINE_NODE_TYPES:MC,INLINE_NODE_WRAPPER_TYPES:LC}=Qb,{replaceEndOfLineWith:IC}=mi,PC=["importExport"],jC=["heading","tableCell","link"],RC=["listItem","definition","footnoteDefinition"];function UC(e,t,n,r){const o=e.getValue(),s=null===o.checked?"":o.checked?"[x] ":"[ ] ";return mC([s,KC(e,t,n,{processor:(e,o)=>{if(0===o&&"list"!==e.getValue().type)return SC(" ".repeat(s.length),e.call(n));const i=" ".repeat((a=t.tabWidth-r.length,c=3,a<(u=0)?u:a>c?c:a));var a,u,c;return mC([i,SC(i,e.call(n))])}})])}function $C(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const o of t.children)if(o.type===e.type&&n(o)?r++:r=-1,o===e)return r}(e,t,(t=>t.ordered===e.ordered))}function qC(e,t){const n=[].concat(t);let r,o=-1;for(;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function VC(e,t){const n=qC(e,t);return-1===n?null:e.getParentNode(n)}function WC(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return bC;const r="always"===n.proseWrap&&!VC(e,jC);return""!==t?r?DC:" ":r?CC:""}function YC(e,t,n){const r=[];let o=null;const{children:s}=e.getValue();return s.forEach(((e,t)=>{switch(zC(e)){case"start":null===o&&(o={index:t,offset:e.position.end.offset});break;case"end":null!==o&&(r.push({start:o,end:{index:t,offset:e.position.start.offset}}),o=null)}})),KC(e,t,n,{processor:(e,o)=>{if(0!==r.length){const e=r[0];if(o===e.start.index)return mC([s[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),s[e.end.index].value]);if(e.start.indexe.call(n)),i=e.getValue(),a=[];let u;return e.map(((e,n)=>{const r=e.getValue(),o=s(e,n);if(!1!==o){const e={parts:a,prevNode:u,parentNode:i,options:t};(function(e,t){const n=0===t.parts.length,r=MC.includes(e.type),o="html"===e.type&&LC.includes(t.parentNode.type);return n||r||o})(r,e)||(a.push(bC),u&&PC.includes(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&RC.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,s="next"===zC(t.prevNode),i="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(n||r||s||i||a)}(r,e)||GC(r,e))&&a.push(bC),GC(r,e)&&a.push(bC)),a.push(o),u=r}}),"children"),o(a)}function JC(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function zC(e){if("html"!==e.type)return!1;const t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function GC(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function HC(e){return TC(e,(e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce(((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e)),[]);return Object.assign({},e,{parts:ZC(t)})}))}function XC(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map((e=>"\\".concat(e))).join("|")).test(e)?"<".concat(e,">"):e}function QC(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+QC(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,o=e.split('"').length-1,s=r>o?'"':o>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(s,")"),"g"),"\\$1"),"".concat(s).concat(e).concat(s)}function ZC(e){return e.reduce(((e,t)=>{const n=mi.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e}),[])}var eA={preprocess:hC,print:function(e,t,n){const r=e.getValue();if(function(e){const t=VC(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return mC(NC(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((n=>"word"===n.type?n.value:""===n.value?"":WC(e,n.value,t))));switch(r.type){case"root":return 0===r.children.length?"":mC([HC(YC(e,t,n)),PC.includes(JC(r).type)?"":bC]);case"paragraph":return KC(e,t,n,{postprocessor:wC});case"sentence":return KC(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(BC,")(_+)"),"(_+)(".concat(BC,"|$)")].join("|"),"g"),((e,t,n,r,o)=>(n?"".concat(t).concat(n):"".concat(r).concat(o)).replace(/_/g,"\\_")));case"whitespace":{const n=e.getParentNode(),o=n.children.indexOf(r),s=n.children[o+1],i=s&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(s.value)?"never":t.proseWrap;return WC(e,r.value,{proseWrap:i})}case"emphasis":{const o=e.getParentNode(),s=o.children.indexOf(r),i=o.children[s-1],a=o.children[s+1],u=i&&"sentence"===i.type&&i.children.length>0&&"word"===mi.getLast(i.children).type&&!mi.getLast(i.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||VC(e,"emphasis")?"*":"_";return mC([u,KC(e,t,n),u])}case"strong":return mC(["**",KC(e,t,n),"**"]);case"delete":return mC(["~~",KC(e,t,n),"~~"]);case"inlineCode":{const e=mi.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return mC([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return mC(["<",n,">"])}case"[":return mC(["[",KC(e,t,n),"](",XC(r.url,")"),QC(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return mC(["![",r.alt||"","](",XC(r.url,")"),QC(r.title,t),")"]);case"blockquote":return mC(["> ",SC("> ",KC(e,t,n))]);case"heading":return mC(["#".repeat(r.depth)+" ",KC(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return SC(e,mC([e,mC(IC(r.value,bC))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,mi.getMaxContinuousCount(r.value,e)+1));return mC([n,r.lang||"",bC,mC(IC(_C(r,t.originalText),bC)),bC,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&mi.getLast(t.children)===r?r.value.trimEnd():r.value,o=/^$/.test(n);return mC(IC(n,o?bC:EC(vC)))}case"list":{const o=$C(r,e.getParentNode()),s=OC(r,t);return KC(e,t,n,{processor:(e,i)=>{const a=function(){const e=r.ordered?(0===i?r.start:s?1:r.start+i)+(o%2==0?". ":") "):o%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=r();return e+" ".repeat(n>=4?0:n);function r(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?mC([a,UC(e,t,n,a)]):mC([a,SC(" ".repeat(a.length),UC(e,t,n,a))])}})}case"thematicBreak":{const t=qC(e,"list");return-1===t?"---":$C(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return mC(["[",KC(e,t,n),"]","full"===r.referenceType?mC(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":return"full"===r.referenceType?mC(["![",r.alt||"","][",r.identifier,"]"]):mC(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""]);case"definition":{const e="always"===t.proseWrap?DC:" ";return FC(mC([mC(["[",r.identifier,"]:"]),xC(mC([e,XC(r.url),null===r.title?"":mC([e,QC(r.title,t,!1)])]))]))}case"footnote":return mC(["[^",KC(e,t,n),"]"]);case"footnoteReference":return mC(["[^",r.identifier,"]"]);case"footnoteDefinition":{const o=e.getParentNode().children[e.getName()+1],s=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return mC(["[^",r.identifier,"]: ",s?KC(e,t,n):FC(mC([SC(" ".repeat(t.tabWidth),KC(e,t,n,{processor:(e,t)=>0===t?FC(mC([CC,e.call(n)])):e.call(n)})),o&&"footnoteDefinition"===o.type?CC:""]))])}case"table":return function(e,t,n){const r=bC.parts[0],o=e.getValue(),s=[];e.map((e=>{const r=[];e.map((e=>{r.push(kC(e.call(n),t).formatted)}),"children"),s.push(r)}),"children");const i=s.reduce(((e,t)=>e.map(((e,n)=>Math.max(e,mi.getStringWidth(t[n]))))),s[0].map((()=>3))),a=yC(r,[l(s[0]),c(),yC(r,s.slice(1).map((e=>l(e))))]);if("never"!==t.proseWrap)return mC([gC,a]);const u=yC(r,[l(s[0],!0),c(!0),yC(r,s.slice(1).map((e=>l(e,!0))))]);return mC([gC,FC(AC(u,a))]);function c(e){return mC(["| ",yC(" | ",i.map(((t,n)=>{const r=e?3:t;switch(o.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}})))," |"])}function l(e,t){return mC(["| ",yC(" | ",t?e:e.map(((e,t)=>{switch(o.align[t]){case"right":return f(e,i[t]);case"center":return d(e,i[t]);default:return p(e,i[t])}})))," |"])}function p(e,t){const n=t-mi.getStringWidth(e);return mC([e," ".repeat(n)])}function f(e,t){const n=t-mi.getStringWidth(e);return mC([" ".repeat(n),e])}function d(e,t){const n=t-mi.getStringWidth(e),r=Math.floor(n/2),o=n-r;return mC([" ".repeat(r),e," ".repeat(o)])}}(e,t,n);case"tableCell":return KC(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?mC([" ",EC(vC)]):mC(["\\",bC]);case"liquidNode":return mC(IC(r.value,bC));case"importExport":case"jsx":return r.value;case"math":return mC(["$$",bC,r.value?mC([mC(IC(r.value,bC)),bC]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:sC,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&uC.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===zC(e.getParentNode().children[t-1])},insertPragma:uC.insertPragma},tA={proseWrap:el.proseWrap,singleQuote:el.singleQuote},nA="Markdown",rA="prose",oA=["pandoc"],sA="markdown",iA="text/x-gfm",aA=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],uA=["contents.lr"],cA="source.gfm",lA={name:nA,type:rA,aliases:oA,aceMode:sA,codemirrorMode:"gfm",codemirrorMimeType:iA,wrap:true,extensions:aA,filenames:uA,tmScope:cA,languageId:222},pA=it(Object.freeze({__proto__:null,name:nA,type:rA,aliases:oA,aceMode:sA,codemirrorMode:"gfm",codemirrorMimeType:iA,wrap:true,extensions:aA,filenames:uA,tmScope:cA,languageId:222,default:lA}));const fA=[nl(pA,(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((e=>".mdx"!==e))}))),nl(pA,(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))];var dA={languages:fA,options:tA,printers:{mdast:eA}};var hA={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:gA}=mi;function mA(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function yA(e){return"prettier-ignore"===e.value.trim()}function DA(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function vA(e){return e&&e.middleComments&&0!==e.middleComments.length}function EA(e){return e&&e.indicatorComment}function bA(e){return e&&e.trailingComment}function CA(e){return e&&e.endComments&&0!==e.endComments.length}function AA(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var wA={getLast:gA,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let o=0;oe(r,n,t)))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let o=e.position.end.offset-1;oe.slice(s)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?u(a.map((e=>0===e.length?[]:[e]))):u(a.map((e=>0===e.length?[]:AA(e))).reduce(((e,t,n)=>0===n||0===a[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(gA(e))?e.concat([t]):e.concat([e.pop().concat(t)])),[]).map((e=>e.reduce(((e,t)=>0!==e.length&&/\s$/.test(gA(e))?e.concat(e.pop()+" "+t):e.concat(t)),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function u(t){if("keep"===e.chomping)return 0===gA(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:AA(e))).reduce(((t,n,o)=>0===o||0===r[o-1].length||0===n.length||"quoteDouble"===e&&gA(gA(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(gA(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return CA(t.head)&&yA(gA(t.head.endComments))}return DA(t)&&yA(gA(t.leadingComments))},hasLeadingComments:DA,hasMiddleComments:vA,hasIndicatorComment:EA,hasTrailingComment:bA,hasEndComments:CA};const{insertPragma:SA,isPragma:xA}=hA,{getAncestorCount:FA,getBlockValueLineContents:TA,getFlowScalarLineContents:kA,getLast:_A,getLastDescendantNode:OA,hasLeadingComments:NA,hasMiddleComments:BA,hasIndicatorComment:MA,hasTrailingComment:LA,hasEndComments:IA,hasPrettierIgnore:PA,isLastDescendantNode:jA,isNextLineEmpty:RA,isNode:UA,isEmptyNode:$A,defineShortcut:qA,mapNode:VA}=wA,WA=Ui.builders,{conditionalGroup:YA,breakParent:KA,concat:JA,dedent:zA,dedentToRoot:GA,fill:HA,group:XA,hardline:QA,ifBreak:ZA,join:ew,line:tw,lineSuffix:nw,literalline:rw,markAsRoot:ow,softline:sw}=WA,{replaceEndOfLineWith:iw}=mi;function aw(e){switch(e.type){case"document":qA(e,"head",(()=>e.children[0])),qA(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":qA(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":qA(e,"key",(()=>e.children[0])),qA(e,"value",(()=>e.children[1]))}return e}function uw(e,t,n,r,o){switch(e.type){case"root":return JA([ew(QA,n.map(((t,r)=>{const s=e.children[r],i=e.children[r+1];return JA([o(t),fw(s,i)?JA([QA,"...",LA(s)?JA([" ",n.call(o,"trailingComment")]):""]):!i||LA(i.head)?"":JA([QA,"---"])])}),"children")),0===e.children.length||(i=OA(e),UA(i,["blockLiteral","blockFolded"])&&"keep"===i.chomping)?"":QA]);case"document":{const s=t.children[n.getName()+1];return ew(QA,["head"===dw(e,s,t,r)?ew(QA,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(o,"head"),JA(["---",LA(e.head)?JA([" ",n.call(o,"head","trailingComment")]):""])].filter(Boolean)):"",pw(e)?n.call(o,"body"):""].filter(Boolean))}case"documentHead":return ew(QA,[].concat(n.map(o,"children"),n.map(o,"endComments")));case"documentBody":{const t=ew(QA,n.map(o,"children")).parts,r=ew(QA,n.map(o,"endComments")).parts,s=0===t.length||0===r.length?"":(e=>UA(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":JA([QA,QA]):QA)(OA(e));return JA([].concat(t,s,r))}case"directive":return JA(["%",ew(" ",[e.name].concat(e.parameters))]);case"comment":return JA(["#",e.value]);case"alias":return JA(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return JA(["&",e.value]);case"plain":return yw(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){const s="quoteDouble"===e.type?n:t;return JA([s,yw(e.type,o,r),s])}if(o.includes(n))return JA([t,yw(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):o,r),t]);if(o.includes(t))return JA([n,yw(e.type,"quoteSingle"===e.type?o.replace(/''/g,t):o,r),n]);const s=r.singleQuote?t:n;return JA([s,yw(e.type,o,r),s])}case"blockFolded":case"blockLiteral":{const t=FA(n,(e=>UA(e,["sequence","mapping"]))),s=jA(n);return JA(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",MA(e)?JA([" ",n.call(o,"indicatorComment")]):"",(null===e.indent?zA:GA)(cw(null===e.indent?r.tabWidth:e.indent-1+t,JA(TA(e,{parentIndent:t,isLastDescendant:s,options:r}).reduce(((t,n,r,o)=>t.concat(0===r?QA:"",HA(ew(tw,n).parts),r!==o.length-1?0===n.length?QA:ow(rw):"keep"===e.chomping&&s?0===n.length?GA(QA):GA(rw):"")),[]))))])}case"sequence":case"mapping":return ew(QA,n.map(o,"children"));case"sequenceItem":return JA(["- ",cw(2,e.content?n.call(o,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(o,"content"):"";case"mappingItem":case"flowMappingItem":{const s=$A(e.key),i=$A(e.value);if(s&&i)return JA([": "]);const u=n.call(o,"key"),c=n.call(o,"value");if(i)return"flowMappingItem"===e.type&&"flowMapping"===t.type?u:"mappingItem"!==e.type||!hw(e.key.content,r)||LA(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?JA(["? ",cw(2,u)]):JA([u,gw(e)?" ":"",":"]);if(s)return JA([": ",cw(2,c)]);const l=Symbol("mappingKey");return NA(e.value)||!lw(e.key.content)?JA(["? ",cw(2,u),QA,ew("",n.map(o,"value","leadingComments").map((e=>JA([e,QA])))),": ",cw(2,c)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||NA(e.key.content)||BA(e.key.content)||LA(e.key.content)||IA(e.key)||NA(e.value.content)||BA(e.value.content)||IA(e.value)||!hw(e.value.content,r)?YA([JA([XA(JA([ZA("? "),XA(cw(2,u),{id:l})])),ZA(JA([QA,": ",cw(2,c)]),a(JA([gw(e)?" ":"",":",NA(e.value.content)||IA(e.value)&&e.value.content&&!UA(e.value.content,["mapping","sequence"])||"mapping"===t.type&&LA(e.key.content)&&lw(e.value.content)||UA(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?QA:e.value.content?tw:"",c])),{groupId:l})])]):JA([u,gw(e)?" ":"",": ",c])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",i="flowMapping"===e.type?"}":"]",u="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?tw:sw,c=0!==e.children.length&&"flowMappingItem"===(s=_A(e.children)).type&&$A(s.key)&&$A(s.value);return JA([t,a(JA([u,JA(n.map(((t,n)=>JA([o(t),n===e.children.length-1?"":JA([",",tw,e.children[n].position.start.line!==e.children[n+1].position.start.line?mw(t,r.originalText):""])])),"children")),ZA(",","")])),c?"":u,i])}case"flowSequenceItem":return n.call(o,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var s,i;function a(e){return WA.align(" ".repeat(r.tabWidth),e)}}function cw(e,t){return"number"==typeof e&&e>0?WA.align(" ".repeat(e),t):WA.align(e,t)}function lw(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function pw(e){return 0!==e.body.children.length||IA(e.body)}function fw(e,t){return LA(e)||t&&(0!==t.head.children.length||IA(t.head))}function dw(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||IA(e.head)||LA(e.head)?"head":!fw(e,t)&&!!t&&"root"}function hw(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function gw(e){return e.key.content&&"alias"===e.key.content.type}function mw(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&RA(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,sw):""}function yw(e,t,n){const r=kA(e,t,n);return ew(QA,r.map((e=>HA(ew(tw,e).parts))))}var Dw={preprocess:function(e){return VA(e,aw)},print:function(e,t,n){const r=e.getValue(),o=e.getParentNode(),s=r.tag?e.call(n,"tag"):"",i=r.anchor?e.call(n,"anchor"):"",a=UA(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!jA(e)?mw(e,t.originalText):"";return JA(["mappingValue"!==r.type&&NA(r)?JA([ew(QA,e.map(n,"leadingComments")),QA]):"",s,s&&i?" ":"",i,s||i?UA(r,["sequence","mapping"])&&!BA(r)?QA:" ":"",BA(r)?JA([1===r.middleComments.length?"":QA,ew(QA,e.map(n,"middleComments")),QA]):"",PA(e)?JA(iw(t.originalText.slice(r.position.start.offset,r.position.end.offset),rw)):XA(uw(r,o,e,t,n)),LA(r)&&!UA(r,["document","documentHead"])?nw(JA(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===o.type&&"mapping"===e.getParentNode(2).type&&lw(r)?"":KA,e.call(n,"trailingComment")])):"",a,IA(r)&&!UA(r,["documentHead","documentBody"])?cw("sequenceItem"===r.type?2:0,JA([QA,ew(QA,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(UA(t))switch(delete t.position,t.type){case"comment":if(xA(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:SA},vw={bracketSpacing:el.bracketSpacing,singleQuote:el.singleQuote,proseWrap:el.proseWrap},Ew="YAML",bw="data",Cw="source.yaml",Aw=["yml"],ww=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],Sw=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],xw="yaml",Fw="yaml",Tw="text/x-yaml",kw={name:Ew,type:bw,tmScope:Cw,aliases:Aw,extensions:ww,filenames:Sw,aceMode:xw,codemirrorMode:Fw,codemirrorMimeType:Tw,languageId:407};const _w=[nl(it(Object.freeze({__proto__:null,name:Ew,type:bw,tmScope:Cw,aliases:Aw,extensions:ww,filenames:Sw,aceMode:xw,codemirrorMode:Fw,codemirrorMimeType:Tw,languageId:407,default:kw})),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter((e=>"yarn.lock"!==e))})))];var Ow={languages:_w,printers:{yaml:Dw},options:vw};const{version:Nw}=mn,{getSupportInfo:Bw}=En,Mw=[jl,cp,Zp,Hg,qb,dA,Ow];function Lw(e,t=1){return(...n)=>{const r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...Mw,...Array.isArray(o)?o:Object.values(o)]}),e(...n)}}const Iw=Lw(au.formatWithCursor);return{formatWithCursor:Iw,format:(e,t)=>Iw(e,t).formatted,check(e,t){const{formatted:n}=Iw(e,t);return n===e},doc:Ui,getSupportInfo:Lw(Bw,0),version:Nw,util:la,__debug:{parse:Lw(au.parse),formatAST:Lw(au.formatAST),formatDoc:Lw(au.formatDoc),printToDoc:Lw(au.printToDoc),printDocToString:Lw(au.printDocToString)}}}()},4881:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r,o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;oe?r=o:n=o+1}var s=n-1;return{line:s,character:e-t[s]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){var t=u(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,r){return new s(e,t,n,r)},e.update=function(e,t,n){if(e instanceof s)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),r=0,o=[],s=0,a=i(t.map(c),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));sr&&o.push(n.substring(r,l)),u.newText.length&&o.push(u.newText),r=e.offsetAt(u.range.end)}return o.push(n.substr(r)),o.join("")}}(r||(r={}))},4767:(e,t,n)=>{"use strict";var r,o,s,i,a,u,c,l,p,f,d,h,g,m,y,D,v,E,b,C,A,w,S,x,F,T;n.d(t,{Ly:()=>s,e6:()=>i,Ye:()=>a,_Z:()=>u,so:()=>d,H_:()=>g,R9:()=>D,mY:()=>v,PY:()=>E,a4:()=>B,cm:()=>L,lO:()=>I,DM:()=>R,FG:()=>U,Ub:()=>$,cR:()=>z,yN:()=>Q,B2:()=>ee,JF:()=>te}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.uinteger(t.line)&&ue.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(ue.uinteger(e)&&ue.uinteger(t)&&ue.uinteger(n)&&ue.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return ue.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(i||(i={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&(ue.string(t.uri)||ue.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.targetRange)&&ue.string(t.targetUri)&&(i.is(t.targetSelectionRange)||ue.undefined(t.targetSelectionRange))&&(i.is(t.originSelectionRange)||ue.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ue.numberRange(t.red,0,1)&&ue.numberRange(t.green,0,1)&&ue.numberRange(t.blue,0,1)&&ue.numberRange(t.alpha,0,1)}}(c||(c={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return i.is(t.range)&&c.is(t.color)}}(l||(l={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ue.string(t.label)&&(ue.undefined(t.textEdit)||E.is(t))&&(ue.undefined(t.additionalTextEdits)||ue.typedArray(t.additionalTextEdits,E.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(f||(f={})),function(e){e.create=function(e,t,n,r,o){var s={startLine:e,endLine:t};return ue.defined(n)&&(s.startCharacter=n),ue.defined(r)&&(s.endCharacter=r),ue.defined(o)&&(s.kind=o),s},e.is=function(e){var t=e;return ue.uinteger(t.startLine)&&ue.uinteger(t.startLine)&&(ue.undefined(t.startCharacter)||ue.uinteger(t.startCharacter))&&(ue.undefined(t.endCharacter)||ue.uinteger(t.endCharacter))&&(ue.undefined(t.kind)||ue.string(t.kind))}}(d||(d={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ue.defined(t)&&a.is(t.location)&&ue.string(t.message)}}(h||(h={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(m||(m={})),function(e){e.is=function(e){var t=e;return null!=t&&ue.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,r,o,s){var i={range:e,message:t};return ue.defined(n)&&(i.severity=n),ue.defined(r)&&(i.code=r),ue.defined(o)&&(i.source=o),ue.defined(s)&&(i.relatedInformation=s),i},e.is=function(e){var t,n=e;return ue.defined(n)&&i.is(n.range)&&ue.string(n.message)&&(ue.number(n.severity)||ue.undefined(n.severity))&&(ue.integer(n.code)||ue.string(n.code)||ue.undefined(n.code))&&(ue.undefined(n.codeDescription)||ue.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ue.string(n.source)||ue.undefined(n.source))&&(ue.undefined(n.relatedInformation)||ue.typedArray(n.relatedInformation,h.is))}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.title)&&ue.string(t.command)}}(v||(v={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.string(t.newText)&&i.is(t.range)}}(E||(E={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&ue.objectLiteral(t)&&ue.string(t.label)&&(ue.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ue.string(t.description)||void 0===t.description)}}(b||(b={})),function(e){e.is=function(e){return"string"==typeof e}}(C||(C={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return E.is(t)&&(b.is(t.annotationId)||C.is(t.annotationId))}}(A||(A={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ue.defined(t)&&O.is(t.textDocument)&&Array.isArray(t.edits)}}(w||(w={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ue.string(t.oldUri)&&ue.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ue.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ue.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(F||(F={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ue.string(e.kind)?S.is(e)||x.is(e)||F.is(e):w.is(e)})))}}(T||(T={}));var k,_,O,N,B,M,L,I,P,j,R,U,$,q,V,W,Y,K,J,z,G,H,X,Q,Z,ee,te,ne,re,oe,se,ie=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=E.insert(e,t):C.is(n)?(o=n,r=A.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=E.replace(e,t):C.is(n)?(o=n,r=A.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=E.del(e):C.is(t)?(r=t,n=A.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=A.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ae(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(w.is(e)){var n=new ie(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ie(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(O.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new ie(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new ie(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(b.is(t)||C.is(t)?r=t:n=t,void 0===r?o=S.create(e,n):(s=C.is(r)?r:this._changeAnnotations.manage(r),o=S.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,s,i;if(b.is(n)||C.is(n)?o=n:r=n,void 0===o?s=x.create(e,t,r):(i=C.is(o)?o:this._changeAnnotations.manage(o),s=x.create(e,t,r,i)),this._workspaceEdit.documentChanges.push(s),void 0!==i)return i},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(b.is(t)||C.is(t)?r=t:n=t,void 0===r?o=F.create(e,n):(s=C.is(r)?r:this._changeAnnotations.manage(r),o=F.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)}}(k||(k={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.integer(t.version)}}(_||(_={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&(null===t.version||ue.integer(t.version))}}(O||(O={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.string(t.languageId)&&ue.integer(t.version)&&ue.string(t.text)}}(N||(N={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(B||(B={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(B||(B={})),function(e){e.is=function(e){var t=e;return ue.objectLiteral(e)&&B.is(t.kind)&&ue.string(t.value)}}(M||(M={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(L||(L={})),function(e){e.PlainText=1,e.Snippet=2}(I||(I={})),function(e){e.Deprecated=1}(P||(P={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ue.string(t.newText)&&i.is(t.insert)&&i.is(t.replace)}}(j||(j={})),function(e){e.asIs=1,e.adjustIndentation=2}(R||(R={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}($||($={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ue.string(t)||ue.objectLiteral(t)&&ue.string(t.language)&&ue.string(t.value)}}(q||(q={})),function(e){e.is=function(e){var t=e;return!!t&&ue.objectLiteral(t)&&(M.is(t.contents)||q.is(t.contents)||ue.typedArray(t.contents,q.is))&&(void 0===e.range||i.is(e.range))}}(V||(V={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(W||(W={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;i--){var a=o[i],u=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=s))throw new Error("Overlapping edit");r=r.substring(0,u)+a.newText+r.substring(c,r.length),s=u}return r}}(se||(se={}));var ue,ce=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;ne?r=o:n=o+1}var i=n-1;return s.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";n.d(t,{ad:()=>Bt,Yj:()=>Kt,_b:()=>Zt,lA:()=>l,qk:()=>p,_N:()=>f,UG:()=>y,vG:()=>d,jF:()=>h,xw:()=>g,Qc:()=>en,Vn:()=>C});const r=Symbol.for("yaml.alias"),o=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),a=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===r,p=e=>!!e&&"object"==typeof e&&e[c]===o,f=e=>!!e&&"object"==typeof e&&e[c]===s,d=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===a,g=e=>!!e&&"object"==typeof e&&e[c]===u;function m(e){if(e&&"object"==typeof e)switch(e[c]){case s:case u:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[c]){case r:case s:case a:case u:return!0}return!1}class D{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const v=Symbol("break visit"),E=Symbol("skip children"),b=Symbol("remove node");function C(e,t){"object"==typeof t&&(t.Collection||t.Node||t.Value)&&(t=Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t)),p(e)?A(null,e.contents,t,Object.freeze([e]))===b&&(e.contents=null):A(null,e,t,Object.freeze([]))}function A(e,t,n,r){let o;if("function"==typeof n?o=n(e,t,r):f(t)?n.Map&&(o=n.Map(e,t,r)):g(t)?n.Seq&&(o=n.Seq(e,t,r)):d(t)?n.Pair&&(o=n.Pair(e,t,r)):h(t)?n.Scalar&&(o=n.Scalar(e,t,r)):l(t)&&n.Alias&&(o=n.Alias(e,t,r)),y(o)||d(o)){const t=r[r.length-1];if(m(t))t.items[e]=o;else if(d(t))"key"===e?t.key=o:t.value=o;else{if(!p(t)){const e=l(t)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}t.contents=o}return A(e,o,n,r)}if("symbol"!=typeof o)if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const o=this.tags[n];return o?o+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>w[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&y(e.contents)){const t={};C(e.contents,((e,n)=>{y(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[o,s]of n)"!!"===o&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push(`%TAG ${o} ${s}`);return t.join("\n")}}function x(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function F(e){const t=new Set;return C(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function T(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}S.defaultYaml={explicit:!1,version:"1.2"},S.defaultTags={"!!":"tag:yaml.org,2002:"};class k extends D{constructor(e){super(r),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return C(e,{Node:(e,n)=>{if(n===this)return C.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:o}=t,s=this.resolve(r);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const i=n.get(s);if(!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=_(r,s,n)),i.count*i.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(x(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function _(e,t,n){if(l(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}if(m(t)){let r=0;for(const o of t.items){const t=_(e,o,n);t>r&&(r=t)}return r}if(d(t)){const r=_(e,t.key,n),o=_(e,t.value,n);return Math.max(r,o)}return 1}function O(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>O(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!h(r=e)&&!m(r)||!r.anchor)return e.toJSON(t,n);const o={aliasCount:0,count:1,res:void 0};n.anchors.set(e,o),n.onCreate=e=>{o.res=e,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}var r;return"bigint"!=typeof e||n&&n.keep?e:Number(e)}const N=e=>!e||"function"!=typeof e&&"object"!=typeof e;class B extends D{constructor(e){super(a),this.value=e}toJSON(e,t){return t&&t.keep?this.value:O(this.value,e,t)}toString(){return String(this.value)}}function M(e,t,n){var r,o;if(p(e)&&(e=e.contents),y(e))return e;if(d(e)){const t=null===(o=(r=n.schema[s]).createNode)||void 0===o?void 0:o.call(r,n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"function"==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:l,sourceObjects:f}=n;let h;if(i&&e&&"object"==typeof e){if(h=f.get(e),h)return h.anchor||(h.anchor=a(e)),new k(h.anchor);h={anchor:null,node:null},f.set(e,h)}t&&t.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let g=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify&&t.identify(e)&&!t.format))}(e,t,l.tags);if(!g){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new B(e);return h&&(h.node=t),t}g=e instanceof Map?l[s]:Symbol.iterator in Object(e)?l[u]:l[s]}c&&(c(g),delete n.onTagObj);const m=(null==g?void 0:g.createNode)?g.createNode(n.schema,e,n):new B(e);return t&&(m.tag=t),h&&(h.node=m),m}function L(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return M(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}B.BLOCK_FOLDED="BLOCK_FOLDED",B.BLOCK_LITERAL="BLOCK_LITERAL",B.PLAIN="PLAIN",B.QUOTE_DOUBLE="QUOTE_DOUBLE",B.QUOTE_SINGLE="QUOTE_SINGLE";const I=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class P extends D{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>y(t)||d(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(I(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(m(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,L(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(m(n))return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&h(r)?r.value:r:m(r)?r.getIn(t,n):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!d(t))return!1;const n=t.value;return null==n||e&&h(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return!!m(n)&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(m(r))r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,L(this.schema,t,n))}}}}P.maxFlowStringSingleLineLength=60;const j="flow",R="block",U="quoted";function $(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return e;const u=Math.max(1+s,1+o-t.length);if(e.length<=u)return e;const c=[],l={};let p,f,d=o-t.length;"number"==typeof r&&(r>o-Math.max(2,s)?c.push(0):d=o-r);let h,g=!1,m=-1,y=-1,D=-1;for(n===R&&(m=q(e,m),-1!==m&&(d=m+u));h=e[m+=1];){if(n===U&&"\\"===h){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}D=m}if("\n"===h)n===R&&(m=q(e,m)),d=m+u,p=void 0;else{if(" "===h&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=m)}if(m>=d)if(p)c.push(p),d=p+u,p=void 0;else if(n===U){for(;" "===f||"\t"===f;)f=h,h=e[m+=1],g=!0;const t=m>D+1?m-2:y-1;if(l[t])return e;c.push(t),l[t]=!0,d=t+u,p=void 0}else g=!0}f=h}if(g&&a&&a(),0===c.length)return e;i&&i();let v=e.slice(0,c[0]);for(let r=0;r({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),W=e=>/^(%|---|\.\.\.)/m.test(e);function Y(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(W(e)?" ":"");let i="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(i+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{i+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:"00"===t.substr(0,2)?i+="\\x"+t.substr(2):i+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,r.options.lineWidth,i.length));if(!n)return a?"|\n":">\n";let u,c;for(c=n.length;c>0;--c){const e=n[c-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let l=n.substring(c);const p=l.indexOf("\n");-1===p?u="-":n===l||p!==l.length-1?(u="+",s&&s()):u="",l&&(n=n.slice(0,-l.length),"\n"===l[l.length-1]&&(l=l.slice(0,-1)),l=l.replace(/\n+(?!\n|$)/g,`$&${i}`));let f,d=!1,h=-1;for(f=0;f")+(d?i?"2":"1":"")+u;return e&&(m+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),a?`${m}\n${i}${g}${n=n.replace(/\n+/g,`$&${i}`)}${l}`:`${m}\n${i}${$(`${g}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${i}`)}${l}`,i,R,V(r))}`}function z(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==B.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=B.QUOTE_DOUBLE);const u=e=>{switch(e){case B.BLOCK_FOLDED:case B.BLOCK_LITERAL:return o||s?Y(i.value,t):J(i,t,n,r);case B.QUOTE_DOUBLE:return Y(i.value,t);case B.QUOTE_SINGLE:return K(i.value,t);case B.PLAIN:return function(e,t,n,r){var o;const{type:s,value:i}=e,{actualString:a,implicitKey:u,indent:c,inFlow:l}=t;if(u&&/[\n[\]{},]/.test(i)||l&&/[[\]{},]/.test(i))return Y(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i)){const o=-1!==i.indexOf('"'),s=-1!==i.indexOf("'");let a;return a=o&&!s?K:s&&!o?Y:t.options.singleQuote?K:Y,u||l||-1===i.indexOf("\n")?a(i,t):J(e,t,n,r)}if(!u&&!l&&s!==B.PLAIN&&-1!==i.indexOf("\n"))return J(e,t,n,r);if(""===c&&W(i))return t.forceBlockIndent=!0,J(e,t,n,r);const p=i.replace(/\n+/g,`$&\n${c}`);if(a)for(const e of t.doc.schema.tags)if(e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null===(o=e.test)||void 0===o?void 0:o.test(p)))return Y(i,t);return u?p:$(p,c,j,V(t))}(i,t,n,r);default:return null}};let c=u(a);if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n;if(c=u(r),null===c)throw new Error(`Unsupported default string type ${r}`)}return c}const G=(e,t)=>({anchors:new Set,doc:e,indent:"",indentStep:"number"==typeof t.indent?" ".repeat(t.indent):" ",options:Object.assign({defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:!1,trueStr:"true",verifyAliasOrder:!0},t)});function H(e,t,n,r){if(d(e))return e.toString(t,n,r);if(l(e))return e.toString(t);let o;const s=y(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o||(o=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,r;if(h(t)){r=t.value;const o=e.filter((e=>e.identify&&e.identify(r)));n=o.find((e=>e.format===t.format))||o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,s));const i=function(e,t,{anchors:n,doc:r}){const o=[],s=(h(e)||m(e))&&e.anchor;return s&&x(s)&&(n.add(s),o.push(`&${s}`)),e.tag?o.push(r.directives.tagString(e.tag)):t.default||o.push(r.directives.tagString(t.tag)),o.join(" ")}(s,o,t);i.length>0&&(t.indentAtStart=(t.indentAtStart||0)+i.length+1);const a="function"==typeof o.stringify?o.stringify(s,t,n,r):h(s)?z(s,t,n,r):s.toString(t,n,r);return i?h(s)||"{"===a[0]||"["===a[0]?`${i} ${a}`:`${i}\n${t.indent}${a}`:a}const X=(e,t)=>/^\n+$/.test(e)?e.substring(1):e.replace(/^(?!$)(?: $)?/gm,`${t}#`);function Q(e,t,n){return n?n.includes("\n")?`${e}\n`+X(n,t):e.endsWith(" ")?`${e}#${n}`:`${e} #${n}`:e}function Z(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function ee(e,t,{key:n,value:r}){if(e&&e.doc.schema.merge&&te(n))if(g(r))for(const n of r.items)ne(e,t,n);else if(Array.isArray(r))for(const n of r)ne(e,t,n);else ne(e,t,r);else{const o=O(n,"",e);if(t instanceof Map)t.set(o,O(r,o,e));else if(t instanceof Set)t.add(o);else{const s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(y(e)&&n&&n.doc){const t=G(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),Z(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),i=O(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const te=e=>"<<"===e||h(e)&&"<<"===e.value&&(!e.type||e.type===B.PLAIN);function ne(e,t,n){const r=e&&l(n)?n.resolve(e.doc):n;if(!f(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function re(e,t,n){const r=M(e,void 0,n),o=M(t,void 0,n);return new oe(r,o)}class oe{constructor(e,t=null){Object.defineProperty(this,c,{value:i}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return y(t)&&(t=t.clone(e)),y(n)&&(n=n.clone(e)),new oe(t,n)}toJSON(e,t){return ee(t,t&&t.mapAsMap?new Map:{},this)}toString(e,t,n){return e&&e.doc?function({key:e,value:t},n,r,o){const{allNullValues:s,doc:i,indent:a,indentStep:u,options:{indentSeq:c,simpleKeys:l}}=n;let p=y(e)&&e.comment||null;if(l){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(m(e))throw new Error("With simple keys, collection cannot be used as a key value")}let f=!l&&(!e||p&&null==t&&!n.inFlow||m(e)||(h(e)?e.type===B.BLOCK_FOLDED||e.type===B.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!f&&(l||!s),indent:a+u});let d=!1,D=!1,v=H(e,n,(()=>d=!0),(()=>D=!0));if(!f&&!n.inFlow&&v.length>1024){if(l)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(s||null==t)return d&&r&&r(),f?`? ${v}`:v}else if(s&&!l||null==t&&f)return d&&(p=null),D&&!p&&o&&o(),Q(`? ${v}`,n.indent,p);d&&(p=null),v=f?`? ${Q(v,n.indent,p)}\n${a}:`:Q(`${v}:`,n.indent,p);let E="",b=null;y(t)?(t.spaceBefore&&(E="\n"),t.commentBefore&&(E+=`\n${X(t.commentBefore,n.indent)}`),b=t.comment):t&&"object"==typeof t&&(t=i.createNode(t)),n.implicitKey=!1,f||p||!h(t)||(n.indentAtStart=v.length+1),D=!1,c||!(u.length>=2)||n.inFlow||f||!g(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substr(2));let C=!1;const A=H(t,n,(()=>C=!0),(()=>D=!0));let w=" ";return E||p?w=`${E}\n${n.indent}`:!f&&m(t)?("["===A[0]||"{"===A[0])&&!A.includes("\n")||(w=`\n${n.indent}`):"\n"===A[0]&&(w=""),n.inFlow?(C&&r&&r(),v+w+A):(C&&(b=null),D&&!b&&o&&o(),Q(v+w+A,n.indent,b))}(this,e,t,n):JSON.stringify(this)}}const se={intAsBigInt:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"};function ie({comment:e,flow:t,items:n},r,{blockItem:o,flowChars:s,itemIndent:i,onChompKeep:a,onComment:u}){const{indent:c,indentStep:l}=r,p=t||r.inFlow;p&&(i+=l),r=Object.assign({},r,{indent:i,inFlow:p,type:null});let f=!0,h=!1;const g=n.reduce(((e,t,o)=>{let s=null;if(y(t)){!h&&t.spaceBefore&&e.push({comment:!0,str:""});let n=t.commentBefore;if(n&&h&&(n=n.replace(/^\n+/,"")),n){/^\n+$/.test(n)&&(n=n.substring(1));for(const t of n.match(/^.*$/gm)){const n=" "===t?"#":t?`#${t}`:"";e.push({comment:!0,str:n})}}t.comment&&(s=t.comment,f=!1)}else if(d(t)){const n=y(t.key)?t.key:null;if(n){!h&&n.spaceBefore&&e.push({comment:!0,str:""});let t=n.commentBefore;if(t&&h&&(t=t.replace(/^\n+/,"")),t){/^\n+$/.test(t)&&(t=t.substring(1));for(const n of t.match(/^.*$/gm)){const t=" "===n?"#":n?`#${n}`:"";e.push({comment:!0,str:t})}}n.comment&&(f=!1)}if(p){const e=y(t.value)?t.value:null;e?(e.comment&&(s=e.comment),(e.comment||e.commentBefore)&&(f=!1)):null==t.value&&n&&n.comment&&(s=n.comment)}}h=!1;let a=H(t,r,(()=>s=null),(()=>h=!0));return p&&oe.str));let r=2;for(const e of g){if(e.comment||e.str.includes("\n")){f=!1;break}r+=e.str.length+2}if(!f||r>P.maxFlowStringSingleLineLength){m=e;for(const e of n)m+=e?`\n${l}${c}${e}`:"\n";m+=`\n${c}${t}`}else m=`${e} ${n.join(" ")} ${t}`}else{const e=g.map(o);m=e.shift()||"";for(const t of e)m+=t?`\n${c}${t}`:"\n"}return e?(m+="\n"+X(e,c),u&&u()):h&&a&&a(),m}function ae(e,t){const n=h(t)?t.value:t;for(const r of e)if(d(r)){if(r.key===t||r.key===n)return r;if(h(r.key)&&r.key.value===n)return r}}class ue extends P{constructor(e){super(s,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){let n;n=d(e)?e:new oe(e&&"object"==typeof e&&"key"in e?e.key:e,e.value);const r=ae(this.items,n.key),o=this.schema&&this.schema.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);h(r.value)&&N(n.value)?r.value.value=n.value:r.value=n.value}else if(o){const e=this.items.findIndex((e=>o(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=ae(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ae(this.items,e),r=n&&n.value;return!t&&h(r)?r.value:r}has(e){return!!ae(this.items,e)}set(e,t){this.add(new oe(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)ee(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!d(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ie(this,e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const ce={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,s=new ue(e),i=(e,i)=>{if("function"==typeof o)i=o.call(t,e,i);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==i||r)&&s.items.push(re(e,i,n))};if(t instanceof Map)for(const[e,n]of t)i(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s},default:!0,nodeClass:ue,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(f(e)||t("Expected a mapping for this tag"),e)};class le extends P{constructor(e){super(u,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){const t=pe(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=pe(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&h(r)?r.value:r}has(e){const t=pe(e);return"number"==typeof t&&te.comment?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function pe(e){let t=h(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const fe={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,o=new le(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}o.items.push(M(s,void 0,n))}}return o},default:!0,nodeClass:le,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(g(e)||t("Expected a sequence for this tag"),e)},de={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>z(e,t=Object.assign({actualString:!0},t),n,r)},he={identify:e=>null==e,createNode:()=>new B(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new B(null),stringify:({source:e},t)=>e&&he.test.test(e)?e:t.options.nullStr},ge={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new B("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&ge.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function me({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}const ye={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:me},De={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},ve={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new B(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:me},Ee=e=>"bigint"==typeof e||Number.isInteger(e),be=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Ce(e,t,n){const{value:r}=e;return Ee(r)&&r>=0?n+r.toString(t):me(e)}const Ae={identify:e=>Ee(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>be(e,2,8,n),stringify:e=>Ce(e,8,"0o")},we={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>be(e,0,10,n),stringify:me},Se={identify:e=>Ee(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>be(e,2,16,n),stringify:e=>Ce(e,16,"0x")},xe=[ce,fe,de,he,ge,Ae,we,Se,ye,De,ve];function Fe(e){return"bigint"==typeof e||Number.isInteger(e)}const Te=({value:e})=>JSON.stringify(e),ke=[ce,fe].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Te},{identify:e=>null==e,createNode:()=>new B(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Te},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Te},{identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Fe(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Te}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),_e={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new oe(new B(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value||e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=d(r)?r:new oe(r)}}else t("Expected a sequence for this tag");return e}function Ne(e,t,n){const{replacer:r}=n,o=new le(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,a;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],a=e[i]}else i=e;o.items.push(re(i,a,n))}return o}const Be={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Oe,createNode:Ne};class Me extends le{constructor(){super(),this.add=ue.prototype.add.bind(this),this.delete=ue.prototype.delete.bind(this),this.get=ue.prototype.get.bind(this),this.has=ue.prototype.has.bind(this),this.set=ue.prototype.set.bind(this),this.tag=Me.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(d(e)?(r=O(e.key,"",t),o=O(e.value,r,t)):r=O(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}Me.tag="tag:yaml.org,2002:omap";const Le={collection:"seq",identify:e=>e instanceof Map,nodeClass:Me,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Oe(e,t),r=[];for(const{key:e}of n.items)h(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Me,n)},createNode(e,t,n){const r=Ne(e,t,n),o=new Me;return o.items=r.items,o}};function Ie({value:e,source:t},n){return t&&(e?Pe:je).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Pe={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new B(!0),stringify:Ie},je={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new B(!1),stringify:Ie},Re={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:me},Ue={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},$e={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new B(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:me},qe=e=>"bigint"==typeof e||Number.isInteger(e);function Ve(e,t,n,{intAsBigInt:r}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const s=parseInt(e,n);return"-"===o?-1*s:s}function We(e,t,n){const{value:r}=e;if(qe(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return me(e)}const Ye={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Ve(e,2,2,n),stringify:e=>We(e,2,"0b")},Ke={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Ve(e,1,8,n),stringify:e=>We(e,8,"0")},Je={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Ve(e,0,10,n),stringify:me},ze={identify:qe,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Ve(e,2,16,n),stringify:e=>We(e,16,"0x")};class Ge extends ue{constructor(e){super(e),this.tag=Ge.tag}add(e){let t;t=d(e)?e:"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new oe(e.key,null):new oe(e,null),ae(this.items,t.key)||this.items.push(t)}get(e,t){const n=ae(this.items,e);return!t&&d(n)?h(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=ae(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new oe(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}Ge.tag="tag:yaml.org,2002:set";const He={collection:"map",identify:e=>e instanceof Set,nodeClass:Ge,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(f(e)){if(e.hasAllNullValues(!0))return Object.assign(new Ge,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Ge(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(re(e,null,n));return o}};function Xe(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===n?o(-1)*s:s}function Qe(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return me(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const Ze={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Xe(e,n),stringify:Qe},et={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Xe(e,!1),stringify:Qe},tt={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(tt.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,s||0,i||0,a||0,u);const l=t[8];if(l&&"Z"!==l){let e=Xe(l,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},nt=[ce,fe,de,he,Pe,je,Ye,Ke,Je,ze,Re,Ue,$e,_e,Le,Be,He,Ze,et,tt],rt={core:xe,failsafe:[ce,fe,de],json:ke,yaml11:nt,"yaml-1.1":nt},ot={binary:_e,bool:ge,float:ve,floatExp:De,floatNaN:ye,floatTime:et,int:we,intHex:Se,intOct:Ae,intTime:Ze,map:ce,null:he,omap:Le,pairs:Be,seq:fe,set:He,timestamp:tt},st={"tag:yaml.org,2002:binary":_e,"tag:yaml.org,2002:omap":Le,"tag:yaml.org,2002:pairs":Be,"tag:yaml.org,2002:set":He,"tag:yaml.org,2002:timestamp":tt},it=(e,t)=>e.keyt.key?1:0;class at{constructor({customTags:e,merge:t,resolveKnownTags:n,schema:r,sortMapEntries:o}){this.merge=!!t,this.name=r||"core",this.knownTags=n?st:{},this.tags=function(e,t){let n=rt[t];if(!n){const e=Object.keys(rt).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e}`)}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=ot[e];if(t)return t;const n=Object.keys(ot).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}(e,this.name),Object.defineProperty(this,s,{value:ce}),Object.defineProperty(this,a,{value:de}),Object.defineProperty(this,u,{value:fe}),this.sortMapEntries=!0===o?it:o||null}clone(){const e=Object.create(at.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function ut(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:s,flow:i,keepUndefined:a,onTagObj:u,tag:c}=n||{},{onAnchor:l,setAnchors:p,sourceObjects:f}=function(e,t){const n=[],r=new Map;let o=null;return{onAnchor(r){n.push(r),o||(o=F(e));const s=T(t,o);return o.add(s),s},setAnchors(){for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!h(t.node)&&!m(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,s||"a"),d=M(e,c,{aliasDuplicateObjects:null==o||o,keepUndefined:null!=a&&a,onAnchor:l,onTagObj:u,replacer:r,schema:this.schema,sourceObjects:f});return i&&m(d)&&(d.flow=!0),p(),d}createPair(e,t,n={}){const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new oe(r,o)}delete(e){return!!lt(this.contents)&&this.contents.delete(e)}deleteIn(e){return I(e)?null!=this.contents&&(this.contents=null,!0):!!lt(this.contents)&&this.contents.deleteIn(e)}get(e,t){return m(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return I(e)?!t&&h(this.contents)?this.contents.value:this.contents:m(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!m(this.contents)&&this.contents.has(e)}hasIn(e){return I(e)?void 0!==this.contents:!!m(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=L(this.schema,[e],t):lt(this.contents)&&this.contents.set(e,t)}setIn(e,t){I(e)?this.contents=t:null==this.contents?this.contents=L(this.schema,Array.from(e),t):lt(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t){let n;switch(String(e)){case"1.1":this.directives.yaml.version="1.1",n=Object.assign({merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"},t);break;case"1.2":this.directives.yaml.version="1.2",n=Object.assign({merge:!1,resolveKnownTags:!0,schema:"core"},t);break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1' or '1.2' as version, but found: ${t}`)}}this.schema=new at(n)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:H},a=O(this.contents,t||"",i);if("function"==typeof o)for(const{count:e,res:t}of i.anchors.values())o(t,e);return"function"==typeof s?ut(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.marker&&(r=!0)}r&&n.push("---"),e.commentBefore&&(1!==n.length&&n.unshift(""),n.unshift(X(e.commentBefore,"")));const o=G(e,t);let s=!1,i=null;if(e.contents){y(e.contents)&&(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore&&n.push(X(e.contents.commentBefore,"")),o.forceBlockIndent=!!e.comment,i=e.contents.comment);const t=i?void 0:()=>s=!0;let a=H(e.contents,o,(()=>i=null),t);i&&(a=Q(a,"",i)),"|"!==a[0]&&">"!==a[0]||"---"!==n[n.length-1]?n.push(a):n[n.length-1]=`--- ${a}`}else n.push(H(e.contents,o));let a=e.comment;return a&&s&&(a=a.replace(/^\n+/,"")),a&&(s&&!i||""===n[n.length-1]||n.push(""),n.push(X(a,""))),n.join("\n")+"\n"}(this,e)}}function lt(e){if(m(e))return!0;throw new Error("Expected a YAML collection as document contents")}class pt extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class ft extends pt{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class dt extends pt{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const ht=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const e=Math.min(s-39,i.length-79);i="…"+i.substring(e),s-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),i=n+i}if(/[^ ]/.test(i)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>o&&(e=Math.min(t.col-o,80-s));const a=" ".repeat(s)+"^".repeat(e);n.message+=`:\n\n${i}\n${a}\n`}};function gt(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let a=!1,u=i,c=i,l="",p="",f=!1,d=!1,h=null,g=null,m=null,y=null,D=null;for(const r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&u&&"doc-start"!==n&&"\t"===r.source[0]&&s(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";l?l+=p+e:l=e,p="",u=!1;break}case"newline":u?l?l+=r.source:a=!0:p+=r.source,u=!0,f=!0,c=!0;break;case"anchor":h&&s(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),h=r,null===D&&(D=r.offset),u=!1,c=!1,d=!0;break;case"tag":g&&s(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===D&&(D=r.offset),u=!1,c=!1,d=!0;break;case n:(h||g)&&s(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),y=r,u=!1,c=!1;break;case"comma":if(t){m&&s(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),m=r,u=!1,c=!1;break}default:s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),u=!1,c=!1}const v=e[e.length-1],E=v?v.offset+v.source.length:o;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:m,found:y,spaceBefore:a,comment:l,hasNewline:f,anchor:h,tag:g,end:E,start:null!=D?D:E}}function mt(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(mt(t.key)||mt(t.value))return!0}return!1;default:return!0}}function yt(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const o="function"==typeof r?r:(t,n)=>t===n||h(t)&&h(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>o(e.key,n)))}const Dt="All mapping items must start at the same column";function vt(e,t,n,r){let o="";if(e){let s=!1,i="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=i+t:o=t,i="";break}case"newline":o&&(i+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=e.length}}return{comment:o,offset:t}}const Et="Block collections are not allowed within flow collections",bt=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Ct(e){let t,n;try{t=new RegExp("(.*?)(?"===o.mode?B.BLOCK_FOLDED:B.BLOCK_LITERAL,i=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[r&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e=0;--e){const t=i[e][1];if(""!==t&&"\r"!==t)break;a=e}if(!e.source||0===a){const t="+"===o.chomp?i.map((e=>e[0])).join("\n"):"";let n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:o.comment,range:[r,n,n]}}let u=e.indent+o.indent,c=e.offset+o.length,l=0;for(let e=0;eu&&(u=t.length),c+=t.length+r.length+1}let p="",f="",d=!1;for(let e=0;eu||"\t"===r[0]?(" "===f?f="\n":d||"\n"!==f||(f="\n\n"),p+=f+t.slice(u)+r,f="\n",d=!0):""===r?"\n"===f?p+="\n":f="\n":(p+=f+r,f=" ",d=!1)}switch(o.chomp){case"-":break;case"+":for(let e=a;en(r+e,t,o);switch(o){case"scalar":a=B.PLAIN,u=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Ct(e)}(s,c);break;case"single-quoted-scalar":a=B.QUOTE_SINGLE,u=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ct(e.slice(1,-1)).replace(/''/g,"'")}(s,c);break;case"double-quoted-scalar":a=B.QUOTE_DOUBLE,u=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):o)}else n+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const l=r+s.length,p=vt(i,l,t,n);return{value:u,type:a,comment:p.comment,range:[r,l,p.offset]}}(t,e.options.strict,r),c=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,l=n&&c?function(e,t,n,r,o){var s;if("!"===n)return e[a];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(null===(s=e.test)||void 0===s?void 0:s.test(t))return e;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[a])}(e.schema,o,c,n,r):function(e,t,n){var r;if(n)for(const n of e.tags)if(n.default&&(null===(r=n.test)||void 0===r?void 0:r.test(t)))return n;return e[a]}(e.schema,o,"scalar"===t.type);let p;try{const s=l.resolve(o,(e=>r(n||t,"TAG_RESOLVE_FAILED",e)),e.options);p=h(s)?s:new B(s)}catch(e){const s=e instanceof Error?e.message:String(e);r(n||t,"TAG_RESOLVE_FAILED",s),p=new B(o)}return p.range=u,p.source=o,s&&(p.type=s),c&&(p.tag=c),l.format&&(p.format=l.format),i&&(p.comment=i),p}function Ft(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r];break}}return e}const Tt={composeNode:kt,composeEmptyNode:_t};function kt(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:a}=n;let u;switch(t.type){case"alias":u=function({options:e},{offset:t,source:n,end:r},o){const s=new k(n.substring(1));""===s.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string");const i=t+n.length,a=vt(r,i,e.strict,o);return s.range=[t,i,a.offset],a.comment&&(s.comment=a.comment),s}(e,t,r),(i||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=xt(e,t,a,r),i&&(u.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,o){let s;switch(n.type){case"block-map":s=function({composeNode:e,composeEmptyNode:t},n,r,o){var s;const i=new ue(n.schema);let a=r.offset;for(const{start:u,key:c,sep:l,value:p}of r.items){const f=gt(u,{indicator:"explicit-key-ind",next:c||(null==l?void 0:l[0]),offset:a,onError:o,startOnNewline:!0}),d=!f.found;if(d){if(c&&("block-seq"===c.type?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&o(a,"BAD_INDENT",Dt)),!f.anchor&&!f.tag&&!l){f.comment&&(i.comment?i.comment+="\n"+f.comment:i.comment=f.comment);continue}}else(null===(s=f.found)||void 0===s?void 0:s.indent)!==r.indent&&o(a,"BAD_INDENT",Dt);d&&mt(c)&&o(c,"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");const h=f.end,g=c?e(n,c,f,o):t(n,h,u,null,f,o);yt(n,i.items,g)&&o(h,"DUPLICATE_KEY","Map keys must be unique");const m=gt(l||[],{indicator:"map-value-ind",next:p,offset:g.range[2],onError:o,startOnNewline:!c||"block-scalar"===c.type});if(a=m.end,m.found){d&&("block-map"!==(null==p?void 0:p.type)||m.hasNewline||o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&f.start0){const e=vt(p,f,n.options.strict,o);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[r.offset,f,e.offset]}else a.range=[r.offset,f,f];return a}(e,t,n,o)}if(!r)return s;const i=t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e)));if(!i)return s;const a=s.constructor;if("!"===i||i===a.tagName)return s.tag=a.tagName,s;const u=f(s)?"map":"seq";let c=t.schema.tags.find((e=>e.collection===u&&e.tag===i));if(!c){const e=t.schema.knownTags[i];if(!e||e.collection!==u)return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),s.tag=i,s;t.schema.tags.push(Object.assign({},e,{default:!1})),c=e}const l=c.resolve(s,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options),p=y(l)?l:new B(l);return p.range=s.range,p.tag=i,(null==c?void 0:c.format)&&(p.format=c.format),p}(Tt,e,t,a,r),i&&(u.anchor=i.source.substring(1));break;default:throw console.log(t),new Error(`Unsupporten token type: ${t.type}`)}return i&&""===u.anchor&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(u.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?u.comment=s:u.commentBefore=s),u}function _t(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:a},u){const c=xt(e,{type:"scalar",offset:Ft(t,n,r),indent:-1,source:""},a,u);return i&&(c.anchor=i.source.substring(1),""===c.anchor&&u(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(c.spaceBefore=!0),s&&(c.comment=s),c}function Ot(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Nt(e){var t;let n="",r=!1,o=!1;for(let s=0;s{const o=Ot(e);r?this.warnings.push(new dt(o,t,n)):this.errors.push(new ft(o,t,n))},this.directives=new S({version:e.version||se.version}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Nt(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.marker||!o)e.commentBefore=n;else if(m(o)&&!o.flow&&o.items.length>0){let e=o.items[0];d(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore;o.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Nt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Ot(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:o,end:s},i){const a=Object.assign({directives:t},e),u=new ct(void 0,a),c={directives:u.directives,options:u.options,schema:u.schema},l=gt(r,{indicator:"doc-start",next:o||(null==s?void 0:s[0]),offset:n,onError:i,startOnNewline:!0});l.found&&(u.directives.marker=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||l.hasNewline||i(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?kt(c,o,l,i):_t(c,l.end,r,null,l,i);const p=u.contents.range[2],f=vt(s,p,!1,i);return f.comment&&(u.comment=f.comment),u.range=[n,p,f.offset],u}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.marker&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new ft(Ot(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new ft(Ot(e),"UNEXPECTED_TOKEN",t));break}const t=vt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ft(Ot(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({directives:this.directives},this.options),n=new ct(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const Mt=Symbol("break visit"),Lt=Symbol("skip children"),It=Symbol("remove item");function Pt(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),jt(Object.freeze([]),e,t)}function jt(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n&&n[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Pt.parentCollection=(e,t)=>{const n=Pt.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n&&n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Rt(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const Ut="0123456789ABCDEFabcdef".split(""),$t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),qt=",[]{}".split(""),Vt=" ,[]{}\n\r\t".split(""),Wt=e=>!e||Vt.includes(e);class Yt{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next||"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Rt(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!Rt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Rt(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Wt),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),t=yield*this.pushSpaces(!0),e>0&&(this.indentValue=n=t)}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>Rt(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];for("\r"===n&&(n=this.buffer[--e]);" "===n||"\t"===n;)n=this.buffer[--e];if(!("\n"===n&&e>=this.pos))break;t=e}return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(Rt(t)||e&&","===t)break;n=r}else if(Rt(t)){let o=this.buffer[r+1];if("\r"===t&&("\n"===o?(r+=1,t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&qt.includes(o))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&qt.includes(t))break;n=r}return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Wt))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case":":case"?":case"-":if(Rt(this.charAt(1)))return 0===this.flowLevel&&(this.indentNext=this.indentValue+1),(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Rt(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if($t.includes(t))t=this.buffer[++e];else{if("%"!==t||!Ut.includes(this.buffer[e+1])||!Ut.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Kt{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null===(t=e[++n])||void 0===t?void 0:t.type););return e.splice(n,e.length)}function Qt(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||Jt(t.start,"explicit-key-ind")||Jt(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,Gt(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Zt{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Yt,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e||this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"!==t.type&&"flow-collection"!==t.type||(t.indent="indent"in e?e.indent:-1),"flow-collection"===t.type&&Qt(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!Jt(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&!zt(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const t=!this.onKeyLine&&this.indent===e.indent&&(n.sep||zt(n.start));switch(this.type){case"anchor":case"tag":return void(t||n.value?(e.items.push({start:[this.sourceToken]}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||Jt(n.start,"explicit-key-ind")?t||n.value?e.items.push({start:[this.sourceToken]}):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(n.sep)if(n.value||t&&!Jt(n.start,"explicit-key-ind"))e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Jt(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else if(Jt(n.start,"explicit-key-ind")&&Gt(n.key)&&!Jt(n.sep,"newline")){const e=Xt(n.start),t=n.key,r=n.sep;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:r}]})}else n.sep.push(this.sourceToken);else Object.assign(n,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(t||n.value?(e.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(r):(Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!0))}default:{const r=this.startBlockValue(e);if(r)return t&&"block-seq"!==r.type&&Jt(n.start,"explicit-key-ind")&&e.items.push({start:[]}),void this.stack.push(r)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],o=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(n.value||Jt(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"!==t.type||"map-value-ind"!==this.type&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=Xt(Ht(t));Qt(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Xt(Ht(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Xt(Ht(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function en(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const o=function(e,t={}){const{lineCounter:n,prettyErrors:r}=function(e){const t=!e||!1!==e.prettyErrors;return{lineCounter:e&&e.lineCounter||t&&new Kt||null,prettyErrors:t}}(t),o=new Zt(null==n?void 0:n.addNewLine),s=new Bt(t);let i=null;for(const t of s.compose(o.parse(e),!0,e.length))if(i){if("silent"!==i.options.logLevel){i.errors.push(new ft(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else i=t;return r&&n&&(i.errors.forEach(ht(e,n)),i.warnings.forEach(ht(e,n))),i}(e,n);if(!o)return null;if(o.warnings.forEach((e=>Z(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/7971.entry.js b/src/Web/assets/public/yaml/7971.entry.js index 5c8fa38..abdb431 100644 --- a/src/Web/assets/public/yaml/7971.entry.js +++ b/src/Web/assets/public/yaml/7971.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7971],{7971:(x,e,i)=>{i.r(e),i.d(e,{conf:()=>d,language:()=>f});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); -//# sourceMappingURL=7971.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[7971],{7971:(x,e,i)=>{i.r(e),i.d(e,{conf:()=>d,language:()=>f});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8147.entry.js b/src/Web/assets/public/yaml/8147.entry.js index 9d6257c..d0943c7 100644 --- a/src/Web/assets/public/yaml/8147.entry.js +++ b/src/Web/assets/public/yaml/8147.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8147],{8147:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]); -//# sourceMappingURL=8147.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8147],{8147:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8308.entry.js b/src/Web/assets/public/yaml/8308.entry.js index 5efdced..2b276f6 100644 --- a/src/Web/assets/public/yaml/8308.entry.js +++ b/src/Web/assets/public/yaml/8308.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8308],{8308:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>n});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},n={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}}]); -//# sourceMappingURL=8308.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8308],{8308:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>n});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},n={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8309.entry.js b/src/Web/assets/public/yaml/8309.entry.js index 5c41f78..545a843 100644 --- a/src/Web/assets/public/yaml/8309.entry.js +++ b/src/Web/assets/public/yaml/8309.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8309],{8309:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]); -//# sourceMappingURL=8309.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8309],{8309:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8327.entry.js b/src/Web/assets/public/yaml/8327.entry.js index 174284b..fc00501 100644 --- a/src/Web/assets/public/yaml/8327.entry.js +++ b/src/Web/assets/public/yaml/8327.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8327],{8327:(e,t,a)=>{a.r(t),a.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}}]); -//# sourceMappingURL=8327.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8327],{8327:(e,t,a)=>{a.r(t),a.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/849.entry.js b/src/Web/assets/public/yaml/849.entry.js index e0c8c5a..9a0a30d 100644 --- a/src/Web/assets/public/yaml/849.entry.js +++ b/src/Web/assets/public/yaml/849.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[849],{849:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},r={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}}]); -//# sourceMappingURL=849.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[849],{849:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},r={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8677.entry.js b/src/Web/assets/public/yaml/8677.entry.js index 34af9b1..5730b46 100644 --- a/src/Web/assets/public/yaml/8677.entry.js +++ b/src/Web/assets/public/yaml/8677.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8677],{8677:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]); -//# sourceMappingURL=8677.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8677],{8677:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/868.entry.js b/src/Web/assets/public/yaml/868.entry.js index aad6a0d..6f25660 100644 --- a/src/Web/assets/public/yaml/868.entry.js +++ b/src/Web/assets/public/yaml/868.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[868],{868:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},n={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","strict","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); -//# sourceMappingURL=868.entry.js.map \ No newline at end of file +"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[868],{868:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},n={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","strict","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/src/Web/assets/public/yaml/8947.entry.js b/src/Web/assets/public/yaml/8947.entry.js index 6c64930..49b8351 100644 --- a/src/Web/assets/public/yaml/8947.entry.js +++ b/src/Web/assets/public/yaml/8947.entry.js @@ -1,2 +1 @@ -"use strict";(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[8947],{8947:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>o});var n={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment","@pop"],[/|$)/,R.html=M(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=M(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R._tag).getRegex(),R.blockquote=M(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=A({},R),R.gfm=A({},R.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.table=M(R.gfm.table).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R._tag).getRegex(),R.pedantic=A({},R.normal,{html:M("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:M(R.normal._paragraph).replace("hr",R.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var O={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};O.punctuation=M(O.punctuation).replace(/punctuation/g,O._punctuation).getRegex(),O.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,O.escapedEmSt=/\\\*|\\_/g,O._comment=M(R._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),O.emStrong.lDelim=M(O.emStrong.lDelim).replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimAst=M(O.emStrong.rDelimAst,"g").replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimUnd=M(O.emStrong.rDelimUnd,"g").replace(/punct/g,O._punctuation).getRegex(),O._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,O._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,O._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,O.autolink=M(O.autolink).replace("scheme",O._scheme).replace("email",O._email).getRegex(),O._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,O.tag=M(O.tag).replace("comment",O._comment).replace("attribute",O._attribute).getRegex(),O._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,O._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,O._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,O.link=M(O.link).replace("label",O._label).replace("href",O._href).replace("title",O._title).getRegex(),O.reflink=M(O.reflink).replace("label",O._label).getRegex(),O.reflinkSearch=M(O.reflinkSearch,"g").replace("reflink",O.reflink).replace("nolink",O.nolink).getRegex(),O.normal=A({},O),O.pedantic=A({},O.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",O._label).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O._label).getRegex()}),O.gfm=A({},O.normal,{escape:M(O.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1;)1&t&&(i+=e),t>>=1,e+=e;return i+e};function z(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function K(e){var t,i,n="",o=e.length;for(t=0;t.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var U=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||B,this.options.tokenizer=this.options.tokenizer||new F,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:V.normal,inline:W.normal};this.options.pedantic?(t.block=V.pedantic,t.inline=W.pedantic):this.options.gfm&&(t.block=V.gfm,this.options.breaks?t.inline=W.breaks:t.inline=W.gfm),this.tokenizer.rules=t}t.lex=function(e,i){return new t(i).lex(e)},t.lexInline=function(e,i){return new t(i).inlineTokens(e)};var i,n,o=t.prototype;return o.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},o.blockTokens=function(e,t){var i,n,o,s,r=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},o.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},o.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,h=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(h));)d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,r.index)+"["+H("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,r.index)+"["+H("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,r.index)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,h,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,K))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,K))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,z))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},i=t,n=[{key:"rules",get:function(){return{block:V,inline:W}}}],null&&e(i.prototype,null),n&&e(i,n),t}(),$=n.exports.defaults,j=function(e,t,i){if(e){var n;try{n=decodeURIComponent(c(i)).replace(g,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!p.test(i)&&(i=function(e,t){m[" "+e]||(f.test(e)?m[" "+e]=e+"/":m[" "+e]=b(e,"/",!0));var i=-1===(e=m[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(_,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(v,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i},q=C,G=function(){function e(e){this.options=e||$}var t=e.prototype;return t.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(i?e:q(e,!0))+"
\n":"
"+(i?e:q(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,i,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,i){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},t.image=function(e,t,i){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return i;var n=''+i+'":">")},t.text=function(e){return e},e}(),Z=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),Q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),Y=G,X=Z,J=Q,ee=n.exports.defaults,te=w,ie=function(){function e(e){this.options=e||ee,this.options.renderer=this.options.renderer||new Y,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new X,this.slugger=new J}e.parse=function(t,i){return new e(i).parse(t)},e.parseInline=function(t,i){return new e(i).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,h,d,c,u,g,p,m,f,_,v,b,C,w="",y=e.length;for(i=0;i0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=b+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=b+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(f.tokens,p),d+=this.renderer.listitem(m,v,_);w+=this.renderer.list(d,u,g);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(d=c.tokens?this.parseInline(c.tokens):c.text;i+1An error occurred:

    "+ce(e.message+"",!0)+"
    ";throw e}}return me.options=me.setOptions=function(e){return he(me.defaults,e),ge(me.defaults),me},me.getDefaults=ue,me.defaults=pe,me.use=function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;nAn error occurred:

    "+ce(e.message+"",!0)+"
    ";throw e}},me.Parser=oe,me.parser=oe.parse,me.Renderer=re,me.TextRenderer=ae,me.Lexer=ne,me.lexer=ne.lex,me.Tokenizer=se,me.Slugger=le,me.parse=me,me},"object"==typeof exports?e.exports=o():t.amd?t(o):(i="undefined"!=typeof globalThis?globalThis:i||self).marked=o()}(),n.Parser,n.parser;var o=n.Renderer,s=(n.TextRenderer,n.Lexer,n.lexer,n.Tokenizer,n.Slugger,n.parse)},5533:(e,t,i)=>{i.d(t,{Q:()=>s});var n=i(7511),o=i(8919);function s(e){let t=JSON.parse(e);return t=r(t),t}function r(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{i.d(t,{vW:()=>n,sA:()=>u,bS:()=>g,G8:()=>p});var n,o=i(4759),s=i(5007),r=i(7263),a=i(6227),l=i(7416);!function(e){e.text="text/plain",e.binary="application/octet-stream",e.unknown="application/unknown",e.markdown="text/markdown",e.latex="text/latex"}(n||(n={}));let h=[],d=[],c=[];function u(e,t=!1){const i=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,o.Qc)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(r.KR.sep)>=0}}(e);h.push(i),i.userConfigured?c.push(i):d.push(i),t&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}function g(e){e?(h=h.filter((e=>!e.userConfigured)),c=[]):(h=[],d=[],c=[])}function p(e,t){let i;if(e)switch(e.scheme){case s.lg.file:i=e.fsPath;break;case s.lg.data:i=a.Vb.parseMetaData(e).get(a.Vb.META_DATA_LABEL);break;default:i=e.path}if(!i)return[n.unknown];i=i.toLowerCase();const o=(0,r.EZ)(i),u=m(i,o,c);if(u)return[u,n.text];const g=m(i,o,d);if(g)return[g,n.text];if(t){const e=function(e){if((0,l.uS)(e)&&(e=e.substr(1)),e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i.mime}return null}(t);if(e)return[e,n.text]}return[n.unknown]}function m(e,t,i){var n;let o=null,s=null,r=null;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o?o.mime:s?s.mime:r?r.mime:null}},5007:(e,t,i)=>{i.d(t,{lg:()=>n,WX:()=>r,Gi:()=>l});var n,o=i(1138),s=i(8919);!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp"}(n||(n={}));const r=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&(i=`[${i}]`);const r=this._ports[t],a=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(l+=`&tkn=${encodeURIComponent(a)}`),s.o.from({scheme:o.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:"/vscode-remote-resource",query:l})}};class a{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===n.vscodeRemote?r.rewrite(i):i.scheme===n.file&&(o.tY||"function"==typeof o.li.importScripts&&o.li.origin===`${n.vscodeFileResource}://${a.FALLBACK_AUTHORITY}`)?i.with({scheme:n.vscodeFileResource,authority:i.authority||a.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return s.o.isUri(e)?e:s.o.parse(t.toUrl(e))}}a.FALLBACK_AUTHORITY="vscode-app";const l=new a},8726:(e,t,i)=>{function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{u:()=>n,n:()=>o});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},3127:(e,t,i)=>{i.d(t,{I8:()=>o,_A:()=>s,rs:()=>a,jB:()=>h,fS:()=>d,CJ:()=>c});var n=i(4818);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((i=>{e[i]&&"object"==typeof e[i]?t[i]=o(e[i]):t[i]=e[i]})),t}function s(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const n=e[i];"object"!=typeof n||Object.isFrozen(n)||t.push(n)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if(void 0!==o)return o;if((0,n.kJ)(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(let o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function h(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?h(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function d(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i{i.d(t,{EZ:()=>N,XX:()=>L,DZ:()=>x,Fv:()=>w,KR:()=>C,Gf:()=>S,DB:()=>y,ir:()=>k,Ku:()=>b});var n=i(1138);let o;if(void 0!==n.li.vscode&&void 0!==n.li.vscode.process){const e=n.li.vscode.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd(),nextTick:e=>(0,n.xS)(e)}}else o="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd(),nextTick:e=>process.nextTick(e)}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},nextTick:e=>(0,n.xS)(e),get env(){return{}},cwd:()=>"/"};const s=o.cwd,r=o.env,a=o.platform,l=46,h=47,d=92,c=58;class u extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${o} ${n} of type ${t}`;s+=". Received type "+typeof i,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function p(e){return e===h||e===d}function m(e){return e===h}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function _(e,t,i,n){let o="",s=0,r=-1,a=0,d=0;for(let c=0;c<=e.length;++c){if(c2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=c,a=0;continue}if(0!==o.length){o="",s=0,r=c,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,c)}`:o=e.slice(r+1,c),s=c-r-1;r=c,a=0}else d===l&&-1!==a?++a:a=-1}return o}function v(e,t){if(null===t||"object"!=typeof t)throw new u("pathObject","Object",t);const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const b={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let a;if(o>=0){if(a=e[o],g(a,"path"),0===a.length)continue}else 0===t.length?a=s():(a=r[`=${t}`]||s(),(void 0===a||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===d)&&(a=`${t}\\`));const l=a.length;let h=0,u="",m=!1;const _=a.charCodeAt(0);if(1===l)p(_)&&(h=1,m=!0);else if(p(_))if(m=!0,p(a.charCodeAt(1))){let e=2,t=e;for(;e2&&p(a.charCodeAt(2))&&(m=!0,h=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(i=`${a.slice(h)}\\${i}`,n=m,m&&t.length>0)break}return i=_(i,!n,"\\",p),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return m(s)?"\\":e;if(p(s))if(o=!0,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&p(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return p(i)||t>2&&f(i)&&e.charCodeAt(1)===c&&p(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let n=0;n0&&(void 0===t?t=i=o:t+=`\\${o}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&p(i.charCodeAt(0))){++o;const e=i.length;e>1&&p(i.charCodeAt(1))&&(++o,e>2&&(p(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=b.resolve(e),n=b.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===d;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===d;)l--;const h=l-a,c=rc){if(t.charCodeAt(a+p)===d)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>c&&(e.charCodeAt(o+p)===d?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=o+u+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==d||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===d&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===c&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return p(o)?e:".";if(p(o)){if(i=n=1,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let i=t-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!r){s=i;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===c&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(p(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===c&&f(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(p(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return p(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(p(o)){if(n=1,p(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,h=!0,d=e.length-1,u=0;for(;d>=n;--d)if(o=e.charCodeAt(d),p(o)){if(!h){r=d+1;break}}else-1===a&&(h=!1,a=d+1),o===l?-1===s?s=d:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:s();g(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===h)}return t=_(t,!i,"/",m),i?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,i=e.charCodeAt(e.length-1)===h;return 0===(e=_(e,!t,"/",m)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":C.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=C.resolve(e))===(t=C.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===h?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===h){if(!n){i=t;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===h){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===h){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==h)-1===n&&(o=!1,n=r+1),a===l?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===h;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,d=e.length-1,c=0;for(;d>=n;--d){const t=e.charCodeAt(d);if(t!==h)-1===r&&(a=!1,r=d+1),t===l?-1===o?o=d:1!==c&&(c=1):-1!==o&&(c=-1);else if(!a){s=d+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===c||1===c&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};C.win32=b.win32=b,C.posix=b.posix=C;const w="win32"===a?b.normalize:C.normalize,y="win32"===a?b.resolve:C.resolve,S="win32"===a?b.relative:C.relative,L="win32"===a?b.dirname:C.dirname,N="win32"===a?b.basename:C.basename,x="win32"===a?b.extname:C.extname,k="win32"===a?b.sep:C.sep},1138:(e,t,i)=>{var n;i.d(t,{li:()=>f,ED:()=>C,dz:()=>w,IJ:()=>y,tY:()=>S,$L:()=>L,gn:()=>N,WE:()=>x,xS:()=>k,OS:()=>D,r:()=>T});const o="en";let s,r,a,l=!1,h=!1,d=!1,c=!1,u=!1,g=!1,p=!1,m=null;const f="object"==typeof self?self:"object"==typeof i.g?i.g:{};let _;void 0!==f.vscode&&void 0!==f.vscode.process?_=f.vscode.process:"undefined"!=typeof process&&(_=process);const v="string"==typeof(null===(n=null==_?void 0:_.versions)||void 0===n?void 0:n.electron)&&"renderer"===_.type;if("object"!=typeof navigator||v)if("object"==typeof _){l="win32"===_.platform,h="darwin"===_.platform,d="linux"===_.platform,c=d&&!!_.env.SNAP&&!!_.env.SNAP_REVISION,s=o,m=o;const e=_.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];s=t.locale,m=i||o,r=t._translationsConfigFile}catch(e){}u=!0}else console.error("Unable to resolve platform.");else a=navigator.userAgent,l=a.indexOf("Windows")>=0,h=a.indexOf("Macintosh")>=0,p=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=a.indexOf("Linux")>=0,g=!0,s=navigator.language,m=s;let b=0;h?b=1:l?b=3:d&&(b=2);const C=l,w=h,y=d,S=u,L=g,N=p,x=a,k=function(){if(f.setImmediate)return f.setImmediate.bind(f);if("function"==typeof f.postMessage&&!f.importScripts){let e=[];f.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),f.postMessage({vscodeSetImmediateId:n},"*")}}if("function"==typeof(null==_?void 0:_.nextTick))return _.nextTick.bind(_);const e=Promise.resolve();return t=>e.then(t)}(),D=h||p?2:l?1:3;let E=!0,I=!1;function T(){if(!I){I=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);E=513===t[0]}return E}},9004:(e,t,i)=>{var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(n||(n={}))},6227:(e,t,i)=>{i.d(t,{z_:()=>l,SF:()=>h,Xy:()=>d,Hx:()=>c,EZ:()=>u,XX:()=>g,Vo:()=>p,AH:()=>m,i3:()=>f,Vb:()=>_});var n=i(7128),o=i(5007),s=i(7263),r=i(7416),a=i(8919);function l(e){return(0,a.q)(e,!0)}const h=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,r.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return a.o.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.KR.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=a.o.file(s.XX(l(e))).path:(t=s.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?a.o.file(s.Fv(l(e))).path:s.KR.normalize(e.path),e.with({path:t})}resolvePath(e,t){if(e.scheme===o.lg.file){const i=a.o.file(s.DB(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.fn(t),e.with({path:s.KR.resolve(e.path,t)})}}((()=>!1)),d=h.isEqual.bind(h),c=h.basenameOrAuthority.bind(h),u=h.basename.bind(h),g=h.dirname.bind(h),p=h.joinPath.bind(h),m=h.normalizePath.bind(h),f=h.resolvePath.bind(h);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(_||(_={}))},4929:(e,t,i)=>{i.d(t,{Rm:()=>r});var n=i(6709),o=i(8431);class s{constructor(e,t,i,n,o,s){this._scrollStateBrand=void 0,e|=0,t|=0,i|=0,n|=0,o|=0,s|=0,this.rawScrollLeft=i,this.rawScrollTop=s,e<0&&(e=0),i+e>t&&(i=t-e),i<0&&(i=0),n<0&&(n=0),s+n>o&&(s=o-n),s<0&&(s=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=o,this.scrollTop=s}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.JT{constructor(e,t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new s(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new h(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=h.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-(n=1-t,Math.pow(n,3)));var n}}class h{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e{i.d(t,{Z:()=>s});var n,o=i(7416);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="info";e.fromValue=function(s){return s?o.qq(t,s)?e.Error:o.qq(i,s)||o.qq("warn",s)?e.Warning:o.qq(n,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return i;case e.Info:return n;default:return"ignore"}}}(n||(n={}));const s=n},9344:(e,t,i)=>{i.d(t,{G:()=>s});var n=i(1138);const o=n.li.performance&&"function"==typeof n.li.performance.now;class s{constructor(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new s(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?n.li.performance.now():Date.now()}}},7416:(e,t,i)=>{function n(e){return!e||"string"!=typeof e||0===e.trim().length}i.d(t,{m5:()=>n,WU:()=>s,YU:()=>r,ec:()=>a,fy:()=>l,j3:()=>h,oL:()=>d,un:()=>c,R1:()=>u,GF:()=>g,IO:()=>p,mr:()=>m,uq:()=>f,LC:()=>_,V8:()=>v,ow:()=>b,qu:()=>C,TT:()=>w,zY:()=>y,j_:()=>S,mK:()=>L,df:()=>N,qq:()=>x,ok:()=>k,Mh:()=>D,P1:()=>E,ZG:()=>I,YK:()=>T,rL:()=>M,ZH:()=>A,vH:()=>O,HO:()=>P,Ut:()=>B,RP:()=>W,$i:()=>z,Qe:()=>K,ab:()=>U,xe:()=>$,K7:()=>j,C8:()=>q,c1:()=>G,uS:()=>Z,Kw:()=>Q,PJ:()=>Y,S6:()=>X,fi:()=>J,oH:()=>te});const o=/{(\d+)}/g;function s(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function r(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){return d(h(e,t),t)}function h(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function d(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;for(;s=e.lastIndexOf(t,o-1),-1!==s&&s+i===o;){if(0===s)return"";o=s}return e.substring(0,o)}function c(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function u(e){return e.replace(/\*/g,"")}function g(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function p(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function f(e){return e.split(/\r\n|\r|\n/)}function _(e){for(let t=0,i=e.length;t=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function C(e,t){return et?1:0}function w(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function y(e,t){return S(e,t,0,e.length,0,t.length)}function S(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,n,o,s);L(r)&&(r-=32),L(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function L(e){return e>=97&&e<=122}function N(e){return e>=65&&e<=90}function x(e,t){return e.length===t.length&&0===S(e,t)}function k(e,t){const i=t.length;return!(t.length>e.length)&&0===S(e,t,0,i)}function D(e,t){let i,n=Math.min(e.length,t.length);for(i=0;i1){const n=e.charCodeAt(t-2);if(I(n))return M(n,i)}return i}function O(e,t){const i=ee.getInstance(),n=t,o=e.length,s=A(e,o,t);t+=s>=65536?2:1;let r=i.getGraphemeBreakType(s);for(;t=65536?2:1,r=s}return t-n}function P(e,t){const i=ee.getInstance(),n=t,o=R(e,t);t-=o>=65536?2:1;let s=i.getGraphemeBreakType(o);for(;t>0;){const n=R(e,t),o=i.getGraphemeBreakType(n);if(J(o,s))break;t-=n>=65536?2:1,s=o}return n-t}const F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function B(e){return F.test(e)}const V=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function W(e){return V.test(e)}const H=/^[\t\n\r\x20-\x7E]*$/;function z(e){return H.test(e)}const K=/[\u2028\u2029]/;function U(e){return K.test(e)}function $(e){for(let t=0,i=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const G=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function Q(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function Y(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function X(e){return ee.getInstance().getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class ee{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function te(e,t){if(0===e)return 0;const i=function(e,t){let i=R(t,e);for(e-=ie(i);ne(i)||65039===i||8419===i;){if(0===e)return;i=R(t,e),e-=ie(i)}if(q(i)){if(e>=0){const i=R(t,e);8205===i&&(e-=ie(i))}return e}}(e,t);return void 0!==i?i:e-ie(R(t,e))}function ie(e){return e>=65536?2:1}function ne(e){return 127995<=e&&e<=127999}ee._INSTANCE=null},4818:(e,t,i)=>{function n(e){return Array.isArray(e)}function o(e){return"string"==typeof e}function s(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function r(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!0===e||!1===e}function l(e){return void 0===e}function h(e){return!d(e)}function d(e){return l(e)||null===e}function c(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function u(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function g(e){return"function"==typeof e}function p(e,t){const i=Math.min(e.length,t.length);for(let n=0;nfunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)};let n={};for(const t of e)n[t]=i(t);return n}function v(e){return null===e?void 0:e}function b(e,t="Unreachable"){throw new Error(t)}i.d(t,{kJ:()=>n,HD:()=>o,Kn:()=>s,hj:()=>r,jn:()=>a,o8:()=>l,$K:()=>h,Jp:()=>d,p_:()=>c,cW:()=>u,mf:()=>g,D8:()=>p,$E:()=>f,IU:()=>_,f6:()=>v,vE:()=>b})},9886:(e,t,i)=>{function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{K:()=>n,A:()=>o})},8919:(e,t,i)=>{i.d(t,{o:()=>u,q:()=>v});var n=i(7263),o=i(1138);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const h="",d="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{constructor(e,t,i,n,o,s=!1){"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||h),this.query=n||h,this.fragment=o||h,l(this,s))}static isUri(e){return e instanceof u||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===i?i=this.authority:null===i&&(i=h),void 0===n?n=this.path:null===n&&(n=h),void 0===o?o=this.query:null===o&&(o=h),void 0===s?s=this.fragment:null===s&&(s=h),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new p(t,i,n,o,s)}static parse(e,t=!1){const i=c.exec(e);return i?new p(i[2]||h,y(i[4]||h),y(i[5]||h),y(i[7]||h),y(i[9]||h),t):new p(h,h,h,h,h)}static file(e){let t=h;if(o.ED&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new p("file",t,e,h,h)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?u.file(n.Ku.join(v(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=o.ED?1:void 0;class p extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t){let i,n=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),void 0!==i&&(i+=e.charAt(o));else{void 0===i&&(i=e.substr(0,o));const t=m[s];void 0!==t?(-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),i+=t):-1===n&&(n=o)}}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function _(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const i=t?_:f;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=d,n+=d),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?n+=i(t,!1):(n+=i(t.substr(0,e),!1),n+=":",n+=i(t.substr(e+1),!1)),n+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?n+=i(s,!1):(n+=i(s.substr(0,e),!1),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0)}return a&&(n+="?",n+=i(a,!1)),l&&(n+="#",n+=t?l:f(l,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(w)?e.replace(w,(e=>C(e))):e}},4304:(e,t,i)=>{i.d(t,{X5:()=>n,Jq:()=>o,jG:()=>s});const n={ctrlCmd:!1,alt:!1};var o,s;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(s||(s={}))},2526:(e,t,i)=>{i.d(t,{Mj:()=>n.Mj});var n=i(6790)},9098:(e,t,i)=>{i.d(t,{V:()=>f,P:()=>p});var n=i(1488),o=i(6709),s=i(8431),r=i(1138),a=i(54);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class h{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=this._bareFontInfo.getMassagedFontFamily(n.G6?a.hL.fontFamily:null),t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const i=document.createElement("div");i.style.fontFamily=e,i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);const o=document.createElement("div");o.style.fontFamily=e,o.style.fontWeight="bold",o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(o);const s=document.createElement("div");s.style.fontFamily=e,s.style.fontWeight=this._bareFontInfo.fontWeight,s.style.fontSize=this._bareFontInfo.fontSize+"px",s.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,s.style.lineHeight=this._bareFontInfo.lineHeight+"px",s.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.style.fontStyle="italic",t.appendChild(s);const r=[];for(const e of this._requests){let t;0===e.type&&(t=i),2===e.type&&(t=o),1===e.type&&(t=s),t.appendChild(document.createElement("br"));const n=document.createElement("span");h._render(n,e),t.appendChild(n),r.push(n)}this._container=t,this._testElements=r}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e]))}}function p(){m.INSTANCE.clearCache()}class m extends s.JT{constructor(){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._cache=new g,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new g,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()}),5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=m._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new u.pR({zoomLevel:n.px(),pixelRatio:n.mX(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,i,n){const o=new l(e,t);return i.push(o),n&&n.push(o),o}static _actualReadConfiguration(e){const t=[],i=[],o=this.createRequest("n",0,t,i),s=this.createRequest("m",0,t,null),r=this.createRequest(" ",0,t,i),l=this.createRequest("0",0,t,i),d=this.createRequest("1",0,t,i),c=this.createRequest("2",0,t,i),g=this.createRequest("3",0,t,i),p=this.createRequest("4",0,t,i),m=this.createRequest("5",0,t,i),f=this.createRequest("6",0,t,i),_=this.createRequest("7",0,t,i),v=this.createRequest("8",0,t,i),b=this.createRequest("9",0,t,i),C=this.createRequest("→",0,t,i),w=this.createRequest("→",0,t,null),y=this.createRequest("·",0,t,i),S=this.createRequest(String.fromCharCode(11825),0,t,null),L="|/-_ilm%";for(let e=0,n=L.length;e.001){x=!1;break}}let D=!0;x&&w.width!==k&&(D=!1),w.width>C.width&&(D=!1);const E=n.WP()>2e3;return new u.pR({zoomLevel:n.px(),pixelRatio:n.mX(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:D,spaceWidth:r.width,middotWidth:y.width,wsmiddotWidth:S.width,maxDigitWidth:N},E)}}m.INSTANCE=new m;class f extends c.fv{constructor(e,t,i=null,o){super(e,t),this.accessibilityService=o,this._elementSizeObserver=this._register(new d.I(i,t.dimension,(()=>this._recomputeOptions()))),this._register(m.INSTANCE.onDidChange((()=>this._recomputeOptions()))),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(n.fX((e=>this._recomputeOptions()))),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions()))),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(n.G6?a.hL.fontFamily:null),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily(n.G6?a.hL.fontFamily:null)),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}observeReferenceElement(e){this._elementSizeObserver.observe(e)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let e="";return n.G6||n.MG||(e+="no-user-select "),n.G6&&(e+="no-minimap-shadow "),r.dz&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:f._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:n.Pf||n.vU,pixelRatio:n.mX(),zoomLevel:n.px(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return m.INSTANCE.readConfiguration(e)}}},8220:(e,t,i)=>{i.d(t,{I:()=>o});var n=i(8431);class o extends n.JT{constructor(e,t,i){super(),this.referenceDomElement=e,this.changeCallback=i,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!=typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver((e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()})),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval((()=>this.observe()),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this.referenceDomElement&&(i=this.referenceDomElement.clientWidth,n=this.referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this.width===i&&this.height===n||(this.width=i,this.height=n,e&&this.changeCallback())}}},1574:(e,t,i)=>{i.d(t,{wk:()=>k,Ox:()=>m});var n=i(6386),o=i(1488),s=i(4818),r=i(6644),a=i(5298),l=i(5603),h=i(282),d=i(8964),c=i(38);class u{static columnSelect(e,t,i,n,o,s){let r=Math.abs(o-i)+1,a=i>o,l=n>s,u=ns)continue;if(_n)continue;if(f0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let i=o;i<=s;i++){const o=t.getLineMaxColumn(i),s=h.io.visibleColumnFromColumn2(e,t,new d.L(i,o));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r{const i=e.get(l.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){return this.runEditorCommand(e,t,i)||!0}}!function(e){class t extends y{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[_.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}e.MoveTo=(0,a.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends y{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,i.viewStates.map((e=>h.Vi.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=(0,a.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new d.L(n.viewPosition.lineNumber,n.viewPosition.column),o);let r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class s extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.fK)(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.fK)(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.fK)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.fK)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3596,linux:{primary:0}}}));class m extends y{constructor(){super({id:"cursorMove",precondition:void 0,description:_.N.description})}runCoreEditorCommand(e,t){const i=_.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,m._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return _.P.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return _.P.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=m,e.CursorMove=(0,a.fK)(new m);class f extends y{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,_.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=(0,a.fK)(new f({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.fK)(new f({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1039}})),e.CursorRight=(0,a.fK)(new f({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.fK)(new f({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1041}})),e.CursorUp=(0,a.fK)(new f({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.fK)(new f({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.fK)(new f({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.fK)(new f({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1035}})),e.CursorDown=(0,a.fK)(new f({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.fK)(new f({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.fK)(new f({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.fK)(new f({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.fK)(new class extends y{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;i=t.wholeLine?_.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):_.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new c.e(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case p.RawAtArgument.Top:a=3;break;case p.RawAtArgument.Center:a=1;break;case p.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends S{constructor(){super(a.Sq)}runDOMCommand(){o.vU&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[_.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.fK)(new class extends y{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.Vi.fromModelSelection(t.selection)])}})}(m||(m={}));const L=C.Ao.and(b.u.textInputFocus,b.u.columnSelection);function N(e,t){w.W.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;N(m.CursorColumnSelectLeft.id,1039),N(m.CursorColumnSelectRight.id,1041),N(m.CursorColumnSelectUp.id,1040),N(m.CursorColumnSelectPageUp.id,1035),N(m.CursorColumnSelectDown.id,1042),N(m.CursorColumnSelectPageDown.id,1036),function(e){class t extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.fK)(new class extends t{constructor(){super({id:"outdent",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:C.Ao.and(b.u.editorTextFocus,b.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.fK)(new class extends t{constructor(){super({id:"tab",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:C.Ao.and(b.u.editorTextFocus,b.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends S{constructor(){super(a.n_)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().undo()}},e.Redo=new class extends S{constructor(){super(a.kz)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().redo()}}}(k||(k={}));class D extends a.mY{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function E(e,t){x(new D("default:"+e,e)),x(new D(e,e,t))}E("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),E("replacePreviousChar"),E("compositionType"),E("compositionStart"),E("compositionEnd"),E("paste"),E("cut")},521:(e,t,i)=>{i.d(t,{pd:()=>n,RA:()=>m,Nl:()=>f,Fz:()=>_});var n,o=i(1488),s=i(4441),r=i(3484),a=i(6709),l=i(8431),h=i(9161),d=i(1138),c=i(7416),u=i(153),g=i(8964),p=i(7841);!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const m={forceCopyWithSyntaxHighlighting:!1};class f{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}f.INSTANCE=new f;class _ extends l.JT{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new a.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new a.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new a.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new a.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new a.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new a.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new a.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new a.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new a.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new a.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new b(t)),this._asyncTriggerCut=this._register(new r.pY((()=>this._onCut.fire()),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new r.pY((()=>this.writeScreenReaderContent("asyncFocusGain")),0)),this._textAreaState=u.un.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let i=null;this._register(s.mu(t.domNode,"keydown",(e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),i=e,this._onKeyDown.fire(e)}))),this._register(s.mu(t.domNode,"keyup",(e=>{this._onKeyUp.fire(e)}))),this._register(s.nm(t.domNode,"compositionstart",(e=>{if(u.al&&console.log("[compositionstart]",e),!this._isDoingComposition){if(this._isDoingComposition=!0,d.dz&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&(i&&i.equals(109)&&("ArrowRight"===i.code||"ArrowLeft"===i.code)||o.vU))return u.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",e),this._textAreaState=new u.un(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new g.L(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),void this._onCompositionStart.fire({revealDeltaColumns:-1});o.Dt?this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart}):(this._setAndWriteTextAreaState("compositionstart",u.un.EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0}))}})));const l=e=>{const t=this._textAreaState,i=u.un.readFromTextArea(this._textArea);return[i,u.un.deduceInput(t,i,e)]},h=()=>{const e=this._textAreaState,t=u.un.readFromTextArea(this._textArea);return[t,u.un.deduceAndroidCompositionInput(e,t)]},p=e=>{const t=this._textAreaState,i=u.un.selectedText(e);return[i,{text:i.value,replacePrevCharCnt:t.selectionEnd-t.selectionStart,replaceNextCharCnt:0,positionDelta:0}]};this._register(s.nm(t.domNode,"compositionupdate",(e=>{if(u.al&&console.log("[compositionupdate]",e),o.Dt){const[t,i]=h();return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(s.nm(t.domNode,"compositionend",(e=>{if(u.al&&console.log("[compositionend]",e),!this._isDoingComposition)return;if(this._isDoingComposition=!1,o.Dt){const[e,t]=h();return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),(o.i7||o.vU)&&(this._textAreaState=u.un.readFromTextArea(this._textArea)),this._onCompositionEnd.fire()}))),this._register(s.nm(t.domNode,"input",(()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[e,t]=l(d.dz);0===t.replacePrevCharCnt&&1===t.text.length&&c.ZG(t.text.charCodeAt(0))||(this._textAreaState=e,0===this._nextCommand?""===t.text&&0===t.replacePrevCharCnt||this._onType.fire(t):(""===t.text&&0===t.replacePrevCharCnt||this._firePaste(t.text,null),this._nextCommand=0))}))),this._register(s.nm(t.domNode,"cut",(e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(s.nm(t.domNode,"copy",(e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(s.nm(t.domNode,"paste",(e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),v.canUseTextData(e)){const[t,i]=v.getTextData(e);""!==t&&this._firePaste(t,i)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",u.un.EMPTY),this._nextCommand=1}))),this._register(s.nm(t.domNode,"focus",(()=>{const e=this._hasFocus;this._setHasFocus(!0),o.G6&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()}))),this._register(s.nm(t.domNode,"blur",(()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(s.nm(t.domNode,n.Tap,(()=>{o.Dt&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return s.nm(document,"selectionchange",(t=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!o.i7)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const h=this._textAreaState.deduceEditorPosition(a),d=this._host.deduceModelPosition(h[0],h[1],h[2]),c=this._textAreaState.deduceEditorPosition(l),u=this._host.deduceModelPosition(c[0],c[1],c[2]),g=new p.Y(d.lineNumber,d.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const e=s.Ay(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):s.Uw(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(v.canUseTextData(e)),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};f.INSTANCE.set(o.vU?t.text.replace(/\r\n/g,"\n"):t.text,i),v.canUseTextData(e)?v.setTextData(e,t.text,t.html,i):this._setAndWriteTextAreaState("copy or cut",u.un.selectedText(t.text))}_firePaste(e,t){t||(t=f.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}class v{static canUseTextData(e){return!!e.clipboardData}static getTextData(e){if(e.clipboardData){e.preventDefault();const t=e.clipboardData.getData(h.vW.text);let i=null;const n=e.clipboardData.getData("vscode-editor-data");if("string"==typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(e){}return[t,i]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,i,n){if(e.clipboardData)return e.clipboardData.setData(h.vW.text,t),"string"==typeof i&&e.clipboardData.setData("text/html",i),e.clipboardData.setData("vscode-editor-data",JSON.stringify(n)),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class b extends l.JT{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){const i=this._actual.domNode;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(e,t,i){const n=this._actual.domNode;let r=null;const a=s.Ay(n);r=a?a.activeElement:document.activeElement;const l=r===n,h=n.selectionStart,d=n.selectionEnd;if(l&&h===t&&d===i)o.vU&&window.parent!==window&&n.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(o.vU&&window.parent!==window&&n.focus());try{const e=s.vL(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),s._0(n,e)}catch(e){}}}}},153:(e,t,i)=>{i.d(t,{al:()=>r,un:()=>a,ee:()=>l});var n=i(7416),o=i(8964),s=i(38);const r=!1;class a{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=o}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){r&&console.log("writeToTextArea "+e+": "+this.toString()),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static selectedText(e){return new a(e,0,e.length,null,null)}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));let o=e.value,s=e.selectionStart,a=e.selectionEnd,l=t.value,h=t.selectionStart,d=t.selectionEnd;const c=o.substring(a),u=l.substring(d),g=n.P1(c,u);l=l.substring(0,l.length-g),o=o.substring(0,o.length-g);const p=o.substring(0,s),m=l.substring(0,h),f=n.Mh(p,m);if(l=l.substring(f),o=o.substring(f),h-=f,s-=f,d-=f,a-=f,r&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+o+">, selectionStart: "+s+", selectionEnd: "+a),console.log("AFTER DIFFING CURRENT STATE: <"+l+">, selectionStart: "+h+", selectionEnd: "+d)),i&&h===d&&o.length>0){let e=null;if(h===l.length?l.startsWith(o)&&(e=l.substring(o.length)):l.endsWith(o)&&(e=l.substring(0,l.length-o.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||n.RP(e)))return{text:e,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(h===d){if(o===l&&0===s&&a===o.length&&h===l.length&&-1===l.indexOf("\n")&&n.xe(l))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const e=p.length-f;return r&&console.log("REMOVE PREVIOUS: "+(p.length-f)+" chars"),{text:l,replacePrevCharCnt:e,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:a-s,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Mh(e.value,t.value),e.selectionEnd),o=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd),s=e.value.substring(i,e.value.length-o),a=t.value.substring(i,t.value.length-o),l=e.selectionStart-i,h=e.selectionEnd-i,d=t.selectionStart-i,c=t.selectionEnd-i;return r&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+s+">, selectionStart: "+l+", selectionEnd: "+h),console.log("AFTER DIFFING CURRENT STATE: <"+a+">, selectionStart: "+d+", selectionEnd: "+c)),{text:a,replacePrevCharCnt:h,replaceNextCharCnt:s.length-h,positionDelta:c-a.length}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new s.e(n,1,o+1,1)}static fromEditorSelection(e,t,i,n,r){const h=l._getPageOfLine(i.startLineNumber,n),d=l._getRangeForPage(h,n),c=l._getPageOfLine(i.endLineNumber,n),u=l._getRangeForPage(c,n),g=d.intersectRanges(new s.e(1,1,i.startLineNumber,i.startColumn));let p=t.getValueInRange(g,1);const m=t.getLineCount(),f=t.getLineMaxColumn(m),_=u.intersectRanges(new s.e(i.endLineNumber,i.endColumn,m,f));let v,b=t.getValueInRange(_,1);if(h===c||h+1===c)v=t.getValueInRange(i,1);else{const e=d.intersectRanges(i),n=u.intersectRanges(i);v=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(n,1)}if(r){const e=500;p.length>e&&(p=p.substring(p.length-e,p.length)),b.length>e&&(b=b.substring(0,e)),v.length>2*e&&(v=v.substring(0,e)+String.fromCharCode(8230)+v.substring(v.length-e,v.length))}return new a(p+v+b,p.length,p.length+v.length,new o.L(i.startLineNumber,i.startColumn),new o.L(i.endLineNumber,i.endColumn))}}},5834:(e,t,i)=>{i.d(t,{yy:()=>f,Dl:()=>_,ZF:()=>b,YQ:()=>v});var n=i(7416),o=i(38),s=i(7464),r=i(8431),a=i(5298),l=i(499),h=i(7979),d=i(4333),c=i(3061),u=i(6386);const g=(0,d.yh)("IEditorCancelService"),p=new l.uy("cancellableOperation",!1,(0,u.N)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,c.z)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.i6)),tokens:new h.S}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0);class m extends s.A{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.fK)(new class extends a._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!=(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&o.e.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&o.e.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends s.A{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}class b{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(0!==e.getScrollTop()){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}}return new b(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},6086:(e,t,i)=>{i.d(t,{CL:()=>o,QI:()=>s,Pi:()=>r});var n=i(6390);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.ICodeEditor}function s(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.IDiffEditor}function r(e){return o(e)?e:s(e)?e.getModifiedEditor():null}},5298:(e,t,i)=>{i.d(t,{mY:()=>v,AJ:()=>b,_l:()=>w,R6:()=>y,jY:()=>S,sb:()=>L,f:()=>N,fK:()=>x,Qr:()=>k,rn:()=>D,QG:()=>E,_K:()=>I,Uc:()=>n,n_:()=>A,kz:()=>R,Sq:()=>O});var n,o=i(6386),s=i(8919),r=i(5603),a=i(8964),l=i(4657),h=i(1223),d=i(1208),c=i(793),u=i(499),g=i(7679),p=i(6325),m=i(8554),f=i(4818),_=i(9271);class v{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.Ao.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};g.W.registerKeybindingRule(i)}}c.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){d.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class b extends v{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e{if(e.get(u.i6).contextMatchesRules((0,f.f6)(this.precondition)))return this.runEditorCommand(e,n,t)}))}}class y extends w{constructor(e){super(y.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=d.eH.EditorContext),t.title||(t.title=e.label),t.when=u.Ao.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(m.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class S extends y{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;enew Promise(((n,s)=>{try{n(t(e.object.textEditorModel,a.L.lift(o),i.slice(2)))}catch(e){s(e)}})).finally((()=>{e.dispose()}))))}))}function N(e,t){c.P.registerCommand(e,(function(e,...i){const[n]=i;(0,f.p_)(s.o.isUri(n));const o=e.get(l.q).getModel(n);return o?t(o,...i.slice(1)):e.get(h.S).createModelReference(n).then((e=>new Promise(((n,o)=>{try{n(t(e.object.textEditorModel,i.slice(1)))}catch(e){o(e)}})).finally((()=>{e.dispose()}))))}))}function x(e){return T.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return T.INSTANCE.registerEditorAction(t),t}function D(e){return T.INSTANCE.registerEditorAction(e),e}function E(e){T.INSTANCE.registerEditorAction(e)}function I(e,t){T.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return T.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return T.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return T.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return T.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return T.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class T{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function M(e){return e.register(),e}T.INSTANCE=new T,p.B.add("editor.contributions",T.INSTANCE);const A=M(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:d.eH.MenubarEditMenu,group:"1_do",title:o.N({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:d.eH.CommandPalette,group:"",title:o.N("undo","Undo"),order:1}]}));M(new C(A,{id:"default:undo",precondition:void 0}));const R=M(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:d.eH.MenubarEditMenu,group:"1_do",title:o.N({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:d.eH.CommandPalette,group:"",title:o.N("redo","Redo"),order:1}]}));M(new C(R,{id:"default:redo",precondition:void 0}));const O=M(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:d.eH.MenubarSelectionMenu,group:"1_basic",title:o.N({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:d.eH.CommandPalette,group:"",title:o.N("selectAll","Select All"),order:1}]}))},3028:(e,t,i)=>{i.d(t,{vu:()=>r,fo:()=>a,Gl:()=>l});var n=i(4333),o=i(8919),s=i(4818);const r=(0,n.yh)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(t=e,(0,s.Kn)(t)&&o.o.isUri(t.resource)&&(0,s.Kn)(t.edit))return new l(e.resource,e.edit,e.modelVersionId,e.metadata);var t;if(function(e){return(0,s.Kn)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}(e))return new h(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")}))}}class l extends a{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class h extends a{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},5603:(e,t,i)=>{i.d(t,{$:()=>n});const n=(0,i(4333).yh)("codeEditorService")},9656:(e,t,i)=>{i.d(t,{Gm:()=>to});var n=i(7322),o=i(5298);let s=class{constructor(e,t){}dispose(){}};var r,a;s.ID="editor.contrib.markerDecorations",s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(r=1,a=n.i,function(e,t){a(e,t,r)})],s),(0,o._K)(s.ID,s);var l=i(6386),h=i(4441),d=i(996),c=i(6709),u=i(8431),g=i(5007),p=i(9098),m=i(5603),f=i(1488),_=i(7841),v=i(4733),b=i(1138),C=i(265),w=i(9449),y=i(3484),S=i(6249);class L{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new N(this.x-h.DI.scrollX,this.y-h.DI.scrollY)}}class N{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new L(this.clientX+h.DI.scrollX,this.clientY+h.DI.scrollY)}}class x{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}function k(e){const t=h.i(e);return new x(t.left,t.top,t.width,t.height)}class D extends w.n{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new L(this.posx,this.posy),this.editorPos=k(t)}}class E{constructor(e){this._editorViewDomNode=e}_create(e){return new D(e,this._editorViewDomNode)}onContextMenu(e,t){return h.nm(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return h.nm(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return h.nm(e,"mousedown",(e=>{t(this._create(e))}))}onMouseLeave(e,t){return h.j_(e,(e=>{t(this._create(e))}))}onMouseMoveThrottled(e,t,i,n){return h.Y_(e,"mousemove",t,((e,t)=>i(e,this._create(t))),n)}}class I{constructor(e){this._editorViewDomNode=e}_create(e){return new D(e,this._editorViewDomNode)}onPointerUp(e,t){return h.nm(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return h.nm(e,"pointerdown",(e=>{t(this._create(e))}))}onPointerLeave(e,t){return h.RE(e,(e=>{t(this._create(e))}))}onPointerMoveThrottled(e,t,i,n){return h.Y_(e,"pointermove",t,((e,t)=>i(e,this._create(t))),n)}}class T extends u.JT{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new S.Z),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=h.mu(document,"keydown",(e=>{e.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalMouseMoveMonitor.startMonitoring(e,t,((e,t)=>i(e,new D(t,this._editorViewDomNode))),n,(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class M extends u.JT{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=s.left?n.width=Math.max(n.width,s.left+s.width-n.left):(t[i++]=n,n=s)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;const i=[];for(let n=0,o=e.length;na)return null;if((t=Math.min(a,Math.max(0,t)))===(n=Math.min(a,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(i,s)}t!==n&&n>0&&0===o&&(n--,o=1073741824);let l=e.children[t].firstChild,h=e.children[n].firstChild;if(l&&h||(!l&&0===i&&t>0&&(l=e.children[t-1].firstChild,i=1073741824),!h&&0===o&&n>0&&(h=e.children[n-1].firstChild,o=1073741824)),!l||!h)return null;i=Math.min(l.textContent.length,Math.max(0,i)),o=Math.min(h.textContent.length,Math.max(0,o));const d=this._readClientRects(l,i,h,o,r);return this._createHorizontalRangesFromClientRects(d,s)}}var z=i(9756),K=i(9054),U=i(9914),$=i(54);const j=!!b.tY||!(b.IJ||f.vU||f.G6);let q=!0;class G{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class Z{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(43);this.renderWhitespace=i.get(87),this.renderControlCharacters=i.get(82),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(58),this.stopRenderingLineAfter=i.get(104),this.fontLigatures=i.get(44)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class Q{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,v.X)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(this._options.themeType===U.e.HIGH_CONTRAST||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),s=this._options,r=z.Kp.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let a=null;if(s.themeType===U.e.HIGH_CONTRAST||"selection"===this._options.renderWhitespace){const t=i.selections;for(const i of t){if(i.endLineNumbere)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t');const h=(0,K.d1)(l,n);n.appendASCIIString("");let d=null;return q&&j&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===h.containsForeignElements&&o.content.length<300&&l.lineTokens.getCount()<100&&(d=new Y(this._renderedViewLine?this._renderedViewLine.domNode:null,l,h.characterMapping)),d||(d=ee(this._renderedViewLine?this._renderedViewLine.domNode:null,l,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof Y}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof Y?this._renderedViewLine.monospaceAssumptionsAreValid():q}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof Y&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t|=0,i|=0,t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=0|this._renderedViewLine.input.stopRenderingLineAfter;let s=!1;-1!==o&&t>o+1&&i>o+1&&(s=!0),-1!==o&&t>o+1&&(t=o+1),-1!==o&&i>o+1&&(i=o+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return r&&r.length>0?new W(s,r):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}Q.CLASS_NAME="view-line";class Y{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return q;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),q=!1),q}toSlowRenderedLine(){return ee(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getCharPosition(t),s=this._getCharPosition(i);return[new B(o,s-o)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return this._charWidth*t}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new K.Nd(o,i),n)}}class X{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const o=this._readPixelOffset(this.domNode,e,t,n);if(-1===o)return null;const s=this._readPixelOffset(this.domNode,e,i,n);return-1===s?null:[new B(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const n=this._readPixelOffset(e,t,i,o);return-1===n?null:[new B(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();const t=this._getReadingTarget(e);return t.firstChild?t.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const o=this._pixelOffsetCache[i];if(-1!==o)return o;const s=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=H.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const o=this._characterMapping.getDomPosition(i),s=H.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n.clientRectDeltaLeft,n.endNode);if(!s||0===s.length)return-1;const r=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getAbsoluteOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new B(0,this.getWidth())];const o=this._characterMapping.getDomPosition(t),s=this._characterMapping.getDomPosition(i);return H.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,s.partIndex,s.charIndex,n.clientRectDeltaLeft,n.endNode)}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new K.Nd(o,i),n)}}class J extends X{_readVisibleRangesForRange(e,t,i,n,o){const s=super._readVisibleRangesForRange(e,t,i,n,o);if(!s||0===s.length||i===n||1===i&&n===this._characterMapping.length)return s;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,o);if(-1!==i){const e=s[s.length-1];e.left=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class ce{constructor(e,t,i){this.model=e.model;const n=e.configuration.options;this.layoutInfo=n.get(129),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(58),this.stickyTabStops=n.get(103),this.typicalHalfwidthCharacterWidth=n.get(43).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ce.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.model.getLineCount();let s,r=null,a=null;return i.afterLineNumber!==o&&(a=new ie.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new ie.L(i.afterLineNumber,e.model.getLineMaxColumn(i.afterLineNumber))),s=null===a?r:null===r?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,me._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}{constructor(e,t,i,n){super(e,t,i),this._ctx=e,n?(this.target=n,this.targetPath=R.collect(n,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}fulfill(e,t=null,i=null,n=null){let o=this.mouseColumn;return t&&t.columns.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=o&&o<=i+s.height)return t.fulfill(6,s.position,null,{mightBeForeignElement:!1})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfill(e,i.position,null,i)}return null}static _hitTestTextArea(e,t){return de.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1}):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.pos.x-t.editorPos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,n,i.range,s):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,n,i.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,n,i.range,s)))}return null}static _hitTestViewLines(e,t,i){if(!de.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfill(7,new ie.L(1,1),null,ge);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return t.fulfill(7,new ie.L(i,n),null,ge)}if(i){if(de.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(i)){const n=e.getLineWidth(i),o=pe(t.mouseContentHorizontalOffset-n);return t.fulfill(7,new ie.L(i,1),null,o)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const o=pe(t.mouseContentHorizontalOffset-n),s=new ie.L(i,e.model.getLineMaxColumn(i));return t.fulfill(7,s,null,o)}}return t.fulfill(0)}const n=me._doHitTest(e,t);return 1===n.type?me.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){if(de.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new ie.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(de.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new ie.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(de.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new ie.L(i,n))}return null}getMouseColumn(e,t){const i=this._context.configuration.options,n=i.get(129),o=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-n.contentLeft;return me._getMouseColumn(o,i.get(43).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const s=n.lineNumber,r=n.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=pe(t.mouseContentHorizontalOffset-a);return t.fulfill(7,n,null,e)}const l=e.visibleRangeForPosition(s,r);if(!l)return t.fulfill(0,n);const h=l.left;if(t.mouseContentHorizontalOffset===h)return t.fulfill(6,n,null,{mightBeForeignElement:!!o});const d=[];if(d.push({offset:l.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&d.push({offset:t.left,column:r-1})}if(re.offset-t.offset));const c=t.pos.toClientCoordinates(),u=i.getBoundingClientRect(),g=u.left<=c.clientX&&c.clientX<=u.right;for(let e=1;e=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);const s=new L(t.pos.x,o),r=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return 1===r.type?r:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=h.Ay(e.viewDomNode);let n;if(n=i?void 0===i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;const e=o.getBoundingClientRect(),i=window.getComputedStyle(o,null).getPropertyValue("font"),s=o.innerText;let r,a=e.left,l=0;if(t>e.left+e.width)l=s.length;else{const e=fe.getInstance();for(let n=0;nthis._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(129).height;const n=new E(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMoveThrottled(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)),ve(this.mouseTargetFactory),be.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e)))),this._register(h.nm(this.viewHelper.viewDomNode,h.tw.MOUSE_WHEEL,(e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(67))return;const t=new w.q(e);if(b.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){const e=_e.C.getZoomLevel(),i=t.deltaY>0?1:-1;_e.C.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}}),{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(129)){const e=this._context.configuration.options.get(129).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const i=new N(e,t).toPageCoordinates(),n=k(this.viewHelper.viewDomNode);return i.yn.y+n.height||i.xn.x+n.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=h.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(i||o&&s))h(),this._mouseDownOperation.start(t.type,e);else if(n)e.preventDefault();else if(r){const i=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(i.viewZoneId)&&(h(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else a&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}be.MOUSE_MOVE_MINIMUM_TIME=100;class Ce extends u.JT{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new T(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new y._F),this._mouseState=new we,this._currentSelection=new _.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(80)&&n.get(31)&&!n.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,ve(null),(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!0);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,ve(null),(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet((()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))}),10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.model,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const s=n.getCurrentScrollTop()+(e.posy-t.y),r=ce.getZoneAtCoord(this._context,s);if(r){const e=this._helpPositionJumpOverViewZone(r);if(e)return new he(null,13,o,e)}const a=n.getLineNumberAtVerticalOffset(s);return new he(null,13,o,new ie.L(a,i.getLineMaxColumn(a)))}const s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new he(null,13,o,new ie.L(s,i.getLineMaxColumn(s))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return new he(n.element,n.type,n.mouseColumn,e,null,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new ie.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class we{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>we.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}we.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ye=i(3092),Se=i(521);class Le extends be{constructor(e,t,i){super(e,t,i),this._register(C.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Tap,(e=>this.onTap(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Change,(e=>this.onChange(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Contextmenu,(e=>this._onContextMenu(new D(e,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(h.nm(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new I(this.viewHelper.viewDomNode);this._register(n.onPointerMoveThrottled(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)),ve(this.mouseTargetFactory),be.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e))))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new D(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e)}}class Ne extends be{constructor(e,t,i){super(e,t,i),this._register(C.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Tap,(e=>this.onTap(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Change,(e=>this.onChange(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Contextmenu,(e=>this._onContextMenu(new D(e,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new D(e,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Se.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class xe extends u.JT{constructor(e,t,i){super(),b.gn&&ye.D.pointerEvents?this.handler=this._register(new Le(e,t,i)):window.TouchEvent?this.handler=this._register(new Ne(e,t,i)):this.handler=this._register(new be(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var ke=i(7416),De=i(153);class Ee extends M{}var Ie=i(1248),Te=i(8566);class Me extends Ee{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new ie.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(58);const t=e.get(59);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(83);const i=e.get(129);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ie.L(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?''+i+"":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===i||i%10==0?String(i):"":String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=b.IJ?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o='
    ',s=this._context.model.getLineCount(),r=[];for(let e=i;e<=n;e++){const n=e-i;if(!this._renderFinalNewline&&e===s&&0===this._context.model.getLineLength(e)){r[n]="";continue}const a=this._getLineRenderLineNumber(e);a?e===this._activeLineNumber?r[n]='
    '+a+"
    ":r[n]=o+a+"
    ":r[n]=""}this._renderResult=r}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Me.CLASS_NAME="line-numbers",(0,Te.Ic)(((e,t)=>{const i=e.getColor(Ie.hw);i&&t.addRule(`.monaco-editor .line-numbers { color: ${i}; }`);const n=e.getColor(Ie.DD);n&&t.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${n}; }`)}));class Ae extends A{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setClassName(Ae.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,v.X)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ae.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Ae.CLASS_NAME="glyph-margin",Ae.OUTER_CLASS_NAME="margin";var Re=i(4168),Oe=i(9531);class Pe{constructor(e,t,i){this._visibleTextAreaBrand=void 0,this.top=e,this.left=t,this.width=i}setWidth(e){return new Pe(this.top,this.left,e)}}const Fe=f.vU;class Be extends A{constructor(e,t,i){super(e),this._primaryCursorPosition=new ie.L(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=i,this._scrollLeft=0,this._scrollTop=0;const n=this._context.configuration.options,o=n.get(129);this._setAccessibilityOptions(n),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=n.get(43),this._lineHeight=n.get(58),this._emptySelectionClipboard=n.get(32),this._copyWithSyntaxHighlighting=n.get(21),this._visibleTextArea=null,this._selections=[new _.Y(1,1,1,1)],this._modelSelections=[new _.Y(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,v.X)(document.createElement("textarea")),R.write(this.textArea,6),this.textArea.setClassName(`inputarea ${Oe.S}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("tabindex",String(n.get(111))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",l.N("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),n.get(30)&&n.get(80)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=(0,v.X)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const s={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)},r={getDataToCopy:e=>{const t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,b.ED),i=this._context.model.getEOL(),n=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),o=Array.isArray(t)?t:null,s=Array.isArray(t)?t.join(i):t;let r,a=null;if(e&&(Se.RA.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&s.length<65536)){const e=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,a=e.mode)}return{isFromEmptySelection:n,multicursorText:o,text:s,html:r,mode:a}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(b.dz){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new De.un(i,i.length,i.length,t,t)}}return De.un.EMPTY}if(f.Dt){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,n]=this._getAndroidWordAtPosition(t);if(i.length>0)return new De.un(i,n,n,t,t)}return De.un.EMPTY}return De.ee.fromEditorSelection(e,s,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,i)};this._textAreaInput=this._register(new Se.Fz(r,this.textArea)),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(De.al&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(De.al&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this._selections[0].startLineNumber,i=this._selections[0].startColumn+e.revealDeltaColumns;this._context.model.revealRange("keyboard",!0,new ne.e(t,i,t,i),0,1);const n=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,i);n&&(this._visibleTextArea=new Pe(this._context.viewLayout.getVerticalOffsetForLineNumber(t),n.left,Fe?0:1),this._render()),this.textArea.setClassName(`inputarea ${Oe.S} ime-input`),this._viewController.compositionStart(),this._context.model.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea=this._visibleTextArea.setWidth(function(e,t){const i=document.createElement("canvas").getContext("2d");var n;i.font=("normal",`normal normal ${(n=t).fontWeight} ${n.fontSize}px / ${n.lineHeight}px ${n.fontFamily}`);const o=i.measureText(e);return f.vU?o.width+2:o.width}(e.data,this._fontInfo)),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${Oe.S}`),this._viewController.compositionEnd(),this._context.model.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.model.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.model.setHasFocus(!1)})))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.model.getLineContent(e.lineNumber),i=(0,Re.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?');let n=!0,o=e.column,s=!0,r=e.column,a=0;for(;a<50&&(n||s);){if(n&&o<=1&&(n=!1),n){const e=t.charCodeAt(o-2);0!==i.get(e)?n=!1:o--}if(s&&r>t.length&&(s=!1),s){const e=t.charCodeAt(r-1);0!==i.get(e)?s=!1:r++}a++}return[t.substring(o-1,r-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.model.getLineContent(e.lineNumber),i=(0,Re.u)(this._context.configuration.options.get(115));let n=e.column,o=0;for(;n>1;){const s=t.charCodeAt(n-2);if(0!==i.get(s)||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!ke.ZG(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){return 1===e.get(2)?l.N("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",b.IJ?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===$.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(43),this._lineHeight=t.get(58),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(111))),(e.hasChanged(30)||e.hasChanged(80))&&(t.get(30)&&t.get(80)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new ie.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():b.dz?this._renderInsideEditor(this._primaryCursorPosition,t,e,Fe?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,Fe?0:1,Fe?0:1)}_renderInsideEditor(e,t,i,n,o){this._lastRenderPosition=e;const s=this.textArea,r=this.textAreaCover;p.V.applyFontInfo(s,this._fontInfo),s.setTop(t),s.setLeft(i),s.setWidth(n),s.setHeight(o),r.setTop(0),r.setLeft(0),r.setWidth(0),r.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const e=this.textArea,t=this.textAreaCover;if(p.V.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),Fe)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);const i=this._context.configuration.options;i.get(49)?t.setClassName("monaco-editor-background textAreaCover "+Ae.OUTER_CLASS_NAME):0!==i.get(59).renderType?t.setClassName("monaco-editor-background textAreaCover "+Me.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")}}var Ve=i(1574);class We{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ve.Ox.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ve.Ox.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ve.Ox.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ve.Ox.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ve.Ox.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ve.Ox.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ve.Ox.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ve.Ox.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ve.Ox.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ve.Ox.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ve.Ox.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ve.Ox.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ve.Ox.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ve.Ox.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class He{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return He.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new ze(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class ze{constructor(e,t,i,n,o,s){this.element=e,this.type=t,this.mouseColumn=i,this.position=n,this.range=o,this.detail=s}toString(){return he.toString(this)}}var Ke,Ue=i(2342);class $e{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,s=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===s?(o=i,s=1):s++)}if(e=i&&s<=n&&(this._lines[s-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const s=[];for(let e=0;ei)continue;const r=Math.max(t,s.fromLineNumber),a=Math.min(i,s.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class je{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new $e((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,v.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(129)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;et){const e=t,s=Math.min(i,o.rendLineNumberStart-1);e<=s&&(this._insertLinesBefore(o,e,s,n,t),o.linesLength+=s-e+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,e),o.linesLength-=e)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const e=Math.max(0,i-o.rendLineNumberStart+1),t=o.linesLength-1-e+1;t>0&&(this._removeLinesAfter(o,t),o.linesLength-=t)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const s=e.rendLineNumberStart,r=e.lines;for(let e=t;e<=i;e++){const t=s+e;r[e].layoutLine(t,n[t-o])}}_insertLinesBefore(e,t,i,n,o){const s=[];let r=0;for(let e=t;e<=i;e++)s[r++]=this.host.createVisibleLine();e.lines=s.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;t--){const i=e.lines[t];n[t]&&(i.setDomNode(s),s=s.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");qe._ttPolicy&&(t=qe._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;te}),qe._sb=(0,Ue.l$)(1e5);class Ge extends A{constructor(e){super(e),this._visibleLines=new je(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ee.shouldRender()));for(let i=0,n=t.length;i'),n.appendASCIIString(o),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class Qe extends Ge{constructor(e){super(e);const t=this._context.configuration.options.get(129);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class Ye extends Ge{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),p.V.applyFontInfo(this.domNode,t.get(43))}onConfigurationChanged(e){const t=this._context.configuration.options;p.V.applyFontInfo(this.domNode,t.get(43));const i=t.get(129);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Xe{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class Je extends A{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,v.X)(document.createElement("div")),R.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,v.X)(document.createElement("div")),R.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new et(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class et{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,v.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,o=n.get(129);this._fixedOverflowWidgets=n.get(36),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=n.get(58),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(58),e.hasChanged(129)){const e=t.get(129);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,i,n,o){const s=e.top,r=s,a=t.top+this._lineHeight,l=s-n,h=r>=n,d=a,c=o.viewportHeight-a>=n;let u=e.left,g=t.left;return u+i>o.scrollLeft+o.viewportWidth&&(u=o.scrollLeft+o.viewportWidth-i),g+i>o.scrollLeft+o.viewportWidth&&(g=o.scrollLeft+o.viewportWidth-i),us){const e=r-(s-n);r-=e,i-=e}if(r=22,_=d+n<=c.height-22;return this._fixedOverflowWidgets?{fitsAbove:f,aboveTop:Math.max(l,22),aboveLeft:g,fitsBelow:_,belowTop:d,belowLeft:m}:{fitsAbove:f,aboveTop:s,aboveLeft:u,fitsBelow:_,belowTop:r,belowLeft:p}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Xe(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let i=t[0],n=t[0];for(const e of t)e.lineNumbern.lineNumber&&(n=e);let o=1073741824;for(const e of i.ranges)e.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&tt(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&tt(this._actual.afterRender,this._actual,this._renderData.position)}}function tt(e,t,...i){try{return e.call(t,...i)}catch(e){return null}}var it=i(6308);let nt=!0;class ot extends Ee{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(129);this._lineHeight=t.get(58),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new _.Y(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=nt?this._selections.slice(0,1):this._selections,i=t.map((e=>e.positionLineNumber));i.sort(((e,t)=>e-t)),it.fS(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=t.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._lineHeight=t.get(58),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let s=0;const r=[];for(let e=i;e<=n;e++){const n=e-i;for(;s=this._renderData.length?"":this._renderData[i]}}class st extends ot{_renderOne(e){return`
    `}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class rt extends ot{_renderOne(e){return`
    `}_shouldRenderMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderThis(){return!0}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}(0,Te.Ic)(((e,t)=>{nt=!1;const i=e.getColor(Ie.Kh);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ie.Mm)){const i=e.getColor(Ie.Mm);i&&(nt=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));class at extends Ee{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e{if(e.options.zIndext.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return in?1:ne.e.compareRangesUsingStarts(e.range,t.range)}));const o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=[];for(let e=o;e<=s;e++)r[e-o]="";this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let e=0,r=t.length;e',l=Math.max(r.range.startLineNumber,o),h=Math.min(r.range.endLineNumber,s);for(let e=l;e<=h;e++)i[e-o]+=a}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let s=null,r=!1,a=null;for(let l=0,h=t.length;l';r[l]+=s}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}var lt=i(8638),ht=i(2537);class dt extends A{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,s=o.get(91),r=o.get(66),a=o.get(34),l=o.get(94),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,Te.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new lt.$Z(t.domNode,d,this._context.viewLayout.getScrollable())),R.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,v.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.model.setScrollPosition(n,1)};this._register(h.nm(i.domNode,"scroll",(e=>c(i.domNode,!0,!0)))),this._register(h.nm(t.domNode,"scroll",(e=>c(t.domNode,!0,!1)))),this._register(h.nm(n.domNode,"scroll",(e=>c(n.domNode,!0,!1)))),this._register(h.nm(this.scrollbarDomNode.domNode,"scroll",(e=>c(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(129);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(64).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(91)||e.hasChanged(66)||e.hasChanged(34)){const e=this._context.configuration.options,t=e.get(91),i=e.get(66),n=e.get(34),o=e.get(94),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(129)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Te.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}(0,Te.Ic)(((e,t)=>{const i=e.getColor(ht._w);i&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tbox-shadow: ${i} 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: ${i} 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: ${i} 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t`);const n=e.getColor(ht.et);n&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: ${n};\n\t\t\t}\n\t\t`);const o=e.getColor(ht.AB);o&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: ${o};\n\t\t\t}\n\t\t`);const s=e.getColor(ht.yn);s&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: ${s};\n\t\t\t}\n\t\t`)}));class ct{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class ut extends Ee{_render(e,t,i){const n=[];for(let i=e;i<=t;i++)n[i-e]=[];if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',r=[];for(let e=t;e<=i;e++){const i=e-t,o=n[i];0===o.length?r[i]="":r[i]='
    =this._renderResult.length?"":this._renderResult[i]}}var pt=i(1913),mt=i(9831),ft=i(4818);class _t extends Ee{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(130),n=t.get(43);this._lineHeight=t.get(58),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(130),n=t.get(43);return this._lineHeight=t.get(58),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,o;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._lineHeight,h=this._primaryPosition,d=this.getGuidesByLine(s,r,h),c=[];for(let h=s;h<=r;h++){const r=h-s,u=d[r];let g="";const p=null!==(i=null===(t=e.visibleRangeForPosition(new ie.L(h,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of u){const i=p+(t.visibleColumn-1)*this._spaceWidth;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const s=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(o=null===(n=e.visibleRangeForPosition(new ie.L(h,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==o?o:i+this._spaceWidth)-i:this._spaceWidth;g+=`
    `}c[r]=g}this._renderResult=c}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.model.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?pt.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?pt.s6.EnabledForActive:pt.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.model.getLinesIndentGuides(e,t):null;let s=0,r=0,a=0;if(this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.model.getActiveIndentGuide(i.lineNumber,e,t);s=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.model.getTextModelOptions(),h=[];for(let i=e;i<=t;i++){const t=new Array;h.push(t);const d=n?n[i-e]:[],c=new it.H9(d),u=o?o[i-e]:[];for(let e=1;e<=u;e++){const n=(e-1)*l+1,o=0===d.length&&s<=i&&i<=r&&e===a;t.push(...c.takeWhile((e=>e.visibleColumn!0))||[])}return h}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function vt(e){if(!e||!e.isTransparent())return e}(0,Te.Ic)(((e,t)=>{const i=e.getColor(Ie.tR);i&&t.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=e.getColor(Ie.Ym)||i;n&&t.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${n} inset; }`);const o=[{bracketColor:Ie.zJ,guideColor:Ie.oV,guideColorActive:Ie.Qb},{bracketColor:Ie.Vs,guideColor:Ie.m$,guideColorActive:Ie.m3},{bracketColor:Ie.CE,guideColor:Ie.DS,guideColorActive:Ie.To},{bracketColor:Ie.UP,guideColor:Ie.lS,guideColorActive:Ie.L7},{bracketColor:Ie.r0,guideColor:Ie.Jn,guideColorActive:Ie.HV},{bracketColor:Ie.m1,guideColor:Ie.YF,guideColorActive:Ie.f9}],s=new mt.WE;let r=o.map((t=>{var i,n;const o=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=vt(null!==(i=vt(s))&&void 0!==i?i:null==o?void 0:o.transparent(.3)),l=vt(null!==(n=vt(r))&&void 0!==n?n:o);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(ft.$K);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}}));class bt{constructor(){this._currentVisibleRange=new ne.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Ct{constructor(e,t,i,n,o,s){this.lineNumber=e,this.startColumn=t,this.endColumn=i,this.startScrollTop=n,this.stopScrollTop=o,this.scrollType=s,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class wt{constructor(e,t,i,n){this.selections=e,this.startScrollTop=t,this.stopScrollTop=i,this.scrollType=n,this.type="selections";let o=e[0].startLineNumber,s=e[0].endLineNumber;for(let t=1,i=e.length;t{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new y.pY((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new bt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Q(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(130)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(43),n=t.get(130);return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(88),this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),p.V.applyFontInfo(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(129)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new Z(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++)this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let e=t;e<=i;e++)n=this._visibleLines.getVisibleLine(e).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Ct(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new wt(e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.model.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(n))return new ie.L(n,1);const o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(ns)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const a=this._context.model.getLineMinColumn(n);return ri?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=ne.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;let o=[],s=0;const r=new G(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ie.L(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();for(let e=n.startLineNumber;e<=n.endLineNumber;e++){if(eh)continue;const d=e===n.startLineNumber?n.startColumn:1,c=e===n.endLineNumber?n.endColumn:this._context.model.getLineMaxColumn(e),u=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,d,c,r);if(u){if(t&&ethis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new G(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new V(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){const t=this._visibleLines.getVisibleLine(s);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth()):o=!1}return o&&1===t&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const i=this._visibleLines.getVisibleLine(o);if(i.needsMonospaceFontCheck()){const n=i.getWidth();n>t&&(t=n,e=o)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=i;e<=n;e++)this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),b.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,o=n.length;ir){if(!l)return-1;c=h}else if(5===o||6===o)if(6===o&&s<=h&&d<=a)c=s;else{const e=h-Math.max(5*this._lineHeight,.2*r),t=d-r;c=Math.max(t,e)}else if(1===o||2===o)if(2===o&&s<=h&&d<=a)c=s;else{const e=(h+d)/2;c=Math.max(0,e-r/2)}else c=this._computeMinimumScrolling(s,a,h,d,3===o,4===o);return c}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let o=1073741824,s=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)o=Math.min(o,Math.round(e.left)),s=Math.max(s,Math.round(e.left+e.width))}else for(const t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;const e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(const t of e.ranges)o=Math.min(o,Math.round(t.left)),s=Math.max(s,Math.round(t.left+t.width))}return o=Math.max(0,o-yt.HORIZONTAL_EXTRA_PX),s+=this._revealHorizontalRightPadding,"selections"===e.type&&s-o>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,o,s),maxHorizontalOffset:s}}_computeMinimumScrolling(e,t,i,n,o,s){o=!!o,s=!!s;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)t?Math.max(0,n-r):e:i}}yt.HORIZONTAL_EXTRA_PX=30;class St extends ut{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(129);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e
    ',s=[];for(let e=t;e<=i;e++){const i=e-t,r=n[i];let a="";for(let e=0,t=r.length;e';o[i]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Nt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Nt._clamp(e),this.g=Nt._clamp(t),this.b=Nt._clamp(i),this.a=Nt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Nt.Empty=new Nt(0,0,0,0);var xt=i(8490);class kt extends u.JT{constructor(){super(),this._onDidChange=new c.Q5,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(xt.RW.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,u.dk)(new kt)),this._INSTANCE}_updateColorMap(){const e=xt.RW.getColorMap();if(!e)return this._colors=[Nt.Empty],void(this._backgroundIsLight=!0);this._colors=[Nt.Empty];for(let t=1;t=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}kt._INSTANCE=null;var Dt=i(7596);const Et=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var It=i(9886);class Tt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Tt.soften(e,.8),this.charDataLight=Tt.soften(e,50/60)}static soften(e,t){let i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=h?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=o.r-_,w=o.g-v,y=o.b-b,S=Math.max(s,a),L=e.data;let N=m*c*u,x=i*f+4*t;for(let e=0;ee.width||i+d>e.height)return void console.warn("bad render request outside image data");const c=4*e.width,u=o/255*.5,g=s.r,p=s.g,m=s.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(o,r),C=e.data;let w=i*c+4*t;for(let e=0;e{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i>1]=At[e[i]]<<4|15&At[e[i+1]];return t},Ot={1:(0,Mt.I)((()=>Rt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Mt.I)((()=>Rt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Pt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Ot[e]?new Tt(Ot[e](),e):Pt.createFromSampleData(Pt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const e of Et)i.fillText(String.fromCharCode(e),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");let i=Pt._downsample(e,t);return new Tt(i,t)}static _downsampleChar(e,t,i,n,o){const s=1*o,r=2*o;let a=n,l=0;for(let n=0;n0){const e=255/a;for(let t=0;tPt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Ft._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Ft._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(ht.kV);return i?new Nt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(ht.It);return t?Nt._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class Bt{constructor(e,t,i,n,o,s,r,a){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=s,this.startLineNumber=r,this.endLineNumber=a}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,o,s,r,a,l,h,d){const c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){const t=a*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0),i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),s=n/(h-o),d=l*s,c=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new Bt(l,h,c,s,d,i,1,Math.min(r,u))}let m,f;if(s&&i!==r){const e=i-t+1;m=Math.floor(e*u/c)}else{const e=o/p;m=Math.floor(e*u/c)}f=e.scrollBeyondLastLine?(r-1)*u/c:Math.max(0,r*u/c-m),f=Math.min(e.minimapHeight-m,f);const _=f/(h-o),v=l*_;let b=0;if(e.scrollBeyondLastLine&&(b=o/p-1),g>=r+b)return new Bt(l,h,f>0,_,v,m,1,r);{let e=Math.max(1,Math.floor(t-v*c/u));d&&d.scrollHeight===h&&(d.scrollTop>l&&(e=Math.min(e,d.startLineNumber)),d.scrollTopVt.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let e=0,i=t.length;e1){for(let t=0,i=r-1;t0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=zt.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const e of i)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.model.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.model.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){let n=[];for(let o=0,s=t-e+1;o{if(e.preventDefault(),0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(e.leftButton&&this._lastRenderData){const t=h.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e.buttons,e.posx,i,e.posy,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderMouseMoveMonitor=new S.Z,this._sliderMouseDownListener=h.mu(this._slider.domNode,"mousedown",(e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)})),this._gestureDisposable=C.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=h.nm(this._domNode.domNode,C.t.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=h.nm(this._domNode.domNode,C.t.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=h.mu(this._domNode.domNode,C.t.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i,n,o){this._slider.toggleClassName("active",!0);const s=(e,n)=>{const s=Math.abs(n-t);if(b.ED&&s>140)return void this._model.setScrollTop(o.scrollTop);const r=e-i;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(r))};n!==i&&s(n,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,S.e,(e=>s(e.posy,e.posx)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Ht(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(ht.ov),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=Bt.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(ne.e.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,s=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);const h=new $t(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,h,e,s),this._renderDecorationsLineHighlights(l,i,h,e,s);const d=new $t(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,d,e,s,a,r,n),this._renderDecorationsHighlights(l,i,d,e,s,a,r,n)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let s=0,r=0;for(const a of t){const t=Math.max(n.startLineNumber,a.startLineNumber),l=Math.min(n.endLineNumber,a.endLineNumber);if(t>l)continue;for(let e=t;e<=l;e++)i.set(e,!0);const h=(t-n.startLineNumber)*o,d=(l-n.startLineNumber)*o+o;r>=h||(r>s&&e.fillRect($.y0,s,e.canvas.width,r-s),s=h),r=d}r>s&&e.fillRect($.y0,s,e.canvas.width,r-s)}_renderDecorationsLineHighlights(e,t,i,n,o){const s=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||l.position!==pt.F5.Inline)continue;const h=Math.max(n.startLineNumber,a.range.startLineNumber),d=Math.min(n.endLineNumber,a.range.endLineNumber);if(h>d)continue;const c=l.getColor(this._theme);if(!c||c.isTransparent())continue;let u=s.get(c.toString());u||(u=c.transparent(.5).toString(),s.set(c.toString(),u)),e.fillStyle=u;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const s=(h-n.startLineNumber)*o;e.fillRect($.y0,s,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,s,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=Math.max(n.startLineNumber,l.startLineNumber),h=Math.min(n.endLineNumber,l.endLineNumber);if(!(t>h))for(let d=t;d<=h;d++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,d,o,o,s,r,a)}}_renderDecorationsHighlights(e,t,i,n,o,s,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const h=Math.max(n.startLineNumber,l.range.startLineNumber),d=Math.min(n.endLineNumber,l.range.endLineNumber);if(h>d)continue;const c=t.getColor(this._theme);if(c&&!c.isTransparent())for(let u=h;u<=d;u++)switch(t.position){case pt.F5.Inline:this.renderDecorationOnLine(e,i,l.range,c,n,u,o,o,s,r,a);continue;case pt.F5.Gutter:const t=(u-n.startLineNumber)*o,h=2;this.renderDecoration(e,c,h,t,2,o);continue}}}renderDecorationOnLine(e,t,i,n,o,s,r,a,l,h,d){const c=(s-o.startLineNumber)*a;if(c+r<0||c>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===s?i.startColumn:1,m=g===s?i.endColumn:this._model.getLineMaxColumn(s),f=this.getXOffsetForPosition(t,s,p,l,h,d),_=this.getXOffsetForPosition(t,s,m,l,h,d);this.renderDecoration(e,n,f,c,_-f,r)}getXOffsetForPosition(e,t,i,n,o,s){if(1===i)return $.y0;if((i-1)*o>=s)return s;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[$.y0];let a=$.y0;for(let e=1;e=s){r[e]=s;break}r[e]=l,a=l}e.set(t,r)}return i-1b?Math.floor((n-b)/2):0,w=c.a/255,y=new Nt(Math.round((c.r-d.r)*w+d.r),Math.round((c.g-d.g)*w+d.g),Math.round((c.b-d.b)*w+d.b),255);let S=0;const L=[];for(let e=0,s=i-t+1;e=0&&o_)return;const r=m.charCodeAt(C);if(9===r){const e=c-(C+w)%c;w+=e-1,b+=e*s}else if(32===r)b+=s;else{const c=ke.K7(r)?2:1;for(let u=0;u_)return}}}}}class $t{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let e=0,t=this._endLineNumber-this._startLineNumber+1;ethis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}(0,Te.Ic)(((e,t)=>{const i=e.getColor(ht.CA);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);const n=e.getColor(ht.Xy);n&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${n}; }`);const o=e.getColor(ht.br);o&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o}; }`);const s=e.getColor(ht._w);s&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)}));class jt extends A{constructor(e){super(e);const t=this._context.configuration.options.get(129);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,this._domNode=(0,v.X)(document.createElement("div")),R.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,v.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let e=0,i=t.length;e=3){const t=Math.floor(n/3),i=Math.floor(n/3),o=n-t-i,s=e+t;return[[0,e,s,e,e+t+o,e,s,e],[0,t,o,t+o,i,t+o+i,o+i,t+o+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Zt extends A{constructor(e){super(e),this._domNode=(0,v.X)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=xt.RW.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Gt(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(e=t-a),_=e-a,v=e+a}_>p+1||s!==u?(0!==e&&l.fillRect(h[u],g,d[u],p-g),u=s,g=_,p=v):v>p&&(p=v)}l.fillRect(h[u],g,d[u],p-g)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,i=e/2|0,s=this._settings.x[7],r=this._settings.w[7];l.fillStyle=this._settings.cursorColor;let a=-100,h=-100;for(let d=0,c=this._cursorPositions.length;dt&&(u=t-i);const g=u-i,p=g+e;g>h+1?(0!==d&&l.fillRect(s,a,r,h-a),a=g,h=p):p>h&&(h=p)}l.fillRect(s,a,r,h-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}}var Qt=i(3083);class Yt extends M{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,v.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Qt.Tj((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(58)),this._zoneManager.setPixelRatio(i.get(127)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(58)&&(this._zoneManager.setLineHeight(t.get(58)),this._render()),e.hasChanged(127)&&(this._zoneManager.setPixelRatio(t.get(127)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,h=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=h):r>=l?r=Math.max(r,h):(e.fillRect(0,s,n,r-s),s=l,r=h)}e.fillRect(0,s,n,r-s)}}class Xt extends A{constructor(e){super(e),this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const e=(0,v.X)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),o--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const i=e.getColor(Ie.zk);i&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${i} inset; }`)}));class Jt extends A{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(91);this._useShadows=t.useShadows,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(129);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(91);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}(0,Te.Ic)(((e,t)=>{const i=e.getColor(ht._w);i&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${i} 0 6px 6px -6px inset; }`)}));class ei{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class ti{constructor(e,t){this.lineNumber=e,this.ranges=t}}function ii(e){return new ei(e)}function ni(e){return new ti(e.lineNumber,e.ranges.map(ii))}class oi extends Ee{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(58),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(58),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,s=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!o&&e=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);o&&!o.startStyle&&(o=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e0){const i=t[e-1].ranges[0].left,o=t[e-1].ranges[0].left+t[e-1].ranges[0].width;si(a-i)i&&(h.top=1),si(l-o)'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const o=!!n[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=n[0].lineNumber,l=n[n.length-1].lineNumber;for(let h=0,d=n.length;h1,r)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function si(e){return e<0?-e:e}oi.SELECTION_CLASS_NAME="selected-text",oi.SELECTION_TOP_LEFT="top-left-radius",oi.SELECTION_BOTTOM_LEFT="bottom-left-radius",oi.SELECTION_TOP_RIGHT="top-right-radius",oi.SELECTION_BOTTOM_RIGHT="bottom-right-radius",oi.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",oi.ROUNDED_PIECE_WIDTH=10,(0,Te.Ic)(((e,t)=>{const i=e.getColor(ht.hE);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);const n=e.getColor(ht.ES);n&&t.addRule(`.monaco-editor .selected-text { background-color: ${n}; }`);const o=e.getColor(ht.yb);o&&!o.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${o}; }`)}));class ri{constructor(e,t,i,n,o,s){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=o,this.textContentClassName=s}}class ai{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(43);this._cursorStyle=t.get(24),this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setClassName(`cursor ${Oe.S}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),p.V.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new ie.L(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(43);return this._cursorStyle=t.get(24),this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),p.V.applyFontInfo(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===$.d2.Line||this._cursorStyle===$.d2.LineThin){const i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;let n;if(this._cursorStyle===$.d2.Line){if(n=h.Uh(this._lineCursorWidth>0?this._lineCursorWidth:2),n>2){const e=this._context.model.getLineContent(this._position.lineNumber),i=ke.vH(e,this._position.column-1);t=e.substr(this._position.column-1,i)}}else n=h.Uh(1);let o=i.left;n>=2&&o>=1&&(o-=1);const s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new ri(s,o,n,this._lineHeight,t,"")}const i=this._context.model.getLineContent(this._position.lineNumber),n=ke.vH(i,this._position.column-1),o=e.linesVisibleRangesForRange(new ne.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+n),!1);if(!o||0===o.length)return null;const s=o[0];if(s.outsideRenderedLine||0===s.ranges.length)return null;const r=s.ranges[0],a=r.width<1?this._typicalHalfwidthCharacterWidth:r.width;let l="";if(this._cursorStyle===$.d2.Block){const e=this._context.model.getViewLineData(this._position.lineNumber);t=i.substr(this._position.column-1,n);const o=e.tokens.findTokenIndexAtOffset(this._position.column-1);l=e.tokens.getClassName(o)}let d=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,c=this._lineHeight;return this._cursorStyle!==$.d2.Underline&&this._cursorStyle!==$.d2.UnderlineThin||(d+=this._lineHeight-2,c=2),new ri(d,r.left,a,c,t,l)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${Oe.S} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class li extends A{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(80),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new ai(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new y._F,this._cursorFlatBlinkInterval=new y.zh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(80),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;tt.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t{for(let i=0,n=e.ranges.length;i{this._isVisible?this._hide():this._show()}),li.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),li.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case $.d2.Line:e+=" cursor-line-style";break;case $.d2.Block:e+=" cursor-block-style";break;case $.d2.Underline:e+=" cursor-underline-style";break;case $.d2.LineThin:e+=" cursor-line-thin-style";break;case $.d2.BlockOutline:e+=" cursor-block-outline-style";break;case $.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const i=e.getColor(Ie.n0);if(i){let n=e.getColor(Ie.fY);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${n}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}));const hi=()=>{throw new Error("Invalid change accessor")};class di extends A{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._lineHeight=t.get(58),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,v.X)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let i=!1;return this._context.model.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{e(t)}catch(e){(0,d.dL)(e)}}(e,n),n.addZone=hi,n.removeZone=hi,n.layoutZone=hi})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,v.X)(t.domNode),marginDomNode:t.marginDomNode?(0,v.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){(0,d.dL)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){(0,d.dL)(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const e of t)this._zones[e.id].isInHiddenArea||(i[e.id]=e,n=!0);const o=Object.keys(this._zones);for(let t=0,n=o.length;t{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)}))),this._viewParts=[],this._textAreaHandler=new Be(this._context,r,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,v.X)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,v.X)(document.createElement("div")),R.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new dt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new yt(this._context,this._linesContent),this._viewZones=new di(this._context),this._viewParts.push(this._viewZones);const a=new Zt(this._context);this._viewParts.push(a);const l=new Jt(this._context);this._viewParts.push(l);const h=new Qe(this._context);this._viewParts.push(h),h.addDynamicOverlay(new st(this._context)),h.addDynamicOverlay(new oi(this._context)),h.addDynamicOverlay(new _t(this._context)),h.addDynamicOverlay(new at(this._context));const d=new Ye(this._context);this._viewParts.push(d),d.addDynamicOverlay(new rt(this._context)),d.addDynamicOverlay(new gt(this._context)),d.addDynamicOverlay(new Lt(this._context)),d.addDynamicOverlay(new St(this._context)),d.addDynamicOverlay(new Me(this._context));const c=new Ae(this._context);c.getDomNode().appendChild(this._viewZones.marginDomNode),c.getDomNode().appendChild(d.getDomNode()),this._viewParts.push(c),this._contentWidgets=new Je(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new li(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new jt(this._context),this._viewParts.push(this._overlayWidgets);const u=new Xt(this._context);this._viewParts.push(u);const g=new Kt(this._context);if(this._viewParts.push(g),a){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(a.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(u.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(c.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(g.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),s?s.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new xe(this._context,r,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new le(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new ie.L(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new ie.L(e,t)))}}_applyLayout(){const e=this._context.configuration.options.get(129);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(126)+" "+(0,Te.m6)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this._configPixelRatio=this._context.configuration.options.get(127),this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=h.lI(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){!function(e){try{e()}catch(e){(0,d.dL)(e)}}((()=>this._actualRender()))}_getViewPartsToRender(){let e=[],t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!h.Uw(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new gi(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new O(this._context.viewLayout,i,this._viewLines);for(const t of e)t.prepareRender(n);for(const t of e)t.render(n),t.onDidRender();Math.abs(f.mX()-this._configPixelRatio)>.001&&this._context.configuration.updatePixelRatio()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.model.validateModelPosition({lineNumber:e,column:t}),n=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new ie.L(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?He.convertViewToModelMouseTarget(i,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new Yt(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(null===t){const i=e.position?e.position.position:null;null!==i&&(t=new ne.e(i.lineNumber,i.column,i.lineNumber,i.column))}const i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}class mi{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new oe.rS(new ne.e(1,1,1,1),0,new ie.L(1,1),0),new oe.rS(new ne.e(1,1,1,1),0,new ie.L(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new oe.Vi(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new _.Y(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new _.Y(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),s=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,s),a=this._validatePositionWithCache(e,o,n,r);return i.equals(s)&&n.equals(r)&&o.equals(a)?t:new oe.rS(ne.e.fromPositions(r,a),t.selectionStartLeftoverVisibleColumns+n.column-r.column,s,t.leftoverVisibleColumns+i.column-s.column)}_setState(e,t,i){if(i&&(i=mi._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,o=e.model.validatePosition(t.position),s=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new oe.rS(i,n,o,s)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new oe.rS(n,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new oe.rS(n,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new ie.L(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new ie.L(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),s=new ne.e(n.lineNumber,n.column,o.lineNumber,o.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new oe.rS(s,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class fi{constructor(e){this.context=e,this.primaryCursor=new mi(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;ei){let e=t-i;for(let t=0;t=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){let e=[];e[0]=this.primaryCursor;for(let t=0,i=this.secondaryCursors.length;te.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber));for(let i=0;ia&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}var _i=i(7665),vi=i(9859),bi=i(557);class Ci{constructor(){this.type=0}}class wi{constructor(){this.type=1}}class yi{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Si{constructor(e,t){this.type=3,this.selections=e,this.modelSelections=t}}class Li{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class Ni{constructor(){this.type=5}}class xi{constructor(e){this.type=6,this.isFocused=e}}class ki{constructor(){this.type=7}}class Di{constructor(){this.type=8}}class Ei{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class Ii{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ti{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Mi{constructor(e,t,i,n,o,s){this.type=12,this.source=e,this.range=t,this.selections=i,this.verticalType=n,this.revealHorizontal=o,this.scrollType=s}}class Ai{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Ri{constructor(){this.type=14}}class Oi{constructor(e){this.type=15,this.ranges=e}}class Pi{constructor(){this.type=16}}class Fi{constructor(){this.type=17}}class Bi extends u.JT{constructor(){super(),this._onEvent=this._register(new c.Q5),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class Vi{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Wi{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new Wi(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Hi{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new Hi(this.oldHasFocus,e.hasFocus)}}class zi{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(e){return 2!==e.kind?this:new zi(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ki{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class Ui{constructor(e,t,i,n,o,s,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class Gi extends u.JT{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new oe.zp(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new fi(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,u.B9)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new oe.zp(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;tGi.MAX_CURSOR_COUNT&&(n=n.slice(0,Gi.MAX_CURSOR_COUNT),o=!0);const s=new ji(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,s,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n){const o=this._cursors.getViewPositions();if(o.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,i,n);else{const s=o[0],r=new ne.e(s.lineNumber,s.column,s.lineNumber,s.column);this._emitCursorRevealRange(e,t,r,null,0,i,n)}}_revealPrimaryCursor(e,t,i,n,o){const s=this._cursors.getViewPositions();if(s.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),i,n,o);else{const r=s[0],a=new ne.e(r.lineNumber,r.column,r.lineNumber,r.column);this._emitCursorRevealRange(e,t,a,null,i,n,o)}}_emitCursorRevealRange(e,t,i,n,o,s,r){e.emitViewEvent(new Mi(t,i,n,o,s,r))}saveState(){let e=[];const t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const i=oe.Vi.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,i)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,oe.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:oe.io.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:oe.io.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,oe.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let i=[],n=[];for(let o=0,s=e.length;o0&&(s[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,s,(i=>{let n=[];for(let t=0;te.identifier.minor-t.identifier.minor;let s=[];for(let i=0;i0?(n[i].sort(o),s[i]=t[i].computeCursorState(e.model,{getInverseEditOperations:()=>n[i],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new _.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new _.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):s[i]=e.selectionsBefore[i];return s}));r||(r=e.selectionsBefore);let a=[];for(let e in o)o.hasOwnProperty(e)&&a.push(parseInt(e,10));a.sort(((e,t)=>t-e));for(const e of a)r.splice(e,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{ne.e.isEmpty(e)&&""===s||n.push({identifier:{major:t,minor:o++},range:e,text:s,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:s,addTrackedEditOperation:(e,t,i)=>{r=!0,s(e,t,i)},trackSelection:(t,i)=>{const n=_.Y.liftSelection(t);let o;if(n.isEmpty())if("boolean"==typeof i)o=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);o=n.startColumn===t?2:3}else o=1;const s=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,o);return e.trackedRanges[s]=r,e.trackedRangesDirection[s]=n.getDirection(),s.toString()}};try{i.getEditOperations(e.model,a)}catch(e){return(0,d.dL)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-ne.e.compareRangesUsingEnds(e.range,t.range)));let t={};for(let i=1;io.identifier.major?n.identifier.major:o.identifier.major,t[s.toString()]=!0;for(let t=0;t0&&i--}}return t}}.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);let i=[],n=[];for(let t=0;t0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const s=new ji(this._model,this);if(s.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Si(a,r)),!n||n.cursorState.length!==s.cursorState.length||s.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Ui(a,r,l,s.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let i=0,n=e.length;i=0)return null;const o=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-o[2].length-1,h=n.text.lastIndexOf(a,l-1);if(-1===h)return null;t.push([h,l])}return t}executeEdits(e,t,i,n){let o=null;"snippet"===t&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);let s=[],r=[];const a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(o)for(let t=0,i=o.length;t0&&this._pushAutoClosedAction(s,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=new ji(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){(0,d.dL)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this._revealPrimaryCursor(t,i,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return qi.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit((()=>{"keyboard"===t&&(this._executeEditOperation(vi.u.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i{this._executeEditOperation(vi.u.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))}),e,s);else if(0!==o){const t=this.getSelections().map((e=>{const t=e.getPosition();return new _.Y(t.lineNumber,t.column+o,t.lineNumber,t.column+o)}));this.setSelections(e,s,t,0)}}paste(e,t,i,n,o){this._executeEdit((()=>{this._executeEditOperation(vi.u.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,o,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(_i.A.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new oe.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new oe.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}Gi.MAX_CURSOR_COUNT=1e4;var Zi=i(6031),Qi=i(6390),Yi=i(1081),Xi=i(2825),Ji=i(4929);class en{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class tn{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}class nn{constructor(e,t,i,n){this._instanceId=ke.PJ(++nn.INSTANCE_COUNT),this._pendingChanges=new en,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n>>1;t===e[s].afterLineNumber?i{t=!0,e|=0,i|=0,n|=0,o|=0;const s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new tn(s,e,i,n,o)),s},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const e of i)n.add(e.id);const o=new Map;for(const e of t)o.set(e.id,e);const s=e=>{let t=[];for(const i of e)if(!n.has(i.id)){if(o.has(i.id)){const e=o.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=s(this._arr).concat(s(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=nn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0,t+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;tthis.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n=s+i)n=t+1;else{if(e>=s)return t;o=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),o=0|this.getVerticalOffsetForLineNumber(n);let s=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,h;-1===r?(r=a,h=s+1,l=0):(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let d=o,c=d;const u=5e5;let g=0;o>=u&&(g=Math.floor(o/u)*u,g=Math.floor(g/i)*i,c-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let e=n;e<=s;e++){if(-1===f){const t=d,n=d+i;(t<=m&&mm)&&(f=e)}for(d+=i,p[e-n]=c,c+=i;h===e;)c+=l,d+=l,r++,r>=a?h=s+1:(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(d>=t){s=e;break}}-1===f&&(f=s);const _=0|this.getVerticalOffsetForLineNumber(s);let v=n,b=s;return vt&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t=o+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=o)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];let o=[];for(let e=i;e<=n;e++){const i=this.getVerticalOffsetForWhitespaceIndex(e),n=this.getHeightForWhitespaceIndex(e);if(i>=t)break;o.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:i,height:n})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}nn.INSTANCE_COUNT=0;class on{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class sn extends u.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new c.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new on(0,0,0,0),this._scrollable=this._register(new Ji.Rm(e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Wi(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class rn extends u.JT{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(129),s=n.get(74);this._linesLayout=new nn(t,n.get(58),s.top,s.bottom),this._scrollable=this._register(new sn(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new on(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(102)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(58)&&this._linesLayout.setLineHeight(t.get(58)),e.hasChanged(74)){const e=t.get(74);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(129)){const e=t.get(129),i=e.contentWidth,n=e.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new on(i,o.contentWidth,n,this._getContentHeight(i,n,s)))}else this._updateHeight();e.hasChanged(102)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(91);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(93)?o+=Math.max(0,t-n.get(58)-n.get(74).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new on(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Dt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Dt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(130),n=t.get(43);if(i.isViewportWrapping){const i=t.get(129),o=t.get(64);return e>i.contentWidth+n.typicalHalfwidthCharacterWidth&&o.enabled&&"right"===o.side?e+i.verticalScrollbarWidth:e}{const i=t.get(92)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,o)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new on(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var an=i(1996),ln=i(151);class hn{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class dn{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._counts.length;e0?this._modelToView[e-1]:0;this._modelToView[e]=i+t;for(let n=0;n0?this._modelToView[t-1]:0;return new ln.T(t,e-i)}}class cn{constructor(e,t,i,n,o,s,r,a,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=s,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new hn(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,s=this.createLineBreaksComputer(),r=new it.H9(bi.gk.fromDecorations(n));for(let e=0;et.lineNumber===e+1));s.addRequest(i[e],n,t?t[e]:null)}const a=s.finalize();let l=[],h=this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e))).sort(ne.e.compareRangesUsingStarts),d=1,c=0,u=-1,g=u+1=d&&t<=c,n=Cn(a[e],!i);l[e]=n.getViewLineCount(),this.lines[e]=n}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new dn(l)}getHiddenAreas(){return this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e)))}_reduceRanges(e){if(0===e.length)return[];let t=e.map((e=>this.model.validateRange(e))).sort(ne.e.compareRangesUsingStarts),i=[],n=t[0].startLineNumber,o=t[0].endLineNumber;for(let e=1,s=t.length;eo+1?(i.push(new ne.e(n,1,o,1)),n=s.startLineNumber,o=s.endLineNumber):s.endLineNumber>o&&(o=s.endLineNumber)}return i.push(new ne.e(n,1,o,1)),i}setHiddenAreas(e){let t=this._reduceRanges(e),i=this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e))).sort(ne.e.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n=s&&t<=r?this.lines[e].isVisible()&&(this.lines[e]=this.lines[e].setVisible(!1),i=!0):(h=!0,this.lines[e].isVisible()||(this.lines[e]=this.lines[e].setVisible(!0),i=!0)),i){let t=this.lines[e].getViewLineCount();this.prefixSumComputer.changeValue(e,t)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.lines.length?1:this.lines[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const o=this.fontInfo.equals(e),s=this.wrappingStrategy===t,r=this.wrappingColumn===i,a=this.wrappingIndent===n;if(o&&s&&r&&a)return!1;const l=o&&s&&!r&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let h=null;if(l){h=[];for(let e=0,t=this.lines.length;e2&&!this.lines[t-2].isVisible();let s=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=0,a=[],l=[];for(let e=0,t=n.length;er?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,h=l+r-1,u=h+1,g=u+(o-r)-1,a=!0):ot?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.getActiveIndentGuide(n.lineNumber,o.lineNumber,s.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return new un(i+1,n)}getMinColumnOfViewLine(e){return this.lines[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.lines[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new ie.L(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.lines[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new ie.L(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let s=this.getModelStartPositionOfViewLine(i),r=new Array;for(let e=i.modelLineNumber;e<=n.modelLineNumber;e++){const t=this.lines[e-1];if(t.isVisible()){let o=e===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=e===n.modelLineNumber?n.modelLineWrappedLineIdx+1:t.getViewLineCount();for(let t=o;te.horizontalLine?new pt.UO(e.visibleColumn,e.className,new pt.vW(e.horizontalLine.top,this.convertModelPositionToViewPosition(n.modelLineNumber,e.horizontalLine.endColumn).column)):e)),s.push(i)}}return s}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[],s=[],r=[];const a=i.lineNumber-1,l=n.lineNumber-1;let h=null;for(let e=a;e<=l;e++){const t=this.lines[e];if(t.isVisible()){let n=t.getViewLineNumberOfModelPosition(0,e===a?i.column:1),o=t.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(e+1)),l=o-n+1,d=0;l>1&&1===t.getViewLineMinColumn(this.model,e+1,o)&&(d=0===n?1:2),s.push(l),r.push(d),null===h&&(h=new ie.L(e+1,0))}else null!==h&&(o=o.concat(this.model.getLinesIndentGuides(h.lineNumber,e)),h=null)}null!==h&&(o=o.concat(this.model.getLinesIndentGuides(h.lineNumber,n.lineNumber)),h=null);const d=t-e+1;let c=new Array(d),u=0;for(let e=0,t=o.length;et&&(c=!0,d=t-o+1);let u=h+d;if(l.getViewLinesData(this.model,n+1,h,u,o-e,i,a),o+=d,c)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);let n=this.prefixSumComputer.getIndexOf(e-1),o=n.index,s=n.remainder,r=this.lines[o],a=r.getViewLineMinColumn(this.model,o+1,s),l=r.getViewLineMaxColumn(this.model,o+1,s);tl&&(t=l);let h=r.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new ie.L(o+1,h)).equals(i)?new ie.L(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new ne.e(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);let i=this.prefixSumComputer.getIndexOf(e-1),n=i.index,o=i.remainder,s=this.lines[n].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new ie.L(n+1,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new ne.e(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new ie.L(e,t)),o=n.lineNumber,s=n.column;let r=o-1,a=!1;for(;r>0&&!this.lines[r].isVisible();)r--,a=!0;if(0===r&&!this.lines[r].isVisible())return new ie.L(1,1);const l=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));let h;return h=a?this.lines[r].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(r+1),i):this.lines[o-1].getViewPositionOfModelPosition(l,s,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return ne.e.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new ne.e(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.lines[i].isVisible()){const e=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(0===i&&!this.lines[i].isVisible())return 1;const n=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new ne.e(n.lineNumber,1,o.lineNumber,o.column),t,i);let s=[];const r=n.lineNumber-1,a=o.lineNumber-1;let l=null;for(let e=r;e<=a;e++)if(this.lines[e].isVisible())null===l&&(l=new ie.L(e+1,e===r?n.column:1));else if(null!==l){const n=this.model.getLineMaxColumn(e);s=s.concat(this.model.getDecorationsInRange(new ne.e(l.lineNumber,l.column,e,n),t,i)),l=null}null!==l&&(s=s.concat(this.model.getDecorationsInRange(new ne.e(l.lineNumber,l.column,o.lineNumber,o.column),t,i)),l=null),s.sort(((e,t)=>{const i=ne.e.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i}));let h=[],d=0,c=null;for(const e of s){const t=e.id;c!==t&&(c=t,h[d++]=e)}return h}getInjectedTextAt(e){const t=this._toValidViewLineNumber(e.lineNumber),i=this.prefixSumComputer.getIndexOf(t-1),n=i.index,o=i.remainder;return this.lines[n].getInjectedTextAt(o,e.column)}normalizePosition(e,t){const i=this._toValidViewLineNumber(e.lineNumber),n=this.prefixSumComputer.getIndexOf(i-1),o=n.index,s=n.remainder;return this.lines[o].normalizePosition(this.model,o+1,s,e,t)}getLineIndentColumn(e){const t=this._toValidViewLineNumber(e),i=this.prefixSumComputer.getIndexOf(t-1),n=i.index;return 0===i.remainder?this.model.getLineIndentColumn(n+1):0}}class un{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}get isWrappedLineContinuation(){return this.modelLineWrappedLineIdx>0}}class gn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class pn{constructor(){}isVisible(){return!0}setVisible(e){return e?this:mn.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.getLineTokens(t),o=n.getLineContent();return new Dt.IP(o,!1,1,o.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,o,s,r){s[o]?r[o]=this.getViewLineData(e,t,0):r[o]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new ie.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i,n,o){return n}getInjectedTextAt(e,t){return null}}pn.INSTANCE=new pn;class mn{constructor(){}isVisible(){return!1}setVisible(e){return e?pn.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,o,s,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i,n,o){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}mn.INSTANCE=new mn;class fn{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return this._lineBreakData.getInputOffsetOfOutputPosition(e,0)}getInputEndOffsetOfOutputLineIndex(e,t,i){return i+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:this._lineBreakData.getInputOffsetOfOutputPosition(i+1,0)}getViewLineContent(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=i>0?this._lineBreakData.breakOffsets[i-1]:0,o=inew bi.gk(0,0,e+1,this._lineBreakData.injectionOptions[t],0)));s=bi.gk.applyInjectedText(e.getLineContent(t),i).substring(n,o)}else s=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(s=vn(this._lineBreakData.wrappedTextIndentLength)+s),s}getViewLineLength(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=i>0?this._lineBreakData.breakOffsets[i-1]:0;let o=(i0&&(o=this._lineBreakData.wrappedTextIndentLength+o),o}getViewLineMinColumn(e,t,i){if(!this._isVisible)throw new Error("Not supported");return this._getViewLineMinColumn(i)}_getViewLineMinColumn(e){return e>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineLength(e,t,i)+1}getViewLineData(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=this._lineBreakData,o=i>0?n.wrappedTextIndentLength:0,s=n.injectionOffsets,r=n.injectionOptions;let a,l,h;if(s){const d=e.getLineTokens(t).withInserted(s.map(((e,t)=>({offset:e,text:r[t].content,tokenMetadata:an.A.defaultTokenMetadata})))),c=i>0?n.breakOffsets[i-1]:0,u=n.breakOffsets[i];a=d.getLineContent().substring(c,u),l=d.sliceAndInflate(c,u,o),h=new Array;let g=0;for(let e=0;eu)break;if(c0?n.wrappedTextIndentLength:0,s=e+Math.max(o-c,0),r=e+Math.min(a-c,u);s!==r&&h.push(new Dt.Wx(s,r,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing))}}g+=t}}else{const n=this.getInputStartOffsetOfOutputLineIndex(i),s=this.getInputEndOffsetOfOutputLineIndex(e,t,i),r=e.getLineTokens(t);a=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1}),l=r.sliceAndInflate(n,s,o),h=null}i>0&&(a=vn(n.wrappedTextIndentLength)+a);const d=i>0?n.wrappedTextIndentLength+1:1,c=a.length+1,u=i+10&&(i0&&(s+=this._lineBreakData.wrappedTextIndentLength),new ie.L(e+o,s)}getViewLineNumberOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this._lineBreakData.getOutputPositionOfInputOffset(t-1).outputLineIndex}normalizePosition(e,t,i,n,o){if(null!==this._lineBreakData.injectionOffsets){const e=n.lineNumber-i,t=this._lineBreakData.outputPositionToOffsetInUnwrappedLine(i,n.column-1),s=this._lineBreakData.normalizeOffsetAroundInjections(t,o);if(s!==t)return this._lineBreakData.getOutputPositionOfOffsetInUnwrappedLine(s,o).toPosition(e,this._lineBreakData.wrappedTextIndentLength)}if(0===o){if(i>0&&n.column===this._getViewLineMinColumn(i))return new ie.L(n.lineNumber-1,this.getViewLineMaxColumn(e,t,i-1))}else if(1===o&&i=_n.length)for(let t=1;t<=e;t++)_n[t]=bn(t);return _n[e]}function bn(e){return new Array(e+1).join(" ")}function Cn(e,t){return null===e?t?pn.INSTANCE:mn.INSTANCE:new fn(e,t)}class wn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class yn{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new wn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ii(t,i)}onModelLinesInserted(e,t,i,n){return new Ti(t,i)}onModelLineChanged(e,t,i){return[!1,new Ei(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1;let n=new Array(i);for(let e=0;ethis.tokenizeViewport()),50)),this._updateConfigurationViewLineCount=this._register(new y.pY((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new yn(this.model);else{const e=this._configuration.options,t=e.get(43),i=e.get(123),s=e.get(130),r=e.get(122);this._lines=new cn(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,i,s.wrappingColumn,r)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Gi(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new rn(this._configuration,this.getLineCount(),s)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Ai(e)),this._eventDispatcher.emitOutgoingEvent(new zi(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Sn(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(kt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Pi)}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new ne.e(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const e of i)this.model.tokenizeViewport(e.startLineNumber,e.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new xi(e)),this._eventDispatcher.emitOutgoingEvent(new Hi(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new Ci)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new wi)}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Ri)}_onConfigurationChanged(e,t){let i=null;if(-1!==this._viewportStartLine){let e=new ie.L(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let n=!1;const o=this._configuration.options,s=o.get(43),r=o.get(123),a=o.get(130),l=o.get(122);if(this._lines.setWrappingSettings(s,r,a.wrappingColumn,l)&&(e.emitViewEvent(new Ni),e.emitViewEvent(new Di),e.emitViewEvent(new Li(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(80)&&(this._decorations.reset(),e.emitViewEvent(new Li(null))),e.emitViewEvent(new yi(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const e=this.coordinatesConverter.convertModelPositionToViewPosition(i),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStartLineDelta},1)}oe.LM.shouldRecreate(t)&&(this.cursorConfig=new oe.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e.changes,s=e instanceof bi.dQ?e.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize();let l=0;for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Ni),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(s,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=a.slice(l,l+e.detail.length);l+=e.detail.length;const o=this._lines.onModelLinesInserted(s,e.fromLineNumber,e.toLineNumber,n);null!==o&&(t.emitViewEvent(o),this.viewLayout.onLinesInserted(o.fromLineNumber,o.toLineNumber)),i=!0;break}case 2:{const i=a[l];l++;const[o,r,h,d]=this._lines.onModelLineChanged(s,e.lineNumber,i);n=o,r&&t.emitViewEvent(r),h&&(t.emitViewEvent(h),this.viewLayout.onLinesInserted(h.fromLineNumber,h.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==s&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Di),t.emitViewEvent(new Li(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const e=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(this.model.onDidChangeTokens((e=>{let t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new ki),this.cursorConfig=new oe.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new oe.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new Ni),e.emitViewEvent(new Di),e.emitViewEvent(new Li(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new oe.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Li(e))})))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new Ni),i.emitViewEvent(new Di),i.emitViewEvent(new Li(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new Ki)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(129),t=this._configuration.options.get(58),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),s=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new ne.e(o,this.getLineMinColumn(o),s,this.getLineMaxColumn(s)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];let n=[],o=0,s=t.startLineNumber,r=t.startColumn,a=t.endLineNumber,l=t.endColumn;for(let e=0,t=i.length;ea||(se.toInlineDecoration(t)))]),new Dt.wA(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,n,s.tokens,r,o,s.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){let n=this._lines.getViewLinesData(e,t,i);return new Dt.ud(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,$.$J)(this._configuration.options)),i=new xn;for(const n of t){const t=n.options,o=t.overviewRuler;if(!o)continue;const s=o.position;if(0===s)continue;const r=o.getColor(e),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,s)}return i.asArray}invalidateOverviewRulerColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){const e=this.model.getAllDecorations();for(const t of e){const e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const o=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(o)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(ne.e.compareRangesUsingStarts);let o=!1,s=!1;for(const t of e)t.isEmpty()?o=!0:s=!0;if(!s){if(!t)return"";const i=e.map((e=>e.startLineNumber));let o="";for(let e=0;e0&&i[e-1]===i[e]||(o+=this.model.getLineContent(i[e])+n);return o}if(o&&t){let t=[],n=0;for(const o of e){const e=o.startLineNumber;o.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(o,i?2:0)),n=e}return 1===t.length?t[0]:t}let r=[];for(const t of e)t.isEmpty()||r.push(this.model.getValueInRange(t,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ln.XT)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new ne.e(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const o=this._configuration.options.get(43),s=this._getColorMap();let r;return/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===$.hL.fontFamily?r=$.hL.fontFamily:(r=o.fontFamily,r=r.replace(/"/g,"'"),/[,']/.test(r)||/[+ ]/.test(r)&&(r=`'${r}'`),r=`${r}, ${$.hL.fontFamily}`),{mode:i,html:`
    `+this._getHTMLToCopy(n,s)+"
    "}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn,r=this.getTabSize();let a="";for(let e=i;e<=o;e++){const l=this.model.getLineTokens(e),h=l.getLineContent(),d=e===i?n-1:0,c=e===o?s-1:h.length;a+=""===h?"
    ":(0,Xi.F)(h,l.inflate(),t,d,c,r,b.ED)}return a}_getColorMap(){let e=xt.RW.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new $i):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,o){this._executeCursorEdit((s=>this._cursor.compositionType(s,e,t,i,n,o)))}paste(e,t,i,n){this._executeCursorEdit((o=>this._cursor.paste(o,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealPrimaryCursor(e,t){this._withViewEventsCollector((i=>this._cursor.revealPrimary(i,e,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new ne.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Mi(e,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new ne.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Mi(e,i,null,0,!0,0))))}revealRange(e,t,i,n,o){this._withViewEventsCollector((s=>s.emitViewEvent(new Mi(e,i,null,n,t,o))))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Fi),this._eventDispatcher.emitOutgoingEvent(new Ki))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class xn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const s=this._asMap[e];if(s){const e=s.data,t=e[e.length-3],r=e[e.length-1];if(t===o&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(o,i,n)}else{const s=new Dt.SQ(e,t,[o,i,n]);this._asMap[e]=s,this.asArray.push(s)}}}var kn=i(793),Dn=i(499),En=i(4333),In=i(8596),Tn=i(7968),Mn=i(8708),An=i(5224);class Rn extends An.N{constructor(e,t){super(0);for(let t=0;t=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let On=[],Pn=[];class Fn{constructor(e,t){this.classifier=new Rn(e,t)}static create(e){return new Fn(e.get(118),e.get(117))}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;const o=[],s=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),s.push(t),r.push(i)},finalize:()=>{const a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth;let l=[];for(let e=0,h=o.length;e=0){let e=Math.abs(h[b]-_);for(;b+1=e)break;e=t,b++}}for(;bt&&(t=m,o=f);let r=0,d=0,C=0,w=0;if(o<=_){let f=o,v=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(v),y=!0;for(let o=t;om&&zn(0,b,a,l)&&(r=t,d=f),f+=h,f>_){t>m?(C=t,w=f-h):(C=o+1,w=f),f-d>c&&(r=0),y=!1;break}v=a,b=l}if(y){p>0&&(u[p]=l[l.length-1],g[p]=h[l.length-1],p++);break}}if(0===r){let a=o,l=i.charCodeAt(t),h=e.get(l),u=!1;for(let n=t-1;n>=m;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){u=!0;break}let g,p;if(ke.YK(o)?(n--,g=0,p=2):(g=e.get(o),p=ke.K7(o)?s:1),a<=_){if(0===C&&(C=t,w=a),a<=_-c)break;if(zn(0,g,l,h)){r=t,d=a;break}}a-=p,l=o,h=g}if(0!==r){const e=c-(w-d);if(e<=n){const t=i.charCodeAt(C);let o;o=ke.ZG(t)?2:Wn(t,w,n,s),e-o<0&&(r=0)}}if(u){b--;continue}}if(0===r&&(r=C,d=w),r<=m){const e=i.charCodeAt(m);ke.ZG(e)?(r=m+2,d=f+2):(r=m+1,d=f+Wn(e,f,n,s))}for(m=r,u[p]=r,f=d,g[p]=d,p++,_=d+c;b<0||b=y)break;y=e,b++}}return 0===p?null:(u.length=p,g.length=p,On=t.breakOffsets,Pn=t.breakOffsetsVisibleColumn,t.breakOffsets=u,t.breakOffsetsVisibleColumn=g,t.wrappedTextIndentLength=d,t)}function Vn(e,t,i,n,o,s,r){const a=bi.gk.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===o)return l?new Dt.le([a.length],[],0,h,l):null;const d=a.length;if(d<=1)return l?new Dt.le([a.length],[],0,h,l):null;const c=Kn(a,n,o,s,r),u=o-c;let g=[],p=[],m=0,f=0,_=0,v=o,b=a.charCodeAt(0),C=e.get(b),w=Wn(b,0,n,s),y=1;ke.ZG(b)&&(w+=1,b=a.charCodeAt(1),C=e.get(b),y++);for(let t=y;tv&&((0===f||w-_>u)&&(f=i,_=w-l),g[m]=f,p[m]=_,m++,v=_+u,f=0),b=o,C=r}return 0!==m||i&&0!==i.length?(g[m]=d,p[m]=w,new Dt.le(g,p,c,h,l)):null}function Wn(e,t,i,n){return 9===e?i-t%i:ke.K7(e)||e<32?n:1}function Hn(e,t){return t-e%t}function zn(e,t,i,n){return 32!==i&&(2===t||3===t&&2!==n||1===n||3===n&&1!==t)}function Kn(e,t,i,n,o){let s=0;if(0!==o){const r=ke.LC(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}var Un;const $n=null===(Un=window.trustedTypes)||void 0===Un?void 0:Un.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class jn{static create(){return new jn}constructor(){}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;let o=[],s=[];return{addRequest:(e,t,i)=>{o.push(e),s.push(t)},finalize:()=>function(e,t,i,n,o,s){var r;function a(t){const i=s[t];if(i){const n=bi.gk.applyInjectedText(e[t],i),o=i.map((e=>e.options)),s=i.map((e=>e.column-1));return new Dt.le([n.length],[],0,s,o)}return null}if(-1===n){const t=[];for(let i=0,n=e.length;il?(a=0,h=0):d=l-e}const u=r.substr(a),p=qn(u,h,i,d,g,c);m[n]=a,f[n]=h,_[n]=u,v[n]=p[0],b[n]=p[1]}const C=g.build(),w=null!==(r=null==$n?void 0:$n.createHTML(C))&&void 0!==r?r:C;u.innerHTML=w,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);let y=document.createRange();const S=Array.prototype.slice.call(u.children,0);let L=[];for(let t=0;te.options)),h=c.map((e=>e.column-1))):(l=null,h=null),L[t]=new Dt.le(e,r,n,h,l)}return document.body.removeChild(u),L}(o,e,t,i,n,s)}}}function qn(e,t,i,n,o,s){if(0!==s){let e=String(s);o.appendASCIIString('
    ');const r=e.length;let a=t,l=0,h=[],d=[],c=0");for(let t=0;t"),h[t]=l,d[t]=a;const n=c;c=t+1"),h[e.length]=l,d[e.length]=a,o.appendASCIIString("
    "),[h,d]}function Gn(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{Zn(e,o,n,0,null,i.length-1,null,s)}catch(e){return console.log(e),null}return 0===s.length?null:(s.push(i.length),s)}function Zn(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||Qn(e,t,i[n],i[n+1]),r=r||Qn(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,h=Qn(e,t,i[l],i[l+1]);Zn(e,t,i,n,o,l,h,a),Zn(e,t,i,l,h,s,r,a)}function Qn(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}var Yn=i(3154),Xn=function(e,t){return function(i,n){t(i,n,e)}};let Jn=0;class eo{constructor(e,t,i,n,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o}dispose(){(0,u.B9)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let to=class e extends u.JT{constructor(e,t,i,n,s,r,a,l,h,u){super(),this._onDidDispose=this._register(new c.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new c.Q5),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new c.Q5),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new c.Q5),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new c.Q5),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new c.Q5),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new c.Q5),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new c.Q5),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new c.Q5),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new c.Q5),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new c.Q5),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new c.Q5),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new io),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new io),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new c.Q5),this.onWillType=this._onWillType.event,this._onDidType=this._register(new c.Q5),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new c.Q5),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new c.Q5),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new c.Q5),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new c.Q5),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new c.Q5),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new c.Q5),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new c.Q5),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new c.Q5),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new c.Q5),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new c.Q5),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new c.Q5),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new c.Q5),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new c.Q5),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new c.Q5),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new c.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new c.Q5),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new c.Q5),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new c.Q5),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event;const g=Object.assign({},t);let p;this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++Jn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=i.isSimpleWidget||!1,this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(g,u)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(129)){const e=t.get(129);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=h,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new no(this,this._contextKeyService)),this._register(new oo(this,this._contextKeyService)),this._instantiationService=n.createChild(new In.y([Dn.i6,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new so(e),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},p=Array.isArray(i.contributions)?i.contributions:o.Uc.getEditorContributions();for(const e of p)if(this._contributions[e.id])(0,d.dL)(new Error(`Cannot have two contributions with the same id ${e.id}`));else try{const t=this._instantiationService.createInstance(e.ctor,this);this._contributions[e.id]=t}catch(e){(0,d.dL)(e)}o.Uc.getEditorActions().forEach((e=>{if(this._actions[e.id])return void(0,d.dL)(new Error(`Cannot have two actions with the same id ${e.id}`));const t=new Zi.p(e.id,e.label,e.alias,(0,ft.f6)(e.precondition),(()=>this._instantiationService.invokeFunction((t=>Promise.resolve(e.runEditorCommand(t,this,null))))),this._contextKeyService);this._actions[t.id]=t})),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new p.V(this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Qi.g.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tne.e.lift(e))))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return oe.io.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!ie.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!ne.e.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,s,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new ne.e(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!ie.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new ne.e(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){const t=_.Y.isISelection(e),i=ne.e.isIRange(e);if(!t&&!i)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(i){const t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(t)}}_setSelectionImpl(e){if(!this._modelData)return;const t=new _.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections("api",[t])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new ne.e(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!ne.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(ne.e.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;te.isSupported())),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run()).then(void 0,d.dL):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){if(!this._modelData||0===t.length)return;const s=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,i,n,e);const r=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new ne.e(s.lineNumber,s.column,r.lineNumber,r.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=o.Uc.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dL)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(80)&&(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!!this._modelData&&!this._configuration.options.get(80)&&(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(80))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,$.$J)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(129)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const i=this._modelData.model.validatePosition(t),n=this._configuration.options,o=n.get(129);return{top:e._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft(),height:n.get(58)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){p.V.applyFontInfoSlow(e,this._configuration.options.get(43))}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();const i=new Nn(this._id,this._configuration,e,jn.create(),Fn.create(this._configuration.options),(e=>h.jL(e)));t.push(e.onDidChangeDecorations((e=>this._onDidChangeModelDecorations.fire(e)))),t.push(e.onDidChangeLanguage((t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t)}))),t.push(e.onDidChangeLanguageConfiguration((e=>this._onDidChangeModelLanguageConfiguration.fire(e)))),t.push(e.onDidChangeContent((e=>this._onDidChangeModelContent.fire(e)))),t.push(e.onDidChangeOptions((e=>this._onDidChangeModelOptions.fire(e)))),t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(i.onEvent((e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{e.reachedMaxCursorCount&&this._notificationService.warn(l.N("cursors.maximum","The number of cursors has been limited to {0}.",Gi.MAX_CURSOR_COUNT));const t=[];for(let i=0,n=e.selections.length;i{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const o={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",o)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",o)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new He(e.coordinatesConverter);return i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e),[new pi(t,this._configuration,this._themeService,e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};to=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Xn(3,En.TG),Xn(4,m.$),Xn(5,kn.H),Xn(6,Dn.i6),Xn(7,Te.XE),Xn(8,Tn.lT),Xn(9,Mn.F)],to);class io extends u.JT{constructor(){super(),this._onDidChangeToTrue=this._register(new c.Q5),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new c.Q5),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class no extends u.JT{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=Yi.u.editorSimpleInput.bindTo(t),this._editorFocus=Yi.u.focus.bindTo(t),this._textInputFocus=Yi.u.textInputFocus.bindTo(t),this._editorTextFocus=Yi.u.editorTextFocus.bindTo(t),this._editorTabMovesFocus=Yi.u.tabMovesFocus.bindTo(t),this._editorReadonly=Yi.u.readOnly.bindTo(t),this._inDiffEditor=Yi.u.inDiffEditor.bindTo(t),this._editorColumnSelection=Yi.u.columnSelection.bindTo(t),this._hasMultipleSelections=Yi.u.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=Yi.u.hasNonEmptySelection.bindTo(t),this._canUndo=Yi.u.canUndo.bindTo(t),this._canRedo=Yi.u.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(128)),this._editorReadonly.set(e.get(80)),this._inDiffEditor.set(e.get(53)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class oo extends u.JT{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=Yi.u.languageId.bindTo(t),this._hasCompletionItemProvider=Yi.u.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=Yi.u.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=Yi.u.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=Yi.u.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=Yi.u.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=Yi.u.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=Yi.u.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=Yi.u.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=Yi.u.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=Yi.u.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=Yi.u.hasReferenceProvider.bindTo(t),this._hasRenameProvider=Yi.u.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=Yi.u.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=Yi.u.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=Yi.u.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=Yi.u.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=Yi.u.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=Yi.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=Yi.u.isInWalkThroughSnippet.bindTo(t);const i=()=>this._update();this._register(e.onDidChangeModel(i)),this._register(e.onDidChangeModelLanguage(i)),this._register(xt.KZ.onDidChange(i)),this._register(xt.H9.onDidChange(i)),this._register(xt.He.onDidChange(i)),this._register(xt.Ct.onDidChange(i)),this._register(xt.RN.onDidChange(i)),this._register(xt.vI.onDidChange(i)),this._register(xt.tA.onDidChange(i)),this._register(xt.xp.onDidChange(i)),this._register(xt.vH.onDidChange(i)),this._register(xt.vJ.onDidChange(i)),this._register(xt.FL.onDidChange(i)),this._register(xt.G0.onDidChange(i)),this._register(xt.Az.onDidChange(i)),this._register(xt.vN.onDidChange(i)),this._register(xt.nD.onDidChange(i)),this._register(xt.mX.onDidChange(i)),i()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(xt.KZ.has(e)),this._hasCodeActionsProvider.set(xt.H9.has(e)),this._hasCodeLensProvider.set(xt.He.has(e)),this._hasDefinitionProvider.set(xt.Ct.has(e)),this._hasDeclarationProvider.set(xt.RN.has(e)),this._hasImplementationProvider.set(xt.vI.has(e)),this._hasTypeDefinitionProvider.set(xt.tA.has(e)),this._hasHoverProvider.set(xt.xp.has(e)),this._hasDocumentHighlightProvider.set(xt.vH.has(e)),this._hasDocumentSymbolProvider.set(xt.vJ.has(e)),this._hasReferenceProvider.set(xt.FL.has(e)),this._hasRenameProvider.set(xt.G0.has(e)),this._hasSignatureHelpProvider.set(xt.nD.has(e)),this._hasInlayHintsProvider.set(xt.mX.has(e)),this._hasDocumentFormattingProvider.set(xt.Az.has(e)||xt.vN.has(e)),this._hasDocumentSelectionFormattingProvider.set(xt.vN.has(e)),this._hasMultipleDocumentFormattingProvider.set(xt.Az.all(e).length+xt.vN.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(xt.vN.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===g.lg.walkThroughSnippet)})):this.reset()}}class so extends u.JT{constructor(e){super(),this._onChange=this._register(new c.Q5),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(h.go(e)),this._register(this._domFocusTracker.onDidFocus((()=>{this._hasFocus=!0,this._onChange.fire(void 0)}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasFocus=!1,this._onChange.fire(void 0)})))}hasFocus(){return this._hasFocus}}const ro=encodeURIComponent("");function lo(e){return ro+encodeURIComponent(e.toString())+ao}const ho=encodeURIComponent('');(0,Te.Ic)(((e,t)=>{const i=e.getColor(ht.b6);i&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${i}; }`);const n=e.getColor(ht.lX);n&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${lo(n)}") repeat-x bottom left; }`);const o=e.getColor(ht.A2);o&&t.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${o}; }`);const s=e.getColor(ht.pW);s&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=e.getColor(ht.uo);r&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${lo(r)}") repeat-x bottom left; }`);const a=e.getColor(ht.gp);a&&t.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=e.getColor(ht.T8);l&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const h=e.getColor(ht.c6);h&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${lo(h)}") repeat-x bottom left; }`);const d=e.getColor(ht.fe);d&&t.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const c=e.getColor(ht.fE);c&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${c}; }`);const u=e.getColor(ht.Du);u&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ho+encodeURIComponent(e.toString())+co}(u)}") no-repeat bottom left; }`);const g=e.getColor(Ie.zu);g&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const p=e.getColor(Ie.kp);p&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${p}; }`);const m=e.getColor(ht.NO)||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${m}}`)}))},7925:(e,t,i)=>{i.d(t,{p:()=>ge});var n,o=i(6386),s=i(4441),r=i(4733),a=i(3800),l=i(3484),h=i(6709),d=i(8431),c=i(9098),u=i(5834),g=i(5603),p=i(9656),m=i(7235),f=i(8638),_=i(8299),v=i(5298),b=i(54),C=i(1996),w=i(8964),y=i(1248),S=i(9054),L=i(7596),N=i(499),x=i(2537),k=i(8566),D=i(407),E=i(9528),I=i(4052);class T{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class M{constructor(e){this.entries=e}}const A=(0,E.q5)("diff-review-insert",D.lA.add,o.N("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),R=(0,E.q5)("diff-review-remove",D.lA.remove,o.N("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),O=(0,E.q5)("diff-review-close",D.lA.close,o.N("diffReviewCloseIcon","Icon for 'Close' in diff review."));let P=class e extends d.JT{constructor(e,t){super(),this._modeService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=(0,r.X)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,r.X)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new m.o(this.actionBarContainer.domNode)),this._actionBar.push(new _.aU("diffreview.close",o.N("label.close","Close"),"close-diff-review "+k.kS.asClassName(O),!0,(()=>{return e=this,t=void 0,n=function*(){return this.hide()},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n})),{label:!1,icon:!0}),this.domNode=(0,r.X)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=(0,r.X)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new f.s$(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff((()=>{this._isVisible&&(this._diffs=this._compute(),this._render())}))),this._register(e.getModifiedEditor().onDidChangeCursorPosition((()=>{this._isVisible&&this._render()}))),this._register(s.mu(this.domNode.domNode,"click",(e=>{e.preventDefault();let t=s.Fx(e.target,"diff-review-row");t&&this._goToRow(t)}))),this._register(s.mu(this.domNode.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())}))),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,i=this._diffs.length;e0){const t=e[s-1];n=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,o=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let r=t-3+1,a=i-3+1;if(ra){const e=a-m;m+=e,f+=e}if(f>p){const e=p-f;m+=e,f+=e}u[g++]=new T(n,m,o,f)}n[o++]=new M(u)}let s=n[0].entries,r=[],a=0;for(let e=1,t=n.length;ep)&&(p=n),0!==o&&(0===m||of)&&(f=s)}let _=document.createElement("div");_.className="diff-review-row";let v=document.createElement("div");v.className="diff-review-cell diff-review-summary";const b=p-g+1,C=f-m+1;v.appendChild(document.createTextNode(`${h+1}/${this._diffs.length}: @@ -${g},${b} +${m},${C} @@`)),_.setAttribute("data-line",String(m));const w=e=>0===e?o.N("no_lines_changed","no lines changed"):1===e?o.N("one_line_changed","1 line changed"):o.N("more_lines_changed","{0} lines changed",e),y=w(b),S=w(C);_.setAttribute("aria-label",o.N({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",h+1,this._diffs.length,g,y,m,S)),_.appendChild(v),_.setAttribute("role","listitem"),u.appendChild(_);const L=i.get(58);let N=m;for(let o=0,s=d.length;oe}),P=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(F=1,B=I.h,function(e,t){B(e,t,F)})],P),(0,k.Ic)(((e,t)=>{const i=e.getColor(y.hw);i&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${i}; }`);const n=e.getColor(x._w);n&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${n} 0 -6px 6px -6px inset; }`)}));class V extends v.R6{constructor(){super({id:"editor.action.diffReview.next",label:o.N("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:N.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=H(e);i&&i.diffReviewNext()}}class W extends v.R6{constructor(){super({id:"editor.action.diffReview.prev",label:o.N("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:N.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=H(e);i&&i.diffReviewPrev()}}function H(e){const t=e.get(g.$),i=t.listDiffEditors(),n=t.getActiveCodeEditor();if(!n)return null;for(let e=0,t=i.length;en.modifiedStartLineNumber?o.N("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):o.N("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?o.N("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):o.N("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(()=>J(this,void 0,void 0,(function*(){const e=new z.e(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),t=n.originalModel.getValueInRange(e);yield this._clipboardService.writeText(t)})))));let u,g=0;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new _.aU("diff.clipboard.copyDeletedLineContent",c?o.N("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):o.N("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,(()=>J(this,void 0,void 0,(function*(){const e=n.originalModel.getLineContent(n.originalStartLineNumber+g);if(""===e){const e=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(0===e?"\n":"\r\n")}else yield this._clipboardService.writeText(e)})))),d.push(u)),i.getOption(80)||d.push(new _.aU("diff.inline.revertChange",o.N("diff.inline.revertChange.label","Revert this change"),void 0,!0,(()=>J(this,void 0,void 0,(function*(){const e=new z.e(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),t=n.originalModel.getValueInRange(e);if(0===n.modifiedEndLineNumber){const e=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new z.e(n.modifiedStartLineNumber,e,n.modifiedStartLineNumber,e),text:h+t}])}else{const e=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new z.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,e),text:t}])}})))));const p=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(u&&(u.label=c?o.N("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+g):o.N("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+g)),d),autoSelectFirstItem:!0})};this._register(s.mu(this._diffActions,"mousedown",(e=>{const{top:t,height:i}=s.i(this._diffActions);let n=Math.floor(l/3);e.preventDefault(),p(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,g=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l)):this.visibility=!1}))),this._register(i.onMouseDown((e=>{!e.event.rightButton||8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),g=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),p(e.event.posx,e.event.posy+l))})))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=s.i(e),o=t-n,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let e=0;for(let t=0;t!this._zonesMap[String(e.id)]))}clean(e){this._zones.length>0&&e.changeViewZones((e=>{for(const t of this._zones)e.removeZone(t)})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,n){const o=n?u.ZF.capture(e):null;e.changeViewZones((t=>{var n;for(const e of this._zones)t.removeZone(e);for(const e of this._inlineDiffMargins)e.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let o=0,s=i.zones.length;oe});let ge=class e extends d.JT{constructor(t,i,n,o,a,d,c,u,g,p,m,f){super(),this._editorProgressService=f,this._onDidDispose=this._register(new h.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new h.Q5),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new h.Q5),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=a,this._codeEditorService=u,this._contextKeyService=this._register(d.createScoped(t)),this._instantiationService=c.createChild(new Q.y([N.i6,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=g,this._notificationService=p,this._id=++he,this._state=0,this._updatingDiffProgress=null,this._domElement=t,i=i||{},this._options=ke(i,{enableSplitViewResizing:!0,renderSideBySide:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),void 0!==i.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",i.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new l.pY((()=>this._updateDecorations()),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=(0,r.X)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(s.mu(this._overviewDomElement,"mousedown",(e=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new le(m,o),this._modifiedEditorState=new le(m,o),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new se.I(this._containerDomElement,i.dimension,(()=>this._onDidContainerSizeChanged()))),i.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(i,n.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(i,n.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=c.createInstance(P,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new be(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new we(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(g.onDidColorThemeChange((t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)})));const _=v.Uc.getDiffEditorContributions();for(const e of _)try{this._register(c.createInstance(e.ctor,this))}catch(e){(0,ne.dL)(e)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=(0,k.m6)(e.type),i}_recreateOverviewRulers(){this._options.renderOverviewRuler&&(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(43)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})));const o=this._contextKeyService.createKey("isInDiffLeftEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),n}_createRightHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(43)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}))),this._register(n.onDidChangeModelOptions((e=>{e.tabSize&&this._updateDecorationsRunner.schedule()})));const o=this._contextKeyService.createKey("isInDiffRightEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),n}_createInnerEditor(e,t,i,n){return e.createInstance(p.Gm,t,i,n)}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return U.g.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(t){const i=ke(t,this._options),n=(s=i,{enableSplitViewResizing:(o=this._options).enableSplitViewResizing!==s.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==s.renderSideBySide,maxComputationTime:o.maxComputationTime!==s.maxComputationTime,maxFileSize:o.maxFileSize!==s.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==s.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==s.renderIndicators,originalEditable:o.originalEditable!==s.originalEditable,diffCodeLens:o.diffCodeLens!==s.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==s.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==s.diffWordWrap});var o,s;this._options=i;const r=n.ignoreTrimWhitespace||n.renderIndicators,a=this._isVisible&&(n.maxComputationTime||n.maxFileSize);r?this._beginUpdateDecorations():a&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),n.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new be(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new we(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),n.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e){this._modifiedEditor.setPosition(e)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e){this._modifiedEditor.setSelection(e)}setSelections(e){this._modifiedEditor.setSelections(e)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._modifiedEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){return{original:this._originalEditor.saveViewState(),modified:this._modifiedEditor.saveViewState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler)return;if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:n+e.ONE_OVERVIEW_WIDTH,height:t-i}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-i}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((()=>this._beginUpdateDecorations()),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(!t||!i)return;this._diffComputationToken++;const n=this._diffComputationToken,s=1024*this._options.maxFileSize*1024,r=e=>{const t=e.getValueLength();return 0===s||t<=s};r(t)&&r(i)?(this._setState(1),this._editorWorkerService.computeDiff(t.uri,i.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then((e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())}),(e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}))):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(o.N("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:t.wordWrapOverride1="off",e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.wordWrapOverride1=this._options.diffWordWrap,i.revealHorizontalRightPadding=b.BH.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},i),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),i=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),o=this._strategy.layout();this._originalDomNode.style.width=o+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-o+"px",this._modifiedDomNode.style.left=o+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=i-n+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:o,height:i-n}),this._modifiedEditor.layout({width:t-o-(this._options.renderOverviewRuler?e.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:i-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(i-n,t,n),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),o=Math.max(0,n-0),s=i>0?o/i:0;return{height:Math.max(0,Math.floor(e.height*s)),top:Math.floor(t*s)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===i.length||e=a?n=s+1:(n=s,o=s)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.originalStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-i;return r<=o?n+Math.min(r,s):n+s-o+r}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.modifiedStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-n;return r<=s?i+Math.min(r,o):i+o-s+r}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};ge.ONE_OVERVIEW_WIDTH=15,ge.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ge.UPDATE_DIFF_DECORATIONS_DELAY=200,ge=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ae(3,ie.p),ae(4,j.p),ae(5,N.i6),ae(6,Z.TG),ae(7,g.$),ae(8,k.XE),ae(9,Y.lT),ae(10,X.i),ae(11,oe.e)],ge);class pe extends d.JT{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=(e.getColor(x.yp)||x.Cz).transparent(2),i=(e.getColor(x.P4)||x.ke).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,o){o=o.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber)),n=n.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber));const s=this._getViewZones(e,n,o,i),r=this._getOriginalEditorDecorations(e,t,i),a=this._getModifiedEditorDecorations(e,t,i);return{original:{decorations:r.decorations,overviewZones:r.overviewZones,zones:s.original},modified:{decorations:a.decorations,overviewZones:a.overviewZones,zones:s.modified}}}}class me{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexe.afterLineNumber-t.afterLineNumber,_=(e,t)=>{if(null===t.domNode&&e.length>0){const i=e[e.length-1];if(i.afterLineNumber===t.afterLineNumber&&null===i.domNode)return void(i.heightInLines+=t.heightInLines)}e.push(t)},v=new me(this._modifiedForeignVZ),b=new me(this._originalForeignVZ);let C=1,w=1;for(let i=0,n=this._lineChanges.length;i<=n;i++){const y=i0?-1:0),g=y.modifiedStartLineNumber+(y.modifiedEndLineNumber>0?-1:0),c=y.originalEndLineNumber>0?fe._getViewLineCount(this._originalEditor,y.originalStartLineNumber,y.originalEndLineNumber):0,d=y.modifiedEndLineNumber>0?fe._getViewLineCount(this._modifiedEditor,y.modifiedStartLineNumber,y.modifiedEndLineNumber):0,p=Math.max(y.originalStartLineNumber,y.originalEndLineNumber),m=Math.max(y.modifiedStartLineNumber,y.modifiedEndLineNumber)):(u+=1e7+c,g+=1e7+d,p=u,m=g);let S=[],L=[];if(o){let e;e=y?y.originalEndLineNumber>0?y.originalStartLineNumber-C:y.modifiedStartLineNumber-w:s.getLineCount()-C;for(let t=0;to&&L.push({afterLineNumber:i,heightInLines:n-o,domNode:null,marginDomNode:null})}y&&(C=(y.originalEndLineNumber>0?y.originalEndLineNumber:y.originalStartLineNumber)+1,w=(y.modifiedEndLineNumber>0?y.modifiedEndLineNumber:y.modifiedStartLineNumber)+1)}for(;v.current&&v.current.afterLineNumber<=m;){let e;e=v.current.afterLineNumber<=g?u-g+v.current.afterLineNumber:p;let i=null;y&&y.modifiedStartLineNumber<=v.current.afterLineNumber&&v.current.afterLineNumber<=y.modifiedEndLineNumber&&(i=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),S.push({afterLineNumber:e,heightInLines:v.current.height/t,domNode:null,marginDomNode:i}),v.advance()}for(;b.current&&b.current.afterLineNumber<=p;){let t;t=b.current.afterLineNumber<=u?g-u+b.current.afterLineNumber:m,L.push({afterLineNumber:t,heightInLines:b.current.height/e,domNode:null}),b.advance()}if(null!==y&&Se(y)){const e=this._produceOriginalFromDiff(y,c,d);e&&S.push(e)}if(null!==y&&Le(y)){const e=this._produceModifiedFromDiff(y,c,d);e&&L.push(e)}let N=0,x=0;for(S=S.sort(f),L=L.sort(f);N=t.heightInLines?(e.heightInLines-=t.heightInLines,x++):(t.heightInLines-=e.heightInLines,N++)}for(;N(e.domNode||(e.domNode=Ne()),e)))}}function _e(e,t,i,n,o){return{range:new z.e(e,t,i,n),options:o}}const ve={charDelete:$.qx.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:$.qx.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:$.qx.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:$.qx.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:$.qx.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:$.qx.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+k.kS.asClassName(de),marginClassName:"line-insert",isWholeLine:!0}),lineDelete:$.qx.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:$.qx.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+k.kS.asClassName(ce),marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:$.qx.register({description:"diff-editor-line-delete-margin",marginClassName:"line-delete"})};class be extends pe{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new a.g(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart((()=>this._onSashDragStart())),this._sash.onDidChange((e=>this._onSashDrag(e))),this._sash.onDidEnd((()=>this._onSashDragEnd())),this._sash.onDidReset((()=>this._onSashReset()))}setEnableSplitViewResizing(e){const t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ge.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let i=Math.floor((e||.5)*t);const n=Math.floor(.5*t);return i=this._disableSash?n:i||n,t>2*be.MINIMUM_EDITOR_WIDTH?(it-be.MINIMUM_EDITOR_WIDTH&&(i=t-be.MINIMUM_EDITOR_WIDTH)):i=n,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ge.ENTIRE_DIFF_OVERVIEW_WIDTH:0),i=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=i/t,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new Ce(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i){const n=this._dataSource.getOriginalEditor(),o=String(this._removeColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(Le(n)){s.decorations.push({range:new z.e(n.originalStartLineNumber,1,n.originalEndLineNumber,1073741824),options:i?ve.lineDeleteWithSign:ve.lineDelete}),Se(n)&&n.charChanges||s.decorations.push(_e(n.originalStartLineNumber,1,n.originalEndLineNumber,1073741824,ve.charDeleteWholeLine));const e=xe(r,a,n.originalStartLineNumber,n.originalEndLineNumber);if(s.overviewZones.push(new q.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges)for(const e of n.charChanges)if(Le(e))if(t)for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++){let i,n;i=t===e.originalStartLineNumber?e.originalStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.originalEndLineNumber?e.originalEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(_e(t,i,t,n,ve.charDelete))}else s.decorations.push(_e(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn,ve.charDelete))}return s}_getModifiedEditorDecorations(e,t,i){const n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(Se(n)){s.decorations.push({range:new z.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824),options:i?ve.lineInsertWithSign:ve.lineInsert}),Le(n)&&n.charChanges||s.decorations.push(_e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824,ve.charInsertWholeLine));const e=xe(r,a,n.modifiedStartLineNumber,n.modifiedEndLineNumber);if(s.overviewZones.push(new q.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges)for(const e of n.charChanges)if(Se(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(_e(t,i,t,n,ve.charInsert))}else s.decorations.push(_e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,ve.charInsert))}return s}}be.MINIMUM_EDITOR_WIDTH=100;class Ce extends fe{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class we extends pe{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange((t=>{this._decorationsLeft!==t.decorationsLeft&&(this._decorationsLeft=t.decorationsLeft,e.relayoutEditors())})))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const o=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new ye(e,t,i,o,s,n).getViewZones()}_getOriginalEditorDecorations(e,t,i){const n=String(this._removeColor),o={decorations:[],overviewZones:[]},s=this._dataSource.getOriginalEditor(),r=s.getModel(),a=s._getViewModel();for(const t of e)if(Le(t)){o.decorations.push({range:new z.e(t.originalStartLineNumber,1,t.originalEndLineNumber,1073741824),options:ve.lineDeleteMargin});const e=xe(r,a,t.originalStartLineNumber,t.originalEndLineNumber);o.overviewZones.push(new q.EY(e.startLineNumber,e.endLineNumber,n))}return o}_getModifiedEditorDecorations(e,t,i){const n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(Se(n)){s.decorations.push({range:new z.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824),options:i?ve.lineInsertWithSign:ve.lineInsert});const e=xe(r,a,n.modifiedStartLineNumber,n.modifiedEndLineNumber);if(s.overviewZones.push(new q.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges){for(const e of n.charChanges)if(Se(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(_e(t,i,t,n,ve.charInsert))}else s.decorations.push(_e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,ve.charInsert))}else s.decorations.push(_e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824,ve.charInsertWholeLine))}return s}layout(){return Math.max(5,this._decorationsLeft)}}class ye extends fe{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._originalModel=n.getModel(),this._renderIndicators=s,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){const e=super.getViewZones();return this._finalize(e),e}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){const e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,i){const n=document.createElement("div");return n.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i,domNode:document.createElement("div"),marginDomNode:n}}_produceModifiedFromDiff(e,t,i){const n=document.createElement("div");n.className=`view-lines line-delete ${re.S}`;const o=document.createElement("div");o.className="inline-deleted-margin-view-zone";const s={shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:0,domNode:n,marginDomNode:o,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(t),null,null);return this._pendingLineChange.push(e),this._pendingViewZones.push(s),s}_finalize(e){const t=this._modifiedEditor.getOptions(),i=this._modifiedEditor.getModel().getOptions().tabSize,n=t.get(43),o=t.get(29),s=n.typicalHalfwidthCharacterWidth,r=t.get(92),a=this._originalModel.mightContainNonBasicASCII(),l=this._originalModel.mightContainRTL(),h=t.get(58),d=t.get(129).decorationsWidth,u=t.get(104),g=t.get(87),p=t.get(82),m=t.get(44),f=this._lineBreaksComputer.finalize();let _=0;for(let t=0;t0,N=(0,K.l$)(1e4);let x=0,k=0,D=null;for(let t=v.originalStartLineNumber;t<=v.originalEndLineNumber;t++){const s=t-v.originalStartLineNumber,r=this._originalModel.getLineTokens(t),c=r.getLineContent(),C=f[_++],L=G.Kp.filter(y,t,1,c.length+1);if(C){let f=0;for(const e of C.breakOffsets){const t=r.sliceAndInflate(f,e,0),s=c.substring(f,e);x=Math.max(x,this._renderOriginalLine(k++,s,t,G.Kp.extractWrapped(L,f,e),S,a,l,n,o,h,d,u,g,p,m,i,N,w)),f=e}for(D||(D=[]);D.lengthe.afterLineNumber-t.afterLineNumber))}_renderOriginalLine(e,t,i,n,o,s,r,a,l,h,d,c,u,g,p,m,f,_){f.appendASCIIString('
    ');const v=L.wA.isBasicASCII(t,s),C=L.wA.containsRTL(t,v,r),w=(0,S.d1)(new S.IJ(a.isMonospace&&!l,a.canUseHalfwidthRightwardsArrow,t,!1,v,C,0,i,n,m,0,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,c,u,g,p!==b.n0.OFF,null),f);if(f.appendASCIIString("
    "),this._renderIndicators){const t=document.createElement("div");t.className=`delete-sign ${k.kS.asClassName(ce)}`,t.setAttribute("style",`position:absolute;top:${e*h}px;width:${d}px;height:${h}px;right:0;`),_.appendChild(t)}return w.characterMapping.getAbsoluteOffset(w.characterMapping.length)}}function Se(e){return e.modifiedEndLineNumber>0}function Le(e){return e.originalEndLineNumber>0}function Ne(){const e=document.createElement("div");return e.className="diagonal-fill",e}function xe(e,t,i,n){const o=e.getLineCount();return i=Math.min(o,Math.max(1,i)),n=Math.min(o,Math.max(1,n)),t.coordinatesConverter.convertModelRangeToViewRange(new z.e(i,e.getLineMinColumn(i),n,e.getLineMaxColumn(n)))}function ke(e,t){return{enableSplitViewResizing:(0,b.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),renderSideBySide:(0,b.O7)(e.renderSideBySide,t.renderSideBySide),maxComputationTime:(0,b.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,b.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,b.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,b.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,b.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,b.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,b.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(i=e.diffWordWrap,n=t.diffWordWrap,(0,b.NY)(i,n,["off","on","inherit"]))};var i,n}(0,k.Ic)(((e,t)=>{const i=e.getColor(x.yp);i&&(t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${i}; }`));const n=e.getColor(x.P4);n&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${n}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${n}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${n}; }`));const o=e.getColor(x.XL);o&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${o}; }`);const s=e.getColor(x.mH);s&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${s}; }`);const r=e.getColor(x._w);r&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${r}; }`);const a=e.getColor(x.LL);a&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${a}; }`);const l=e.getColor(x.et);l&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${l};\n\t\t\t}\n\t\t`);const h=e.getColor(x.AB);h&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${h};\n\t\t\t}\n\t\t`);const d=e.getColor(x.yn);d&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${d};\n\t\t\t}\n\t\t`);const c=e.getColor(x.L_);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${c} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${c} 50%, ${c} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)}))},9502:(e,t,i)=>{i.d(t,{F:()=>h});var n=i(4527),o=i(6709),s=i(8431),r=i(3127),a=i(38);const l={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class h extends s.JT{constructor(e,t={}){super(),this._onDidUpdate=this._register(new o.Q5),this._editor=e,this._options=r.jB(t,l,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose((()=>this.dispose()))),this._register(this._editor.onDidUpdateDiff((()=>this._onDiffUpdated()))),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition((e=>{this.ignoreSelectionChange||(this.nextIdx=-1)}))),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel((e=>{this.revealFirst=!0}))),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach((e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((e=>{this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})})),this.ranges.sort(((e,t)=>a.e.compareRangesUsingStarts(e.range,t.range))),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,i=this._editor.getPosition();if(i){for(let n=0,o=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},8050:(e,t,i)=>{i.d(t,{T4:()=>o,OY:()=>s,Sj:()=>r,Uo:()=>a,hP:()=>l});var n=i(7841);class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)}}class s{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)}}class r{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)}}class a{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},8453:(e,t,i)=>{i.d(t,{U:()=>d});var n=i(7416),o=i(282),s=i(38),r=i(7841),a=i(4608);const l=Object.create(null);function h(e,t){if(t<=0)return"";l[e]||(l[e]=["",e]);const i=l[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}class d{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,i,n,s){const r=o.io.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.io.prevIndentTabStop(r,n)/n)}return h("\t",o.io.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.io.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.io.nextIndentTabStop(r,n)/n)}return h("\t",o.io.nextRenderTabStop(r,i)/i)}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let r=this._selection.endLineNumber;1===this._selection.endColumn&&i!==r&&(r-=1);const{tabSize:l,indentSize:c,insertSpaces:u}=this._opts,g=i===r;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let h=0,p=0;for(let m=i;m<=r;m++,h=p){p=0;let r,f=e.getLineContent(m),_=n.LC(f);if((!this._opts.isUnshift||0!==f.length&&0!==_)&&(g||this._opts.isUnshift||0!==f.length)){if(-1===_&&(_=f.length),m>1&&o.io.visibleColumnFromColumn(f,_+1,l)%c!=0&&e.isCheapToTokenize(m-1)){let t=a.zu.getEnterAction(this._opts.autoIndent,e,new s.e(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)));if(t){if(p=h,t.appendText)for(let e=0,i=t.appendText.length;e{i.d(t,{nG:()=>p,fv:()=>C,ei:()=>k,Pe:()=>D});var n=i(6386),o=i(6709),s=i(8431),r=i(3127),a=i(6308),l=i(54),h=i(4963),d=i(5921),c=i(2326),u=i(6325),g=i(7032);const p=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new o.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}},m=Object.hasOwnProperty;class f{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class _{constructor(){this._values=[]}_read(e){return this._values[e]}_write(e,t){this._values[e]=t}}class v{static readOptions(e){const t=e,i=new _;for(const e of l.Bc){const n="_never_"===e.name?void 0:t[e.name];i._write(e.id,n)}return i}static validateOptions(e){const t=new l.hu;for(const i of l.Bc)t._write(i.id,i.validate(e._read(i.id)));return t}static computeOptions(e,t){const i=new f;for(const n of l.Bc)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&a.fS(e,t);for(let i in e)if(!v._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of l.Bc){const s=!v._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=s,s&&(n=!0)}return n?new l.Bb(i):null}}function b(e){const t=r.I8(e);return function(e){const t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");const i=e.lineNumbers;!0===i?e.lineNumbers="on":!1===i&&(e.lineNumbers="off"),!1===e.autoClosingBrackets&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never"),"visible"===e.cursorBlinking&&(e.cursorBlinking="solid");const n=e.renderWhitespace;!0===n?e.renderWhitespace="boundary":!1===n&&(e.renderWhitespace="none");const o=e.renderLineHighlight;!0===o?e.renderLineHighlight="line":!1===o&&(e.renderLineHighlight="none");const s=e.acceptSuggestionOnEnter;!0===s?e.acceptSuggestionOnEnter="on":!1===s&&(e.acceptSuggestionOnEnter="off");const r=e.tabCompletion;!1===r?e.tabCompletion="off":!0===r&&(e.tabCompletion="onlySnippets");const a=e.suggest;if(a&&"object"==typeof a.filteredTypes&&a.filteredTypes){const e={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};(0,g.E)(e,(e=>{const t=a.filteredTypes[e.key];!1===t&&(a[e.value]=t)}))}const l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});const h=e.parameterHints;!0===h?e.parameterHints={enabled:!0}:!1===h&&(e.parameterHints={enabled:!1});const d=e.autoIndent;!0===d?e.autoIndent="full":!1===d&&(e.autoIndent="advanced");const c=e.matchBrackets;!0===c?e.matchBrackets="always":!1===c&&(e.matchBrackets="never");const{renderIndentGuides:u,highlightActiveIndentGuide:p}=e;e.guides||(e.guides={}),void 0!==u&&(e.guides.indentation=!!u),void 0!==p&&(e.guides.highlightActiveIndentation=!!p)}(t),t}class C extends s.JT{constructor(e,t){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new o.Q5),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new l.LJ,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=b(t),this._readOptions=v.readOptions(this._rawOptions),this._validatedOptions=v.validateOptions(this._readOptions),this._register(h.C.onDidChangeZoomLevel((e=>this._recomputeOptions()))),this._register(p.onDidChangeTabFocus((e=>this._recomputeOptions())))}observeReferenceElement(e){}updatePixelRatio(){}_recomputeOptions(){const e=this.options,t=this._computeInternalOptions();if(e){const i=v.checkEquals(e,t);if(null===i)return;this.options=t,this._onDidChangeFast.fire(i),this._onDidChange.fire(i)}else this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const e=this._getEnvConfiguration(),t=d.E4.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,e.pixelRatio,this.isSimpleWidget),i={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:p.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return v.computeOptions(this._validatedOptions,i)}static _subsetEquals(e,t){for(const i in t)if(m.call(t,i)){const n=t[i],o=e[i];if(o===n)continue;if(Array.isArray(o)&&Array.isArray(n)){if(!a.fS(o,n))return!1;continue}if(o&&"object"==typeof o&&n&&"object"==typeof n){if(!this._subsetEquals(o,n))return!1;continue}return!1}return!0}updateOptions(e){if(void 0===e)return;const t=b(e);C._subsetEquals(this._rawOptions,t)||(this._rawOptions=r.jB(this._rawOptions,t||{}),this._readOptions=v.readOptions(this._rawOptions),this._validatedOptions=v.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){const t=C._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}}const w=Object.freeze({id:"editor",order:5,type:"object",title:n.N("editorConfigurationTitle","Editor"),scope:5}),y=u.B.as(c.IP.Configuration),S=Object.assign(Object.assign({},w),{properties:{"editor.tabSize":{type:"number",default:l.DB.tabSize,minimum:1,markdownDescription:n.N("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:l.DB.insertSpaces,markdownDescription:n.N("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:l.DB.detectIndentation,markdownDescription:n.N("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:l.DB.trimAutoWhitespace,description:n.N("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:l.DB.largeFileOptimizations,description:n.N("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:n.N("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[n.N("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),n.N("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),n.N("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:n.N("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[n.N("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),n.N("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),n.N("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:n.N("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:n.N("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:n.N("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:"array",default:!1,description:n.N("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:n.N("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:n.N("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:n.N("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:n.N("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:n.N("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:n.N("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:n.N("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:n.N("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:n.N("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:n.N("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:n.N("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[n.N("wordWrap.off","Lines will never wrap."),n.N("wordWrap.on","Lines will wrap at the viewport width."),n.N("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const e of l.Bc){const t=e.schema;if(void 0!==t)if(void 0!==(L=t).type||void 0!==L.anyOf)S.properties[`editor.${e.name}`]=t;else for(let e in t)m.call(t,e)&&(S.properties[e]=t[e])}var L;let N=null;function x(){return null===N&&(N=Object.create(null),Object.keys(S.properties).forEach((e=>{N[e]=!0}))),N}function k(e){return x()[`editor.${e}`]||!1}function D(e){return x()[`diffEditor.${e}`]||!1}y.registerConfiguration(S)},54:(e,t,i)=>{i.d(t,{y0:()=>r,Bb:()=>a,hu:()=>l,LJ:()=>h,O7:()=>g,Zc:()=>m,NY:()=>b,d2:()=>y,n0:()=>S,gk:()=>N,$J:()=>x,hL:()=>E,DB:()=>I,Bc:()=>T,BH:()=>A});var n=i(6386),o=i(1138),s=i(1050);const r=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class d{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class c{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function g(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class p extends u{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return g(e,this.defaultValue)}}function m(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}class f extends u{constructor(e,t,i,n,o,s){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return m(e,t,i,n)}validate(e){return f.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class _ extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(_.float(e,this.defaultValue))}}class v extends u{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return v.string(e,this.defaultValue)}}function b(e,t,i){return"string"!=typeof e||-1===i.indexOf(e)?t:e}class C extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return b(e,this.defaultValue,this._allowedValues)}}class w extends d{constructor(e,t,i,n,o,s,r){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var y;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(y||(y={}));class S extends d{constructor(){super(44,"fontLigatures",S.OFF,{anyOf:[{type:"boolean",description:n.N("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:n.N("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:n.N("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?S.OFF:"true"===e?S.ON:e:Boolean(e)?S.ON:S.OFF}}S.OFF='"liga" off, "calt" off',S.ON='"liga" on, "calt" on';class L extends d{constructor(){super(46,"fontWeight",E.fontWeight,{anyOf:[{type:"number",minimum:L.MINIMUM_VALUE,maximum:L.MAXIMUM_VALUE,errorMessage:n.N("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:L.SUGGESTION_VALUES}],default:E.fontWeight,description:n.N("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(f.clampedInt(e,E.fontWeight,L.MINIMUM_VALUE,L.MAXIMUM_VALUE))}}L.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],L.MINIMUM_VALUE=1,L.MAXIMUM_VALUE=1e3;class N extends c{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return N.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,h=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=c?2:3;let w=Math.floor(o*n);const y=w/o;let S=!1,L=!1,x=C*u,k=u/o,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeyondLastLine:s,desiredRatio:r,minimapLineCount:h}=N.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:o});if(_/h>1)S=!0,L=!0,u=1,x=1,k=u/o;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((_+s)*x);b&&a&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>w}if("fill"===p||n){S=!0;const n=u;x=Math.min(l*o,Math.max(1,Math.floor(1/r))),b&&a&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(x/C))),u>n&&(D=Math.min(2,u/n)),k=u/o/D,w=Math.ceil(Math.max(i,_+s)*x),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const E=Math.floor(g*k),I=Math.min(E,Math.max(0,Math.floor((v-f-2)*k/(h+k)))+r);let T=Math.floor(o*I);const M=T/o;return T=Math.floor(T*D),{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-I-f,minimapWidth:I,minimapHeightIsEditorHeight:S,minimapIsSampling:L,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:y}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,c=e.get(121),u="inherit"===c?e.get(120):c,g="inherit"===u?e.get(116):u,p=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,v=e.get(49),b=0!==e.get(59).renderType,C=e.get(60),w=e.get(93),y=e.get(64),S=e.get(91),L=S.verticalScrollbarSize,x=S.verticalHasArrows,k=S.arrowSize,D=S.horizontalScrollbarSize,E=e.get(57),I=e.get(37);let T;if("string"==typeof E&&/^\d+(\.\d+)?ch$/.test(E)){const e=parseFloat(E.substr(0,E.length-2));T=f.clampedInt(e*r,0,0,1e3)}else T=f.clampedInt(E,0,0,1e3);I&&(T+=16);let M=0;if(b){const e=Math.max(s,C);M=Math.round(e*a)}let A=0;v&&(A=o);let R=0,O=R+A,P=O+M,F=P+T;const B=i-A-M-T;let V=!1,W=!1,H=-1;2!==m&&("inherit"===u&&_?(V=!0,W=!0):"on"===g||"bounded"===g?W=!0:"wordWrapColumn"===g&&(H=p));const z=N._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:B,isViewportWrapping:W},t.memory||new h);0!==z.renderMinimap&&0===z.minimapLeft&&(R+=z.minimapWidth,O+=z.minimapWidth,P+=z.minimapWidth,F+=z.minimapWidth);const K=B-z.minimapWidth,U=Math.max(1,Math.floor((K-L-2)/r)),$=x?k:0;return W&&(H=Math.max(1,U),"bounded"===g&&(H=Math.min(H,p))),{width:i,height:n,glyphMarginLeft:R,glyphMarginWidth:A,lineNumbersLeft:O,lineNumbersWidth:M,decorationsLeft:P,decorationsWidth:T,contentLeft:F,contentWidth:K,minimap:z,viewportColumn:U,isWordWrapMinified:V,isViewportWrapping:W,wrappingColumn:H,verticalScrollbarWidth:L,horizontalScrollbarHeight:D,overviewRuler:{top:$,width:L,height:n-2*$,right:0}}}}function x(e){const t=e.get(86);return"editable"===t?e.get(80):"on"!==t}function k(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}function D(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const E={fontFamily:o.dz?"Menlo, Monaco, 'Courier New', monospace":o.IJ?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.dz?12:14,lineHeight:0,letterSpacing:0},I={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},T=[];function M(e){return T[e.id]=e,e}const A={acceptSuggestionOnCommitCharacter:M(new p(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.N("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:M(new C(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.N("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.N("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:M(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.N("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),n.N("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),n.N("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:n.N("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:M(new f(3,"accessibilityPageSize",10,1,1073741824,{description:n.N("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:M(new v(4,"ariaLabel",n.N("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:M(new C(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.N("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),n.N("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.N("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:M(new C(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",n.N("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:n.N("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:M(new C(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.N("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.N("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:M(new C(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.N("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),n.N("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.N("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:M(new w(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.N("editor.autoIndent.none","The editor will not insert indentation automatically."),n.N("editor.autoIndent.keep","The editor will keep the current line's indentation."),n.N("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),n.N("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.N("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:n.N("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:M(new p(10,"automaticLayout",!1)),autoSurround:M(new C(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.N("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),n.N("editor.autoSurround.quotes","Surround with quotes but not brackets."),n.N("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:n.N("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:M(new class extends d{constructor(){const e={enabled:I.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:n.N("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return e&&"object"==typeof e?{enabled:g(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}),bracketPairGuides:M(new class extends d{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.N("editor.guides.bracketPairs.true","Enables bracket pair guides."),n.N("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),n.N("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:n.N("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.N("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),n.N("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),n.N("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:n.N("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:n.N("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:n.N("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:n.N("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:D(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:D(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:g(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:g(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:g(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}),stickyTabStops:M(new p(103,"stickyTabStops",!1,{description:n.N("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:M(new p(14,"codeLens",!0,{description:n.N("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:M(new v(15,"codeLensFontFamily","",{description:n.N("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:M(new f(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:n.N("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:M(new p(17,"colorDecorators",!0,{description:n.N("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:M(new p(18,"columnSelection",!1,{description:n.N("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:M(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.N("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.N("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:g(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:g(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:M(new p(20,"contextmenu",!0)),copyWithSyntaxHighlighting:M(new p(21,"copyWithSyntaxHighlighting",!0,{description:n.N("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:M(new w(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.N("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:M(new p(23,"cursorSmoothCaretAnimation",!1,{description:n.N("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:M(new w(24,"cursorStyle",y.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return y.Line;case"block":return y.Block;case"underline":return y.Underline;case"line-thin":return y.LineThin;case"block-outline":return y.BlockOutline;case"underline-thin":return y.UnderlineThin}}),{description:n.N("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:M(new f(25,"cursorSurroundingLines",0,0,1073741824,{description:n.N("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:M(new C(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.N("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.N("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:n.N("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:M(new f(27,"cursorWidth",0,0,1073741824,{markdownDescription:n.N("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:M(new p(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:M(new p(29,"disableMonospaceOptimizations",!1)),domReadOnly:M(new p(30,"domReadOnly",!1)),dragAndDrop:M(new p(31,"dragAndDrop",!0,{description:n.N("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:M(new class extends p{constructor(){super(32,"emptySelectionClipboard",!0,{description:n.N("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),extraEditorClassName:M(new v(33,"extraEditorClassName","")),fastScrollSensitivity:M(new _(34,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:n.N("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:M(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.N("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[n.N("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),n.N("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),n.N("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:n.N("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[n.N("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),n.N("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),n.N("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:n.N("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.N("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.N("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.N("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:g(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":b(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":b(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:g(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:g(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:g(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:M(new p(36,"fixedOverflowWidgets",!1)),folding:M(new p(37,"folding",!0,{description:n.N("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:M(new C(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.N("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),n.N("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:n.N("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:M(new p(39,"foldingHighlight",!0,{description:n.N("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:M(new p(40,"foldingImportsByDefault",!1,{description:n.N("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:M(new p(41,"unfoldOnClickAfterEndOfLine",!1,{description:n.N("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:M(new v(42,"fontFamily",E.fontFamily,{description:n.N("fontFamily","Controls the font family.")})),fontInfo:M(new class extends c{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:M(new S),fontSize:M(new class extends u{constructor(){super(45,"fontSize",E.fontSize,{type:"number",minimum:6,maximum:100,default:E.fontSize,description:n.N("fontSize","Controls the font size in pixels.")})}validate(e){let t=_.float(e,this.defaultValue);return 0===t?E.fontSize:_.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:M(new L),formatOnPaste:M(new p(47,"formatOnPaste",!1,{description:n.N("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:M(new p(48,"formatOnType",!1,{description:n.N("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:M(new p(49,"glyphMargin",!0,{description:n.N("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:M(new class extends d{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.N("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),n.N("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),n.N("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.N("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:n.N("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.N("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.N("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.N("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.N("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:n.N("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:n.N("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:n.N("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:n.N("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:n.N("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:b(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:b(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:b(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:b(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:b(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:b(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:v.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:v.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:v.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:v.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:v.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:M(new p(51,"hideCursorInOverviewRuler",!1,{description:n.N("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:M(new class extends d{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:n.N("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:n.N("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:n.N("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:n.N("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),delay:f.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:g(t.sticky,this.defaultValue.sticky),above:g(t.above,this.defaultValue.above)}}}),inDiffEditor:M(new p(53,"inDiffEditor",!1)),letterSpacing:M(new _(55,"letterSpacing",E.letterSpacing,(e=>_.clamp(e,-5,20)),{description:n.N("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:M(new class extends d{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:n.N("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:g(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}),lineDecorationsWidth:M(new u(57,"lineDecorationsWidth",10)),lineHeight:M(new class extends _{constructor(){super(58,"lineHeight",E.lineHeight,(e=>_.clamp(e,0,150)),{markdownDescription:n.N("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:M(new class extends d{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[n.N("lineNumbers.off","Line numbers are not rendered."),n.N("lineNumbers.on","Line numbers are rendered as absolute number."),n.N("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),n.N("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:n.N("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:M(new f(60,"lineNumbersMinChars",5,1,300)),linkedEditing:M(new p(61,"linkedEditing",!1,{description:n.N("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:M(new p(62,"links",!0,{description:n.N("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:M(new C(63,"matchBrackets","always",["always","near","never"],{description:n.N("matchBrackets","Highlight matching brackets.")})),minimap:M(new class extends d{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:n.N("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[n.N("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),n.N("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),n.N("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:n.N("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:n.N("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:n.N("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:n.N("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:n.N("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:n.N("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),size:b(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:b(t.side,this.defaultValue.side,["right","left"]),showSlider:b(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:g(t.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(t.scale,1,1,3),maxColumn:f.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:M(new C(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:M(new _(66,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:n.N("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:M(new p(67,"mouseWheelZoom",!1,{markdownDescription:n.N("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:M(new p(68,"multiCursorMergeOverlapping",!0,{description:n.N("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:M(new w(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[n.N("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),n.N("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:n.N({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:M(new C(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[n.N("multiCursorPaste.spread","Each cursor pastes a single line of the text."),n.N("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:n.N("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:M(new p(71,"occurrencesHighlight",!0,{description:n.N("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:M(new p(72,"overviewRulerBorder",!0,{description:n.N("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:M(new f(73,"overviewRulerLanes",3,0,3)),padding:M(new class extends d{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:n.N("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:n.N("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:f.clampedInt(t.top,0,0,1e3),bottom:f.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:M(new class extends d{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:n.N("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:n.N("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),cycle:g(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:M(new C(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[n.N("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),n.N("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:n.N("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:M(new p(77,"definitionLinkOpensInPeek",!1,{description:n.N("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:M(new class extends d{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:n.N("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:n.N("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:n.N("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:n.N("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){const t=e,i={other:g(t.other,this.defaultValue.other),comments:g(t.comments,this.defaultValue.comments),strings:g(t.strings,this.defaultValue.strings)};return!!(i.other&&i.comments&&i.strings)||!!(i.other||i.comments||i.strings)&&i}return this.defaultValue}}),quickSuggestionsDelay:M(new f(79,"quickSuggestionsDelay",10,0,1073741824,{description:n.N("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:M(new p(80,"readOnly",!1)),renameOnType:M(new p(81,"renameOnType",!1,{description:n.N("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:n.N("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:M(new p(82,"renderControlCharacters",!0,{description:n.N("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:M(new p(83,"renderFinalNewline",!0,{description:n.N("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:M(new C(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",n.N("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:n.N("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:M(new p(85,"renderLineHighlightOnlyWhenFocus",!1,{description:n.N("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:M(new C(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:M(new C(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",n.N("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),n.N("renderWhitespace.selection","Render whitespace characters only on selected text."),n.N("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:n.N("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:M(new f(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:M(new p(89,"roundedSelection",!0,{description:n.N("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:M(new class extends d{constructor(){const e=[],t={type:"number",description:n.N("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:n.N("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:n.N("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if("number"==typeof i)t.push({column:f.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:f.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:M(new class extends d{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.N("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),n.N("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),n.N("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:n.N("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.N("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),n.N("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),n.N("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:n.N("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:n.N("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:n.N("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:n.N("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=f.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=f.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:f.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:k(t.vertical,this.defaultValue.vertical),horizontal:k(t.horizontal,this.defaultValue.horizontal),useShadows:g(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:g(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:g(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:g(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:g(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:f.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:f.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:g(t.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:M(new f(92,"scrollBeyondLastColumn",5,0,1073741824,{description:n.N("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:M(new p(93,"scrollBeyondLastLine",!0,{description:n.N("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:M(new p(94,"scrollPredominantAxis",!0,{description:n.N("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:M(new p(95,"selectionClipboard",!0,{description:n.N("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.IJ})),selectionHighlight:M(new p(96,"selectionHighlight",!0,{description:n.N("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:M(new p(97,"selectOnLineNumbers",!0)),showFoldingControls:M(new C(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[n.N("showFoldingControls.always","Always show the folding controls."),n.N("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:n.N("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:M(new p(99,"showUnused",!0,{description:n.N("showUnused","Controls fading out of unused code.")})),showDeprecated:M(new p(124,"showDeprecated",!0,{description:n.N("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:M(new class extends d{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:n.N("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:n.N("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:n.N("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),fontSize:f.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:v.string(t.fontFamily,this.defaultValue.fontFamily)}}}),snippetSuggestions:M(new C(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[n.N("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),n.N("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),n.N("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),n.N("snippetSuggestions.none","Do not show snippet suggestions.")],description:n.N("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:M(new class extends d{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:n.N("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:g(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:M(new p(102,"smoothScrolling",!1,{description:n.N("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:M(new f(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:M(new class extends d{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[n.N("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),n.N("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:n.N("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:n.N("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:n.N("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:n.N("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:n.N("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:n.N("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:n.N("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:n.N("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:n.N("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:n.N("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:n.N("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:b(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:g(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:g(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:g(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:g(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:g(t.showIcons,this.defaultValue.showIcons),showStatusBar:g(t.showStatusBar,this.defaultValue.showStatusBar),preview:g(t.preview,this.defaultValue.preview),previewMode:b(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:g(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:g(t.showMethods,this.defaultValue.showMethods),showFunctions:g(t.showFunctions,this.defaultValue.showFunctions),showConstructors:g(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:g(t.showDeprecated,this.defaultValue.showDeprecated),showFields:g(t.showFields,this.defaultValue.showFields),showVariables:g(t.showVariables,this.defaultValue.showVariables),showClasses:g(t.showClasses,this.defaultValue.showClasses),showStructs:g(t.showStructs,this.defaultValue.showStructs),showInterfaces:g(t.showInterfaces,this.defaultValue.showInterfaces),showModules:g(t.showModules,this.defaultValue.showModules),showProperties:g(t.showProperties,this.defaultValue.showProperties),showEvents:g(t.showEvents,this.defaultValue.showEvents),showOperators:g(t.showOperators,this.defaultValue.showOperators),showUnits:g(t.showUnits,this.defaultValue.showUnits),showValues:g(t.showValues,this.defaultValue.showValues),showConstants:g(t.showConstants,this.defaultValue.showConstants),showEnums:g(t.showEnums,this.defaultValue.showEnums),showEnumMembers:g(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:g(t.showKeywords,this.defaultValue.showKeywords),showWords:g(t.showWords,this.defaultValue.showWords),showColors:g(t.showColors,this.defaultValue.showColors),showFiles:g(t.showFiles,this.defaultValue.showFiles),showReferences:g(t.showReferences,this.defaultValue.showReferences),showFolders:g(t.showFolders,this.defaultValue.showFolders),showTypeParameters:g(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:g(t.showSnippets,this.defaultValue.showSnippets),showUsers:g(t.showUsers,this.defaultValue.showUsers),showIssues:g(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:M(new class extends d{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:n.N("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),mode:b(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}),suggestFontSize:M(new f(106,"suggestFontSize",0,0,1e3,{markdownDescription:n.N("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:M(new f(107,"suggestLineHeight",0,0,1e3,{markdownDescription:n.N("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:M(new p(108,"suggestOnTriggerCharacters",!0,{description:n.N("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:M(new C(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[n.N("suggestSelection.first","Always select the first suggestion."),n.N("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),n.N("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:n.N("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:M(new C(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[n.N("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),n.N("tabCompletion.off","Disable tab completions."),n.N("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:n.N("tabCompletion","Enables tab completions.")})),tabIndex:M(new f(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:M(new C(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[n.N("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),n.N("unusualLineTerminators.off","Unusual line terminators are ignored."),n.N("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:n.N("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:M(new p(113,"useShadowDOM",!0)),useTabStops:M(new p(114,"useTabStops",!0,{description:n.N("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:M(new v(115,"wordSeparators",s.vu,{description:n.N("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:M(new C(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[n.N("wordWrap.off","Lines will never wrap."),n.N("wordWrap.on","Lines will wrap at the viewport width."),n.N({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),n.N({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:n.N({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:M(new v(117,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:M(new v(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:M(new f(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:n.N({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:M(new C(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:M(new C(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:M(new w(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[n.N("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),n.N("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),n.N("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),n.N("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:n.N("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:M(new C(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[n.N("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),n.N("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:n.N("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:M(new class extends c{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(65)?n.push("mouse-default"):"copy"===t.get(65)&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:M(new class extends c{constructor(){super(127)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:M(new class extends c{constructor(){super(128,[80])}compute(e,t,i){return!!t.get(80)||e.tabFocusMode}}),layoutInfo:M(new N),wrappingInfo:M(new class extends c{constructor(){super(130,[129])}compute(e,t,i){const n=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}})}},4963:(e,t,i)=>{i.d(t,{C:()=>o});var n=i(6709);const o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},5921:(e,t,i)=>{i.d(t,{E4:()=>r,pR:()=>a});var n=i(1138),o=i(4963);const s=n.dz?1.5:1.35;class r{constructor(e){this._bareFontInfoBrand=void 0,this.zoomLevel=e.zoomLevel,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i,n){const o=e.get(42),s=e.get(46),a=e.get(45),l=e.get(44),h=e.get(58),d=e.get(55);return r._create(o,s,a,l,h,d,t,i,n)}static _create(e,t,i,n,a,l,h,d,c){0===a?a=s*i:a<8&&(a*=i),(a=Math.round(a))<8&&(a=8);const u=1+(c?0:.1*o.C.getZoomLevel());return new r({zoomLevel:h,pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i*=u,fontFeatureSettings:n,lineHeight:a*=u,letterSpacing:l})}getId(){return this.zoomLevel+"-"+this.pixelRatio+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(e){const t=r._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class a extends r{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},6664:(e,t,i)=>{i.d(t,{l:()=>o});var n=i(282);class o{static whitespaceVisibleColumn(e,t,i){const o=e.length;let s=0,r=-1,a=-1;for(let l=0;l{i.d(t,{i:()=>o});var n=i(7416);class o{static visibleColumnFromColumn(e,t,i){const s=e.length,r=t-1=65536?2:1,9===t)a=o.nextRenderTabStop(a,i);else{let i=n.S6(t);for(;l=65536?2:1,i=o}n.K7(t)||n.C8(t)?a+=2:a+=1}}return a}static visibleColumnsByColumns(e,t){const i=e.length;let s=new Array;s.push(-1);let r=0,a=0;for(;a=65536?2:1,s.push(r),l>=65536&&s.push(r),9===l)r=o.nextRenderTabStop(r,t);else{let t=n.S6(l);for(;a=65536?2:1,s.push(r),l>=65536&&s.push(r),t=h}n.K7(l)||n.C8(l)?r+=2:r+=1}}return s.push(r),s}static visibleColumnFromColumn2(e,t,i){return this.visibleColumnFromColumn(t.getLineContent(i.lineNumber),i.column,e.tabSize)}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const s=e.length;let r=0,a=1,l=0;for(;l=65536?2:1,9===h)d=o.nextRenderTabStop(r,i);else{let t=n.S6(h);for(;l=65536?2:1,t=o}d=n.K7(h)||n.C8(h)?r+2:r+1}const c=l+1;if(d>=t)return d-tr?r:o}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},282:(e,t,i)=>{i.d(t,{io:()=>h.i,LM:()=>g,rS:()=>p,zp:()=>m,Vi:()=>v,Tp:()=>b,LN:()=>C});var n=i(996),o=i(8964),s=i(38),r=i(7841),a=i(9831),l=i(4608),h=i(7594);const d=()=>!0,c=()=>!1,u=e=>" "===e||"\t"===e;class g{constructor(e,t,i){this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,o=n.get(129);this.readOnly=n.get(80),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(103),this.lineHeight=n.get(58),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=n.get(114),this.wordSeparators=n.get(115),this.emptySelectionClipboard=n.get(32),this.copyWithSyntaxHighlighting=n.get(21),this.multiCursorMergeOverlapping=n.get(68),this.multiCursorPaste=n.get(70),this.autoClosingBrackets=n.get(5),this.autoClosingQuotes=n.get(8),this.autoClosingDelete=n.get(6),this.autoClosingOvertype=n.get(7),this.autoSurround=n.get(11),this.autoIndent=n.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=l.zu.getAutoClosingPairs(e);let s=g._getSurroundingPairs(e);if(s)for(const e of s)this.surroundingPairs[e.open]=e.close}static shouldRecreate(e){return e.hasChanged(129)||e.hasChanged(115)||e.hasChanged(32)||e.hasChanged(68)||e.hasChanged(70)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(114)||e.hasChanged(58)||e.hasChanged(80)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=g._getElectricCharacters(this._languageId);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return a.yO.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return l.zu.getElectricCharacters(e)}catch(e){return(0,n.dL)(e),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return u;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return d;case"never":return c}}static _getLanguageDefinedShouldAutoClose(e){try{const t=l.zu.getAutoCloseBeforeSet(e);return e=>-1!==t.indexOf(e)}catch(e){return(0,n.dL)(e),c}}static _getSurroundingPairs(e){try{return l.zu.getSurroundingPairs(e)}catch(e){return(0,n.dL)(e),null}}}class p{constructor(e,t,i,n){this._singleCursorStateBrand=void 0,this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=i,this.leftoverVisibleColumns=n,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,n){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o.L(t,i),n):new p(new s.e(t,i,t,i),n,new o.L(t,i),n)}static _computeSelection(e,t){let i,n,o,s;return e.isEmpty()?(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column):t.isBeforeOrEqual(e.getStartPosition())?(i=e.endLineNumber,n=e.endColumn,o=t.lineNumber,s=t.column):(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column),new r.Y(i,n,o,s)}}class m{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class f{constructor(e){this.modelState=e,this.viewState=null}}class _{constructor(e){this.modelState=null,this.viewState=e}}class v{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new f(e)}static fromViewState(e){return new _(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,i=e.selectionStartColumn,n=e.positionLineNumber,r=e.positionColumn,a=new p(new s.e(t,i,t,i),0,new o.L(n,r),0);return v.fromModelState(a)}static fromModelSelections(e){let t=[];for(let i=0,n=e.length;i{i.d(t,{A:()=>h});var n=i(7416),o=i(8050),s=i(282),r=i(3814),a=i(38),l=i(8964);class h{static deleteRight(e,t,i,n){let s=[],l=3!==e;for(let e=0,h=n.length;e=c.length+1)return!1;const u=c.charAt(d.column-2),g=n.get(u);if(!g)return!1;if((0,s.LN)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=c.charAt(d.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t1){const e=t.getLineContent(o.lineNumber),r=n.LC(e),l=-1===r?e.length+1:r+1;if(o.column<=l){const e=s.io.visibleColumnFromColumn2(i,t,o),n=s.io.prevIndentTabStop(e,i.indentSize),r=s.io.columnFromVisibleColumn2(i,t,o.lineNumber,n);return new a.e(o.lineNumber,r,o.lineNumber,o.column)}}return a.e.fromPositions(h.getPositionAfterDeleteLeft(o,t),o)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.L(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){let n=[],r=null;i.sort(((e,t)=>l.L.compare(e.getStartPosition(),t.getEndPosition())));for(let s=0,l=i.length;s1&&(null==r?void 0:r.endLineNumber)!==c.lineNumber?(e=c.lineNumber-1,i=t.getLineMaxColumn(c.lineNumber-1),h=c.lineNumber,d=t.getLineMaxColumn(c.lineNumber)):(e=c.lineNumber,i=1,h=c.lineNumber,d=t.getLineMaxColumn(c.lineNumber));let u=new a.e(e,i,h,d);r=u,u.isEmpty()?n[s]=null:n[s]=new o.T4(u,"")}else n[s]=null;else n[s]=new o.T4(l,"")}return new s.Tp(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},4308:(e,t,i)=>{i.d(t,{P:()=>d,N:()=>n});var n,o=i(4818),s=i(282),r=i(3814),a=i(3154),l=i(8964),h=i(38);class d{static addCursorDown(e,t,i){let n=[],o=0;for(let a=0,l=t.length;at&&(i=t,n=e.model.getLineMaxColumn(i)),s.Vi.fromModelState(new s.rS(new h.e(r.lineNumber,1,i,n),0,new l.L(i,n),0))}const d=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberd){const i=e.getLineCount();let n=a.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),s.Vi.fromViewState(t.viewState.move(t.modelState.hasSelection(),n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return s.Vi.fromModelState(t.modelState.move(t.modelState.hasSelection(),e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return s.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new s.Vi(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return s.Vi.fromViewState(new s.rS(new h.e(i,n,i,n),0,new l.L(i,n),0))}static moveTo(e,t,i,n,o){const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new l.L(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return s.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===a?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===a?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{let i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:os.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){let n=[];for(let o=0,a=t.length;os.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){let n=[];for(let o=0,a=t.length;o{i.d(t,{o:()=>h});var n=i(282),o=i(8964),s=i(38),r=i(7416),a=i(6664);class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-r.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new o.L(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=a.l.atomicPosition(s,t.column-1,i,0);if(-1!==r&&r+1>=n)return new o.L(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let s,r;if(i.hasSelection()&&!n)s=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(o-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);s=l.lineNumber,r=l.column}return i.move(n,s,r,0)}static clipPositionColumn(e,t){return new o.L(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return id?(i=d,o=a?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),o)):o=n.io.columnFromVisibleColumn2(e,t,i,h),s=g?0:h-n.io.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new l(i,o,s)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r)}static moveDown(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.endLineNumber,r=i.selection.endColumn):(s=i.position.lineNumber,r=i.position.column);let a=h.down(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,i){let r=i.selection,a=h.down(e,t,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.down(e,t,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new s.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static up(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i-s,r)}static moveUp(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.startLineNumber,r=i.selection.startColumn):(s=i.position.lineNumber,r=i.position.column);let a=h.up(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){let r=i.selection,a=h.up(e,t,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.up(e,t,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new s.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s{i.d(t,{u:()=>p,g:()=>m});var n=i(996),o=i(7416),s=i(8050),r=i(8453),a=i(38),l=i(7841);class h{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let i=t.getInverseEditOperations(),n=i[0].range,o=i[1].range;return new l.Y(n.endLineNumber,n.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)}}var d=i(282),c=i(4168),u=i(6582),g=i(4608);class p{static indent(e,t,i){if(null===t||null===i)return[];let n=[];for(let t=0,o=i.length;t1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(o.ow(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=g.zu.getEnterAction(e.autoIndent,t,new a.e(n,r,n,r));l&&(s=l.indentation+l.appendText)}return n&&(n===u.wU.Indent&&(s=p.shiftIndent(e,s)),n===u.wU.Outdent&&(s=p.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s||null}static _replaceJumpToNextIndent(e,t,i,n){let o="",r=i.getStartPosition();if(e.insertSpaces){let i=d.io.visibleColumnFromColumn2(e,t,r),n=e.indentSize,s=n-i%n;for(let e=0;ethis._compositionType(i,e,o,s,r,a)));return new d.Tp(4,l,{shouldPushStackElementBefore:_(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;const l=t.getPosition(),h=Math.max(1,l.column-n),d=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+o),c=new a.e(l.lineNumber,h,l.lineNumber,d);return e.getValueInRange(c)===i&&0===r?null:new s.Uo(c,i,0,r)}static _typeCommand(e,t,i){return i?new s.Sj(e,t,!0):new s.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return p._typeCommand(n,"\n",i);if(!t.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let s=t.getLineContent(n.startLineNumber),r=o.V8(s).substring(0,n.startColumn-1);return p._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=g.zu.getEnterAction(e.autoIndent,t,n);if(r){if(r.indentAction===u.wU.None)return p._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===u.wU.Indent)return p._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===u.wU.IndentOutdent){const t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+o+"\n"+t;return i?new s.Sj(n,a,!0):new s.Uo(n,a,-1,o.length-t.length,!0)}if(r.indentAction===u.wU.Outdent){const t=p.unshiftIndent(e,r.indentation);return p._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=o.V8(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=g.zu.getIndentForEnter(e.autoIndent,t,n,{unshiftIndent:t=>p.unshiftIndent(e,t),shiftIndent:t=>p.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(r){let a=d.io.visibleColumnFromColumn2(e,t,n.getEndPosition());const l=n.endColumn,h=t.getLineContent(n.endLineNumber),c=o.LC(h);if(n=c>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,c+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=c+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return p._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;ep.shiftIndent(e,t),unshiftIndent:t=>p.unshiftIndent(e,t)});if(null===s)return null;if(s!==e.normalizeIndentation(o)){const o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?p._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):p._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;tt.startsWith(e.open))),r=o.some((e=>t.startsWith(e.close)));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(const s of i)if(t.getValueInRange(new a.e(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}o&&(s=e)}return s}static _findSubAutoClosingPairClose(e,t){if(t.open.length<=1)return"";const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o?o.close:""}static _getAutoClosingPairClose(e,t,i,o,s){const r=(0,d.LN)(o),a=r?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const l=this._findAutoClosingPairOpen(e,t,i.map((e=>e.getPosition())),o);if(!l)return null;const h=this._findSubAutoClosingPairClose(e,l);let u=!0;const m=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let r=0,d=i.length;rf.column-1){const t=_.charAt(f.column-1);if(!p._isBeforeClosingBrace(e,v)&&!m(t))return null}if(!t.isCheapToTokenize(f.lineNumber))return null;if(1===l.open.length&&("'"===o||'"'===o)&&"always"!==a){const t=(0,c.u)(e.wordSeparators);if(s&&f.column>1&&0===t.get(_.charCodeAt(f.column-2)))return null;if(!s&&f.column>2&&0===t.get(_.charCodeAt(f.column-3)))return null}t.forceTokenization(f.lineNumber);const b=t.getLineTokens(f.lineNumber);let C=!1;try{C=g.zu.shouldAutoClosePair(l,b,s?f.column:f.column-1)}catch(e){(0,n.dL)(e)}if(!C)return null}return u?l.close.substring(0,l.close.length-h.length):l.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){let a=[];for(let e=0,t=n.length;enew s.T4(new a.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new d.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const c=this._getAutoClosingPairClose(t,i,o,h,!1);return null!==c?this._runAutoClosingOpenCharType(e,t,i,o,h,!1,c):null}static typeWithInterceptors(e,t,i,n,o,r,a){if(!e&&"\n"===a){let e=[];for(let t=0,s=o.length;t{i.d(t,{w:()=>h,L:()=>d});var n=i(7416),o=i(282),s=i(7665),r=i(4168),a=i(8964),l=i(38);class h{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){let n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;for(let o=i.column-2;o>=0;o--){let i=e.charCodeAt(o),s=t.get(i);if(0===s){if(2===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){let o=e.length;for(let s=n;s=0;o--){let n=e.charCodeAt(o),s=t.get(n);if(1===s)return o+1;if(1===i&&2===s)return o+1;if(2===i&&0===s)return o+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,s=i.column;1===s&&o>1&&(o-=1,s=t.getLineMaxColumn(o));let r=h._findPreviousWordOnLine(e,t,new a.L(o,s));if(0===n)return new a.L(o,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1));return new a.L(o,r?r.start+1:1)}return r&&s<=r.end+1&&(r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.L(i-1,e.getLineMaxColumn(i-1)):t;const s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){const t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r)return new a.L(i,e);if(n.mK(t)&&n.df(r))return new a.L(i,e);if(n.df(t)&&n.df(r)&&e+1=l.start+1&&(l=h._findNextWordOnLine(e,t,new a.L(o,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(o);return new a.L(o,s)}static _moveWordPartRight(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(t.column===o)return i1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=h._findPreviousWordOnLine(i,n,new a.L(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.e(c,u,d.lineNumber,d.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.L(i.positionLineNumber,i.positionColumn);return this._deleteInsideWordWhitespace(t,n)||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new l.e(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumbere.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.e(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,s=!1;for(;i-11&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},d=h._findPreviousWordOnLine(e,t,i);if(d&&s(d))return a(d);const c=h._findNextWordOnLine(e,t,i);return c&&s(c)?a(c):d&&c?r(d.end+1,c.start+1):d?r(d.start+1,d.end+1):c?r(c.start+1,c.end+1):r(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=h._moveWordPartLeft(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let n=t;n=p.start+1&&(p=h._findNextWordOnLine(i,n,new a.L(d,p.end+1))),p?c=p.start+1:cBoolean(e)))}},4168:(e,t,i)=>{i.d(t,{u:()=>s});var n=i(5224);class o extends n.N{constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(e)||(t[e]=(e=>new o(e))(e)),t[e])}()},5224:(e,t,i)=>{i.d(t,{N:()=>o,q:()=>s});var n=i(9886);class o{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},9083:(e,t,i)=>{i.d(t,{h:()=>o});var n=i(38);class o{static insert(e,t){return{range:new n.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},1996:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(8490);class o{constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}static createEmpty(e,t){const i=o.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new o(n,e,t)}equals(e){return e instanceof o&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.NX.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.NX.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.NX.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.NX.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.NX.getInlineStyleFromMetadata(i,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return o.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new s(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const s=new Array;let r=0;for(;;){let o=tr){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];s.push(n.length,e),r=a.offset}n+=a.text,s.push(n.length,a.tokenMetadata),i++}}return new o(new Uint32Array(s),n,this._languageIdCodec)}}o.defaultTokenMetadata=16793600;class s{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i);t++)this._tokensCount++}equals(e){return e instanceof s&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},8964:(e,t,i)=>{i.d(t,{L:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{i.d(t,{e:()=>o});var n=i(8964);class o{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let i,n,s,r;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,r=e.endColumn),new o(i,n,s,r)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,d=t.endColumn;return ih?(s=h,r=d):s===h&&(r=Math.min(r,d)),i>s||i===s&&n>r?null:new o(i,n,s,r)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new n.L(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new n.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}},7841:(e,t,i)=>{i.d(t,{Y:()=>s});var n=i(8964),o=i(38);class s extends o.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{i.d(t,{oe:()=>d,lZ:()=>c,l$:()=>u,kH:()=>g});var n=i(7416),o=i(1138),s=i(7511);let r,a,l;function h(){return r||(r=new TextDecoder("UTF-16LE")),r}function d(){return l||(l=o.r()?h():(a||(a=new TextDecoder("UTF-16BE")),a)),l}const c="undefined"!=typeof TextDecoder;let u,g;function p(e,t,i){let n=[],o=0;for(let r=0;rnew m(e),g=function(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?p(e,t,i):h().decode(n)}):(u=e=>new f,g=p);class m{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return d().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.ZG(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i{i.d(t,{WU:()=>n,hG:()=>o,Hi:()=>s});class n{constructor(e,t,i){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=i}toString(){return"("+this.offset+", "+this.type+")"}}class o{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class s{constructor(e,t){this._tokenizationResult2Brand=void 0,this.tokens=e,this.endState=t}}},6031:(e,t,i)=>{i.d(t,{p:()=>n});class n{constructor(e,t,i,n,o,s){this.id=e,this.label=t,this.alias=i,this._precondition=n,this._run=o,this._contextKeyService=s}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},6390:(e,t,i)=>{function n(e){return e&&"string"==typeof e.id}i.d(t,{I:()=>n,g:()=>o});const o={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},1081:(e,t,i)=>{i.d(t,{u:()=>n});var n,o=i(6386),s=i(499);!function(e){e.editorSimpleInput=new s.uy("editorSimpleInput",!1,!0),e.editorTextFocus=new s.uy("editorTextFocus",!1,o.N("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new s.uy("editorFocus",!1,o.N("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new s.uy("textInputFocus",!1,o.N("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new s.uy("editorReadonly",!1,o.N("editorReadonly","Whether the editor is read only")),e.inDiffEditor=new s.uy("inDiffEditor",!1,o.N("inDiffEditor","Whether the context is a diff editor")),e.columnSelection=new s.uy("editorColumnSelection",!1,o.N("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new s.uy("editorHasSelection",!1,o.N("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new s.uy("editorHasMultipleSelections",!1,o.N("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new s.uy("editorTabMovesFocus",!1,o.N("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new s.uy("isInEmbeddedEditor",!1,!0),e.canUndo=new s.uy("canUndo",!1,!0),e.canRedo=new s.uy("canRedo",!1,!0),e.hoverVisible=new s.uy("editorHoverVisible",!1,o.N("editorHoverVisible","Whether the editor hover is visible")),e.inCompositeEditor=new s.uy("inCompositeEditor",void 0,o.N("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new s.uy("editorLangId","",o.N("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new s.uy("editorHasCompletionItemProvider",!1,o.N("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new s.uy("editorHasCodeActionsProvider",!1,o.N("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new s.uy("editorHasCodeLensProvider",!1,o.N("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new s.uy("editorHasDefinitionProvider",!1,o.N("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new s.uy("editorHasDeclarationProvider",!1,o.N("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new s.uy("editorHasImplementationProvider",!1,o.N("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new s.uy("editorHasTypeDefinitionProvider",!1,o.N("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new s.uy("editorHasHoverProvider",!1,o.N("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new s.uy("editorHasDocumentHighlightProvider",!1,o.N("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new s.uy("editorHasDocumentSymbolProvider",!1,o.N("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new s.uy("editorHasReferenceProvider",!1,o.N("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new s.uy("editorHasRenameProvider",!1,o.N("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new s.uy("editorHasSignatureHelpProvider",!1,o.N("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new s.uy("editorHasInlayHintsProvider",!1,o.N("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new s.uy("editorHasDocumentFormattingProvider",!1,o.N("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new s.uy("editorHasDocumentSelectionFormattingProvider",!1,o.N("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new s.uy("editorHasMultipleDocumentFormattingProvider",!1,o.N("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new s.uy("editorHasMultipleDocumentSelectionFormattingProvider",!1,o.N("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},1913:(e,t,i)=>{i.d(t,{sh:()=>n,F5:()=>o,dJ:()=>a,tk:()=>l,s6:()=>s,UO:()=>h,vW:()=>d,Qi:()=>c,je:()=>u});var n,o,s,r=i(3127);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(o||(o={}));class a{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,r.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class h{constructor(e,t,i){this.visibleColumn=e,this.className=t,this.horizontalLine=i}}class d{constructor(e,t){this.top=e,this.endColumn=t}}class c{constructor(e,t,i,n,o,s){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=s}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}},5565:(e,t,i)=>{i.d(t,{e9:()=>p,NL:()=>m});var n=i(6386),o=i(996),s=i(7841),r=i(8919),a=i(71),l=i(7511),h=i(6227);function d(e){return e.toString()}class c{constructor(e,t,i,n,o,s,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=s,this.changes=r}static create(e,t){const i=e.getAlternativeVersionId(),n=g(e);return new c(i,i,n,n,t,t,[])}append(e,t,i,n,o){t.length>0&&(this.changes=(0,a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.T4(e,t?t.length:0,i),i+=4,t)for(const n of t)l.T4(e,n.selectionStartLineNumber,i),i+=4,l.T4(e,n.selectionStartColumn,i),i+=4,l.T4(e,n.positionLineNumber,i),i+=4,l.T4(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.Ag(e,t);t+=4;for(let o=0;oe.toString())).join(", ")}matchesResource(e){return(r.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof c}append(e,t,i,n,o){this._data instanceof c&&this._data.append(e,t,i,n,o)}close(){this._data instanceof c&&(this._data=this._data.serialize())}open(){this._data instanceof c||(this._data=c.deserialize(this._data))}undo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof c&&(this._data=this._data.serialize()),this._data.byteLength+168}}function g(e){return"\n"===e.getEOL()?0:1}function p(e){return!!e&&(e instanceof u||e instanceof class{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=d(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}get resources(){return this._editStackElementsArr.map((e=>e.resource))}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=d(e);return this._editStackElementsMap.has(t)}setModel(e){const t=d(r.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=d(e.uri);return!!this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).canAppend(e)}append(e,t,i,n,o){const s=d(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=d(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${(0,h.EZ)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}})}class m{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);p(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);p(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(p(t)&&t.canAppend(this._model))return t;const i=new u(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],g(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),s=m._computeCursorState(i,o),r=o.map(((e,t)=>({index:t,textChange:e.textChange})));return r.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,r.map((e=>e.textChange)),g(this._model),this._model.getAlternativeVersionId(),s),s}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return(0,o.dL)(e),null}}}},71:(e,t,i)=>{i.d(t,{q:()=>r,b:()=>a});var n=i(7511),o=i(2342);function s(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${s(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${s(this.oldText)}")`:`(replace@${this.oldPosition} "${s(this.oldText)}" with "${s(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const o=t.length;n.T4(e,o,i),i+=4;for(let s=0;s{i.d(t,{WE:()=>Bt,qx:()=>qt,yO:()=>Ft});var n=i(996),o=i(6709),s=i(8431),r=i(7416),a=i(8919),l=i(54),h=i(8964),d=i(38),c=i(7841),u=i(1913),g=i(5565);class p{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function m(e,t,i,n,o){let s;for(o.spacesDiff=0,o.looksLikeAlignment=!1,s=0;s0&&a>0)return;if(l>0&&h>0)return;let d=Math.abs(a-h),c=Math.abs(r-l);if(0===d)return o.spacesDiff=c,void(c>0&&0<=l-1&&l-10?o++:f>1&&s++,m(r,a,c,p,d),d.looksLikeAlignment&&(!i||t!==d.spacesDiff))continue;let v=d.spacesDiff;v<=8&&h[v]++,r=c,a=p}let c=i;o!==s&&(c=o{let i=h[t];i>e&&(e=i,u=t)})),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}function _(e){return(1&e.metadata)>>>0}function v(e,t){e.metadata=254&e.metadata|t<<0}function b(e){return(2&e.metadata)>>>1==1}function C(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function w(e){return(4&e.metadata)>>>2==1}function y(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function S(e,t){e.metadata=231&e.metadata|t<<3}function L(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class N{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,v(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,y(this,!1),S(this,1),L(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,C(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;let t=this.options.className;y(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),S(this,this.options.stickiness),L(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const x=new N(null,0,0);x.parent=x,x.left=x,x.right=x,v(x,0);class k{constructor(){this.root=x,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o){return this.root===x?[]:function(e,t,i,n,o,s){let r=e.root,a=0,l=0,h=0,d=0,c=[],u=0;for(;r!==x;)if(b(r))C(r.left,!1),C(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;else{if(!b(r.left)){if(l=a+r.maxEnd,li)C(r,!0);else{if(d=a+r.end,d>=t){r.setCachedOffsets(h,d,s);let e=!0;n&&r.ownerId&&r.ownerId!==n&&(e=!1),o&&w(r)&&(e=!1),e&&(c[u++]=r)}C(r,!0),r.right===x||b(r.right)||(a+=r.delta,r=r.right)}}return C(e.root,!1),c}(this,e,t,i,n,o)}search(e,t,i){return this.root===x?[]:function(e,t,i,n){let o=e.root,s=0,r=0,a=0,l=[],h=0;for(;o!==x;){if(b(o)){C(o.left,!1),C(o.right,!1),o===o.parent.right&&(s-=o.parent.delta),o=o.parent;continue}if(o.left!==x&&!b(o.left)){o=o.left;continue}r=s+o.start,a=s+o.end,o.setCachedOffsets(r,a,n);let e=!0;t&&o.ownerId&&o.ownerId!==t&&(e=!1),i&&w(o)&&(e=!1),e&&(l[h++]=o),C(o,!0),o.right===x||b(o.right)||(s+=o.delta,o=o.right)}return C(e.root,!1),l}(this,e,t,i)}collectNodesFromOwner(e){return function(e,t){let i=e.root,n=[],o=0;for(;i!==x;)b(i)?(C(i.left,!1),C(i.right,!1),i=i.parent):i.left===x||b(i.left)?(i.ownerId===t&&(n[o++]=i),C(i,!0),i.right===x||b(i.right)||(i=i.right)):i=i.left;return C(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root,i=[],n=0;for(;t!==x;)b(t)?(C(t.left,!1),C(t.right,!1),t=t.parent):t.left===x||b(t.left)?t.right===x||b(t.right)?(i[n++]=t,C(t,!0)):t=t.right:t=t.left;return C(e.root,!1),i}(this)}insert(e){I(this,e),this._normalizeDeltaIfNecessary()}delete(e){T(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,s=i.end+n;i.setCachedOffsets(o,s,t)}acceptReplace(e,t,i,n){const o=function(e,t,i){let n=e.root,o=0,s=0,r=0,a=0,l=[],h=0;for(;n!==x;)if(b(n))C(n.left,!1),C(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!b(n.left)){if(s=o+n.maxEnd,si?C(n,!0):(a=o+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[h++]=n),C(n,!0),n.right===x||b(n.right)||(o+=n.delta,n=n.right))}return C(e.root,!1),l}(this,e,e+t);for(let e=0,t=o.length;ei?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),C(o,!0)):(C(o,!0),o.right===x||b(o.right)||(s+=o.delta,o=o.right))}C(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let s=0,r=o.length;si)&&1!==n&&(2===n||t)}function E(e,t,i,n,o){const s=function(e){return(24&e.metadata)>>>3}(e),r=0===s||2===s,a=1===s||2===s,l=i-t,h=n,d=Math.min(l,h),c=e.start;let u=!1;const g=e.end;let p=!1;t<=c&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=o?1:l>0?2:0;!u&&D(c,r,t,e)&&(u=!0),!p&&D(g,a,t,e)&&(p=!0)}if(d>0&&!o){const e=l>h?2:0;!u&&D(c,r,t+d,e)&&(u=!0),!p&&D(g,a,t+d,e)&&(p=!0)}{const n=o?1:0;!u&&D(c,r,i,n)&&(e.start=t+h,u=!0),!p&&D(g,a,i,n)&&(e.end=t+h,p=!0)}const m=h-l;u||(e.start=Math.max(0,c+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function I(e,t){if(e.root===x)return t.parent=x,t.left=x,t.right=x,v(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;)if(r=o,a=s,l=n.start+i,h=n.end+i,(r===l?a-h:r-l)<0){if(n.left===x){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===x){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}var r,a,l,h;t.parent=n,t.left=x,t.right=x,v(t,1)}(e,t),F(t.parent);let i=t;for(;i!==e.root&&1===_(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===_(t)?(v(i.parent,0),v(t,0),v(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,A(e,i)),v(i.parent,0),v(i.parent.parent,1),R(e,i.parent.parent))}else{const t=i.parent.parent.left;1===_(t)?(v(i.parent,0),v(t,0),v(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,R(e,i)),v(i.parent,0),v(i.parent.parent,1),A(e,i.parent.parent))}return v(e.root,0),t}function T(e,t){let i,n;if(t.left===x?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===x?(i=t.left,n=t):(n=function(e){for(;e.left!==x;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,v(i,0),t.detach(),M(),P(i),void(e.root.parent=x);let o,s=1===_(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,v(n,_(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==x&&(n.left.parent=n),n.right!==x&&(n.right.parent=n)),t.detach(),s)return F(i.parent),n!==t&&(F(n),F(n.parent)),void M();for(F(i),F(i.parent),n!==t&&(F(n),F(n.parent));i!==e.root&&0===_(i);)i===i.parent.left?(o=i.parent.right,1===_(o)&&(v(o,0),v(i.parent,1),A(e,i.parent),o=i.parent.right),0===_(o.left)&&0===_(o.right)?(v(o,1),i=i.parent):(0===_(o.right)&&(v(o.left,0),v(o,1),R(e,o),o=i.parent.right),v(o,_(i.parent)),v(i.parent,0),v(o.right,0),A(e,i.parent),i=e.root)):(o=i.parent.left,1===_(o)&&(v(o,0),v(i.parent,1),R(e,i.parent),o=i.parent.left),0===_(o.left)&&0===_(o.right)?(v(o,1),i=i.parent):(0===_(o.left)&&(v(o.right,0),v(o,1),A(e,o),o=i.parent.left),v(o,_(i.parent)),v(i.parent,0),v(o.left,0),R(e,i.parent),i=e.root));v(i,0),M()}function M(){x.parent=x,x.delta=0,x.start=0,x.end=0}function A(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==x&&(i.left.parent=t),i.parent=t.parent,t.parent===x?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,P(t),P(i)}function R(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==x&&(i.right.parent=t),i.parent=t.parent,t.parent===x?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,P(t),P(i)}function O(e){let t=e.end;if(e.left!==x){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==x){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function P(e){e.maxEnd=O(e)}function F(e){for(;e!==x;){const t=O(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}class B{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==V)return W(this.right);let e=this;for(;e.parent!==V&&e.parent.left!==e;)e=e.parent;return e.parent===V?V:e.parent}prev(){if(this.left!==V)return H(this.left);let e=this;for(;e.parent!==V&&e.parent.right!==e;)e=e.parent;return e.parent===V?V:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const V=new B(null,0);function W(e){for(;e.left!==V;)e=e.left;return e}function H(e){for(;e.right!==V;)e=e.right;return e}function z(e){return e===V?0:e.size_left+e.piece.length+z(e.right)}function K(e){return e===V?0:e.lf_left+e.piece.lineFeedCnt+K(e.right)}function U(){V.parent=V}function $(e,t){let i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==V&&(i.left.parent=t),i.parent=t.parent,t.parent===V?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function j(e,t){let i=t.left;t.left=i.right,i.right!==V&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===V?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function q(e,t){let i,n;if(t.left===V?(n=t,i=n.right):t.right===V?(n=t,i=n.left):(n=W(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),U(),void(e.root.parent=V);let o,s=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Q(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Q(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==V&&(n.left.parent=n),n.right!==V&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Q(e,n)),t.detach(),i.parent.left===i){let t=z(i),n=K(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){let o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Z(e,i.parent,o,s)}}if(Q(e,i.parent),s)U();else{for(;i!==e.root&&0===i.color;)i===i.parent.left?(o=i.parent.right,1===o.color&&(o.color=0,i.parent.color=1,$(e,i.parent),o=i.parent.right),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.right.color&&(o.left.color=0,o.color=1,j(e,o),o=i.parent.right),o.color=i.parent.color,i.parent.color=0,o.right.color=0,$(e,i.parent),i=e.root)):(o=i.parent.left,1===o.color&&(o.color=0,i.parent.color=1,j(e,i.parent),o=i.parent.left),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.left.color&&(o.right.color=0,o.color=1,$(e,o),o=i.parent.left),o.color=i.parent.color,i.parent.color=0,o.left.color=0,j(e,i.parent),i=e.root));i.color=0,U()}}function G(e,t){for(Q(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&$(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,j(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&j(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,$(e,t.parent.parent))}e.root.color=0}function Z(e,t,i,n){for(;t!==e.root&&t!==V;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Q(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=z((t=t.parent).left)-t.size_left,n=K(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}V.parent=V,V.left=V,V.right=V,V.color=0;var Y=i(8461);const X=65535;function J(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class ee{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function te(e,t=!0){let i=[0],n=1;for(let t=0,o=e.length;t(e!==V&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class se{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let n=0;n=e)&&(i[n]=null,t=!0)}if(t){let e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class re{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new ne("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=V,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t0){e[t].lineStarts||(e[t].lineStarts=te(e[t].buffer));let i=new ie(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new se(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,n="",o=0,s=[];if(this.iterate(this.root,(r=>{let a=this.getNodeContent(r),l=a.length;if(o<=t||o+l0){let t=n.replace(/\r\n|\r|\n/g,e);s.push(new ne(t,te(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new oe(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==V;)if(n.left!==V&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0,n=e;for(;t!==V;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){let o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){let e=n-this.getOffsetAt(i+1,1);return new h.L(i+1,e+1)}return new h.L(i+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===V){let t=n-e-this.getOffsetAt(i+1,1);return new h.L(i+1,t+1)}t=t.right}return new h.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==V;){let e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length),i=i.next()}return s}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,(o=>{if(o===V)return!0;const s=o.piece;let r=s.length;if(0===r)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,d=s.end.line;let c=l[h]+s.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(h===d)return this._EOLNormalized||13!==a.charCodeAt(c+r-1)?i+=a.substr(c,r):(n=!0,i+=a.substr(c,r-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,l[h+1]-this._EOLLength)):a.substring(c,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=h+1;ne+_,t.reset(0)):(g=m.buffer,p=e=>e,t.reset(_));do{if(u=t.next(g),u){if(p(u.index)>=v)return h;this.positionInBuffer(e,p(u.index)-f,b);let t=this.getLineFeedCnt(e.piece.bufferIndex,o,b),s=b.line===o.line?b.column-o.column+n:b.column+1,r=s+u[0].length;if(c[h++]=(0,Y.iE)(new d.e(i+t,s,i+t,r),u,a),p(u.index)+u[0].length>=v)return h;if(h>=l)return h}}while(u);return h}findMatchesLineByLine(e,t,i,n){const o=[];let s=0;const r=new Y.sz(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder),d=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,h,d,t,i,n,s,o),o;let c=e.startLineNumber,u=a.node;for(;u!==l.node;){let l=this.getLineFeedCnt(u.piece.bufferIndex,h,u.piece.end);if(l>=1){let a=this._buffers[u.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[h.line+l],p=c===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,r,c,p,h,this.positionInBuffer(u,g-d),t,i,n,s,o),s>=n)return o;c+=l}let d=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){const a=this.getLineContent(c).substring(d,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,d,s,o,i,n),o}if(s=this._findMatchesInLine(t,r,this.getLineContent(c).substr(d),c,d,s,o,i,n),s>=n)return o;c++,a=this.nodeAt2(c,1),u=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){let a=c===e.startLineNumber?e.startColumn-1:0;const l=this.getLineContent(c).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,a,s,o,i,n),o}let g=c===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,r,c,g,h,d,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,o,s,r,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=i.length;let g=-a;for(;-1!==(g=i.indexOf(t,g+a));)if((!h||(0,Y.cM)(h,i,c,g,a))&&(r[s++]=new u.tk(new d.e(n,g+1+o,n,g+1+a+o),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(i),c&&(r[s++]=(0,Y.iE)(new d.e(n,c.index+1+o,n,c.index+1+c[0].length+o),c,a),s>=l))return s}while(c);return s}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==V){let{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.lengthe){let e=[],o=new ie(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){let e={line:o.start.line+1,column:0};o=new ie(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,n-1)){let o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a);else this.deleteNodeTail(i,a);let l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let h=i;for(let e=0;e=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),o=n;for(let e=1;e=d))break;a=h+1}return i?(i.line=h,i.column=r-c,null):{line:h,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;let o=n[i.line+1],s=n[i.line]+i.column;if(o>s+1)return i.line-t.line;let r=s-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tX){let t=[];for(;e.length>X;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,X),e=e.substring(X));let o=te(n);t.push(new ie(this._buffers.length,{line:0,column:0},{line:o.length-1,column:n.length-o[o.length-1]},o.length-1,n.length)),this._buffers.push(new ne(n,o))}let i=te(e);return t.push(new ie(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new ne(e,i)),t}let t=this._buffers[0].buffer.length;const i=te(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==V;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(s,s+o-t),n}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==V;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=t,r=this.offsetInBuffer(i.bufferIndex,s),a=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=a-n,h=r-o,d=i.length+h;e.piece=new ie(i.bufferIndex,i.start,s,a,d),Z(this,e,h,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=t,r=this.getLineFeedCnt(i.bufferIndex,s,i.end),a=r-n,l=o-this.offsetInBuffer(i.bufferIndex,s),h=i.length+l;e.piece=new ie(i.bufferIndex,s,i.end,r,h),Z(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,o=n.start,s=n.end,r=n.length,a=n.lineFeedCnt,l=t,h=this.getLineFeedCnt(n.bufferIndex,n.start,l),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new ie(n.bufferIndex,n.start,l,h,d),Z(this,e,d-r,h-a);let c=new ie(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=te(t,!1);for(let e=0;ee)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==V;)if(i.left!==V&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==V;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;let i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===V||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==V&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i,n=[],o=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new ie(e.piece.bufferIndex,e.piece.start,i,r,s),Z(this,e,-1,-1),0===e.piece.length&&n.push(e);let a={line:t.piece.start.line+1,column:0};const l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new ie(t.piece.bufferIndex,a,t.piece.end,h,l),Z(this,t,-1,-1),0===t.piece.length&&n.push(t);let d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let e=0;ee.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=s;const p=this._doApplyEdits(l);let m=null;if(t&&c.length>0){c.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=c.length;e0&&c[e-1].lineNumber===t)continue;let i=c[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===r.LC(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new u.je(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new d.e(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let s=i.startLineNumber,r=i.startColumn;const a=[];for(let i=0,n=e.length;i0&&a.push(n.text),s=o.endLineNumber,r=o.endColumn}const l=a.join(""),[h,c,u]=(0,ae.QZ)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(he._sortOpsDescending);let t=[];for(let i=0;i0){const e=h.eolCount+1;l=1===e?new d.e(r,a,r,a+h.firstLineLength):new d.e(r,a,r+e-1,h.lastLineLength+1)}else l=new d.e(r,a,r,a);i=l.endLineNumber,n=l.endColumn,t.push(l),o=h}return t}static _sortOpsAscending(e,t){let i=d.e.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){let i=d.e.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class de{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=i.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let a=0,l=t.length;a126)&&(r=!1)}const a=new ee(J(e),n,o,s,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new ne(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=r.Ut(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=r.ab(e))}finish(e=!0){return this._finish(),new de(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=te(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var ue=i(557),ge=i(6308),pe=i(1996),me=i(8490),fe=i(4386),_e=i(9344),ve=i(1138);class be{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[],n=[];for(let e=0;e=0;t--)this._invalidateLine(e.startLineNumber+t-1);this._acceptDeleteRange(e),this._acceptInsertText(new h.L(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}class Ce extends s.JT{constructor(e,t){super(),this._textModel=e,this._languageIdCodec=t,this._isDisposed=!1,this._tokenizationStateStore=new be,this._tokenizationSupport=null,this._register(me.RW.onDidChange((e=>{const t=this._textModel.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&(this._resetTokenizationState(),this._textModel.clearTokens())}))),this._register(this._textModel.onDidChangeContentFast((e=>{if(e.isFlush)this._resetTokenizationState();else{for(let t=0,i=e.changes.length;t{this._beginBackgroundTokenization()}))),this._register(this._textModel.onDidChangeLanguage((()=>{this._resetTokenizationState(),this._textModel.clearTokens()}))),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=function(e){const t=e.getLanguageId();let i=e.isTooLargeForTokenization()?null:me.RW.get(t),o=null;if(i)try{o=i.getInitialState()}catch(e){(0,n.dL)(e),i=null}return[i,o]}(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&ve.xS((()=>{this._isDisposed||this._revalidateTokensNow()}))}_revalidateTokensNow(){const e=this._textModel.getLineCount(),t=new ae.DA,i=_e.G.create(!1);let n=-1;for(;this._hasLinesToTokenize()&&!(i.elapsed()>1)&&(n=this._tokenizeOneInvalidLine(t),!(n>=e)););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}tokenizeViewport(e,t){const i=new ae.DA;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.tokens,!this._hasLinesToTokenize())}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new ae.DA;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e1&&e>=1;e--){const t=this._textModel.getLineFirstNonWhitespaceColumn(e);if(0!==t&&t=0;e--)a=we(this._languageIdCodec,r,this._tokenizationSupport,o[e],!1,a).endState;for(let n=t;n<=i;n++){const t=this._textModel.getLineContent(n),i=we(this._languageIdCodec,r,this._tokenizationSupport,t,!0,a);e.add(n,i.tokens),this._tokenizationStateStore.setFakeTokens(n-1),a=i.endState}}}function we(e,t,i,o,s,r){let a=null;if(i)try{a=i.tokenize2(o,s,r.clone(),0)}catch(e){(0,n.dL)(e)}return a||(a=(0,fe.mh)(e.encodeLanguageId(t),o,r,0)),pe.A.convertToEndOffset(a.tokens,o.length),a}var ye=i(1050),Se=i(4608),Le=i(242),Ne=i(516),xe=i(6741),ke=i(8900);class De{constructor(e,t,i){this.range=e,this.nestingLevel=t,this.isInvalid=i}}class Ee extends class{constructor(e,t,i,n){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n}}{constructor(e,t,i,n,o){super(e,t,i,n),this.minVisibleColumnIndentation=o}}class Ie{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}const Te=Math.pow(2,26);function Me(e,t){return e*Te+t}function Ae(e){const t=e,i=Math.floor(t/Te);return new Ie(i,t-i*Te)}function Re(e,t){return t=t}function Be(e){return Me(e.lineNumber-1,e.column-1)}function Ve(e,t){const i=e,n=Math.floor(i/Te),o=i-n*Te,s=t,r=Math.floor(s/Te),a=s-r*Te;return new d.e(n+1,o+1,r+1,a+1)}class We{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class He{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>ze.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx];return function(e,t){const i=e,n=t;if(n-i<=0)return 0;const o=Math.floor(i/Te),s=Math.floor(n/Te),r=n-s*Te;return o===s?Me(0,r-(i-o*Te)):Me(s-o,r)}(e,t?this.translateOldToCur(t.offsetObj):this.documentLength)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Me(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Me(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Ae(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Me(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Me(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(0===n){const e=1<e};class qe{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Ge{constructor(e){this._length=e}get length(){return this._length}}class Ze extends Ge{constructor(e,t,i,n,o){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=o}static create(e,t,i){let n=e.length;return t&&(n=Re(n,t.length)),i&&(n=Re(n,i.length)),new Ze(n,e,t,i,t?t.missingOpeningBracketIds:$e.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=new Array;return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ze(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Re(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Qe extends Ge{constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}static create23(e,t,i,n=!1){let o=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=Re(o,t.length),s=s.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");o=Re(o,i.length),s=s.merge(i.missingOpeningBracketIds)}return n?new Xe(o,e.listHeight+1,e,t,i,s):new Ye(o,e.listHeight+1,e,t,i,s)}static getEmpty(){return new et(0,0,[],$e.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){if(this.throwIfImmutable(),0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;let t,i=this;for(;4===i.kind&&(t=i.childrenLength)>0;)i=i.getChild(t-1);return i.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,o=n.getCount();let s=null;if(this.lineTokenOffset1e3)break}if(i>1500)break}const n=(o=e,s=t,r=this.lineIdx,a=this.lineCharOffset,o!==r?Me(r-o,a):Me(0,a-s));var o,s,r,a;return new rt(n,0,-1,$e.getEmpty(),new nt(n))}}class ht{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const i=t.getRegExpStr()?new RegExp(t.getRegExpStr()+"|\n","g"):null,n=[];let o,s=0,r=0,a=0,l=0;const h=new Array;for(let e=0;e<60;e++)h.push(new rt(Me(0,e),0,-1,$e.getEmpty(),new nt(Me(0,e))));const d=new Array;for(let e=0;e<60;e++)d.push(new rt(Me(1,e),0,-1,$e.getEmpty(),new nt(Me(1,e))));if(i)for(i.lastIndex=0;null!==(o=i.exec(e));){const e=o.index,i=o[0];if("\n"===i)s++,r=e+1;else{if(a!==e){let t;if(l===s){const i=e-a;if(ifunction(e){const t=(0,r.ec)(e);return/^[\w ]+$/.test(e)?`\\b${t}\\b`:t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"g"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e)}get isEmpty(){return 0===this.map.size}}class ct{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){const t=this.languageIdToBracketTokens.get(e);if(!t)return!1;const i=dt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider).getRegExpStr();return t.getRegExpStr()!==i}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=dt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function ut(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let o=0;o=3?e[2]:null,t)}function gt(e,t){return Math.abs(e.listHeight-t.listHeight)}function pt(e,t){return e.listHeight===t.listHeight?Qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=new Array;let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let e=n.length-1;e>=0;e--){const t=n[e];o?t.childrenLength>=3?o=Qe.create23(t.unappendChild(),o,null,!1):(t.appendChildOfSameHeight(o),o=void 0):t.handleChildrenChanged()}return o?Qe.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=new Array;for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let o=t;for(let e=n.length-1;e>=0;e--){const t=n[e];o?t.childrenLength>=3?o=Qe.create23(o,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(o),o=void 0):t.handleChildrenChanged()}return o?Qe.create23(o,e,null,!1):e}(t,e)}class mt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Oe(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=_t(this.nextNodes);if(!i)return;const n=_t(this.offsets);if(Oe(e,n))return;if(Oe(n,e))if(Re(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=ft(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=ft(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=_t(this.offsets),t=_t(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=_t(this.nextNodes),n=ft(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push(Re(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function ft(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function _t(e){return e.length>0?e[e.length-1]:void 0}function vt(e,t,i,n){return new bt(e,t,i,n).parseDocument()}class bt{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new mt(i):void 0,this.positionMapper=new He(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList($e.getEmpty());return e||(e=Qe.getEmpty()),e}parseList(e){const t=new Array;for(;;){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;const n=this.parseChild(e);4===n.kind&&0===n.childrenLength||t.push(n)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t=2?ut(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),o=i();if(!o)return n;for(let e=i();e;e=i())gt(n,o)<=gt(o,e)?(n=pt(n,o),o=e):o=pt(o,e);return pt(n,o)}(t):ut(t,this.createImmutableLists);return i}parseChild(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(0!==t){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>!!Oe(i.length,t)&&i.canBeReused(e)));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new st(t.bracketIds,t.length);case 0:return t.astNode;case 1:const i=e.merge(t.bracketIds),n=this.parseList(i),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===t.bracketId||o.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),Ze.create(t.astNode,n,o.astNode)):Ze.create(t.astNode,n,null);default:throw new Error("unexpected")}}}class Ct extends s.JT{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.cache=this._register(new s.XK),this.onDidChangeEmitter=new o.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(e.onDidChangeOptions((e=>{this.cache.clear(),this.updateCache()}))),this._register(e.onDidChangeLanguage((e=>{this.cache.clear(),this.updateCache()}))),this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.cache.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.cache.clear(),this.updateCache())})))}get isDocumentSupported(){return this.textModel.getValueLength()<=5e6}updateCache(){if(this.bracketsRequested&&this.isDocumentSupported){if(!this.cache.value){const i=new s.SL;this.cache.value=(e=i.add(new wt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null==t?void 0:t.dispose()}),i.add(this.cache.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.cache.clear(),this.onDidChangeEmitter.fire();var e,t}handleContentChanged(e){var t;null===(t=this.cache.value)||void 0===t||t.object.handleContentChanged(e)}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateCache(),(null===(t=this.cache.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateCache(),(null===(t=this.cache.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateCache(),(null===(t=this.cache.value)||void 0===t?void 0:t.object.getBracketsInRange(e))||[]}}class wt extends s.JT{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.Q5,this.denseKeyProvider=new qe,this.brackets=new ct(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this._register(e.onBackgroundTokenizationStateChanged((()=>{if(2===e.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}))),this._register(e.onDidChangeTokens((({ranges:e})=>{const t=e.map((e=>new We(Me(e.fromLineNumber-1,0),Me(e.toLineNumber,0),Me(e.toLineNumber-e.fromLineNumber+1,0))));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}))),0===e.backgroundTokenizationState){const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new ht(this.textModel.getValue(),e);this.initialAstWithoutTokens=vt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else 2===e.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):1===e.backgroundTokenizationState&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleContentChanged(e){const t=e.changes.map((e=>{const t=d.e.lift(e.range);return new We(Be(t.getStartPosition()),Be(t.getEndPosition()),function(e){const t=(0,r.uq)(e);return Me(t.length-1,t[t.length-1].length)}(e.text))})).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t;return vt(new at(this.textModel,this.brackets),e,n,i)}getBracketsInRange(e){const t=Me(e.startLineNumber-1,e.startColumn-1),i=Me(e.endLineNumber-1,e.endColumn-1),n=new Array,o=this.initialAstWithoutTokens||this.astWithTokens;return yt(o,0,o.length,t,i,n),n}getBracketPairsInRange(e,t){const i=new Array,n=Be(e.getStartPosition()),o=Be(e.getEndPosition()),s=this.initialAstWithoutTokens||this.astWithTokens,r=new St(i,t,this.textModel);return Lt(s,0,s.length,n,o,r),i}}function yt(e,t,i,n,o,s,r=0){if(1===e.kind){const e=Ve(t,i);s.push(new De(e,r-1,!1))}else if(3===e.kind){const e=Ve(t,i);s.push(new De(e,r-1,!0))}else if(4===e.kind)for(const a of e.children)i=Re(t,a.length),Pe(t,o)&&Fe(i,n)&&yt(a,t,i,n,o,s,r),t=i;else if(2===e.kind){r++;{const a=e.openingBracket;i=Re(t,a.length),Pe(t,o)&&Fe(i,n)&&yt(a,t,i,n,o,s,r),t=i}if(e.child){const a=e.child;i=Re(t,a.length),Pe(t,o)&&Fe(i,n)&&yt(a,t,i,n,o,s,r),t=i}if(e.closingBracket){const a=e.closingBracket;i=Re(t,a.length),Pe(t,o)&&Fe(i,n)&&yt(a,t,i,n,o,s,r),t=i}}}class St{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function Lt(e,t,i,n,o,s,r=0){var a;if(2===e.kind){const n=Re(t,e.openingBracket.length);let o=-1;s.includeMinIndentation&&(o=e.computeMinIndentation(t,s.textModel)),s.result.push(new Ee(Ve(t,i),Ve(t,n),e.closingBracket?Ve(Re(n,(null===(a=e.child)||void 0===a?void 0:a.length)||0),i):void 0,r,o)),r++}let l=t;for(const t of e.children){const e=l;l=Re(l,t.length),Pe(e,o)&&Pe(n,l)&&Lt(t,e,l,n,o,s,r)}}var Nt=i(1248),xt=i(8566);class kt extends s.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new Dt,this.onDidChangeEmitter=new o.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.onDidChangeOptions((t=>{this.colorizationOptions=e.getOptions().bracketPairColorizationOptions}))),this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}getDecorationsInRange(e,t,i){if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,o=this.textModel.bracketPairs.getBracketsInRange(e);for(const e of o)n.push({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e)},ownerId:0,range:e.range});return n}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new d.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Dt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,xt.Ic)(((e,t)=>{const i=[Nt.zJ,Nt.Vs,Nt.CE,Nt.UP,Nt.r0,Nt.m1],n=new Dt;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(Nt.ts)}; }`);let o=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}}));var Et=i(4052),It=function(e,t){return function(i,n){t(i,n,e)}};function Tt(e,t){return("string"==typeof e?function(e){const t=new ce;return t.acceptChunk(e),t.finish()}(e):e).create(t)}let Mt=0;class At{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,i=0;for(;;){let n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const Rt=()=>{throw new Error("Invalid change accessor")};class Ot{constructor(){this._searchCanceledBrand=void 0}}function Pt(e){return e instanceof Ot?null:e}Ot.INSTANCE=new Ot;let Ft=class e extends s.JT{constructor(t,i,n,s=null,l,h,c){super(),this._undoRedoService=l,this._modeService=h,this._languageConfigurationService=c,this._onWillDispose=this._register(new o.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Qt((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new o.Q5),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.Q5),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new o.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeContentOrInjectedText=this._register(new o.Q5),this.onDidChangeContentOrInjectedText=this._onDidChangeContentOrInjectedText.event,this._eventEmitter=this._register(new Yt),this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new o.Q5),this.onBackgroundTokenizationStateChanged=this._onBackgroundTokenizationStateChanged.event,this._register(this._eventEmitter.fastEvent((e=>{this._onDidChangeContentOrInjectedText.fire(e.rawContentChangedEvent)}))),Mt++,this.id="$model"+Mt,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource=null==s?a.o.parse("inmemory://model/"+Mt):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Tt(t,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=e.resolveOptions(this._buffer,i);const m=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new d.e(1,1,m,this._buffer.getLineLength(m)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=f>e.LARGE_FILE_SIZE_THRESHOLD||m>e.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=f>e.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageId=n||fe.TG,this._languageRegistryListener=this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._instanceId=r.PJ(Mt),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ht,this._commandManager=new g.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new ae.Rl(this._modeService.languageIdCodec),this._tokens2=new ae.cx(this._modeService.languageIdCodec),this._tokenization=new Ce(this,this._modeService.languageIdCodec),this._bracketPairColorizer=this._register(new Ct(this,this._languageConfigurationService)),this._decorationProvider=this._register(new kt(this)),this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()})))}static resolveOptions(e,t){if(t.detectIndentation){const i=f(e,t.tabSize,t.insertSpaces);return new u.dJ({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new u.dJ({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}onDidChangeContentFast(e){return this._eventEmitter.fastEvent((t=>e(t.contentChangedEvent)))}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}get bracketPairs(){return this._bracketPairColorizer}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(2===this._backgroundTokenizationState)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this._onBackgroundTokenizationStateChanged.fire())}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const e=new he([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._bracketPairColorizer.handleContentChanged(t),this._isDisposing||this._eventEmitter.fire(new ue.fV(e,t))}setValue(e){if(this._assertNotDisposed(),null===e)return;const{textBuffer:t,disposable:i}=Tt(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,s,r){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:s,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Ht,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new ue.dQ([new ue.Jx],this._versionId,!1,!1),this._createContentChanged2(new d.e(1,1,o,s),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new ue.dQ([new ue.CZ],this._versionId,!1,!1),this._createContentChanged2(new d.e(1,1,o,s),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.indentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new u.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:s});if(this._options.equals(r))return;let a=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();let i=f(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}static _normalizeIndentationFromWhitespace(e,t,i){let n=0;for(let i=0;i({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new At(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor("number"!=typeof i||isNaN(i)?1:i),s=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(o<1)o=1,s=1;else if(o>t)o=t,s=this.getLineMaxColumn(o);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(o);s>=e&&(s=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!=typeof r||isNaN(r)?1:r),h=Math.floor("number"!=typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return i===o&&n===s&&r===l&&a===h&&e instanceof d.e&&!(e instanceof c.Y)?e:new d.e(o,s,l,h)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(r.ZG(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(n<1)return new h.L(1,1);if(n>s)return new h.L(s,this.getLineMaxColumn(s));if(o<=1)return new h.L(n,1);const a=this.getLineMaxColumn(n);if(o>=a)return new h.L(n,a);if(1===i){const e=this._buffer.getLineCharCode(n,o-2);if(r.ZG(e))return new h.L(n,o-1)}return new h.L(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof h.L&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(o,s,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,a=r.ZG(e),l=r.ZG(t);return!a&&!l}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof d.e&&!(e instanceof c.Y)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,o=t.column,s=i.lineNumber,a=i.column;{const e=o>1?this._buffer.getLineCharCode(n,o-2):0,t=a>1&&a<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,a-2):0,i=r.ZG(e),l=r.ZG(t);return i||l?n===s&&o===a?new d.e(n,o-1,s,a-1):i&&l?new d.e(n,o-1,s,a+1):i?new d.e(n,o-1,s,a):new d.e(n,o,s,a+1):new d.e(n,o,s,a)}}modifyPosition(e,t){this._assertNotDisposed();let i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new d.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,s,r=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>d.e.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>d.e.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Y.bc(e,i,n,o).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,r)}else h=t=>Y.pM.findMatches(this,new Y.bc(e,i,n,o),t,s,r);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Y.bc(e,i,n,o).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new d.e(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Y.pM.findNextMatch(this,new Y.bc(e,i,n,o),r,s),h.length>0?h[0]:(l=new d.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Y.pM.findNextMatch(this,new Y.bc(e,i,n,o),r,s)}findPreviousMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);return Y.pM.findPreviousMatch(this,new Y.bc(e,i,n,o),r,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof u.Qi?e:new u.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(e.range),text:e.text}))),n=!0;if(e)for(let t=0,o=e.length;to.endLineNumber,r=o.startLineNumber>t.endLineNumber;if(!n&&!r){s=!0;break}}if(!s){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;et.endLineNumber||n===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1))){s=!1;break}}if(s){const e=new d.e(n,1,n,o);t.push(new u.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new d.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new d.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),s=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==s.length){for(let e=0,t=s.length;e0?t.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(t.rangeOffset,t.rangeLength,t.text.length,t.forceMoveMarkers)}let e=[];this._increaseVersionId();let t=i;for(let i=0,n=s.length;i=0;t--){const i=a+t,n=p+t;b.takeFromEndWhile((e=>e.lineNumber>n));const o=b.takeFromEndWhile((e=>e.lineNumber===n));e.push(new ue.rU(i,this.getLineContent(n),o))}if(ue.lineNumbere.lineNumber===t))}e.push(new ue.Tx(n+1,a+c,h,l))}t+=g}this._emitContentChangedEvent(new ue.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=[...e].map((e=>new ue.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeContentOrInjectedText.fire(new ue.D8(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Zt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)},o=null;try{o=t(i)}catch(e){(0,n.dL)(e)}return i.addDecoration=Rt,i.changeDecoration=Rt,i.changeDecorationOptions=Rt,i.removeDecoration=Rt,i.deltaDecorations=Rt,o}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Gt[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),s,r,o),n.setOptions(Gt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;ethis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){let o=this.getLineCount(),s=Math.min(o,Math.max(1,e)),r=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(r);const l=new d.e(s,1,r,a),h=this._getDecorationsInRange(l,i,n);return h.push(...this._decorationProvider.getDecorationsInRange(l,i,n)),h}getDecorationsInRange(e,t=0,i=!1){let n=this.validateRange(e);const o=this._getDecorationsInRange(n,t,i);return o.push(...this._decorationProvider.getDecorationsInRange(n,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return ue.gk.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,o,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),s=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}n!==o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),o=t.length;let s=0;const r=i.length;let a=0,l=new Array(r);for(;s0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._tokens2.isComplete()}hasSomeSemanticTokens(){return!this._tokens2.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._tokens2.setPartial(e,t);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._tokens2.addSemanticTokens(e,i)}getLanguageId(){return this._languageId}setMode(e){if(this._languageId===e)return;let t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const i=this.validatePosition(new h.L(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(t){this._assertNotDisposed();const i=this.validatePosition(t),n=this.getLineContent(i.lineNumber),o=this._getLineTokens(i.lineNumber),s=o.findTokenIndexAtOffset(i.column-1),[r,a]=e._findLanguageBoundaries(o,s),l=(0,ye.t2)(i.column,this.getLanguageConfiguration(o.getLanguageId(s)).getWordDefinition(),n.substring(r,a),r);if(l&&l.startColumn<=t.column&&t.column<=l.endColumn)return l;if(s>0&&r===i.column-1){const[r,a]=e._findLanguageBoundaries(o,s-1),l=(0,ye.t2)(i.column,this.getLanguageConfiguration(o.getLanguageId(s-1)).getWordDefinition(),n.substring(r,a),r);if(l&&l.startColumn<=t.column&&t.column<=l.endColumn)return l}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let o=e.getLineContent().length;for(let n=t,s=e.getCount();n=0;e--){const i=t.getEndOffset(e);if(i<=r)break;if((0,Le.Bu)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){r=i;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let e=n+1;e=a)break;if((0,Le.Bu)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){a=i;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e){const t=e.lineNumber,i=this._getLineTokens(t),n=this._buffer.getLineContent(t),o=i.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const s=this.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(s&&!(0,Le.Bu)(i.getStandardTokenType(o))){let{searchStartOffset:r,searchEndOffset:a}=this._establishBracketSearchOffsets(e,i,s,o),l=null;for(;;){const i=Ne.Vr.findNextBracketInRange(s.forwardRegex,t,n,r,a);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=n.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),t=this._matchFoundBracket(i,s.textIsBracket[e],s.textIsOpenBracket[e],null);if(t){if(t instanceof Ot)return null;l=t}}r=i.endColumn-1}if(l)return l}if(o>0&&i.getStartOffset(o)===e.column-1){const s=o-1,r=this.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(r&&!(0,Le.Bu)(i.getStandardTokenType(s))){let{searchStartOffset:o,searchEndOffset:a}=this._establishBracketSearchOffsets(e,i,r,s);const l=Ne.Vr.findPrevBracketInRange(r.reversedRegex,t,n,o,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),t=this._matchFoundBracket(l,r.textIsBracket[e],r.textIsOpenBracket[e],null);if(t)return t instanceof Ot?null:t}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof Ot?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let s=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return Ot.INSTANCE;const h=Ne.Vr.findPrevBracketInRange(o,t,n,a,l);if(!h)break;const d=n.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const i=this._getLineTokens(e),o=i.getCount(),s=this._buffer.getLineContent(e);let r=o-1,l=s.length,h=s.length;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1);let d=!0;for(;r>=0;r--){const t=i.getLanguageId(r)===n&&!(0,Le.Bu)(i.getStandardTokenType(r));if(t)d?l=i.getStartOffset(r):(l=i.getStartOffset(r),h=i.getEndOffset(r));else if(d&&l!==h){const t=a(e,s,l,h);if(t)return t}d=t}if(d&&l!==h){const t=a(e,s,l,h);if(t)return t}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let s=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return Ot.INSTANCE;const h=Ne.Vr.findNextBracketInRange(o,t,n,a,l);if(!h)break;const d=n.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.getLineCount();for(let e=t.lineNumber;e<=l;e++){const i=this._getLineTokens(e),o=i.getCount(),s=this._buffer.getLineContent(e);let r=0,l=0,h=0;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1);let d=!0;for(;r=1;e--){const o=this._getLineTokens(e),s=o.getCount(),r=this._buffer.getLineContent(e);let a=s-1,l=r.length,h=r.length;if(e===t.lineNumber){a=o.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const e=o.getLanguageId(a);i!==e&&(i=e,n=this.getLanguageConfiguration(i).brackets)}let d=!0;for(;a>=0;a--){const t=o.getLanguageId(a);if(i!==t){if(n&&d&&l!==h){const t=Ne.Vr.findPrevBracketInRange(n.reversedRegex,e,r,l,h);if(t)return this._toFoundBracket(n,t);d=!1}i=t,n=this.getLanguageConfiguration(i).brackets}const s=!!n&&!(0,Le.Bu)(o.getStandardTokenType(a));if(s)d?l=o.getStartOffset(a):(l=o.getStartOffset(a),h=o.getEndOffset(a));else if(n&&d&&l!==h){const t=Ne.Vr.findPrevBracketInRange(n.reversedRegex,e,r,l,h);if(t)return this._toFoundBracket(n,t)}d=s}if(n&&d&&l!==h){const t=Ne.Vr.findPrevBracketInRange(n.reversedRegex,e,r,l,h);if(t)return this._toFoundBracket(n,t)}}return null}findNextBracket(e){const t=this.validatePosition(e),i=this.getLineCount();let n=null,o=null;for(let e=t.lineNumber;e<=i;e++){const i=this._getLineTokens(e),s=i.getCount(),r=this._buffer.getLineContent(e);let a=0,l=0,h=0;if(e===t.lineNumber){a=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const e=i.getLanguageId(a);n!==e&&(n=e,o=this.getLanguageConfiguration(n).brackets)}let d=!0;for(;aDate.now()-e<=t}const n=this.validatePosition(e),o=this.getLineCount(),s=new Map;let r=[];const a=(e,t)=>{if(!s.has(e)){let i=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(i&&++l%100==0&&!i())return Ot.INSTANCE;const a=Ne.Vr.findNextBracketInRange(e.forwardRegex,t,n,o,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),d=e.textIsBracket[h];if(d&&(d.isOpen(h)?r[d.index]++:d.isClose(h)&&r[d.index]--,-1===r[d.index]))return this._matchFoundBracket(a,d,!1,i);o=a.endColumn-1}return null};let d=null,c=null;for(let e=n.lineNumber;e<=o;e++){const t=this._getLineTokens(e),i=t.getCount(),o=this._buffer.getLineContent(e);let s=0,r=0,l=0;if(e===n.lineNumber){s=t.findTokenIndexAtOffset(n.column-1),r=n.column-1,l=n.column-1;const e=t.getLanguageId(s);d!==e&&(d=e,c=this.getLanguageConfiguration(d).brackets,a(d,c))}let u=!0;for(;sn)throw new Error("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this._languageId).foldingRules,s=Boolean(o&&o.offSide);let r=-2,a=-1,l=-2,h=-1;const d=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,h=-1;for(let t=e;t=0){l=t,h=e;break}}}};let c=-2,u=-1,g=-2,p=-1;const m=e=>{if(-2===c){c=-1,u=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){c=t,u=e;break}}}if(-1!==g&&(-2===g||g=0){g=t,p=e;break}}}};let f=0,_=!0,v=0,b=!0,C=0,w=0;for(let o=0;_||b;o++){const r=e-o,g=e+o;o>1&&(r<1||r1&&(g>n||g>i)&&(b=!1),o>5e4&&(_=!1,b=!1);let y=-1;if(_){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,h=e,y=Math.ceil(e/this._options.indentSize)):(d(r),y=this._getIndentLevelForWhitespaceLine(s,a,h))}let S=-1;if(b){const e=this._computeIndentLevel(g-1);e>=0?(c=g-1,u=e,S=Math.ceil(e/this._options.indentSize)):(m(g),S=this._getIndentLevelForWhitespaceLine(s,u,p))}if(0!==o){if(1===o){if(g<=n&&S>=0&&w+1===S){_=!1,f=g,v=g,C=S;continue}if(r>=1&&y>=0&&y-1===w){b=!1,f=r,v=r,C=y;continue}if(f=e,v=e,C=w,0===C)return{startLineNumber:f,endLineNumber:v,indent:C}}_&&(y>=C?f=r:_=!1),b&&(S>=C?v=g:b=!1)}else w=y}return{startLineNumber:f,endLineNumber:v,indent:C}}getLinesBracketGuides(e,t,i,n){var o,s,a,l,h;const c=[],g=this._bracketPairColorizer.getBracketPairsInRangeWithMinIndentation(new d.e(e,1,t,this.getLineMaxColumn(t)));let p;if(i&&g.length>0){const n=e<=i.lineNumber&&i.lineNumber<=t?g.filter((e=>e.range.containsPosition(i))):this._bracketPairColorizer.getBracketPairsInRange(d.e.fromPositions(i));p=null===(o=(0,ge.dF)(n,(e=>e.range.startLineNumber!==e.range.endLineNumber)))||void 0===o?void 0:o.range}const m=new ge.H9(g),f=new Array,_=new Array,v=new Bt;for(let i=e;i<=t;i++){let e=new Array;_.length>0&&(e=e.concat(_),_.length=0),c.push(e);for(const e of m.takeWhile((e=>e.openingBracketRange.startLineNumber<=i))||[]){if(e.range.startLineNumber===e.range.endLineNumber)continue;const t=Math.min(this.getVisibleColumnFromPosition(e.openingBracketRange.getStartPosition()),this.getVisibleColumnFromPosition(null!==(a=null===(s=e.closingBracketRange)||void 0===s?void 0:s.getStartPosition())&&void 0!==a?a:e.range.getEndPosition()),e.minVisibleColumnIndentation+1);let i=!1;e.closingBracketRange&&r.LC(this.getLineContent(e.closingBracketRange.startLineNumber))=0;o--){const s=f[o];if(!s)continue;const r=n.highlightActive&&p&&s.bracketPair.range.equalsRange(p),a=v.getInlineClassNameOfLevel(s.nestingLevel)+(r?" "+v.activeClassName:"");(r||n.includeInactive)&&s.renderHorizontalEndLineAtTheBottom&&s.end.lineNumber===i+1&&_.push(new u.UO(s.guideVisibleColumn,a,null)),s.end.lineNumber<=i||s.start.lineNumber>=i||s.guideVisibleColumn>=t&&!r||(t=s.guideVisibleColumn,(r||n.includeInactive)&&e.push(new u.UO(s.guideVisibleColumn,a,null)))}e.sort(((e,t)=>e.visibleColumn-t.visibleColumn))}return c}getVisibleColumnFromPosition(e){return Ke.i.visibleColumnFromColumn(this.getLineContent(e.lineNumber),e.column,this._options.tabSize)+1}getLinesIndentGuides(e,t){this._assertNotDisposed();const i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.getLanguageConfiguration(this._languageId).foldingRules,o=Boolean(n&&n.offSide);let s=new Array(t-e+1),r=-2,a=-1,l=-2,h=-1;for(let n=e;n<=t;n++){let t=n-e;const d=this._computeIndentLevel(n-1);if(d>=0)r=n-1,a=d,s[t]=Math.ceil(d/this._options.indentSize);else{if(-2===r){r=-1,a=-1;for(let e=n-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){r=e,a=t;break}}}if(-1!==l&&(-2===l||l=0){l=e,h=t;break}}}s[t]=this._getIndentLevelForWhitespaceLine(o,a,h)}}return s}_getIndentLevelForWhitespaceLine(e,t,i){return-1===t||-1===i?0:t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([It(4,ke.tJ),It(5,Et.h),It(6,Se.c_)],Ft);class Bt{constructor(){this.activeClassName="indent-active"}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Wt(e){return!!e.options.after||!!e.options.before}class Ht{constructor(){this._decorationsTree0=new k,this._decorationsTree1=new k,this._injectedTextDecorationsTree=new k}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,o){const s=e.getVersionId(),r=this._intervalSearch(t,i,n,o,s);return this._ensureNodesHaveRanges(e,r)}_intervalSearch(e,t,i,n,o){const s=this._decorationsTree0.intervalSearch(e,t,i,n,o),r=this._decorationsTree1.intervalSearch(e,t,i,n,o),a=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,o);return s.concat(r).concat(a)}getInjectedTextInInterval(e,t,i,n){const o=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,o);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n){const o=e.getVersionId(),s=this._search(t,i,n,o);return this._ensureNodesHaveRanges(e,s)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const i=this._decorationsTree0.search(e,t,n),o=this._decorationsTree1.search(e,t,n),s=this._injectedTextDecorationsTree.search(e,t,n);return i.concat(o).concat(s)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){Wt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Wt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Wt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function zt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Ut extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:u.sh.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;let i=e?t.getColor(e.id):null;return i?i.toString():""}}class $t extends Kt{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?xe.Il.fromHex(e):t.getColor(e.id)}}class jt{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1}static from(e){return e instanceof jt?e:new jt(e)}}class qt{constructor(e){this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?zt(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Ut(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?zt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?zt(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?zt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?zt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?zt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?zt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?zt(e.afterContentClassName):null,this.after=e.after?jt.from(e.after):null,this.before=e.before?jt.from(e.before):null}static register(e){return new qt(e)}static createDynamic(e){return new qt(e)}}qt.EMPTY=qt.register({description:"empty"});const Gt=[qt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),qt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),qt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),qt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Zt(e){return e instanceof qt?e:qt.createDynamic(e)}class Qt extends s.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,0===this._deferredCnt){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Yt extends s.JT{constructor(){super(),this._fastEmitter=this._register(new o.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},557:(e,t,i)=>{i.d(t,{Jx:()=>n,gk:()=>o,rU:()=>s,lN:()=>r,Tx:()=>a,CZ:()=>l,dQ:()=>h,D8:()=>d,fV:()=>c});class n{constructor(){this.changeType=1}}class o{constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new o(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new o(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}}class s{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class h{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t{i.d(t,{bc:()=>l,iE:()=>d,pM:()=>u,cM:()=>g,sz:()=>p});var n=i(7416),o=i(4168),s=i(8964),r=i(38),a=i(1913);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new h(t,this.wordSeparators?(0,o.u)(this.wordSeparators):null,i?this.searchString:null)}}class h{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}function d(e,t,i){if(!i)return new a.tk(e,null);let n=[];for(let e=0,i=t.length;e>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class u{static findMatches(e,t,i,n,o){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,i,new p(s.wordSeparators,s.regex),n,o):this._doFindMatchesLineByLine(e,i,s,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,s){let a,l,h=0;if(n?(h=n.findLineFeedCountBeforeOffset(o),a=t+o+h):a=t+o,n){let e=n.findLineFeedCountBeforeOffset(o+s.length)-h;l=a+s.length+e}else l=a+s.length;const d=e.getPositionAt(a),c=e.getPositionAt(l);return new r.e(d.lineNumber,d.column,c.lineNumber,c.column)}static _doFindMatchesMultiline(e,t,i,n,o){const s=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new c(r):null,l=[];let h,u=0;for(i.reset(0);h=i.next(r);)if(l[u++]=d(this._getMultilineMatchRange(e,s,r,a,h.index,h[0]),h,n),u>=o)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,o){const s=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o);for(let a=t.startLineNumber+1;a=h))return o;return o}const u=new p(e.wordSeparators,e.regex);let m;u.reset(0);do{if(m=u.next(t),m&&(s[o++]=d(new r.e(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),o>=h))return o}while(m);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,s,n):this._doFindNextMatchLineByLine(e,i,s,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new s.L(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),h=e.getValueInRange(new r.e(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new c(h):null;i.reset(t.column-1);let g=i.next(h);return g?d(this._getMultilineMatchRange(e,a,h,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new s.L(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s),a=this._findFirstMatchInLine(i,r,s,t.column,n);if(a)return a;for(let t=1;t<=o;t++){const r=(s+t-1)%o,a=e.getLineContent(r+1),l=this._findFirstMatchInLine(i,a,r+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const s=e.next(t);return s?d(new r.e(i,s.index+1,i,s.index+1+s[0].length),s,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,s,n):this._doFindPreviousMatchLineByLine(e,i,s,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new r.e(1,1,t.lineNumber,t.column),i,n,9990);if(o.length>0)return o[o.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new s.L(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,s,n);if(a)return a;for(let t=1;t<=o;t++){const r=(o+s-t-1)%o,a=e.getLineContent(r+1),l=this._findLastMatchInLine(i,a,r+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let o,s=null;for(e.reset(0);o=e.next(t);)s=d(new r.e(i,o.index+1,i,o.index+1+o[0].length),o,n);return s}}function g(e,t,i,n,o){return function(e,t,i,n,o){if(0===n)return!0;const s=t.charCodeAt(n-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,o)&&function(e,t,i,n,o){if(n+o===i)return!0;const s=t.charCodeAt(n+o);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n+o-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,o)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const o=i.index,s=i[0].length;if(o===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){n.ZH(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=s,!this._wordSeparators||g(this._wordSeparators,e,t,o,s))return i}while(i);return null}}},6686:(e,t,i)=>{i.d(t,{QZ:()=>l,DA:()=>c,OU:()=>u,Wz:()=>p,cx:()=>_,Rl:()=>v});var n=i(6308),o=i(1996),s=i(8964),r=i(38),a=i(8490);function l(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;s>>0}const d=new Uint32Array(0).buffer;class c{constructor(){this.tokens=[]}add(e,t){if(this.tokens.length>0){const i=this.tokens[this.tokens.length-1];if(i.startLineNumber+i.tokens.length-1+1===e)return void i.tokens.push(t)}this.tokens.push(new m(e,[t]))}}class u{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let i=0;ie)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let s=n;for(;se||d===e&&u>=t)&&(de||c===e&&g>=t){if(co?p-=o-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>o)){h=!0;continue}p-=o-i}else if(uo)){h=!0;continue}u===t?(g=i,p=g+(p-o)):(g=0,p=g+(p-o))}else if(u>n){if(0===a&&!h){l=r;break}u-=a}else{if(!(u===n&&g>=o))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=o-i,p-=o-i}const f=4*l;s[f]=u,s[f+1]=g,s[f+2]=p,s[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,s){const r=0===i&&1===n&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let s=0;s0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new s.L(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this.startLineNumber,i=e.endLineNumber-this.startLineNumber;if(i<0){const e=i-t;return void(this.startLineNumber-=e)}const n=this.tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){const n=-t;this.startLineNumber-=n,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(0===t&&0===i)return;const s=e.lineNumber-this.startLineNumber;s<0?this.startLineNumber+=t:s>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(s,e.column-1,t,i,n,o)}}class m{constructor(e,t){this.startLineNumber=e,this.tokens=t}}function f(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class _{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),o=t[t.length-1].getRange();if(!n||!o)return e;i=e.plusRange(n).plusRange(o)}let o=null;for(let e=0,t=this._pieces.length;ei.endLineNumber){o=o||{index:e};break}if(n.removeTokens(i),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumberi.endLineNumber){o=o||{index:e};continue}const[s,r]=n.split(i);s.isEmpty()?o=o||{index:e}:r.isEmpty()||(this._pieces.splice(e,1,s,r),e++,t++,o=o||{index:e})}return o=o||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,o.index,t)),i}isComplete(){return this._isComplete}addSemanticTokens(e,t){const i=this._pieces;if(0===i.length)return t;const n=i[_._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const s=t.getCount(),r=n.getCount();let a=0,l=[],h=0,d=0;const c=(e,t)=>{e!==d&&(d=e,l[h++]=e,l[h++]=t)};for(let e=0;e>>0,h=~l>>>0;for(;at)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const s of this._pieces)s.acceptEdit(e,t,i,n,o)}}class v{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,i){let n=null;if(t1&&(t=a.NX.getLanguageId(n[1])!==e),!t)return d}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=h(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let i=[];for(let e=0;e=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=v._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=v._deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len||(0!==t?(this._lineTokens[n]=v._deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=v._insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=v._insert(this._lineTokens[n],e.column-1,i))}static _deleteBeginning(e,t){return null===e||e===d?e:v._delete(e,0,t)}static _deleteEnding(e,t){if(null===e||e===d)return e;const i=f(e),n=i[i.length-2];return v._delete(e,t,n)}static _delete(e,t,i){if(null===e||e===d||t===i)return e;const n=f(e),s=n.length>>>1;if(0===t&&n[n.length-2]===i)return d;const r=o.A.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0;if(ih&&(n[l++]=t,n[l++]=n[1+(e<<1)],h=t)}if(l===n.length)return e;let u=new Uint32Array(l);return u.set(n.subarray(0,l),0),u.buffer}static _append(e,t){if(t===d)return e;if(e===d)return t;if(null===e)return e;if(null===t)return null;const i=f(e),n=f(t),o=n.length>>>1;let s=new Uint32Array(i.length+n.length);s.set(i,0);let r=i.length;const a=i[i.length-2];for(let e=0;e>>1;let r=o.A.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let e=r;e{i.d(t,{vu:()=>n,Af:()=>o,eq:()=>s,t2:()=>a});const n="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of n)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function s(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const r={maxLen:1e3,windowSize:15,timeBudget:150};function a(e,t,i,n,o=r){if(i.length>o.maxLen){let s=e-o.maxLen/2;return s<0?s=0:n+=s,a(e,t,i=i.substring(s,e+o.maxLen/2),n,o)}const s=Date.now(),h=e-1-n;let d=-1,c=null;for(let e=1;!(Date.now()-s>=o.timeBudget);e++){const n=h-o.windowSize*e;t.lastIndex=Math.max(0,n);const s=l(t,i,h,d);if(!s&&c)break;if(c=s,n<=0)break;d=n}if(c){let e={word:c[0],startColumn:n+1+c.index,endColumn:n+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function l(e,t,i,n){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=i&&e.lastIndex>=i)return o;if(n>0&&t>n)return null}return null}},8490:(e,t,i)=>{i.d(t,{H9:()=>R,He:()=>M,OH:()=>V,KZ:()=>w,RN:()=>E,Ct:()=>D,Az:()=>O,MY:()=>p,vH:()=>x,vN:()=>P,K7:()=>K,wT:()=>z,vJ:()=>N,AD:()=>v,aC:()=>H,xp:()=>L,vI:()=>I,gl:()=>f,mX:()=>A,bw:()=>u,zu:()=>y,pM:()=>B,id:()=>k,ln:()=>F,FL:()=>b,G0:()=>C,AC:()=>W,nD:()=>S,WW:()=>g,uZ:()=>m,NX:()=>h,RW:()=>U,tA:()=>T,jr:()=>c,Sy:()=>d,vx:()=>_});var n=i(8919),o=i(38),s=i(6578),r=i(6709),a=i(8431),l=i(407);class h{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;return 1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;"),4&n&&(o+="text-decoration: underline;"),o}}const d=function(){let e=Object.create(null);return e[0]="symbol-method",e[1]="symbol-function",e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues",function(t){const i=e[t];let n=i&&l.fK.get(i);return n||(console.info("No codicon found for CompletionItemKind "+t),n=l.lA.symbolProperty),n.classNames}}();let c=function(){let e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=27,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24,e.account=25,e.issue=26,function(t,i){let n=e[t];return void 0!==n||i||(n=9),n}}();var u,g,p,m,f;function _(e){return e&&n.o.isUri(e.uri)&&o.e.isIRange(e.range)&&(o.e.isIRange(e.originSelectionRange)||o.e.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(g||(g={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(p||(p={})),function(e){const t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);const i=new Map;i.set(0,"file"),i.set(1,"module"),i.set(2,"namespace"),i.set(3,"package"),i.set(4,"class"),i.set(5,"method"),i.set(6,"property"),i.set(7,"field"),i.set(8,"constructor"),i.set(9,"enum"),i.set(10,"interface"),i.set(11,"function"),i.set(12,"variable"),i.set(13,"constant"),i.set(14,"string"),i.set(15,"number"),i.set(16,"boolean"),i.set(17,"array"),i.set(18,"object"),i.set(19,"key"),i.set(20,"null"),i.set(21,"enum-member"),i.set(22,"struct"),i.set(23,"event"),i.set(24,"operator"),i.set(25,"type-parameter"),e.fromString=function(e){return t.get(e)},e.toString=function(e){return i.get(e)},e.toCssClassName=function(e,t){const n=i.get(e);let o=n&&l.fK.get("symbol-"+n);return o||(console.info("No codicon found for SymbolKind "+e),o=l.lA.symbolProperty),`${t?"inline":"block"} ${o.classNames}`}}(m||(m={}));class v{constructor(e){this.value=e}}v.Comment=new v("comment"),v.Imports=new v("imports"),v.Region=new v("region"),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(f||(f={}));const b=new s.c,C=new s.c,w=new s.c,y=new s.c,S=new s.c,L=new s.c,N=new s.c,x=new s.c,k=new s.c,D=new s.c,E=new s.c,I=new s.c,T=new s.c,M=new s.c,A=new s.c,R=new s.c,O=new s.c,P=new s.c,F=new s.c,B=new s.c,V=new s.c,W=new s.c,H=new s.c,z=new s.c,K=new s.c,U=new class{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),(0,a.OF)((()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))}))}registerPromise(e,t){let i=null,n=!1;return this._promises.set(e,t.then((t=>{this._promises.delete(e),!n&&t&&(i=this.register(e,t))}))),(0,a.OF)((()=>{n=!0,i&&i.dispose()}))}getPromise(e){const t=this.get(e);if(t)return Promise.resolve(t);const i=this._promises.get(e);return i?i.then((t=>this.get(e))):null}get(e){return this._map.get(e)||null}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},6582:(e,t,i)=>{var n;i.d(t,{wU:()=>n,V6:()=>o,c$:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class o{constructor(e){if(this._standardAutoClosingPairConditionalBrand=void 0,this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t{i.d(t,{c_:()=>S,zu:()=>D,UU:()=>L});var n=i(6709),o=i(8431),s=i(7416),r=i(1050),a=i(6582),l=i(242);class h{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.V6(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.V6({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.colorizedBracketPairs?this._colorizedBracketPairs=d(e.colorizedBracketPairs.map((e=>[e[0],e[1]]))):e.brackets?this._colorizedBracketPairs=d(e.brackets.map((e=>[e[0],e[1]])).filter((e=>!("<"===e[0]&&">"===e[1])))):this._colorizedBracketPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.V6({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:h.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(e,t,i){if(0===t.getTokenCount())return!0;const n=t.findTokenIndexAtOffset(i-2),o=t.getStandardTokenType(n);return e.isOK(o)}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}function d(e){return e.filter((([e,t])=>""!==e&&""!==t))}h.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var c=i(516);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return e=e.filter(((e,t,i)=>i.indexOf(e)===t)),e}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,l.Bu)(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,i-1)+e,r=c.Vr.findPrevBracketInRange(o,1,s,0,s.length);if(!r)return null;const a=s.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const h=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(996);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,o=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return o.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>this.modeService.validateLanguageId(e)));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new y(void 0));else for(const e of n)e&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new y(e)))}))),this._register(D.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new y(e.languageId))})))}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i){let n=D.getLanguageConfiguration(e);if(!n){const t=i.validateLanguageId(e);if(!t)throw new Error("Unexpected languageId");n=new M(t,{})}const o=function(e,t){const i=t.getValue(N.brackets,{overrideIdentifier:e}),n=t.getValue(N.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:x(i),colorizedBracketPairs:x(n)}}(n.languageId,t),s=I([n.underlyingConfig,o]);return new M(n.languageId,s)}(e,this.configurationService,this.modeService),this.configurations.set(e,t)),t}};L=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([w(0,v.Ui),w(1,b.h)],L);const N={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function x(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class k{constructor(e){this.languageId=e}}const D=new class{constructor(){this._entries=new Map,this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event}register(e,t,i=0){let n=this._entries.get(e);n||(n=new E(e),this._entries.set(e,n));const s=n.register(t,i);return this._onDidChange.fire(new k(e)),(0,o.OF)((()=>{s.dispose(),this._onDidChange.fire(new k(e))}))}getLanguageConfiguration(e){let t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}getIndentationRules(e){const t=this.getLanguageConfiguration(e);return t&&t.indentationRules||null}_getElectricCharacterSupport(e){let t=this.getLanguageConfiguration(e);return t&&t.electricCharacter||null}getElectricCharacters(e){let t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]}onElectricCharacter(e,t,i){let n=(0,l.wH)(t,i-1),o=this._getElectricCharacterSupport(n.languageId);return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}getComments(e){let t=this.getLanguageConfiguration(e);return t&&t.comments||null}_getCharacterPairSupport(e){let t=this.getLanguageConfiguration(e);return t&&t.characterPair||null}getAutoClosingPairs(e){const t=this._getCharacterPairSupport(e);return new a.c$(t?t.getAutoClosingPairs():[])}getAutoCloseBeforeSet(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():h.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]}shouldAutoClosePair(e,t,i){const n=(0,l.wH)(t,i-1);return h.shouldAutoClosePair(e,n,i-n.firstCharOffset)}getWordDefinition(e){let t=this.getLanguageConfiguration(e);return t?(0,r.eq)(t.wordDefinition||null):(0,r.eq)(null)}getFoldingRules(e){let t=this.getLanguageConfiguration(e);return t?t.foldingRules:{}}getIndentRulesSupport(e){let t=this.getLanguageConfiguration(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,i){let n=e.getLanguageIdAtPosition(t,0);if(t>1){let o,s=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==n)return s;let t=e.getLineContent(o);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return o;s=o}}return-1}getInheritIndentForLine(e,t,i,n=!0){if(e<4)return null;const o=this.getIndentRulesSupport(t.getLanguageId());if(!o)return null;if(i<=1)return{indentation:"",action:null};const r=this.getPrecedingValidLine(t,i,o);if(r<0)return null;if(r<1)return{indentation:"",action:null};const l=t.getLineContent(r);if(o.shouldIncrease(l)||o.shouldIndentNextLine(l))return{indentation:s.V8(l),action:a.wU.Indent,line:r};if(o.shouldDecrease(l))return{indentation:s.V8(l),action:null,line:r};{if(1===r)return{indentation:s.V8(t.getLineContent(r)),action:null,line:r};const e=r-1,i=o.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!o.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:s.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(n)return{indentation:s.V8(t.getLineContent(r)),action:null,line:r};for(let e=r;e>0;e--){const i=t.getLineContent(e);if(o.shouldIncrease(i))return{indentation:s.V8(i),action:a.wU.Indent,line:e};if(o.shouldIndentNextLine(i)){let i=0;for(let n=e-1;n>0;n--)if(!o.shouldIndentNextLine(t.getLineContent(e))){i=n;break}return{indentation:s.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(o.shouldDecrease(i))return{indentation:s.V8(i),action:null,line:e}}return{indentation:s.V8(t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,i,n,o){if(e<4)return null;const r=this.getLanguageConfiguration(i);if(!r)return null;const l=this.getIndentRulesSupport(i);if(!l)return null;const h=this.getInheritIndentForLine(e,t,n),d=t.getLineContent(n);if(h){const i=h.line;if(void 0!==i){const n=r.onEnter(e,"",t.getLineContent(i),"");if(n){let e=s.V8(t.getLineContent(i));return n.removeText&&(e=e.substring(0,e.length-n.removeText)),n.indentAction===a.wU.Indent||n.indentAction===a.wU.IndentOutdent?e=o.shiftIndent(e):n.indentAction===a.wU.Outdent&&(e=o.unshiftIndent(e)),l.shouldDecrease(d)&&(e=o.unshiftIndent(e)),n.appendText&&(e+=n.appendText),s.V8(e)}}return l.shouldDecrease(d)?h.action===a.wU.Indent?h.indentation:o.unshiftIndent(h.indentation):h.action===a.wU.Indent?o.shiftIndent(h.indentation):h.indentation}return null}getIndentForEnter(e,t,i,n){if(e<4)return null;t.forceTokenization(i.startLineNumber);const o=t.getLineTokens(i.startLineNumber),r=(0,l.wH)(o,i.startColumn-1),h=r.getLineContent();let d,c,u=!1;r.firstCharOffset>0&&o.getLanguageId(0)!==r.languageId?(u=!0,d=h.substr(0,i.startColumn-1-r.firstCharOffset)):d=o.getLineContent().substring(0,i.startColumn-1),c=i.isEmpty()?h.substr(i.startColumn-1-r.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);const g=this.getIndentRulesSupport(r.languageId);if(!g)return null;const p=d,m=s.V8(d),f={getLineTokens:e=>t.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i),getLineContent:e=>e===i.startLineNumber?p:t.getLineContent(e)},_=s.V8(o.getLineContent()),v=this.getInheritIndentForLine(e,f,i.startLineNumber+1);if(!v){const e=u?_:m;return{beforeEnter:e,afterEnter:e}}let b=u?_:v.indentation;return v.action===a.wU.Indent&&(b=n.shiftIndent(b)),g.shouldDecrease(c)&&(b=n.unshiftIndent(b)),{beforeEnter:u?_:m,afterEnter:b}}getIndentActionForType(e,t,i,n,o){if(e<4)return null;const s=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn);if(s.firstCharOffset)return null;const r=this.getIndentRulesSupport(s.languageId);if(!r)return null;const l=s.getLineContent(),h=l.substr(0,i.startColumn-1-s.firstCharOffset);let d;if(d=i.isEmpty()?l.substr(i.startColumn-1-s.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-s.firstCharOffset),!r.shouldDecrease(h+d)&&r.shouldDecrease(h+n+d)){const n=this.getInheritIndentForLine(e,t,i.startLineNumber,!1);if(!n)return null;let s=n.indentation;return n.action!==a.wU.Indent&&(s=o.unshiftIndent(s)),s}return null}getIndentMetadata(e,t){const i=this.getIndentRulesSupport(e.getLanguageId());return i?t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t)):null}getEnterAction(e,t,i){const n=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn),o=this.getLanguageConfiguration(n.languageId);if(!o)return null;const s=n.getLineContent(),r=s.substr(0,i.startColumn-1-n.firstCharOffset);let l;l=i.isEmpty()?s.substr(i.startColumn-1-n.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-n.firstCharOffset);let h="";if(i.startLineNumber>1&&0===n.firstCharOffset){const e=this.getScopedLineTokens(t,i.startLineNumber-1);e.languageId===n.languageId&&(h=e.getLineContent())}const d=o.onEnter(e,h,r,l);if(!d)return null;const c=d.indentAction;let u=d.appendText;const g=d.removeText||0;u?c===a.wU.Indent&&(u="\t"+u):u=c===a.wU.Indent||c===a.wU.IndentOutdent?"\t":"";let p=this.getIndentationAtPosition(t,i.startLineNumber,i.startColumn);return g&&(p=p.substring(0,p.length-g)),{indentAction:c,appendText:u,removeText:g,indentation:p}}getIndentationAtPosition(e,t,i){const n=e.getLineContent(t);let o=s.V8(n);return o.length>i-1&&(o=o.substring(0,i-1)),o}getScopedLineTokens(e,t,i){e.forceTokenization(t);const n=e.getLineTokens(t),o=void 0===i?e.getLineMaxColumn(t)-1:i-1;return(0,l.wH)(n,o)}};class E{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new T(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,o.OF)((()=>{for(let e=0;ee.configuration))))}}function I(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class T{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class M{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=M._handleComments(this.underlyingConfig),this.characterPair=new h(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return(0,r.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c.EA(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}static _handleComments(e){let t=e.comments;if(!t)return null;let i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){let[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,C.z)(S,L)},6578:(e,t,i)=>{i.d(t,{c:()=>g,Y:()=>f});var n=i(6709),o=i(2916),s=i(8431),r=i(9832),a=i(8726),l=i(4759),h=i(7263);function d(e,t,i,n){if(Array.isArray(e)){let o=0;for(const s of e){const e=d(s,t,i,n);if(10===e)return e;e>o&&(o=e)}return o}if("string"==typeof e)return n?"*"===e?5:e===i?10:0:0;if(e){const{language:o,pattern:s,scheme:r,hasAccessToAllModels:a}=e;if(!n&&!a)return 0;let d=0;if(r)if(r===t.scheme)d=10;else{if("*"!==r)return 0;d=5}if(o)if(o===i)d=10;else{if("*"!==o)return 0;d=Math.max(d,5)}if(s){let e;if(e="string"==typeof s?s:Object.assign(Object.assign({},s),{base:(0,h.Fv)(s.base)}),e!==t.fsPath&&!(0,l.EQ)(e,t.fsPath))return 0;d=10}return d}return 0}var c=i(4657);function u(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(u):!!e.exclusive)}class g{constructor(){this._clock=0,this._entries=[],this._onDidChange=new n.Q5}get onDidChange(){return this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,s.OF)((()=>{if(i){let e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){let t={uri:e.uri.toString(),language:e.getLanguageId()};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(let t of this._entries)if(t._score=d(t.selector,e.uri,e.getLanguageId(),(0,c.p)(e)),u(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(g._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}const p=new WeakMap;let m=0;class f{constructor(e,t,i=Number.MAX_SAFE_INTEGER){this._registry=e,this.min=t,this.max=i,this._cache=new r.z6(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,o.SP)(function(e){let t=p.get(e);return void 0===t&&(t=++m,p.set(e,t)),t}(t),e)),0)}_clamp(e){return void 0===e?this.min:Math.min(this.max,Math.max(this.min,Math.floor(1.3*e)))}get(e){const t=this._key(e),i=this._cache.get(t);return this._clamp(null==i?void 0:i.value)}update(e,t){const i=this._key(e);let n=this._cache.get(i);return n||(n=new a.n,this._cache.set(i,n)),n.update(t),this.get(e)}}},5553:(e,t,i)=>{i.d(t,{dQ:()=>l,XT:()=>h});var n=i(6386),o=i(6709),s=i(4608),r=i(6325),a=i(9161);const l=new class{constructor(){this._onDidChangeLanguages=new o.Q5,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0)},4386:(e,t,i)=>{i.d(t,{nO:()=>o,TG:()=>s,Ri:()=>r,mh:()=>a});var n=i(475);const o=new class{clone(){return this}equals(e){return this===e}},s="vs.editor.nullMode";function r(e,t,i,o){return new n.hG([new n.WU(o,"",e)],i)}function a(e,t,i,s){let r=new Uint32Array(2);return r[0]=s,r[1]=(16384|e<<0|2<<23)>>>0,new n.Hi(r,null===i?o:i)}},242:(e,t,i)=>{function n(e,t){let i=e.getCount(),n=e.findTokenIndexAtOffset(t),s=e.getLanguageId(n),r=n;for(;r+10&&e.getLanguageId(a-1)===s;)a--;return new o(e,s,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{wH:()=>n,Bu:()=>s});class o{constructor(e,t,i,n,o,s){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=s}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function s(e){return 0!=(7&e)}},516:(e,t,i)=>{i.d(t,{EA:()=>a,Vr:()=>p});var n=i(7416),o=i(2342),s=i(38);class r{constructor(e,t,i,n,o,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=s,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let e=0;e{const[i,n]=e,[o,s]=t;return i===o||i===s||n===o||n===s},o=(e,n)=>{const o=Math.min(e,n),s=Math.max(e,n);for(let e=0;e0&&s.push({open:o,close:r})}return s}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let e=0,t=o.length;e=0&&n.push(t);for(const t of s.close)t.indexOf(e)>=0&&n.push(t)}}function h(e,t){return e.length-t.length}function d(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function c(e){const t=/^[\w ]+$/.test(e);return e=n.ec(e),t?`\\b${e}\\b`:e}function u(e){let t=`(${e.map(c).join(")|(")})`;return n.GF(t,!0)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){if(o.lZ){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return o.oe().decode(t)}{let t=[],i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charAt(n);return t.join("")}}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){let o=i.match(e);if(!o)return null;let r=i.length-(o.index||0),a=o[0].length,l=n+r;return new s.e(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const s=g(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){let o=i.match(e);if(!o)return null;let r=o.index||0,a=o[0].length;if(0===a)return null;let l=n+r;return new s.e(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const s=i.substring(n,o);return this.findNextBracketInText(e,t,s,n)}}},2825:(e,t,i)=>{i.d(t,{C:()=>a,F:()=>l});var n=i(7416),o=i(1996),s=i(4386);const r={getInitialState:()=>s.nO,tokenize2:(e,t,i,n)=>(0,s.mh)(0,e,i,n)};function a(e,t,i=r){return function(e,t,i){let s='
    ';const r=n.uq(e);let a=i.getInitialState();for(let e=0,l=r.length;e0&&(s+="
    ");const h=i.tokenize2(l,!0,a,0);o.A.convertToEndOffset(h.tokens,l.length);const d=new o.A(h.tokens,l,t).inflate();let c=0;for(let e=0,t=d.getCount();e${n.YU(l.substring(c,i))}`,c=i}a=h.endState}return s+="
    ",s}(e,t,i||r)}function l(e,t,i,n,o,s,r){let a="
    ",l=n,h=0,d=!0;for(let c=0,u=t.getCount();c0;)r&&d?(g+=" ",d=!1):(g+=" ",d=!0),e--;break;case 60:g+="<",d=!1;break;case 62:g+=">",d=!1;break;case 38:g+="&",d=!1;break;case 0:g+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",d=!1;break;case 13:g+="​",d=!1;break;case 32:r&&d?(g+=" ",d=!1):(g+=" ",d=!0);break;default:g+=String.fromCharCode(t),d=!1}}if(a+=`${g}`,u>o||l>=o)break}return a+="
    ",a}},4996:(e,t,i)=>{i.d(t,{p:()=>n});const n=(0,i(4333).yh)("editorWorkerService")},4679:(e,t,i)=>{i.d(t,{OG:()=>S,ML:()=>b,KO:()=>w,Jc:()=>v,Vl:()=>m,Vj:()=>f});var n=i(7464),o=i(996),s=i(8919),r=i(8490),a=i(4657),l=i(793),h=i(4818),d=i(7511),c=i(1138);function u(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return c.r()||function(e){for(let t=0,i=e.length;t0?t[0]:[]}(e),a=yield Promise.all(s.map((s=>p(this,void 0,void 0,(function*(){let r;try{r=yield s.provideDocumentSemanticTokens(e,s===t?i:null,n)}catch(e){(0,o.Cp)(e),r=null}return r&&(m(r)||f(r))||(r=null),new _(s,r)})))));for(const e of a)if(e.tokens)return e;return a.length>0?a[0]:null}))}class C{constructor(e,t){this.provider=e,this.tokens=t}}function w(e){return r.K7.has(e)}function y(e){const t=r.K7.orderedGroups(e);return t.length>0?t[0]:[]}function S(e,t,i){return p(this,void 0,void 0,(function*(){const n=y(e),s=yield Promise.all(n.map((n=>p(this,void 0,void 0,(function*(){let s;try{s=yield n.provideDocumentRangeSemanticTokens(e,t,i)}catch(e){(0,o.Cp)(e),s=null}return s&&m(s)||(s=null),new C(n,s)})))));for(const e of s)if(e.tokens)return e;return s.length>0?s[0]:null}))}l.P.registerCommand("_provideDocumentSemanticTokensLegend",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i]=t;(0,h.p_)(i instanceof s.o);const n=e.get(a.q).getModel(i);if(!n)return;const o=function(e){const t=r.wT.orderedGroups(e);return t.length>0?t[0]:null}(n);return o?o[0].getLegend():e.get(l.H).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})))),l.P.registerCommand("_provideDocumentSemanticTokens",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i]=t;(0,h.p_)(i instanceof s.o);const o=e.get(a.q).getModel(i);if(!o)return;if(!v(o))return e.get(l.H).executeCommand("_provideDocumentRangeSemanticTokens",i,o.getFullModelRange());const r=yield b(o,null,null,n.T.None);if(!r)return;const{provider:d,tokens:c}=r;if(!c||!m(c))return;const g=u({id:0,type:"full",data:c.data});return c.resultId&&d.releaseDocumentSemanticTokens(c.resultId),g})))),l.P.registerCommand("_provideDocumentRangeSemanticTokensLegend",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i,o]=t;(0,h.p_)(i instanceof s.o);const r=e.get(a.q).getModel(i);if(!r)return;const l=y(r);if(0===l.length)return;if(1===l.length)return l[0].getLegend();if(!o||!g.e.isIRange(o))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),l[0].getLegend();const d=yield S(r,g.e.lift(o),n.T.None);return d?d.provider.getLegend():void 0})))),l.P.registerCommand("_provideDocumentRangeSemanticTokens",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i,o]=t;(0,h.p_)(i instanceof s.o),(0,h.p_)(g.e.isIRange(o));const r=e.get(a.q).getModel(i);if(!r)return;const l=yield S(r,g.e.lift(o),n.T.None);return l&&l.tokens?u({id:0,type:"full",data:l.tokens.data}):void 0}))))},7322:(e,t,i)=>{i.d(t,{i:()=>n});const n=(0,i(4333).yh)("markerDecorationsService")},4052:(e,t,i)=>{i.d(t,{h:()=>n});const n=(0,i(4333).yh)("modeService")},4657:(e,t,i)=>{i.d(t,{q:()=>n,p:()=>o});const n=(0,i(4333).yh)("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},5814:(e,t,i)=>{i.d(t,{BR:()=>M,e3:()=>A,tw:()=>R});var n=i(6709),o=i(8431),s=i(1138),r=i(996),a=i(54),l=i(9831),h=i(8490),d=i(5553),c=i(4052),u=i(5062),g=i(1177),p=i(3484),m=i(7464),f=i(8566),_=i(9271),v=i(8900),b=i(2916),C=i(5565),w=i(5007),y=i(9257),S=i(4679),L=i(3127),N=i(4608),x=function(e,t){return function(i,n){t(i,n,e)}};function k(e){return e.toString()}function D(e){const t=new b.yP,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}class E{constructor(e,t,i){this._modelEventListeners=new o.SL,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((()=>this.model.setMode(e.languageId))),this.model.setMode(e.languageId)}}const I=s.IJ||s.dz?1:2;class T{constructor(e,t,i,n,o,s,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=s,this.versionId=r,this.alternativeVersionId=a}}let M=class e extends o.JT{constructor(e,t,i,o,s,r,a){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=o,this._undoRedoService=s,this._modeService=r,this._languageConfigurationService=a,this._onModelAdded=this._register(new n.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.Q5),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new P(this._themeService,this._modeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration((()=>this._updateModelOptions()))),this._updateModelOptions(),this._register(new O(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(e,t){var i;let n=a.DB.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let o=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(o=t),o<1&&(o=1)}let s=a.DB.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=I;const l=e.eol;"\r\n"===l?r=2:"\n"===l&&(r=1);let h=a.DB.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(h="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let d=a.DB.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=a.DB.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let u=a.DB.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"==typeof e.editor.bracketPairColorization&&(u={enabled:!!e.editor.bracketPairColorization.enabled}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:h,largeFileOptimizations:c,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(t,i,n){let o=this._modelCreationOptionsByLanguageAndResource[t+i];if(!o){const s=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:i}),r=this._getEOL(i,t);o=e._readModelOptions({editor:s,eol:r},n),this._modelCreationOptionsByLanguageAndResource[t+i]=o}return o}_updateModelOptions(){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,o=i.length;ne){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),s=new l.yO(e,o,t,i,this._undoRedoService,this._modeService,this._languageConfigurationService);if(i&&this._disposedModels.has(k(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=D(s)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,C.e9)(e)&&e.matchesResource(i)&&e.setModel(s);for(const e of t.future)(0,C.e9)(e)&&e.matchesResource(i)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,C.e9)(e)&&e.matchesResource(i))),n&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=k(s.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new E(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let o;return t?(o=this._createModelData(e,t.languageId,i,n),this.setMode(o.model,t)):o=this._createModelData(e,d.XT,i,n),this._onModelAdded.fire(o.model),o.model}setMode(e,t){if(!t)return;const i=this._models[k(e.uri)];i&&i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||e.future.length>0){for(const i of e.past)(0,C.e9)(i)&&i.matchesResource(t.uri)&&(s=!0,r+=i.heapSize(t.uri),i.setModel(t.uri));for(const i of e.future)(0,C.e9)(i)&&i.matchesResource(t.uri)&&(s=!0,r+=i.heapSize(t.uri),i.setModel(t.uri))}}const a=e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!o&&r>a){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(t.uri,!1,(e=>(0,C.e9)(e)&&e.matchesResource(t.uri))),this._insertDisposedModel(new T(t.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),o,r,D(t),t.getVersionId(),t.getAlternativeVersionId()));else if(!o){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[i],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageId()+t.uri],this._onModelRemoved.fire(t)}_onDidChangeLanguage(t,i){const n=i.oldLanguage,o=t.getLanguageId(),s=this.getCreationOptions(n,t.uri,t.isForSimpleWidget),r=this.getCreationOptions(o,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,r,s),this._onModelModeChanged.fire({model:t,oldModeId:n})}};M.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([x(0,g.Ui),x(1,u.y),x(2,f.XE),x(3,_.VZ),x(4,v.tJ),x(5,c.h),x(6,N.c_)],M);const A="editor.semanticHighlighting";function R(e,t,i){var n;const o=null===(n=i.getValue(A,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===n?void 0:n.enabled;return"boolean"==typeof o?o:t.getColorTheme().semanticHighlighting}class O extends o.JT{constructor(e,t,i,n){super(),this._watchers=Object.create(null),this._semanticStyling=n;const o=e=>{this._watchers[e.uri.toString()]=new B(e,t,this._semanticStyling)},s=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},r=()=>{for(let n of e.getModels()){const e=this._watchers[n.uri.toString()];R(n,t,i)?e||o(n):e&&s(n,e)}};this._register(e.onModelAdded((e=>{R(e,t,i)&&o(e)}))),this._register(e.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&s(e,t)}))),this._register(i.onDidChangeConfiguration((e=>{e.affectsConfiguration(A)&&r()}))),this._register(t.onDidColorThemeChange(r))}}class P extends o.JT{constructor(e,t,i){super(),this._themeService=e,this._modeService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}get(e){return this._caches.has(e)||this._caches.set(e,new y.$(e.getLegend(),this._themeService,this._modeService,this._logService)),this._caches.get(e)}}class F{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}class B extends o.JT{constructor(e,t,i){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=i,this._fetchDocumentSemanticTokens=this._register(new p.pY((()=>this._fetchDocumentSemanticTokensNow()),B.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const n=()=>{(0,o.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of h.wT.all(e))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>this._fetchDocumentSemanticTokens.schedule(0))))};n(),this._register(h.wT.onDidChange((()=>{n(),this._fetchDocumentSemanticTokens.schedule()}))),this._register(t.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,S.Jc)(this._model))return void(this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1));const e=new m.A,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,S.ML)(this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const o=[],s=this._model.onDidChangeContent((e=>{o.push(e)}));n.then((e=>{if(this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticStyling.get(t);this._setDocumentSemanticTokens(t,i||null,n,o)}else this._setDocumentSemanticTokens(null,null,null,o)}),(e=>{e&&(r.VV(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||r.dL(e),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),o.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())}))}static _copy(e,t,i,n,o){for(let s=0;s{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule()};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.setSemanticTokens(null,!0),void s();if((0,S.Vj)(t)){if(!o)return void this._model.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const i=o.data,n=new Uint32Array(i.length+e);let s=i.length,r=n.length;for(let e=t.edits.length-1;e>=0;e--){const o=t.edits[e],a=s-(o.start+o.deleteCount);a>0&&(B._copy(i,s-a,n,r-a,a),r-=a),o.data&&(B._copy(o.data,0,n,r-o.data.length,o.data.length),r-=o.data.length),s=o.start}s>0&&B._copy(i,0,n,0,s),t={resultId:t.resultId,data:n}}}if((0,S.Vl)(t)){this._currentDocumentResponse=new F(e,t.resultId,t.data);const o=(0,y.h)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of o)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.setSemanticTokens(o,!0)}else this._model.setSemanticTokens(null,!0);s()}else this._model.setSemanticTokens(null,!1)}}B.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY=300},1223:(e,t,i)=>{i.d(t,{S:()=>n});const n=(0,i(4333).yh)("textModelService")},9257:(e,t,i)=>{i.d(t,{$:()=>h,h:()=>d});var n=i(8490),o=i(8566),s=i(9271),r=i(6686),a=i(4052),l=function(e,t){return function(i,n){t(i,n,e)}};let h=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._modeService=i,this._logService=n,this._hashTable=new u,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,i){const o=this._modeService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,o);let a;if(r)a=r.metadata,this._logService.getLevel()===s.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${n.NX.getForeground(a)}, fontStyle ${n.NX.getFontStyle(a).toString(2)}`);else{let r=this._legend.tokenTypes[e];const l=[];if(r){let e=t;for(let t=0;e>0&&t>=1;e>0&&this._logService.getLevel()===s.in.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,i);void 0===n?a=2147483647:(a=0,void 0!==n.italic&&(a|=1|(n.italic?1:0)<<11),void 0!==n.bold&&(a|=2|(n.bold?2:0)<<11),void 0!==n.underline&&(a|=4|(n.underline?4:0)<<11),n.foreground&&(a|=8|n.foreground<<14),0===a&&(a=2147483647))}else this._logService.getLevel()===s.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,o,a),this._logService.getLevel()===s.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${n.NX.getForeground(a)}, fontStyle ${n.NX.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}};function d(e,t,i){const n=e.data,o=e.data.length/5|0,s=Math.max(Math.ceil(o/1024),400),a=[];let l=0,h=1,d=0;for(;le&&0===n[5*t];)t--;if(t-1===e){let e=c;for(;e+1a&&(t.warnOverlappingSemanticTokens(r,a+1),f=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([l(1,o.XE),l(2,a.h),l(3,s.VZ)],h);class c{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class u{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=u._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=u._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1{i.d(t,{V:()=>o,y:()=>s});var n=i(4333);const o=(0,n.yh)("textResourceConfigurationService"),s=(0,n.yh)("textResourcePropertiesService")},3485:(e,t,i)=>{i.d(t,{Oe:()=>n,ug:()=>o,qq:()=>s,ld:()=>r,UX:()=>a,aq:()=>l,B8:()=>h,xi:()=>d,UL:()=>c});var n,o,s,r,a,l,h,d,c,u=i(6386);!function(e){e.noSelection=u.N("noSelection","No selection"),e.singleSelectionRange=u.N("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=u.N("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=u.N("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=u.N("multiSelection","{0} selections"),e.emergencyConfOn=u.N("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=u.N("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=u.N("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=u.N("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=u.N("readonlyEditor"," in a read-only code editor"),e.editableEditor=u.N("editableEditor"," in a code editor"),e.changeConfigToOnMac=u.N("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=u.N("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=u.N("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=u.N("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=u.N("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=u.N("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=u.N("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=u.N("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=u.N("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=u.N("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=u.N("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=u.N("showAccessibilityHelpAction","Show Accessibility Help")}(n||(n={})),function(e){e.inspectTokensAction=u.N("inspectTokens","Developer: Inspect Tokens")}(o||(o={})),function(e){e.gotoLineActionLabel=u.N("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=u.N("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=u.N("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=u.N("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=u.N("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=u.N("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=u.N("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=u.N("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(h||(h={})),function(e){e.toggleHighContrast=u.N("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=u.N("bulkEditServiceSummary","Made {0} edits in {1} files")}(c||(c={}))},1248:(e,t,i)=>{i.d(t,{Kh:()=>a,Mm:()=>l,n0:()=>g,fY:()=>p,tR:()=>f,Ym:()=>_,hw:()=>v,DD:()=>C,zk:()=>w,Yp:()=>y,TC:()=>S,Dl:()=>L,zw:()=>N,e_:()=>x,kp:()=>D,zu:()=>E,x3:()=>I,N5:()=>T,m9:()=>A,lK:()=>R,Re:()=>O,eS:()=>P,zJ:()=>F,Vs:()=>B,CE:()=>V,UP:()=>W,r0:()=>H,m1:()=>z,ts:()=>K,oV:()=>U,m$:()=>$,DS:()=>j,lS:()=>q,Jn:()=>G,YF:()=>Z,Qb:()=>Q,m3:()=>Y,To:()=>X,L7:()=>J,HV:()=>ee,f9:()=>te});var n=i(6386),o=i(6741),s=i(2537),r=i(8566);const a=(0,s.P6)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},n.N("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,s.P6)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},n.N("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),h=(0,s.P6)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},n.N("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),d=(0,s.P6)("editor.rangeHighlightBorder",{dark:null,light:null,hc:s.xL},n.N("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),c=(0,s.P6)("editor.symbolHighlightBackground",{dark:s.MU,light:s.MU,hc:null},n.N("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,s.P6)("editor.symbolHighlightBorder",{dark:null,light:null,hc:s.xL},n.N("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),g=(0,s.P6)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Il.black,hc:o.Il.white},n.N("caret","Color of the editor cursor.")),p=(0,s.P6)("editorCursor.background",null,n.N("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,s.P6)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},n.N("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,s.P6)("editorIndentGuide.background",{dark:m,light:m,hc:m},n.N("editorIndentGuides","Color of the editor indentation guides.")),_=(0,s.P6)("editorIndentGuide.activeBackground",{dark:m,light:m,hc:m},n.N("editorActiveIndentGuide","Color of the active editor indentation guides.")),v=(0,s.P6)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:o.Il.white},n.N("editorLineNumbers","Color of editor line numbers.")),b=(0,s.P6)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:s.xL},n.N("editorActiveLineNumber","Color of editor active line number"),!1,n.N("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),C=(0,s.P6)("editorLineNumber.activeForeground",{dark:b,light:b,hc:b},n.N("editorActiveLineNumber","Color of editor active line number")),w=(0,s.P6)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Il.lightgrey,hc:o.Il.white},n.N("editorRuler","Color of the editor rulers.")),y=(0,s.P6)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},n.N("editorCodeLensForeground","Foreground color of editor CodeLens")),S=(0,s.P6)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},n.N("editorBracketMatchBackground","Background color behind matching brackets")),L=(0,s.P6)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:s.lR},n.N("editorBracketMatchBorder","Color for matching brackets boxes")),N=(0,s.P6)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},n.N("editorOverviewRulerBorder","Color of the overview ruler border.")),x=(0,s.P6)("editorOverviewRuler.background",null,n.N("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),k=(0,s.P6)("editorGutter.background",{dark:s.cv,light:s.cv,hc:s.cv},n.N("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),D=(0,s.P6)("editorUnnecessaryCode.border",{dark:null,light:null,hc:o.Il.fromHex("#fff").transparent(.8)},n.N("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),E=(0,s.P6)("editorUnnecessaryCode.opacity",{dark:o.Il.fromHex("#000a"),light:o.Il.fromHex("#0007"),hc:null},n.N("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),I=(0,s.P6)("editorGhostText.border",{dark:null,light:null,hc:o.Il.fromHex("#fff").transparent(.8)},n.N("editorGhostTextBorder","Border color of ghost text in the editor.")),T=(0,s.P6)("editorGhostText.foreground",{dark:o.Il.fromHex("#ffffff56"),light:o.Il.fromHex("#0007"),hc:null},n.N("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),M=new o.Il(new o.VS(0,122,204,.6)),A=(0,s.P6)("editorOverviewRuler.rangeHighlightForeground",{dark:M,light:M,hc:M},n.N("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),R=(0,s.P6)("editorOverviewRuler.errorForeground",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hc:new o.Il(new o.VS(255,50,50,1))},n.N("overviewRuleError","Overview ruler marker color for errors.")),O=(0,s.P6)("editorOverviewRuler.warningForeground",{dark:s.uo,light:s.uo,hc:s.pW},n.N("overviewRuleWarning","Overview ruler marker color for warnings.")),P=(0,s.P6)("editorOverviewRuler.infoForeground",{dark:s.c6,light:s.c6,hc:s.T8},n.N("overviewRuleInfo","Overview ruler marker color for infos.")),F=(0,s.P6)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},n.N("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),B=(0,s.P6)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},n.N("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),V=(0,s.P6)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},n.N("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),W=(0,s.P6)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),H=(0,s.P6)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),z=(0,s.P6)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),K=(0,s.P6)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Il(new o.VS(255,18,18,.8)),light:new o.Il(new o.VS(255,18,18,.8)),hc:new o.Il(new o.VS(255,50,50,1))},n.N("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),U=(0,s.P6)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),$=(0,s.P6)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),j=(0,s.P6)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),q=(0,s.P6)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),G=(0,s.P6)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),Z=(0,s.P6)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Q=(0,s.P6)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),Y=(0,s.P6)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,s.P6)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),J=(0,s.P6)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),ee=(0,s.P6)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),te=(0,s.P6)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},n.N("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.Ic)(((e,t)=>{const i=e.getColor(s.cv);i&&t.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${i}; }`);const n=e.getColor(s.NO);n&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${n}; }`);const o=e.getColor(k);o&&t.addRule(`.monaco-editor .margin { background-color: ${o}; }`);const r=e.getColor(h);r&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${r}; }`);const a=e.getColor(d);a&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${a}; }`);const l=e.getColor(c);l&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${l}; }`);const g=e.getColor(u);g&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${g}; }`);const p=e.getColor(m);p&&(t.addRule(`.monaco-editor .mtkw { color: ${p} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${p} !important; }`))}))},3083:(e,t,i)=>{i.d(t,{EY:()=>o,Tj:()=>s});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class o{constructor(e,t,i){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.color=i,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colori&&(c=i-u);const g=l.color;let p=this._color2Id[g];p||(p=++this._lastAssignedId,this._color2Id[g]=p,this._id2Color[p]=g);const m=new n(c-u,c+u,p);l.setColorZone(m),r.push(m)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},9756:(e,t,i)=>{i.d(t,{Kp:()=>o,k:()=>a});var n=i(7416);class o{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n=s||(a[l++]=new o(Math.max(1,t.startColumn-n+1),Math.min(r+1,t.endColumn-n+1),t.className,t.type));return a}static filter(e,t,i,n){if(0===e.length)return[];let s=[],r=0;for(let a=0,l=e.length;at)continue;if(h.isEmpty()&&(0===l.type||3===l.type))continue;const d=h.startLineNumber===t?h.startColumn:i,c=h.endLineNumber===t?h.endColumn:n;s[r++]=new o(d,c,l.inlineClassName,l.type)}return s}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=o._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];let i=[];const o=new r;let s=0;for(let r=0,a=t.length;r1){const t=e.charCodeAt(l-2);n.ZG(t)&&l--}if(h>1){const t=e.charCodeAt(h-2);n.ZG(t)&&h--}const u=l-1,g=h-2;s=o.consumeLowerThan(u,s,i),0===o.count&&(s=u),o.insert(g,d,c)}return o.consumeLowerThan(1073741824,s,i),i}}},9054:(e,t,i)=>{i.d(t,{zG:()=>a,IJ:()=>l,Nd:()=>h,d1:()=>u,tF:()=>p});var n=i(7416),o=i(2342),s=i(9756);class r{constructor(e,t,i){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=i}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class a{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,n,o,r,a,l,h,d,c,u,g,p,m,f,_,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=h.sort(s.Kp.compare),this.tabSize=d,this.startVisibleColumn=c,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}setColumnInfo(e,t,i,n){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._absoluteOffsets[e-1]=n+i}getAbsoluteOffset(e){return 0===this._absoluteOffsets.length?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),n=d.getCharIndex(t);return new h(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;let n=(e<<16|i<<0)>>>0,o=0,s=this.length-1;for(;o+1>>1,t=this._data[e];if(t===n)return e;t>n?s=e:o=e}if(o===s)return o;let r=this._data[o],a=this._data[s];if(r===n)return o;if(a===n)return s;let l,h=d.getPartIndex(r),c=d.getCharIndex(r);return l=h!==d.getPartIndex(a)?t:d.getCharIndex(a),i-c<=l-i?o:s}}class c{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function u(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendASCIIString("");let i=0,n=0,o=0;for(const s of e.lineDecorations)1!==s.type&&2!==s.type||(t.appendASCIIString(''),1===s.type&&(o|=1,i++),2===s.type&&(o|=2,n++));t.appendASCIIString("");const s=new d(1,i+n);return s.setColumnInfo(1,i,0,0),new c(s,!1,o)}return t.appendASCIIString(""),new c(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,s=e.containsForeignElements,r=e.lineContent,a=e.len,l=e.isOverflowing,h=e.parts,u=e.fauxIndentLength,g=e.tabSize,p=e.startVisibleColumn,m=e.containsRTL,_=e.spaceWidth,v=e.renderSpaceCharCode,b=e.renderWhitespace,C=e.renderControlCharacters,w=new d(a+1,h.length);let y=!1,S=0,L=p,N=0,x=0,k=0,D=0;m?t.appendASCIIString(''):t.appendASCIIString("");for(let e=0,l=h.length;e=u&&(t+=n)}}for(m&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(_*i)),t.appendASCIIString('px"')),t.appendASCII(62);S1?t.write1(8594):t.write1(65515);for(let e=2;e<=i;e++)t.write1(160)}else i=1,t.write1(v);N+=i,S>=u&&(L+=i)}k=i}else{let i=0;for(t.appendASCII(62);S=u&&(L+=a)}k=i}E?x++:x=0,S>=a&&!y&&l.isPseudoAfter()&&(y=!0,w.setColumnInfo(S+1,e,N,D)),t.appendASCIIString("")}return y||w.setColumnInfo(a+1,h.length-1,N,D),l&&t.appendASCIIString(""),t.appendASCIIString(""),new c(w,m,s)}(function(e){const t=e.lineContent;let i,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(n[o++]=new r(t,"",0));for(let s=0,a=e.getCount();s=i){n[o++]=new r(i,l,0);break}n[o++]=new r(a,l,0)}return n}(e.lineTokens,e.fauxIndentLength,o);(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(a=function(e,t,i,o){const s=e.continuesWithWrappedLine,a=e.fauxIndentLength,l=e.tabSize,h=e.startVisibleColumn,d=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth;let m=[],f=0,_=0,v=o[_].type,b=o[_].endIndex;const C=o.length;let w,y=!1,S=n.LC(t);-1===S?(y=!0,S=i,w=i):w=n.ow(t);let L=!1,N=0,x=c&&c[N],k=h%l;for(let e=a;e=x.endOffset&&(N++,x=c&&c[N]),ew)h=!0;else if(9===s)h=!0;else if(32===s)if(u)if(L)h=!0;else{const n=e+1e),h&&g&&(h=y||e>w),L){if(!h||!d&&k>=l){if(p)for(let t=(f>0?m[f-1].endIndex:a)+1;t<=e;t++)m[f++]=new r(t,"mtkw",1);else m[f++]=new r(e,"mtkw",1);k%=l}}else(e===b||h&&e>a)&&(m[f++]=new r(e,v,0),k%=l);for(9===s?k=l:n.K7(s)?k+=2:k++,L=h;e===b&&(_++,_0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(D=!0)}else D=!0;if(D)if(p)for(let e=(f>0?m[f-1].endIndex:a)+1;e<=i;e++)m[f++]=new r(e,"mtkw",1);else m[f++]=new r(i,"mtkw",1);else m[f++]=new r(i,v,0);return m}(e,t,o,a));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;tc&&(c=e.startOffset,h[d++]=new r(c,s,u)),!(e.endOffset+1<=n)){c=n,h[d++]=new r(c,s+" "+e.className,u|e.metadata);break}c=e.endOffset+1,h[d++]=new r(c,s+" "+e.className,u|e.metadata),l++}n>c&&(c=n,h[d++]=new r(c,s,u))}const u=i[i.length-1].endIndex;if(l=50&&(o[s++]=new r(h+1,t,i),d=h+1,h=-1);d!==l&&(o[s++]=new r(l,t,i))}else o[s++]=a;n=l}else for(let e=0,i=t.length;e50){const e=i.type,t=i.metadata,h=Math.ceil(l/50);for(let i=1;in.endIndex&&(n=new r(o,s.type,s.metadata),i.push(n)),n=new r(o+1,"mtkcontrol",s.metadata),i.push(n));o>n.endIndex&&(n=new r(t,s.type,s.metadata),i.push(n))}return i}(t,a)),new m(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,o,i,a,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class g{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function p(e){let t=(0,o.l$)(1e4),i=u(e,t);return new g(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class m{constructor(e,t,i,n,o,s,r,a,l,h,d,c,u,g,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=o,this.parts=s,this.containsForeignElements=r,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=c,this.renderSpaceCharCode=u,this.renderWhitespace=g,this.renderControlCharacters=p}}function f(e){return e<32?9!==e:127===e||e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}},151:(e,t,i)=>{i.d(t,{T:()=>o,o:()=>s});var n=i(9886);class o{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class s{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.A)(e);const i=this.values,o=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=(0,n.A)(e),t=(0,n.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;let s=i.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,s=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,s=this.prefixSum[n],r=s-this.values[n],e=s))break;t=n+1}return new o(n,e-r)}}},7596:(e,t,i)=>{i.d(t,{l_:()=>r,le:()=>l,ud:()=>h,IP:()=>d,wA:()=>c,$t:()=>u,Wx:()=>g,$l:()=>p,SQ:()=>m});var n=i(7416),o=i(8964),s=i(38);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e,t){const i=this.outputLineIndex>0?t:0;return new o.L(e+this.outputLineIndex,i+this.outputOffset+1)}}class l{constructor(e,t,i,n,o){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i,this.injectionOffsets=n,this.injectionOptions=o}getInputOffsetOfOutputPosition(e,t){let i=0;if(i=0===e?t:this.breakOffsets[e-1]+t,null!==this.injectionOffsets)for(let e=0;ethis.injectionOffsets[e];e++)i0?this.breakOffsets[o-1]:0,0===t)if(e<=s)n=o-1;else{if(!(e>r))break;i=o+1}else if(e=r))break;i=o+1}}return new a(o,e-s)}outputPositionToOffsetInUnwrappedLine(e,t){let i=(e>0?this.breakOffsets[e-1]:0)+t;return e>0&&(i-=this.wrappedTextIndentLength),i}normalizeOffsetAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t)return e===i.offsetInUnwrappedLine+i.length?i.offsetInUnwrappedLine+i.length:i.offsetInUnwrappedLine;if(1===t){let e=i.offsetInUnwrappedLine+i.length,t=i.injectedTextIndex;for(;t+1=0&&this.injectionOffsets[o-1]===this.injectionOffsets[o];)n-=this.injectionOptions[o-1].content.length,o++;return n}getInjectedText(e,t){const i=this.outputPositionToOffsetInUnwrappedLine(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let o=0;oe)break;if(e<=a)return{injectedTextIndex:o,offsetInUnwrappedLine:r,length:s};n+=s}}}}class h{constructor(e,t){this.tabSize=e,this.data=t}}class d{constructor(e,t,i,n,o,s,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=s,this.inlineDecorations=r}}class c{constructor(e,t,i,n,o,s,r,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=c.isBasicASCII(i,s),this.containsRTL=c.containsRTL(i,this.isBasicASCII,o),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.$i(e)}static containsRTL(e,t,i){return!(t||!i)&&n.Ut(e)}}class u{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class g{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new u(new s.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class p{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class m{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}},3313:(e,t,i)=>{i.d(t,{xC:()=>k,Zg:()=>N,x$:()=>D,Qq:()=>I,Qs:()=>M});var n=i(6644),o=i(6308),s=i(7464),r=i(996),a=i(7865),l=i(7979),h=i(4818),d=i(8919),c=i(5834),u=i(6086),g=i(8964),p=i(38),m=i(7841),f=i(8490),_=i(4996),v=i(1223),b=i(8257),C=i(6386),w=i(793);class y{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}var S=i(4333),L=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function N(e){if(!(e=e.filter((e=>e.range))).length)return;let{range:t}=e[0];for(let i=1;ie.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return t}class k{static setFormatterSelector(e){return{dispose:k._selectors.unshift(e)}}static select(e,t,i){return L(this,void 0,void 0,(function*(){if(0===e.length)return;const n=a.$.first(k._selectors);return n?yield n(e,t,i):void 0}))}}function D(e,t,i,n,o,s){return L(this,void 0,void 0,(function*(){const r=e.get(S.TG),a=(0,u.CL)(t)?t.getModel():t,l=f.vN.ordered(a),h=yield k.select(l,a,n);h&&(o.report(h),yield r.invokeFunction(E,h,t,i,s))}))}function E(e,t,i,n,s){return L(this,void 0,void 0,(function*(){const r=e.get(_.p);let a,l;(0,u.CL)(i)?(a=i.getModel(),l=new c.Dl(i,5,void 0,s)):(a=i,l=new c.YQ(i,s));let h=[],d=0;for(let e of(0,o._2)(n).sort(p.e.compareRangesUsingStarts))d>0&&p.e.areIntersectingOrTouching(h[d-1],e)?h[d-1]=p.e.fromPositions(h[d-1].getStartPosition(),e.getEndPosition()):d=h.push(e);const g=e=>L(this,void 0,void 0,(function*(){return(yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),l.token))||[]})),f=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>p.e.plusRange(e,t.range)),e[0].range);if(!t.some((e=>p.e.intersectRanges(i,e.range))))return!1;for(let i of e)for(let e of t)if(p.e.intersectRanges(i.range,e.range))return!0;return!1},v=[],C=[];try{for(let e of h){if(l.token.isCancellationRequested)return!0;C.push(yield g(e))}for(let e=0;e({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function I(e,t,i,n,o){return L(this,void 0,void 0,(function*(){const s=e.get(S.TG),r=(0,u.CL)(t)?t.getModel():t,a=x(r),l=yield k.select(a,r,i);l&&(n.report(l),yield s.invokeFunction(T,l,t,i,o))}))}function T(e,t,i,n,o){return L(this,void 0,void 0,(function*(){const s=e.get(_.p);let r,a,l;(0,u.CL)(i)?(r=i.getModel(),a=new c.Dl(i,5,void 0,o)):(r=i,a=new c.YQ(i,o));try{const e=yield t.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||0===l.length)return!1;if((0,u.CL)(i))b.V.execute(i,l,2!==n),2!==n&&(N(l),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{const[{range:e}]=l,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);r.pushEditOperations([t],l.map((e=>({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function M(e,t,i,n,o){const a=f.ln.ordered(t);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,o,s.T.None)).catch(r.Cp).then((i=>e.computeMoreMinimalEdits(t.uri,i)))}k._selectors=new l.S,w.P.registerCommand("_executeFormatRangeProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n,a]=t;(0,h.p_)(d.o.isUri(i)),(0,h.p_)(p.e.isIRange(n));const l=e.get(v.S),c=e.get(_.p),u=yield l.createModelReference(i);try{return function(e,t,i,n,s){return L(this,void 0,void 0,(function*(){const a=f.vN.ordered(t);for(const l of a){let a=yield Promise.resolve(l.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(r.Cp);if((0,o.Of)(a))return yield e.computeMoreMinimalEdits(t.uri,a)}}))}(c,u.object.textEditorModel,p.e.lift(n),a,s.T.None)}finally{u.dispose()}}))})),w.P.registerCommand("_executeFormatDocumentProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n]=t;(0,h.p_)(d.o.isUri(i));const a=e.get(v.S),l=e.get(_.p),c=yield a.createModelReference(i);try{return function(e,t,i,n){return L(this,void 0,void 0,(function*(){const s=x(t);for(const a of s){let s=yield Promise.resolve(a.provideDocumentFormattingEdits(t,i,n)).catch(r.Cp);if((0,o.Of)(s))return yield e.computeMoreMinimalEdits(t.uri,s)}}))}(l,c.object.textEditorModel,n,s.T.None)}finally{c.dispose()}}))})),w.P.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n,o,s]=t;(0,h.p_)(d.o.isUri(i)),(0,h.p_)(g.L.isIPosition(n)),(0,h.p_)("string"==typeof o);const r=e.get(v.S),a=e.get(_.p),l=yield r.createModelReference(i);try{return M(a,l.object.textEditorModel,g.L.lift(n),o,s)}finally{l.dispose()}}))}))},8257:(e,t,i)=>{i.d(t,{V:()=>s});var n=i(9083),o=i(38);class s{static _handleEolEdits(e,t){let i,n=[];for(let e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const r=s._handleEolEdits(e,t);1===r.length&&s._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map((e=>n.h.replace(o.e.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",r.map((e=>n.h.replaceMove(o.e.lift(e.range),e.text)))),i&&e.pushUndoStop()}}},6790:(e,t,i)=>{i.d(t,{Q5:()=>sa,ZL:()=>aa,eB:()=>la,e6:()=>ra,Sf:()=>ha,j6:()=>da,Mj:()=>ca});var n,o,s,r,a,l,h,d,c,u,g,p,m,f,_,v,b,C,w,y,S,L,N,x,k,D,E,I,T,M,A,R,O,P,F,B=i(54),V=i(7464),W=i(6709),H=i(4880),z=i(8919),K=i(8964),U=i(38),$=i(7841),j=i(475);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(s||(s={})),function(e){e[e.Deprecated=1]="Deprecated"}(r||(r={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(c||(c={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(u||(u={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=42]="fontFamily",e[e.fontInfo=43]="fontInfo",e[e.fontLigatures=44]="fontLigatures",e[e.fontSize=45]="fontSize",e[e.fontWeight=46]="fontWeight",e[e.formatOnPaste=47]="formatOnPaste",e[e.formatOnType=48]="formatOnType",e[e.glyphMargin=49]="glyphMargin",e[e.gotoLocation=50]="gotoLocation",e[e.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",e[e.hover=52]="hover",e[e.inDiffEditor=53]="inDiffEditor",e[e.inlineSuggest=54]="inlineSuggest",e[e.letterSpacing=55]="letterSpacing",e[e.lightbulb=56]="lightbulb",e[e.lineDecorationsWidth=57]="lineDecorationsWidth",e[e.lineHeight=58]="lineHeight",e[e.lineNumbers=59]="lineNumbers",e[e.lineNumbersMinChars=60]="lineNumbersMinChars",e[e.linkedEditing=61]="linkedEditing",e[e.links=62]="links",e[e.matchBrackets=63]="matchBrackets",e[e.minimap=64]="minimap",e[e.mouseStyle=65]="mouseStyle",e[e.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=67]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",e[e.multiCursorModifier=69]="multiCursorModifier",e[e.multiCursorPaste=70]="multiCursorPaste",e[e.occurrencesHighlight=71]="occurrencesHighlight",e[e.overviewRulerBorder=72]="overviewRulerBorder",e[e.overviewRulerLanes=73]="overviewRulerLanes",e[e.padding=74]="padding",e[e.parameterHints=75]="parameterHints",e[e.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",e[e.quickSuggestions=78]="quickSuggestions",e[e.quickSuggestionsDelay=79]="quickSuggestionsDelay",e[e.readOnly=80]="readOnly",e[e.renameOnType=81]="renameOnType",e[e.renderControlCharacters=82]="renderControlCharacters",e[e.renderFinalNewline=83]="renderFinalNewline",e[e.renderLineHighlight=84]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=86]="renderValidationDecorations",e[e.renderWhitespace=87]="renderWhitespace",e[e.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",e[e.roundedSelection=89]="roundedSelection",e[e.rulers=90]="rulers",e[e.scrollbar=91]="scrollbar",e[e.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=93]="scrollBeyondLastLine",e[e.scrollPredominantAxis=94]="scrollPredominantAxis",e[e.selectionClipboard=95]="selectionClipboard",e[e.selectionHighlight=96]="selectionHighlight",e[e.selectOnLineNumbers=97]="selectOnLineNumbers",e[e.showFoldingControls=98]="showFoldingControls",e[e.showUnused=99]="showUnused",e[e.snippetSuggestions=100]="snippetSuggestions",e[e.smartSelect=101]="smartSelect",e[e.smoothScrolling=102]="smoothScrolling",e[e.stickyTabStops=103]="stickyTabStops",e[e.stopRenderingLineAfter=104]="stopRenderingLineAfter",e[e.suggest=105]="suggest",e[e.suggestFontSize=106]="suggestFontSize",e[e.suggestLineHeight=107]="suggestLineHeight",e[e.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",e[e.suggestSelection=109]="suggestSelection",e[e.tabCompletion=110]="tabCompletion",e[e.tabIndex=111]="tabIndex",e[e.unusualLineTerminators=112]="unusualLineTerminators",e[e.useShadowDOM=113]="useShadowDOM",e[e.useTabStops=114]="useTabStops",e[e.wordSeparators=115]="wordSeparators",e[e.wordWrap=116]="wordWrap",e[e.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=119]="wordWrapColumn",e[e.wordWrapOverride1=120]="wordWrapOverride1",e[e.wordWrapOverride2=121]="wordWrapOverride2",e[e.wrappingIndent=122]="wrappingIndent",e[e.wrappingStrategy=123]="wrappingStrategy",e[e.showDeprecated=124]="showDeprecated",e[e.inlayHints=125]="inlayHints",e[e.editorClassName=126]="editorClassName",e[e.pixelRatio=127]="pixelRatio",e[e.tabFocusMode=128]="tabFocusMode",e[e.layoutInfo=129]="layoutInfo",e[e.wrappingInfo=130]="wrappingInfo"}(g||(g={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(p||(p={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(m||(m={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(f||(f={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(_||(_={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(v||(v={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"}(b||(b={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(C||(C={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(w||(w={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(y||(y={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(S||(S={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(L||(L={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(N||(N={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(x||(x={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(k||(k={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(D||(D={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(E||(E={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(I||(I={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(T||(T={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(M||(M={})),function(e){e[e.Deprecated=1]="Deprecated"}(A||(A={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(R||(R={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(O||(O={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(F||(F={}));class q{static chord(e,t){return(0,H.gx)(e,t)}}function G(){return{editor:void 0,languages:void 0,CancellationTokenSource:V.A,Emitter:W.Q5,KeyCode:b,KeyMod:q,Position:K.L,Range:U.e,Selection:$.Y,SelectionDirection:I,MarkerSeverity:C,MarkerTag:w,Uri:z.o,Token:j.WU}}q.CtrlCmd=2048,q.Shift=1024,q.Alt=512,q.WinCtrl=256;var Z,Q=i(5603),Y=i(4441),X=i(7979),J=i(9832),ee=i(5533),te=i(5007),ie=i(6227),ne=i(793);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Z||(Z={}));var oe=i(8786),se=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},re=function(e,t){return function(i,n){t(i,n,e)}},ae=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let le=class{constructor(e){this._commandService=e}open(e,t){return ae(this,void 0,void 0,(function*(){if(!(0,oe.xn)(e,te.lg.command))return!1;if(!(null==t?void 0:t.allowCommands))return!0;"string"==typeof e&&(e=z.o.parse(e));let i=[];try{i=(0,ee.Q)(decodeURIComponent(e.query))}catch(t){try{i=(0,ee.Q)(e.query)}catch(e){}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0}))}};le=se([re(0,ne.H)],le);let he=class{constructor(e){this._editorService=e}open(e,t){return ae(this,void 0,void 0,(function*(){let i;"string"==typeof e&&(e=z.o.parse(e));const n=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);return n&&(i={startLineNumber:parseInt(n[1]),startColumn:n[2]?parseInt(n[2]):1},e=e.with({fragment:""})),e.scheme===te.lg.file&&(e=(0,ie.AH)(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,context:(null==t?void 0:t.fromUserGesture)?Z.USER:Z.API},null==t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}))}};he=se([re(0,Q.$)],he);let de=class{constructor(e,t){this._openers=new X.S,this._validators=new X.S,this._resolvers=new X.S,this._resolvedUriTargets=new J.Y9((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.S,this._defaultExternalOpener={openExternal:e=>ae(this,void 0,void 0,(function*(){return(0,oe.xn)(e,te.lg.http)||(0,oe.xn)(e,te.lg.https)?Y.V3(e):window.location.href=e,!0}))},this._openers.push({open:(e,t)=>ae(this,void 0,void 0,(function*(){return!!((null==t?void 0:t.openExternal)||(0,oe.xn)(e,te.lg.mailto)||(0,oe.xn)(e,te.lg.http)||(0,oe.xn)(e,te.lg.https))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new le(t)),this._openers.push(new he(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return ae(this,void 0,void 0,(function*(){const n="string"==typeof e?z.o.parse(e):e,o=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const e of this._validators)if(!(yield e.shouldOpen(o)))return!1;for(const i of this._openers)if(yield i.open(e,t))return!0;return!1}))}resolveExternalUri(e,t){return ae(this,void 0,void 0,(function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch(e){}throw new Error("Could not resolve external URI: "+e.toString())}))}_doOpenExternal(e,t){return ae(this,void 0,void 0,(function*(){const i="string"==typeof e?z.o.parse(e):e;let n,o;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch(e){n=i}if(o="string"==typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null==t?void 0:t.allowContributedOpeners){const e="string"==typeof(null==t?void 0:t.allowContributedOpeners)?null==t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners)if(yield t.openExternal(o,{sourceUri:i,preferredOpenerId:e},V.T.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},V.T.None)}))}dispose(){this._validators.clear()}};de=se([re(0,Q.$),re(1,ne.H)],de);var ce=i(9502),ue=i(5921),ge=i(6390),pe=i(1913),me=i(8490),fe=i(4386),_e=i(4996),ve=i(4052),be=i(1223),Ce=i(3484),we=i(8431),ye=i(996),Se=i(1138),Le=i(4818),Ne=i(7416);let xe=!1;function ke(e){Se.$L&&(xe||(xe=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class De{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class Ee{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class Ie{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class Te{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class Me{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Ae{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new De(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new W.Q5({onFirstListenerAdd:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new Ie(this._workerId,i,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(i),this._send(new Me(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ee(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,ye.ri)(e.detail)),this._send(new Ee(this._workerId,t,void 0,(0,ye.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Te(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)}),(e=>{n&&n(e)}))),this._protocol=new Ae({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(Pe(e)){const n=i[e].call(i,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(Oe(e)){const t=i[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;void 0!==Se.li.require&&"function"==typeof Se.li.require.getConfig?o=Se.li.require.getConfig():void 0!==Se.li.requirejs&&(o=Se.li.requirejs.s.contexts._.config);const s=Le.$E(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,s]);const r=(e,t)=>this._request(e,t),a=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(function(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o=e=>function(t){return i(e,t)};let s={};for(const t of e)Pe(t)?s[t]=o(t):Oe(t)?s[t]=i(t,void 0):s[t]=n(t);return s}(t,r,a))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function Oe(e){return"o"===e[0]&&"n"===e[1]&&Ne.df(e.charCodeAt(2))}function Pe(e){return/^onDynamic/.test(e)&&Ne.df(e.charCodeAt(9))}var Fe;const Be=null===(Fe=window.trustedTypes)||void 0===Fe?void 0:Fe.createPolicy("defaultWorkerFactory",{createScriptURL:e=>e});class Ve{constructor(e,t,i,n,o){this.id=t;const s=function(e,t){if(Se.li.MonacoEnvironment){if("function"==typeof Se.li.MonacoEnvironment.getWorker)return Se.li.MonacoEnvironment.getWorker(e,t);if("function"==typeof Se.li.MonacoEnvironment.getWorkerUrl){const i=Se.li.MonacoEnvironment.getWorkerUrl(e,t);return new Worker(Be?Be.createScriptURL(i):i,{name:t})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",i);"function"==typeof s.then?this.worker=s:this.worker=Promise.resolve(s),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}))}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then((i=>i.postMessage(e,t)))}dispose(){this.worker&&this.worker.then((e=>e.terminate())),this.worker=null}}class We{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++We.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Ve(e,n,this._label||"anonymous"+n,t,(e=>{ke(e),this._webWorkerFailedBeforeError=e,i(e)}))}}We.LAST_WORKER_ID=0;var He=i(4608),ze=i(230);function Ke(e,t,i,n){return new ze.Hs(e,t,i).ComputeDiff(n)}class Ue{constructor(e){const t=[],i=[];for(let n=0,o=e.length;n0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const s=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=Ke(s,a,o,!0).changes;r&&(l=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,o=e.length;n1&&r>1&&e.charCodeAt(i-2)===t.charCodeAt(r-2);)i--,r--;(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,i,s+1,1,r)}{let i=Qe(e,1),r=Qe(t,1);const a=e.length+1,l=t.length+1;for(;i!0;const t=Date.now();return()=>Date.now()-tt&&(t=s),o>i&&(i=o),r>i&&(i=r)}t++,i++;let n=new tt(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let nt=null,ot=null;class st{static _createLink(e,t,i,n,o){let s=o-1;do{const i=t.charCodeAt(s);if(2!==e.get(i))break;s--}while(s>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(s);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&s--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:s+2},url:t.substring(n,s+1)}}static computeLinks(e,t=function(){return null===nt&&(nt=new it([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),nt}()){const i=function(){if(null===ot){ot=new et.N(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}rt.INSTANCE=new rt;var at=i(9344),lt=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class ht extends class{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new K.L(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;nthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{let e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class dt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new ht(z.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,i,n){return lt(this,void 0,void 0,(function*(){const o=this._getModel(e),s=this._getModel(t);if(!o||!s)return null;const r=o.getLinesContent(),a=s.getLinesContent(),l=new Ge(r,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:n}).computeDiff(),h=!(l.changes.length>0)&&this._modelsAreIdentical(o,s);return{quitEarly:l.quitEarly,identical:h,changes:l.changes}}))}_modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++)if(e.getLineContent(n)!==t.getLineContent(n))return!1;return!0}computeMoreMinimalEdits(e,t){return lt(this,void 0,void 0,(function*(){const i=this._getModel(e);if(!i)return t;const n=[];let o;t=t.slice(0).sort(((e,t)=>e.range&&t.range?U.e.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:s,eol:r}of t){if("number"==typeof r&&(o=r),U.e.isEmpty(e)&&!s)continue;const t=i.getValueInRange(e);if(s=s.replace(/\r\n|\n|\r/g,i.eol),t===s)continue;if(Math.max(s.length,t.length)>dt._diffLimit){n.push({range:e,text:s});continue}const a=(0,ze.a$)(t,s,!1),l=i.offsetAt(U.e.lift(e).getStartPosition());for(const e of a){const t=i.positionAt(l+e.originalStart),o=i.positionAt(l+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:o.lineNumber,endColumn:o.column}};i.getValueInRange(r.range)!==r.text&&n.push(r)}}return"number"==typeof o&&n.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n}))}computeLinks(e){return lt(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?st.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,i,n){return lt(this,void 0,void 0,(function*(){const o=new at.G(!0),s=new RegExp(i,n),r=new Set;e:for(let i of e){const e=this._getModel(i);if(e)for(let i of e.words(s))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>dt._suggestionsLimit))break e}return{words:Array.from(r),duration:o.elapsed()}}))}computeWordRanges(e,t,i,n){return lt(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return Object.create(null);const s=new RegExp(i,n),r=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve(Le.$E(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}dt._diffLimit=1e5,dt._suggestionsLimit=1e4,"function"==typeof importScripts&&(Se.li.monaco=G());var ct=i(4657),ut=i(5062),gt=i(6308),pt=i(9271),mt=function(e,t){return function(i,n){t(i,n,e)}},ft=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function _t(e,t){let i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let vt=class extends we.JT{constructor(e,t,i){super(),this._modelService=e,this._workerManager=this._register(new Ct(this._modelService)),this._logService=i,this._register(me.pM.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>_t(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(me.KZ.register("*",new bt(this._workerManager,t,this._modelService)))}dispose(){super.dispose()}computeDiff(e,t,i,n){return this._workerManager.withWorker().then((o=>o.computeDiff(e,t,i,n)))}computeMoreMinimalEdits(e,t){if((0,gt.Of)(t)){if(!_t(this._modelService,e))return Promise.resolve(t);const i=at.G.create(!0),n=this._workerManager.withWorker().then((i=>i.computeMoreMinimalEdits(e,t)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed()))),Promise.race([n,(0,Ce.Vs)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return _t(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return _t(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}};vt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([mt(0,ct.q),mt(1,ut.V),mt(2,pt.VZ)],vt);class bt{constructor(e,t,i){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return ft(this,void 0,void 0,(function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestionsMode)_t(this._modelService,e.uri)&&n.push(e.uri);else for(const t of this._modelService.getModels())_t(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):"allDocuments"!==i.wordBasedSuggestionsMode&&t.getLanguageId()!==e.getLanguageId()||n.push(t.uri));if(0===n.length)return;const o=He.zu.getWordDefinition(e.getLanguageId()),s=e.getWordAtPosition(t),r=s?new U.e(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn):U.e.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),h=yield l.textualSuggest(n,null==s?void 0:s.word,o);return h?{duration:h.duration,suggestions:h.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}))}}class Ct extends we.JT{constructor(e){super(),this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new Ce.zh).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4)),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&(new Date).getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Lt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class wt extends we.JT{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){let e=new Ce.zh;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)(0,we.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){let e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){let e=(new Date).getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(const e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new we.SL;o.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),o.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),o.add((0,we.OF)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=o}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,we.B9)(t)}}class yt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class St{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Lt extends we.JT{constructor(e,t,i){super(),this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new We(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Re(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new St(this)))}catch(e){ke(e),this._worker=new yt(new dt(new St(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(ke(e),this._worker=new yt(new dt(new St(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new wt(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return ft(this,void 0,void 0,(function*(){return this._disposed?Promise.reject((0,ye.F0)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((o=>o.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then((i=>i.computeMoreMinimalEdits(e.toString(),t)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}textualSuggest(e,t,i){return ft(this,void 0,void 0,(function*(){const n=yield this._withSyncedResources(e),o=i.source,s=(0,Ne.mr)(i);return n.textualSuggest(e.map((e=>e.toString())),t,o,s)}))}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{let n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);let o=He.zu.getWordDefinition(n.getLanguageId()),s=o.source,r=(0,Ne.mr)(o);return i.computeWordRanges(e.toString(),t,s,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{let o=this._modelService.getModel(e);if(!o)return null;let s=He.zu.getWordDefinition(o.getLanguageId()),r=s.source,a=(0,Ne.mr)(s);return n.navigateValueSet(e.toString(),t,i,r,a)}))}dispose(){super.dispose(),this._disposed=!0}}class Nt extends Lt{constructor(e,t){super(e,t.keepIdleModels||!1,t.label),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?Le.$E(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)};let o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var xt,kt=i(1996),Dt=i(9054),Et=i(7596);function It(e){return"string"==typeof e}function Tt(e){return!It(e)}function Mt(e){return!e}function At(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Rt(e){return e.replace(/[&<>'"_]/g,"-")}function Ot(e,t){return new Error(`${e.languageId}: ${t}`)}function Pt(e,t,i,n,o){let s=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,h,d,c,u,g){return Mt(a)?Mt(l)?!Mt(h)&&h0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}class Bt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Vt(e,t);let i=Vt.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new Vt(e,t),this._entries[i]=n,n)}}Bt._INSTANCE=new Bt(5);class Vt{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Vt._equals(this,e)}push(e){return Bt.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Bt.create(this.parent,e)}}class Wt{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new Wt(this.languageId,this.state)}}class Ht{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t)return new zt(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new zt(e,t);let i=Vt.getStackElementId(e),n=this._entries[i];return n||(n=new zt(e,null),this._entries[i]=n,n)}}Ht._INSTANCE=new Ht(5);class zt{constructor(e,t){this.stack=e,this.embeddedModeData=t}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:Ht.create(this.stack,this.embeddedModeData)}equals(e){return e instanceof zt&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))}}class Kt{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(e,t){this._languageId=t}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new j.WU(e,t,this._languageId)))}nestedModeTokenize(e,t,i,n){const o=i.languageId,s=i.state,r=me.RW.get(o);if(!r)return this.enterMode(n,o),this.emit(n,""),s;let a=r.tokenize(e,t,s,n);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new j.hG(this._tokens,e)}}class Ut{constructor(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(e,t){this._currentLanguageId=this._modeService.languageIdCodec.encodeLanguageId(t)}emit(e,t){let i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;let r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let e=0;e{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{}))}}getInitialState(){let e=Bt.create(null,this._lexer.start);return Ht.create(e,null)}tokenize(e,t,i,n){let o=new Kt,s=this._tokenize(e,t,i,n,o);return o.finalize(s)}tokenize2(e,t,i,n){let o=new Ut(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n,o);return o.finalize(s)}_tokenize(e,t,i,n,o){return i.embeddedModeData?this._nestedTokenize(e,t,i,n,o):this._myTokenize(e,t,i,n,o)}_findLeavingNestedModeOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=Ft(this._lexer,t.stack.state),!i))throw Ot(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const t of i){if(!Tt(t.action)||"@pop"!==t.action.nextEmbedded)continue;o=!0;let i=t.regex,s=t.regex.source;if("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(s.substr(4,s.length-5),e)}let r=e.search(i);-1===r||0!==r&&t.matchOnlyAtLineStart||(-1===n||r0&&o.nestedModeTokenize(r,!1,i.embeddedModeData,n);let a=e.substring(s);return this._myTokenize(a,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterMode(n,this._languageId);const s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedModeData,h=i.stack,d=0,c=null,u=!0;for(;u||d=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=Ft(this._lexer,_),!e))throw Ot(this._lexer,"tokenizer state is not defined: "+_);let t=r.substr(d);for(const i of e)if((0===d||!i.matchOnlyAtLineStart)&&(v=t.match(i.regex),v)){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(d=this._lexer.maxStack)throw Ot(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(_)}else if("@pop"===C.next){if(h.depth<=1)throw Ot(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));h=h.pop()}else if("@popall"===C.next)h=h.popall();else{let e=Pt(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!Ft(this._lexer,e))throw Ot(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));h=h.push(e)}}C.log&&"string"==typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+Pt(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw Ot(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));const L=i=>{let s=this._modeService.getModeIdForLanguageName(i);s&&(i=s);const r=this._getNestedEmbeddedModeData(i);if(d0)throw Ot(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(v.length!==S.length+1)throw Ot(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;te});class Gt{static colorizeElement(e,t,i,n){let o=(n=n||{}).theme||"vs",s=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!s)return console.error("Mode not detected"),Promise.resolve();e.setTheme(o);let r=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+o,this.colorize(t,r||"",s,n).then((e=>{var t;const n=null!==(t=null==qt?void 0:qt.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static colorize(e,t,i,n){const o=e.languageIdCodec;let s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),Ne.uS(t)&&(t=t.substr(1));let r=Ne.uq(t),a=e.getModeId(i);if(!a)return Promise.resolve(Qt(r,s,o));e.triggerMode(a);const l=me.RW.get(a);if(l)return Zt(r,s,l,o);const h=me.RW.getPromise(a);return new Promise(h?(e,t)=>{h.then((i=>{Zt(r,s,i,o).then(e,t)}),t)}:(e,t)=>{let i=null,n=null;const l=()=>{i&&(i.dispose(),i=null),n&&(n.dispose(),n=null);const l=me.RW.get(a);l?Zt(r,s,l,o).then(e,t):e(Qt(r,s,o))};n=new Ce._F,n.cancelAndSet(l,500),i=me.RW.onDidChange((e=>{e.changedLanguages.indexOf(a)>=0&&l()}))})}static colorizeLine(e,t,i,n,o=4){const s=Et.wA.isBasicASCII(e,t),r=Et.wA.containsRTL(e,s,i);return(0,Dt.tF)(new Dt.IJ(!1,!0,e,!1,s,r,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.forceTokenization(t);let o=e.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function Zt(e,t,i,n){return new Promise(((o,s)=>{const r=()=>{const a=function(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}(e,t,i,n);if(i instanceof $t){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,s)}o(a)};r()}))}function Qt(e,t,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=16793600;for(let s=0,r=e.length;s")}return n.join("")}var Yt=i(6544),Xt=i(1994),Jt=i(7068),ei=i(6086),ti=i(3028),ii=i(7960),ni=i(9083),oi=i(1177),si=i(3127),ri=i(2326);class ai{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.isFrozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,oi.Mt)(this.contents,e):this.contents}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=si.I8(this.contents),i=si.I8(this.overrides),n=[...this.keys];for(const o of e){this.mergeContents(t,o.contents);for(const e of o.overrides){const[t]=i.filter((t=>gt.fS(t.identifiers,e.identifiers)));t?this.mergeContents(t.contents,e.contents):i.push(si.I8(e))}for(const e of o.keys)-1===n.indexOf(e)&&n.push(e)}return new ai(t,n,i)}freeze(){return this.isFrozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;let i={};for(const e of gt.EB([...Object.keys(this.contents),...Object.keys(t)])){let n=this.contents[e],o=t[e];o&&("object"==typeof n&&"object"==typeof o?(n=si.I8(n),this.mergeContents(n,o)):n=o),i[e]=n}return new ai(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&Le.Kn(e[i])&&Le.Kn(t[i])?this.mergeContents(e[i],t[i]):e[i]=si.I8(t[i])}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?si._A(e):e}getContentsForOverrideIdentifer(e){for(const t of this.overrides)if(-1!==t.identifiers.indexOf(e))return t.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),(0,oi.KV)(this.contents,e,t,(e=>{throw new Error(e)}))}removeValue(e){this.removeKey(e)&&(0,oi.xL)(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iconsole.error(`Conflict in default settings file: ${e}`)))});super(e,t,i)}}class hi{constructor(e,t,i=new ai,n=new ai,o=new J.Y9,s=new ai,r=new J.Y9,a=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=i,this._workspaceConfiguration=n,this._folderConfigurations=o,this._memoryConfiguration=s,this._memoryConfigurationByResource=r,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new J.Y9,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidateConfigurationModel(t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new ai,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(e,t){let i=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?i.override(e.overrideIdentifier):i}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),n=this.parseConfigurationModel(e.workspace),o=e.folders.reduce(((e,t)=>(e.set(z.o.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new J.Y9);return new hi(t,i,new ai,n,o,new ai,new J.Y9,!1)}static parseConfigurationModel(e){return new ai(e.contents,e.keys,e.overrides).freeze()}}class di{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const o=new Set;e.keys.forEach((e=>o.add(e))),e.overrides.forEach((([,e])=>e.forEach((e=>o.add(e))))),this.affectedKeys=[...o.values()];const s=new ai;this.affectedKeys.forEach((e=>s.setValue(e,{}))),this.affectedKeysTree=s.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=hi.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!si.fS(n,o)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i,n=(0,oi.Od)({[t]:!0},(()=>{}));for(;"object"==typeof n&&(i=Object.keys(n)[0]);){if(!(e=e[i]))return!1;n=n[i]}return!0}}var ci=i(6386);const ui=/^(cursor|delete)/;class gi extends we.JT{constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new W.Q5),this._currentChord=null,this._currentChordChecker=new Ce.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new Ce._F,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:W.ju.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(null===n)return null;const o=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,s,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(ci.N("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-i>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=pi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getParts();return this._ignoreSingleModifiers=new pi(o),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let o=null,s=null;if(i){const[t]=e.getSingleModifierDispatchParts();o=t,s=t}else[o]=e.getDispatchParts(),s=this._currentChord?this._currentChord.keypress:null;if(null===o)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const r=this._contextKeyService.getContext(t),a=e.getLabel(),l=this._getResolver().resolve(r,s,o);return this._logService.trace("KeybindingService#dispatch",a,null==l?void 0:l.commandId),l&&l.enterChord?(n=!0,this._enterChordMode(o,a),n):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(ci.N("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),n=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(n=!0),void 0===l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,(e=>this._notificationService.warn(e))),ui.test(l.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class pi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}pi.EMPTY=new pi(null);var mi=i(499);class fi{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let t=0,i=e.length;t=0;i--)this._isTargetedForRemoval(e[i],o,s,t,r)&&e.splice(i,1)}return e.concat(i)}_addKeyPress(e,t){const i=this._map.get(e);if(void 0===i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let e=i.length-1;e>=0;e--){let n=i[e];if(n.command===t.command)continue;const o=n.keypressParts.length>1,s=t.keypressParts.length>1;o&&s&&n.keypressParts[1]!==t.keypressParts[1]||fi.whenIsEntirelyIncluded(n.when,t.when)&&this._removeFromLookupMap(n)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(void 0!==t)for(let i=0,n=t.length;i=0;e--){const n=i[e];if(t.contextMatchesRules(n.when))return n}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(null!==t){const e=this._map.get(t);if(void 0===e)return this._log("\\ No keybinding entries."),null;n=[];for(let t=0,o=e.length;t1&&null!==o.keypressParts[1]?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${_i(o.when)}, source: ${vi(o)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${o.command}, when: ${_i(o.when)}, source: ${vi(o)}.`),{enterChord:!1,leaveChord:o.keypressParts.length>1,commandId:o.command,commandArgs:o.commandArgs,bubble:o.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){let n=t[i];if(fi.contextMatchesRules(e,n.when))return n}return null}static contextMatchesRules(e,t){return!t||t.evaluate(e)}}function _i(e){return e?`${e.serialize()}`:"no when condition"}function vi(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}var bi=i(7679);class Ci{constructor(e,t,i,n,o,s,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?wi(e.getDispatchParts()):[],e&&0===this.keypressParts.length&&(this.keypressParts=wi(e.getSingleModifierDispatchParts())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=s,this.isBuiltinExtension=r}}function wi(e){let t=[];for(let i=0,n=e.length;ithis._getLabel(e)))}getAriaLabel(){return yi.X4.toLabel(this._os,this._parts,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:yi.jC.toLabel(this._os,this._parts,(e=>this._getElectronAccelerator(e)))}isChord(){return this._parts.length>1}getParts(){return this._parts.map((e=>this._getPart(e)))}_getPart(e){return new Xt.BQ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map((e=>this._getDispatchPart(e)))}getSingleModifierDispatchParts(){return this._parts.map((e=>this._getSingleModifierDispatchPart(e)))}}class Li extends Si{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return H.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":H.kL.toString(e.keyCode)}_getElectronAccelerator(e){return H.kL.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return Li.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=H.kL.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=H.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Xt.QC)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Xt.QC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=wi(e.map((e=>this._resolveSimpleUserBinding(e))));return i.length>0?[new Li(new Xt.X_(i),t)]:[]}}var Ni=i(7968),xi=i(3799),ki=i(3485),Di=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ei=function(e,t){return function(i,n){t(i,n,e)}},Ii=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Ti{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new W.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Mi=class{constructor(e){this.modelService=e}setEditor(e){this.editor=e}createModelReference(e){let t=null;var i,n,o;return this.editor&&(i=this.editor,n=t=>this.findModel(t,e),o=t=>this.findModel(t.getOriginalEditor(),e)||this.findModel(t.getModifiedEditor(),e),t=(0,ei.CL)(i)?n(i):o(i)),t?Promise.resolve(new we.Jz(new Ti(t))):Promise.reject(new Error("Model not found"))}findModel(e,t){let i=this.modelService.getModel(t);return i&&i.uri.toString()!==t.toString()?null:i}};Mi=Di([Ei(0,ct.q)],Mi);class Ai{show(){return Ai.NULL_PROGRESS_RUNNER}showWhile(e,t){return Ii(this,void 0,void 0,(function*(){yield e}))}}Ai.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Ri{confirm(e){return this.doConfirm(e).then((e=>({confirmed:e,checkboxChecked:!1})))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class Oi{info(e){return this.notify({severity:Jt.Z.Info,message:e})}warn(e){return this.notify({severity:Jt.Z.Warning,message:e})}error(e){return this.notify({severity:Jt.Z.Error,message:e})}notify(e){switch(e.severity){case Jt.Z.Error:console.error(e.message);break;case Jt.Z.Warning:console.warn(e.message);break;default:console.log(e.message)}return Oi.NO_OP}status(e,t){return we.JT.None}}Oi.NO_OP=new Ni.EO;class Pi{constructor(e){this._onWillExecuteCommand=new W.Q5,this._onDidExecuteCommand=new W.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=ne.P.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(e){return Promise.reject(e)}}}class Fi extends gi{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(Y.nm(s,Y.tw.KEY_DOWN,(e=>{const t=new Yt.y(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),this._register(Y.nm(window,Y.tw.KEY_UP,(e=>{const t=new Yt.y(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()})))}addDynamicKeybinding(e,t,i,n){const o=(0,Xt.gm)(t,Se.OS),s=new we.SL;return o&&(this._dynamicKeybindings.push({keybinding:o.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),s.add((0,we.OF)((()=>{for(let t=0;tthis._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){let i=[],n=0;for(const o of e){const e=o.when||void 0,s=o.keybinding;if(s){const r=Li.resolveUserBinding(s,Se.OS);for(const s of r)i[n++]=new Ci(s,o.command,o.commandArgs,e,t,null,!1)}else i[n++]=new Ci(void 0,o.command,o.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){let t=new Xt.QC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Li(t,Se.OS)}}function Bi(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof z.o)}class Vi{constructor(){this._onDidChangeConfiguration=new W.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new hi(new li,new ai)}getValue(e,t){const i="string"==typeof e?e:void 0,n=Bi(e)?e:Bi(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()};let i=[];for(const t of e){const[e,n]=t;this.getValue(e)!==n&&(this._configuration.updateValue(e,n),i.push(e))}if(i.length>0){const e=new di({keys:i,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}}class Wi{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new W.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=K.L.isIPosition(t)&&t?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0;return void 0===n?this.configurationService.getValue():this.configurationService.getValue(n)}}let Hi=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"==typeof i&&"auto"!==i?i:Se.IJ||Se.dz?"\n":"\r\n"}};Hi=Di([Ei(0,oi.Ui)],Hi);class zi{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Ki{constructor(){const e=z.o.from({scheme:Ki.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new xi.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}function Ui(e,t,i){if(!t)return;if(!(e instanceof Vi))return;let n=[];Object.keys(t).forEach((e=>{(0,ii.ei)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,ii.Pe)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}Ki.SCHEME="inmemory";class $i{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Ii(this,void 0,void 0,(function*(){const t=new Map;for(let i of e){if(!(i instanceof ti.Gl))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(i.resource);if(!e)throw new Error("bad edit - model not found");if("number"==typeof i.versionId&&e.getVersionId()!==i.versionId)throw new Error("bad state - model changed in the meantime");let n=t.get(e);n||(n=[],t.set(e,n)),n.push(ni.h.replaceMove(U.e.lift(i.textEdit.range),i.textEdit.text))}let i=0,n=0;for(const[e,o]of t)e.pushStackElement(),e.pushEditOperations([],o,(()=>[])),e.pushStackElement(),n+=1,i+=o.length;return{ariaSummary:Ne.WU(ki.UL.bulkEditServiceSummary,i,n)}}))}}class ji{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}}class qi{constructor(e,t){this._codeEditorService=e,this._container=t,this.onDidLayout=W.ju.None}get dimension(){return this._dimension||(this._dimension=Y.D6(window.document.body)),this._dimension}get container(){return this._container}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}}var Gi=i(6644),Zi=i(9656),Qi=i(7925),Yi=i(6031),Xi=i(3809),Ji=i(1208),en=i(6953),tn=i(4333),nn=i(5495),on=i(8566),sn=i(8708),rn=i(1941),an=i(9969);class ln extends we.JT{constructor(){super(),this._onCodeEditorAdd=this._register(new W.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new W.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new W.Q5),this._onDiffEditorRemove=this._register(new W.Q5),this._onDecorationTypeRegistered=this._register(new W.Q5),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}}class hn{constructor(e,t,i){this._parent=e,this._editorId=t,this._styleSheet=i,this._refCount=0}ref(){this._refCount++}unref(){var e;this._refCount--,0===this._refCount&&(null===(e=this._styleSheet.parentNode)||void 0===e||e.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){Y.uN(e,this._styleSheet)}}class dn{constructor(e){this._styleSheet=e}ref(){}unref(){}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){Y.uN(e,this._styleSheet)}}let cn=class extends ln{constructor(e,t){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=e||null,this._themeService=t}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new dn(Y.dS())),this._globalStyleSheet}_getOrCreateStyleSheet(e){if(!e)return this._getOrCreateGlobalStyleSheet();const t=e.getContainerDomNode();if(!Y.OO(t))return this._getOrCreateGlobalStyleSheet();const i=e.getId();if(!this._editorStyleSheets.has(i)){const e=new hn(this,i,Y.dS(t));this._editorStyleSheets.set(i,e)}return this._editorStyleSheets.get(i)}_removeEditorStyleSheets(e){this._editorStyleSheets.delete(e)}registerDecorationType(e,t,i,n,o){let s=this._decorationOptionProviders.get(t);if(!s){const r=this._getOrCreateStyleSheet(o),a={styleSheet:r,key:t,parentTypeKey:n,options:i||Object.create(null)};s=n?new pn(this._themeService,r,a):new mn(e,this._themeService,r,a),this._decorationOptionProviders.set(t,s),this._onDecorationTypeRegistered.fire(t)}s.refCount++}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorations(e)))))}resolveDecorationOptions(e,t){const i=this._decorationOptionProviders.get(e);if(!i)throw new Error("Unknown decoration type key: "+e);return i.getOptions(this,t)}};var un,gn;cn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(un=1,gn=on.XE,function(e,t){gn(e,t,un)})],cn);class pn{constructor(e,t,i){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=i.parentTypeKey,this.refCount=0,this._beforeContentRules=new _n(3,i,e),this._afterContentRules=new _n(4,i,e)}getOptions(e,t){const i=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(i.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(i.afterContentClassName=this._afterContentRules.className),i}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class mn{constructor(e,t,i,n){this._disposables=new we.SL,this.description=e,this._styleSheet=i,this._styleSheet.ref(),this.refCount=0;const o=e=>{const i=new _n(e,n,t);if(this._disposables.add(i),i.hasContent)return i.className},s=e=>{const i=new _n(e,n,t);return this._disposables.add(i),i.hasContent?{className:i.className,hasLetterSpacing:i.hasLetterSpacing}:null};this.className=o(0);const r=s(1);if(r&&(this.inlineClassName=r.className,this.inlineClassNameAffectsLetterSpacing=r.hasLetterSpacing),this.beforeContentClassName=o(3),this.afterContentClassName=o(4),n.options.beforeInjectedText&&n.options.beforeInjectedText.contentText){const e=s(5);this.beforeInjectedText={content:n.options.beforeInjectedText.contentText,inlineClassName:null==e?void 0:e.className,inlineClassNameAffectsLetterSpacing:(null==e?void 0:e.hasLetterSpacing)||n.options.beforeInjectedText.affectsLetterSpacing}}if(n.options.afterInjectedText&&n.options.afterInjectedText.contentText){const e=s(6);this.afterInjectedText={content:n.options.afterInjectedText.contentText,inlineClassName:null==e?void 0:e.className,inlineClassNameAffectsLetterSpacing:(null==e?void 0:e.hasLetterSpacing)||n.options.afterInjectedText.affectsLetterSpacing}}this.glyphMarginClassName=o(2);const a=n.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;const l=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,h=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;void 0===l&&void 0===h||(this.overviewRuler={color:l||h,darkColor:h||l,position:a.overviewRulerLane||pe.sh.Center})}getOptions(e,t){return t?{description:this.description,inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness,before:this.beforeInjectedText,after:this.afterInjectedText}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const fn={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",fontSize:"font-size:{0};",fontFamily:"font-family:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",padding:"padding:{0};",width:"width:{0};",height:"height:{0};",verticalAlign:"vertical-align:{0};"};class _n{constructor(e,t,i){this._theme=i.getColorTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let n=vn.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(n=n+" "+vn.getClassName(this._providerArgs.parentTypeKey,e)),this._className=n,this._unThemedSelector=vn.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=i.onDidColorThemeChange((e=>{this._theme=i.getColorTheme(),this._removeCSS(),this._buildCSS()})):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){const e=this._providerArgs.options;let t,i,n;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),i=this.getCSSTextForModelDecorationClassName(e.light),n=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),i=this.getCSSTextForModelDecorationInlineClassName(e.light),n=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;case 5:t=this.getCSSTextForModelDecorationContentClassName(e.beforeInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.beforeInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.beforeInjectedText);break;case 6:t=this.getCSSTextForModelDecorationContentClassName(e.afterInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.afterInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.afterInjectedText);break;default:throw new Error("Unknown rule type: "+this._ruleType)}const o=this._providerArgs.styleSheet;let s=!1;t.length>0&&(o.insertRule(`${this._unThemedSelector} {${t}}`,0),s=!0),i.length>0&&(o.insertRule(`.vs${this._unThemedSelector} {${i}}`,0),s=!0),n.length>0&&(o.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${n}}`,0),s=!0),this._hasContent=s}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")}getCSSTextForModelDecorationInlineClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")}getCSSTextForModelDecorationContentClassName(e){if(!e)return"";const t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Ne.WU(fn.contentIconPath,Y.wY(z.o.revive(e.contentIconPath)))),"string"==typeof e.contentText){const i=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ne.WU(fn.contentText,i))}this.collectCSSText(e,["verticalAlign","fontStyle","fontWeight","fontSize","fontFamily","textDecoration","color","opacity","backgroundColor","margin","padding"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")}getCSSTextForModelDecorationGlyphMarginClassName(e){if(!e)return"";const t=[];return void 0!==e.gutterIconPath&&(t.push(Ne.WU(fn.gutterIconPath,Y.wY(z.o.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(Ne.WU(fn.gutterIconSize,e.gutterIconSize))),t.join("")}collectBorderSettingsCSSText(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ne.WU("box-sizing: border-box;")),!0)}collectCSSText(e,t,i){const n=i.length;for(let n of t){const t=this.resolveValue(e[n]);"string"==typeof t&&i.push(Ne.WU(fn[n],t))}return i.length!==n}resolveValue(e){if((0,ge.I)(e)){this._usesThemeColors=!0;const t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e}}class vn{static getClassName(e,t){return"ced-"+e+"-"+t}static getSelector(e,t,i){let n=".monaco-editor ."+this.getClassName(e,i);return t&&(n=n+"."+this.getClassName(t,i)),3===i?n+="::before":4===i&&(n+="::after"),n}}var bn=function(e,t){return function(i,n){t(i,n,e)}};let Cn=class extends cn{constructor(e,t,i){super(e,i),this.onCodeEditorAdd((()=>this._checkContextKey())),this.onCodeEditorRemove((()=>this._checkContextKey())),this._editorIsOpen=t.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,i){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===te.lg.http||i===te.lg.https)return(0,Y.V3)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Cn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([bn(1,mi.i6),bn(2,on.XE)],Cn);var wn=i(9161),yn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Sn=function(e,t){return function(i,n){t(i,n,e)}};let Ln=0,Nn=!1,xn=class extends Zi.Gm{constructor(e,t,i,n,o,s,r,a,l,h){const d=Object.assign({},t);d.ariaLabel=d.ariaLabel||ki.B8.editorViewAccessibleLabel,d.ariaLabel=d.ariaLabel+";"+ki.B8.accessibilityHelpMessage,super(e,d,{},i,n,o,s,a,l,h),this._standaloneKeybindingService=r instanceof Fi?r:null,function(e){if(!e){if(Nn)return;Nn=!0}Gi.wW(e||document.body)}(d.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let n="DYNAMIC_"+ ++Ln,o=mi.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),we.JT.None;const t=e.id,i=e.label,n=mi.Ao.and(mi.Ao.equals("editorId",this.getId()),mi.Ao.deserialize(e.precondition)),o=e.keybindings,s=mi.Ao.and(n,mi.Ao.deserialize(e.keybindingContext)),r=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new we.SL,d=this.getId()+":"+t;if(h.add(ne.P.registerCommand(d,l)),r){let e={command:{id:d,title:i},when:n,group:r,order:a};h.add(Ji.BH.appendMenuItem(Ji.eH.EditorContext,e))}if(Array.isArray(o))for(const e of o)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,e,l,s));let c=new Yi.p(d,i,i,n,l,this._contextKeyService);return this._actions[t]=c,h.add((0,we.OF)((()=>{delete this._actions[t]}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof Cn)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};xn=yn([Sn(2,tn.TG),Sn(3,Q.$),Sn(4,ne.H),Sn(5,mi.i6),Sn(6,nn.d),Sn(7,on.XE),Sn(8,Ni.lT),Sn(9,sn.F)],xn);let kn=class extends xn{constructor(e,t,i,n,o,s,r,a,l,h,d,c,u,g,p){const m=Object.assign({},t);Ui(c,m,!1);const f=h.registerEditorContainer(e);"string"==typeof m.theme&&h.setTheme(m.theme),void 0!==m.autoDetectHighContrast&&h.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast));let _,v=m.model;if(delete m.model,super(e,m,n,o,s,r,a,h,d,u),this._contextViewService=l,this._configurationService=c,this._standaloneThemeService=h,this._register(i),this._register(f),void 0===v?(_=En(g,p,m.value||"",m.language||wn.vW.text,void 0),this._ownsModel=!0):(_=v,this._ownsModel=!1),this._attachModel(_),_){let e={oldModelUrl:null,newModelUrl:_.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ui(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_attachModel(e){super._attachModel(e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};kn=yn([Sn(3,tn.TG),Sn(4,Q.$),Sn(5,ne.H),Sn(6,mi.i6),Sn(7,nn.d),Sn(8,en.u),Sn(9,Xi.Z),Sn(10,Ni.lT),Sn(11,oi.Ui),Sn(12,sn.F),Sn(13,ct.q),Sn(14,ve.h)],kn);let Dn=class extends Qi.p{constructor(e,t,i,n,o,s,r,a,l,h,d,c,u,g,p){const m=Object.assign({},t);Ui(c,m,!0);const f=h.registerEditorContainer(e);"string"==typeof m.theme&&h.setTheme(m.theme),void 0!==m.autoDetectHighContrast&&h.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast)),super(e,m,{},p,a,o,n,l,h,d,u,g),this._contextViewService=r,this._configurationService=c,this._standaloneThemeService=h,this._register(i),this._register(f),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(e){Ui(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(xn,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function En(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),In(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return In(e,i,t.create(n),o)}function In(e,t,i,n){return e.createModel(t,i,n)}Dn=yn([Sn(3,tn.TG),Sn(4,mi.i6),Sn(5,nn.d),Sn(6,en.u),Sn(7,_e.p),Sn(8,Q.$),Sn(9,Xi.Z),Sn(10,Ni.lT),Sn(11,oi.Ui),Sn(12,en.i),Sn(13,an.e),Sn(14,rn.p)],Dn);var Tn=i(5553),Mn=i(6325);const An=Object.prototype.hasOwnProperty;class Rn{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(fe.TG,0),this._register(Tn.XT,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||fe.TG}}class On extends we.JT{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new W.Q5),this.onDidChange=this._onDidChange.event,On.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Rn,this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(Tn.dQ.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){On.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},wn.bS();const e=Tn.dQ.getLanguages();this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),Mn.B.as(ri.IP.Configuration).registerOverrideIdentifiers(Tn.dQ.getLanguages().map((e=>e.id))),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;An.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let e of t.extensions)wn.sA({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let o of t.filenames)wn.sA({id:i,mime:n,filename:o},this._warnOnOverwrite),e.filenames.push(o);if(Array.isArray(t.filenamePatterns))for(let e of t.filenamePatterns)wn.sA({id:i,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);Ne.IO(t)||wn.sA({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(e){(0,ye.dL)(e)}}e.aliases.push(i);let o=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const t of o)t&&0!==t.length&&e.aliases.push(t);let s=null!==o&&o.length>0;if(s&&null===o[0]);else{let t=(s?o[0]:null)||i;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration)}isRegisteredMode(e){return!!An.call(this._mimeTypesMap,e)||An.call(this._languages,e)}getModeIdForLanguageNameLowercase(e){return An.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e]:null}extractModeIds(e){return e?e.split(",").map((e=>e.trim())).map((e=>An.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:e)).filter((e=>An.call(this._languages,e))):[]}validateLanguageId(e){return e&&e!==fe.TG?An.call(this._languages,e)?e:null:fe.TG}getModeIdsFromFilepathOrFirstLine(e,t){if(!e&&!t)return[];let i=wn.G8(e,t);return this.extractModeIds(i.join(","))}}On.instanceCount=0;class Pn{constructor(e,t){let i;this._selector=t,this.languageId=this._selector(),this._onDidChange=new W.Q5({onFirstListenerAdd:()=>{i=e((()=>this._evaluate()))},onLastListenerRemove:()=>{i.dispose()}}),this.onDidChange=this._onDidChange.event}_evaluate(){const e=this._selector();e!==this.languageId&&(this.languageId=e,this._onDidChange.fire(this.languageId))}}class Fn extends we.JT{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new W.Q5),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onLanguagesMaybeChanged=this._register(new W.Q5({leakWarningThreshold:200})),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,Fn.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new On(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onLanguagesMaybeChanged.fire())))}dispose(){Fn.instanceCount--,super.dispose()}isRegisteredMode(e){return this._registry.isRegisteredMode(e)}getModeIdForLanguageName(e){return this._registry.getModeIdForLanguageNameLowercase(e)}getModeIdByFilepathOrFirstLine(e,t){const i=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return(0,gt.Xh)(i,null)}getModeId(e){const t=this._registry.extractModeIds(e);return(0,gt.Xh)(t,null)}validateLanguageId(e){return this._registry.validateLanguageId(e)}create(e){return new Pn(this.onLanguagesMaybeChanged,(()=>{const t=this.getModeId(e);return this._createModeAndGetLanguageIdentifier(t)}))}createByFilepathOrFirstLine(e,t){return new Pn(this.onLanguagesMaybeChanged,(()=>{const i=this.getModeIdByFilepathOrFirstLine(e,t);return this._createModeAndGetLanguageIdentifier(i)}))}_createModeAndGetLanguageIdentifier(e){const t=this.validateLanguageId(e||"plaintext")||fe.TG;return this._getOrCreateMode(t),t}triggerMode(e){const t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")}_getOrCreateMode(e){if(!this._encounteredLanguages.has(e)){this._encounteredLanguages.add(e);const t=this.validateLanguageId(e)||fe.TG;this._onDidEncounterLanguage.fire(t)}}}Fn.instanceCount=0;var Bn=i(5814),Vn=i(6741);class Wn{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}const Hn=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class zn{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(Hn);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=Vn.Il.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class Kn{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];let t=[],i=0;for(let n=0,o=e.length;n{let i=function(e,t){return et?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",o="ffffff";for(;e.length>=1&&""===e[0].token;){let t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(o=t.background)}let s=new zn;for(let e of t)s.getId(e);let r=s.getId(n),a=s.getId(o),l=new $n(i,r,a),h=new jn(l);for(let t=0,i=e.length;t>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const Un=/\b(comment|string|regex|regexp)\b/;class $n{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new $n(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class jn{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;let t,i,n=e.indexOf(".");-1===n?(t=e,i=""):(t=e.substring(0,n),i=e.substring(n+1));let o=this._children.get(t);return void 0!==o?o.match(i):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);let o,s,r=e.indexOf(".");-1===r?(o=e,s=""):(o=e.substring(0,r),s=e.substring(r+1));let a=this._children.get(o);void 0===a&&(a=new jn(this._mainRule.clone()),this._children.set(o,a)),a.insert(s,t,i,n)}}var qn=i(1248),Gn=i(2537);const Zn={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[Gn.cv]:"#FFFFFE",[Gn.NO]:"#000000",[Gn.ES]:"#E5EBF1",[qn.tR]:"#D3D3D3",[qn.Ym]:"#939393",[Gn.Rz]:"#ADD6FF4D"}},Qn={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Gn.cv]:"#1E1E1E",[Gn.NO]:"#D4D4D4",[Gn.ES]:"#3A3D41",[qn.tR]:"#404040",[qn.Ym]:"#707070",[Gn.Rz]:"#ADD6FF26"}},Yn={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Gn.cv]:"#000000",[Gn.NO]:"#FFFFFF",[qn.tR]:"#FFFFFF",[qn.Ym]:"#FFFFFF"}};var Xn=i(9914),Jn=i(9528);const eo="vs",to="vs-dark",io="hc-black",no=Mn.B.as(Gn.IP.ColorContribution),oo=Mn.B.as(on.IP.ThemingContribution);class so{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(ro(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,Vn.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=ao(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,Vn.Il.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=no.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case eo:return Xn.e.LIGHT;case io:return Xn.e.HIGH_CONTRAST;default:return Xn.e.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=ao(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Kn.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,o=me.NX.getForeground(n),s=me.NX.getFontStyle(n);return{foreground:o,italic:Boolean(1&s),bold:Boolean(2&s),underline:Boolean(4&s)}}}function ro(e){return e===eo||e===to||e===io}function ao(e){switch(e){case eo:return Zn;case to:return Qn;case io:return Yn}}function lo(e){let t=ao(e);return new so(e,t)}class ho extends we.JT{constructor(){super(),this._onColorThemeChange=this._register(new W.Q5),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(eo,lo(eo)),this._knownThemes.set(to,lo(to)),this._knownThemes.set(io,lo(io));const e=function(){const e=new W.Q5,t=(0,Jn.Ks)();return t.onDidChange((()=>e.fire())),{onDidChange:e.event,getCSS(){const e={},i=i=>{let n=i.defaults;for(;on.kS.isThemeIcon(n);){const e=t.getIcon(n.id);if(!e)return;n=e.defaults}const o=n.fontId;if(o){const s=t.getIconFont(o);if(s)return e[o]=s,`.codicon-${i.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,Y._h)(o)}; }`}return`.codicon-${i.id}:before { content: '${n.fontCharacter}'; }`},n=[];for(let e of t.getIcons()){const t=i(e);t&&n.push(t)}for(let t in e){const i=e[t].definition.src.map((e=>`${(0,Y.wY)(e.location)} format('${e.format}')`)).join(", ");n.push(`@font-face { src: ${i}; font-family: ${(0,Y._h)(t)}; font-display: block; }`)}return n.join("\n")}}}();this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(eo),e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),Y.uB("(forced-colors: active)",(()=>{this._updateActualTheme()}))}registerEditorContainer(e){return Y.OO(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Y.dS(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),we.JT.None}_registerShadowDomContainer(e){const t=Y.dS(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(eo),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){const e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(io):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};oo.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){let t=[];for(let i=1,n=e.length;ie.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var co=i(7865);const uo="data-keybinding-context";class go{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class po extends go{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}po.INSTANCE=new po;class mo extends go{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=J.Id.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(6===e.source){const e=Array.from(co.$.map(this._values,(([e])=>e)));this._values.clear(),i.fire(new vo(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...co.$.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new vo(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(mo._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(mo._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}mo._keyPrefix="config.";class fo{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class _o{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class vo{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class bo{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class Co{constructor(e){this._onDidChangeContext=new W.K3({merge:e=>new bo(e)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new fo(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new yo(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return fi.contextMatchesRules(t,e)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new _o(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new _o(e))}getContext(e){return this._isDisposed?po.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(uo)){const t=e.getAttribute(uo);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}}let wo=class extends Co{constructor(e){super(0),this._contexts=new Map,this._toDispose=new we.SL,this._lastContextId=0;const t=new mo(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?po.INSTANCE:this._contexts.get(e)||po.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new go(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};wo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,oi.Ui)],wo);class yo extends Co{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new we.XK,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(uo)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(uo,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(uo),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?po.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}ne.P.registerCommand(mi.Eq,(function(e,t,i){e.get(mi.i6).createKey(String(t),i)})),ne.P.registerCommand({id:"getContextKeyInfo",handler:()=>[...mi.uy.all()].sort(((e,t)=>e.key.localeCompare(t.key))),description:{description:(0,ci.N)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),ne.P.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(let i of mi.uy.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var So,Lo=i(8554),No=i(9449),xo=i(1488),ko=i(265),Do=i(7235),Eo=i(5898),Io=i(7397),To=i(3092),Mo=i(9004);function Ao(e,t,i){const n=i.mode===So.ALIGN?i.offset:i.offset+i.size,o=i.mode===So.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(So||(So={}));class Ro extends we.JT{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=we.JT.None,this.toDisposeOnSetContainer=we.JT.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=Y.$(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Y.Cp(this.view),this.setContainer(e,t),this._register((0,we.OF)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM){this.shadowRootHostElement=Y.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=Oo,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(Y.$("slot"))}else this.container.appendChild(this.view);const i=new we.SL;Ro.BUBBLE_UP_EVENTS.forEach((e=>{i.add(Y.mu(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Ro.BUBBLE_DOWN_EVENTS.forEach((e=>{i.add(Y.mu(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=i}}show(e){this.isVisible()&&this.hide(),Y.PO(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",Y.$Z(this.view),this.toDisposeOnClean=e.render(this.view)||we.JT.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||Se.gn&&To.D.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let e,t=this.delegate.getAnchor();if(Y.Re(t)){let i=Y.i(t);e={top:i.top,left:i.left,width:i.width,height:i.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};const i=Y.w(this.view),n=Y.wn(this.view),o=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0;let r,a;if(0===(this.delegate.anchorAxisAlignment||0)){const t={offset:e.top-window.pageYOffset,size:e.height,position:0===o?0:1},l={offset:e.left,size:e.width,position:0===s?0:1,mode:So.ALIGN};r=Ao(window.innerHeight,n,t)+window.pageYOffset,Mo.e.intersects({start:r,end:r+n},{start:t.offset,end:t.offset+t.size})&&(l.mode=So.AVOID),a=Ao(window.innerWidth,i,l)}else{const t={offset:e.left,size:e.width,position:0===s?0:1},l={offset:e.top,size:e.height,position:0===o?0:1,mode:So.ALIGN};a=Ao(window.innerWidth,i,t),Mo.e.intersects({start:a,end:a+i},{start:t.offset,end:t.offset+t.size})&&(l.mode=So.AVOID),r=Ao(window.innerHeight,n,l)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===s?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const l=Y.i(this.container);this.view.style.top=r-(this.useFixedPosition?Y.i(this.view).top:l.top)+"px",this.view.style.left=a-(this.useFixedPosition?Y.i(this.view).left:l.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null==t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),Y.Cp(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Y.jg(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Ro.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Ro.BUBBLE_DOWN_EVENTS=["click"];let Oo='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tfont-display: block;\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Po=i(8638),Fo=i(8299),Bo=i(407),Vo=i(5858);const Wo=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Ho=/(&)?(&)([^\s&])/g,zo=(0,Bo.CM)("menu-selection",Bo.lA.check),Ko=(0,Bo.CM)("menu-submenu",Bo.lA.chevronRight);var Uo;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(Uo||(Uo={}));class $o extends Do.o{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Se.dz||Se.IJ?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new we.SL),this.initializeStyleSheet(e),this._register(ko.o.addTarget(n)),(0,Y.nm)(n,Y.tw.KEY_DOWN,(e=>{new Yt.y(e).equals(2)&&e.preventDefault()})),i.enableMnemonics&&this.menuDisposables.add((0,Y.nm)(n,Y.tw.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){Y.zB.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof qo&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),Se.IJ&&this._register((0,Y.nm)(n,Y.tw.KEY_DOWN,(e=>{const t=new Yt.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Y.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Y.zB.stop(e,!0))}))),this._register((0,Y.nm)(this.domNode,Y.tw.MOUSE_OUT,(e=>{let t=e.relatedTarget;(0,Y.jg)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,Y.nm)(this.actionsList,Y.tw.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,Y.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ko.o.addTarget(this.actionsList)),this._register((0,Y.nm)(this.actionsList,ko.t.Tap,(e=>{let t=e.initialTarget;if(t&&(0,Y.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Po.s$(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const s=this.scrollableElement.getDomNode();s.style.position="",this._register((0,Y.nm)(n,ko.t.Change,(e=>{Y.zB.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,Y.nm)(s,Y.tw.MOUSE_UP,(e=>{e.preventDefault()}))),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((e=>{var t;return!(null===(t=i.submenuIds)||void 0===t?void 0:t.has(e.id))||(console.warn(`Found submenu cycle: ${e.id}`),!1)})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Go))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeStyleSheet(e){(0,Y.OO)(e)?(this.styleSheet=(0,Y.dS)(e),this.styleSheet.textContent=Zo):($o.globalStyleSheet||($o.globalStyleSheet=(0,Y.dS)(),$o.globalStyleSheet.textContent=Zo),this.styleSheet=$o.globalStyleSheet)}style(e){const t=this.getContainer(),i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",o=e.borderColor?`1px solid ${e.borderColor}`:"",s=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=s,this.viewItems&&this.viewItems.forEach((t=>{(t instanceof jo||t instanceof Go)&&t.style(e)}))}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register((0,Y.nm)(this.element,Y.tw.MOUSE_UP,(e=>{if(Y.zB.stop(e,!0),xo.vU){if(new No.n(e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,Y.nm)(this.element,Y.tw.CONTEXT_MENU,(e=>{Y.zB.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,Y.R3)(this.element,(0,Y.$)("a.action-menu-item")),this._action.id===Fo.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,Y.R3)(this.item,(0,Y.$)("span.menu-item-check"+zo.cssSelector)),this.check.setAttribute("role","none"),this.label=(0,Y.R3)(this.item,(0,Y.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,Y.R3)(this.item,(0,Y.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,Y.PO)(this.label);let e=(0,Vo.x$)(this.getAction().label);if(e){const t=function(e){const t=Wo,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=Wo.exec(e);if(i){e=Ne.YU(e),Ho.lastIndex=0;let t=Ho.exec(e);for(;t&&t[1];)t=Ho.exec(e);const n=e=>e.replace(/&&/g,"&");t?this.label.append(Ne.j3(n(e.substr(0,t.index))," "),(0,Y.$)("u",{"aria-hidden":"true"},t[3]),Ne.oL(n(e.substr(t.index+t[0].length))," ")):this.label.innerText=n(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=ci.N({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=n)}style(e){this.menuStyle=e,this.applyStyle()}}class qo extends jo{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new we.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:Uo.Right,this.showScheduler=new Ce.pY((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new Ce.pY((()=>{this.element&&!(0,Y.jg)((0,Y.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,Y.R3)(this.item,(0,Y.$)("span.submenu-indicator"+Ko.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,Y.nm)(this.element,Y.tw.KEY_UP,(e=>{let t=new Yt.y(e);(t.equals(17)||t.equals(3))&&(Y.zB.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,Y.nm)(this.element,Y.tw.KEY_DOWN,(e=>{let t=new Yt.y(e);(0,Y.vY)()===this.item&&(t.equals(17)||t.equals(3))&&Y.zB.stop(e,!0)}))),this._register((0,Y.nm)(this.element,Y.tw.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,Y.nm)(this.element,Y.tw.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,Y.nm)(this.element,Y.tw.FOCUS_OUT,(e=>{this.element&&!(0,Y.jg)((0,Y.vY)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)}))))}updateEnabled(){}onClick(e){Y.zB.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=Ao(e.width,t.width,{position:n===Uo.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new Yt.y(e).equals(15)&&(Y.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,Y.nm)(this.submenuContainer,Y.tw.KEY_DOWN,(e=>{new Yt.y(e).equals(15)&&Y.zB.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?`${e}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Go extends Eo.g{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}let Zo=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${(0,Io.a)(zo)}\n${(0,Io.a)(Ko)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;var Qo=i(3003);class Yo{constructor(e,t,i,n,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=document.activeElement;let n=(0,Y.Re)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{let o=e.getMenuClassName?e.getMenuClassName():"";o&&(n.className+=" "+o),this.options.blockMouse&&(this.block=n.appendChild((0,Y.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",(0,Y.nm)(this.block,Y.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const s=new we.SL,r=e.actionRunner||new Fo.Wi;return r.onBeforeRun(this.onActionRun,this,s),r.onDidRun(this.onDidActionRun,this,s),i=new $o(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:r,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)}),s.add((0,Qo.tj)(i,this.themeService)),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,s),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,s),s.add((0,Y.nm)(window,Y.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),s.add((0,Y.nm)(window,Y.tw.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;let t=new No.n(e),i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,we.F8)(s,i)},focus:()=>{i&&i.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide&&e.onHide(!!t),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!(0,ye.VV)(e.error)&&this.notificationService.error(e.error)}}var Xo=function(e,t){return function(i,n){t(i,n,e)}};let Jo=class extends we.JT{constructor(e,t,i,n,o){super(),this.contextMenuHandler=new Yo(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(e),Y._q.getInstance().resetKeyStatus()}};Jo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Xo(0,Lo.b),Xo(1,Ni.lT),Xo(2,en.u),Xo(3,nn.d),Xo(4,on.XE)],Jo);const es=(0,tn.yh)("layoutService");let ts=class extends we.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=we.JT.None,this.container=e.container,this.contextView=this._register(new Ro(this.container,1)),this.layout(),this._register(e.onDidLayout((()=>this.layout())))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t!==this.container&&(this.container=t,this.setContainer(t,i?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const n=(0,we.OF)((()=>{this.currentViewDisposable===n&&this.hideContextView()}));return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};ts=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,es)],ts);var is=i(5267),ns=i(840);class os{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class ss{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new os(e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){let e=[];for(let[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join("\n")}findCycleSlow(){for(let[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(let[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var rs=i(8596);class as extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class ls{constructor(e=new rs.y,t=!1,i){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=i,this._services.set(tn.TG,this)}createChild(e){return new ls(e,this._strict,this)}invokeFunction(e,...t){let i=hs.traceInvocation(e),n=!1;try{return e({get:(e,t)=>{if(n)throw(0,ye.L6)("service accessor is only valid during the invocation of its target method");const o=this._getOrCreateServiceInstance(e,i);if(!o&&t!==tn.jt)throw new Error(`[invokeFunction] unknown service '${e}'`);return o}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof ns.M?(i=hs.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=hs.traceCreation(e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){let n=tn.I8.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),o=[];for(const t of n){let n=this._getOrCreateServiceInstance(t.id,i);if(!n&&this._strict&&!t.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);o.push(n)}let s=n.length>0?n[0].index:t.length;if(t.length!==s){console.warn(`[createInstance] First service dependency of ${e.name} at position ${s+1} conflicts with ${t.length} static arguments`);let i=s-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,s)}return new e(...[...t,...o])}_setServiceInstance(e,t){if(this._services.get(e)instanceof ns.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let i=this._getServiceInstanceOrDescriptor(e);return i instanceof ns.M?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const n=new ss((e=>e.id.toString()));let o=0;const s=[{id:e,desc:t,_trace:i}];for(;s.length;){const t=s.pop();if(n.lookupOrInsertNode(t),o++>1e3)throw new as(n);for(let i of tn.I8.getServiceDependencies(t.desc.ctor)){let o=this._getServiceInstanceOrDescriptor(i.id);if(o||i.optional||console.warn(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`),o instanceof ns.M){const e={id:i.id,desc:o,_trace:t._trace.branch(i.id,!0)};n.insertEdge(t,e),s.push(e)}}}for(;;){const e=n.roots();if(0===e.length){if(!n.isEmpty())throw new as(n);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof ns.M){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}n.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof ns.M)return this._createServiceInstance(t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t=[],i,n){if(i){const i=new Ce.Ue((()=>this._createInstance(e,t,n)));return new Proxy(Object.create(null),{get(e,t){if(t in e)return e[t];let n=i.value,o=n[t];return"function"!=typeof o||(o=o.bind(n),e[t]=o),o},set:(e,t,n)=>(i.value[t]=n,!0)})}return this._createInstance(e,t,n)}}class hs{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return hs._None}static traceCreation(e){return hs._None}branch(e,t){let i=new hs(2,e.toString());return this._dep.push([e,t,i]),i}stop(){let e=Date.now()-this._start;hs._totals+=e;let t=!1,i=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){let o=[],s=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,o.push(`${s}CREATES -> ${r}`);let n=e(i+1,l);n&&o.push(n)}else o.push(`${s}uses -> ${r}`);return o.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${hs._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(i.join("\n"))}}hs._None=new class extends hs{constructor(){super(-1,null)}stop(){}branch(){return this}},hs._totals=0;var ds=i(8680),cs=i(3857),us=i(6156);class gs{constructor(){this._byResource=new J.Y9,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new J.Y9,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){let i=this._byResource.get(e);return null==i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1,o=this._byResource.get(e);o&&(i=o.delete(t));let s=this._byOwner.get(t);if(s&&(n=s.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return"string"==typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:co.$.empty():z.o.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:co.$.empty():co.$.map(co.$.concat(...this._byOwner.values()),(e=>e[1]))}}class ps{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new J.Y9,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===te.lg.inMemory||e.scheme===te.lg.walkThrough||e.scheme===te.lg.walkThroughSnippet)return t;for(const{severity:i}of this._service.read({resource:e}))i===us.ZL.Error?t.errors+=1:i===us.ZL.Warning?t.warnings+=1:i===us.ZL.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class ms{constructor(){this._onMarkerChanged=new W.D0({delay:0,merge:ms._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new gs,this._stats=new ps(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,gt.XY)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const i=ms._toMarker(e,t,o);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,tags:u}=i;if(s)return a=a>0?a:1,l=l>0?l:1,h=h>=a?h:a,d=d>0?d:l,{resource:t,owner:e,code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,tags:u}}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(ms._accept(i,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=this._data.values(null!=i?i:t),s=[];for(const t of e)for(const e of t)if(ms._accept(e,n)){const t=s.push(e);if(o>0&&t===o)return s}return s}{const e=[];for(let t of this._data.values())for(let i of t)if(ms._accept(i,n)){const t=e.push(i);if(o>0&&t===o)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new J.Y9;for(let i of e)for(let e of i)t.set(e,!0);return Array.from(t.keys())}}var fs=i(7508),_s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},vs=function(e,t){return function(i,n){t(i,n,e)}};let bs=class{constructor(e){this._commandService=e}createMenu(e,t,i){return new Cs(e,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};bs=_s([vs(0,ne.H)],bs);let Cs=class e{constructor(e,t,i,n,o){this._id=e,this._options=t,this._commandService=i,this._contextKeyService=n,this._menuService=o,this._disposables=new we.SL,this._menuGroups=[],this._contextKeys=new Set,this._build();const s=new Ce.pY((()=>{this._build(),this._onDidChange.fire(this)}),t.eventDebounceDelay);this._disposables.add(s),this._disposables.add(Ji.BH.onDidChangeMenu((t=>{t.has(e)&&s.schedule()})));const r=this._disposables.add(new we.SL);this._onDidChange=new W.Q5({onFirstListenerAdd:()=>{const e=new Ce.pY((()=>this._onDidChange.fire(this)),t.eventDebounceDelay);r.add(e),r.add(n.onDidChangeContext((t=>{t.affectsSome(this._contextKeys)&&e.schedule()})))},onLastListenerRemove:r.clear.bind(r)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const t=Ji.BH.getMenuItems(this._id);let i;t.sort(e._compareMenuItems);for(const e of t){const t=e.group||"";i&&i[0]===t||(i=[t,[]],this._menuGroups.push(i)),i[1].push(e),this._collectContextKeys(e)}}_collectContextKeys(t){if(e._fillInKbExprKeys(t.when,this._contextKeys),(0,Ji.vr)(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled){const i=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(i,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&Ji.BH.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(let i of this._menuGroups){const[n,o]=i,s=[];for(const t of o)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,Ji.vr)(t)?new Ji.U8(t.command,t.alt,e,this._contextKeyService,this._commandService):new Ji.NZ(t,this._menuService,this._contextKeyService,e);s.push(i)}s.length>0&&t.push([n,s])}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(t,i){let n=t.group,o=i.group;if(n!==o){if(!n)return 1;if(!o)return-1;if("navigation"===n)return-1;if("navigation"===o)return 1;let e=n.localeCompare(o);if(0!==e)return e}let s=t.order||0,r=i.order||0;return sr?1:e._compareTitles((0,Ji.vr)(t)?t.command.title:t.title,(0,Ji.vr)(i)?i.command.title:i.title)}static _compareTitles(e,t){const i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};Cs=_s([vs(2,ne.H),vs(3,mi.i6),vs(4,Ji.co)],Cs);var ws=i(7322),ys=function(e,t){return function(i,n){t(i,n,e)}};class Ss extends we.JT{constructor(e){super(),this.model=e,this._markersData=new Map,this._register((0,we.OF)((()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()})))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let t=0;tthis._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Ss(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==te.lg.inMemory&&e.uri.scheme!==te.lg.internal&&e.uri.scheme!==te.lg.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});let i=t.map((t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)})));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=U.e.lift(t);return t.severity!==us.ZL.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),e.validateRange(i)}_createDecorationOption(e){let t,i,n,o,s;switch(e.severity){case us.ZL.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case us.ZL.Warning:t="squiggly-warning",i=(0,on.EN)(qn.Re),n=20,s={color:(0,on.EN)(Gn.Iv),position:pe.F5.Inline};break;case us.ZL.Info:t="squiggly-info",i=(0,on.EN)(qn.eS),n=10;break;case us.ZL.Error:default:t="squiggly-error",i=(0,on.EN)(qn.lK),n=30,s={color:(0,on.EN)(Gn.Gj),position:pe.F5.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:pe.sh.Right},minimap:s,zIndex:n,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}};Ls=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ys(0,ct.q),ys(1,us.lT)],Ls);var Ns=i(3061),xs=function(e,t){return function(i,n){t(i,n,e)}};let ks=class extends we.JT{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new W.Q5,this._accessibilityModeEnabledContext=sn.U.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())}))),i(),this.onDidChangeScreenReaderOptimized((()=>i()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};ks=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xs(0,mi.i6),xs(1,oi.Ui)],ks);var Ds=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Es{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(e,t){return Ds(this,void 0,void 0,(function*(){if(t)return void this.mapTextToType.set(t,e);try{return yield navigator.clipboard.writeText(e)}catch(e){console.error(e)}const i=document.activeElement,n=document.body.appendChild((0,Y.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)}))}readText(e){return Ds(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(e){return console.error(e),""}}))}readFindText(){return Ds(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return Ds(this,void 0,void 0,(function*(){this.findText=e}))}}var Is=i(8900),Ts=function(e,t){return function(i,n){t(i,n,e)}},Ms=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function As(e){return e.scheme===te.lg.file?e.fsPath:e.path}let Rs=0;class Os{constructor(e,t,i,n,o,s,r){this.id=++Rs,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ps{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Fs{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push(ci.N({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(ci.N({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Bs{constructor(e,t,i,n,o,s,r){this.id=++Rs,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new Fs),this.removedResources.has(t)||this.removedResources.set(t,new Ps(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Fs),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Ps(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Vs{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let e=0,i=this._past.length;e=0;e--)t.push(this._future[e].id);return new Is.YO(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let s=0,r=this._past.length;s=t||r.id!==e.elements[n])&&(i=!1,o=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let o=this._future.length-1;o>=0;o--,n++){const r=this._future[o];i&&(n>=t||r.id!==e.elements[n])&&(i=!1,s=o),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){const e=[],t=[];for(const t of this._past)e.push(t.actual);for(const e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Ws{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;et.sourceOrder)&&(t=s,i=n)}return[t,i]}canUndo(e){if(e instanceof Is.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){(0,ye.dL)(e);for(const e of t.strResources)this.removeElements(e);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const s=this._acquireLocks(i);let r;try{r=t()}catch(t){return s(),n.dispose(),this._onError(t,e)}return r?r.then((()=>(s(),n.dispose(),o())),(t=>(s(),n.dispose(),this._onError(t,e)))):(s(),n.dispose(),o())}_invokeWorkspacePrepare(e){return Ms(this,void 0,void 0,(function*(){if(void 0===e.actual.prepareUndoRedo)return we.JT.None;const t=e.actual.prepareUndoRedo();return void 0===t?we.JT.None:t}))}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(we.JT.None);const i=e.actual.prepareUndoRedo();return i?(0,we.Wf)(i)?t(i):i.then((e=>t(e))):t(we.JT.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||Hs);return new Ws(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ks(this._undo(e,0,!0));for(const e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new Ks}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,ci.N({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,ci.N({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const e of i.editStacks)e.getClosestPastElement()!==t&&o.push(e.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,ci.N({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,ci.N({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,ci.N({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ms(this,void 0,void 0,(function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const o=yield this._dialogService.show(Jt.Z.Info,ci.N("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[ci.N({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),ci.N("nok","Undo this File"),ci.N("cancel","Cancel")],{cancelId:2});if(2===o.choice)return;if(1===o.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const s=this._checkWorkspaceUndo(e,t,i,!1);if(s)return s.returnValue;n=!0}let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return o.dispose(),s.returnValue;for(const e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,o,(()=>this._continueUndoInGroup(t.groupId,n)))}))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Ws([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=ci.N({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Is.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(o){if(o.groupId){const[e,n]=this._findClosestUndoElementInGroup(o.groupId);if(o!==e&&n)return this._undo(n,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return 1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}}_confirmAndContinueUndo(e,t,i){return Ms(this,void 0,void 0,(function*(){if(1!==(yield this._dialogService.show(Jt.Z.Info,ci.N("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[ci.N("confirmDifferentSource.yes","Yes"),ci.N("cancel","Cancel")],{cancelId:1})).choice)return this._undo(e,t,!0)}))}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,ci.N({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,ci.N({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,ci.N({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return Ms(this,void 0,void 0,(function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Ws([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=ci.N({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ts(0,is.S),Ts(1,Ni.lT)],zs);class Ks{constructor(e){this.returnValue=e}}(0,Ns.z)(Is.tJ,zs);var Us=i(5298),$s=i(9111);const js={buttonBackground:Vn.Il.fromHex("#0E639C"),buttonHoverBackground:Vn.Il.fromHex("#006BB3"),buttonForeground:Vn.Il.white};class qs extends we.JT{constructor(e,t){super(),this._onDidClick=this._register(new W.Q5),this.options=t||Object.create(null),(0,si.jB)(this.options,js,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(ko.o.addTarget(this._element)),[Y.tw.CLICK,ko.t.Tap].forEach((e=>{this._register((0,Y.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):Y.zB.stop(e)})))})),this._register((0,Y.nm)(this._element,Y.tw.KEY_DOWN,(e=>{const t=new Yt.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&Y.zB.stop(t,!0)}))),this._register((0,Y.nm)(this._element,Y.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.setHoverBackground()}))),this._register((0,Y.nm)(this._element,Y.tw.MOUSE_OUT,(e=>{this.applyStyles()}))),this.focusTracker=this._register((0,Y.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>this.setHoverBackground()))),this._register(this.focusTracker.onDidBlur((()=>this.applyStyles()))),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,Y.mc)(this._element,...(0,$s.T)(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}var Gs=i(4404);const Zs="done",Qs="active",Ys="infinite",Xs="discrete",Js={progressBarBackground:Vn.Il.fromHex("#0E70C0")};class er extends we.JT{constructor(e,t){super(),this.options=t||Object.create(null),(0,si.jB)(this.options,Js,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new Ce.pY((()=>(0,Y.$Z)(this.element)),0)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(Qs,Ys,Xs),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Zs),this.element.classList.contains(Ys)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Xs,Zs),this.element.classList.add(Qs,Ys),this}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}var tr=i(6100);const ir={},nr=new tr.R("quick-input-button-icon-");function or(e){if(!e)return;let t;const i=e.dark.toString();return ir[i]?t=ir[i]:(t=nr.nextId(),Y.fk(`.${t}`,`background-image: ${Y.wY(e.light||e.dark)}`),Y.fk(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${Y.wY(e.dark)}`),ir[i]=t),t}var sr=i(4304),rr=i(2014);const ar=Y.$;class lr extends we.JT{constructor(e){super(),this.parent=e,this.onKeyDown=e=>Y.nm(this.inputBox.inputElement,Y.tw.KEY_DOWN,(t=>{e(new Yt.y(t))})),this.onMouseDown=e=>Y.nm(this.inputBox.inputElement,Y.tw.MOUSE_DOWN,(t=>{e(new No.n(t))})),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=Y.R3(this.parent,ar(".quick-input-box")),this.inputBox=this._register(new rr.W(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Jt.Z.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Jt.Z.Info?1:e===Jt.Z.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Jt.Z.Info?1:e===Jt.Z.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}var hr=i(6357),dr=i(4449);const cr=Y.$;class ur{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=Y.R3(e,cr(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&ur.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(Y.R3(this.domNode,cr("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){Y.PO(this.domNode),this.keyElements.clear()}renderPart(e,t,i){const n=yi.xo.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,Boolean(null==i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,Boolean(null==i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,Boolean(null==i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,Boolean(null==i?void 0:i.metaKey),n.separator);const o=t.keyLabel;o&&this.renderKey(e,o,Boolean(null==i?void 0:i.keyCode),"")}renderKey(e,t,i,n){Y.R3(e,this.createKeyElement(t,i?".highlight":"")),n&&Y.R3(e,cr("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){Y.R3(e,this.createKeyElement((0,ci.N)("unbound","Unbound")))}createKeyElement(e,t=""){const i=cr("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),i}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(const t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.labelShadow}`);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,si.fS)(e.firstPart,t.firstPart)&&(0,si.fS)(e.chordPart,t.chordPart)}}const gr=new Ce.Ue((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));var pr=i(4848),mr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const fr=Y.$;class _r{constructor(e){this.hidden=!1,this._onChecked=new W.Q5,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class vr{get templateId(){return vr.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=Y.R3(e,fr(".quick-input-list-entry"));const i=Y.R3(t.entry,fr("label.quick-input-list-label"));t.toDisposeTemplate.push(Y.mu(i,Y.tw.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=Y.R3(i,fr("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(Y.mu(t.checkbox,Y.tw.CHANGE,(e=>{t.element.checked=t.checkbox.checked})));const n=Y.R3(i,fr(".quick-input-list-rows")),o=Y.R3(n,fr(".quick-input-list-row")),s=Y.R3(n,fr(".quick-input-list-row"));t.label=new dr.g(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const r=Y.R3(o,fr(".quick-input-list-entry-keybinding"));t.keybinding=new ur(r,Se.OS);const a=Y.R3(s,fr(".quick-input-list-label-meta"));return t.detail=new hr.q(a,!0),t.separator=Y.R3(t.entry,fr(".quick-input-list-separator")),t.actionBar=new Do.o(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=(0,we.B9)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked((e=>i.checkbox.checked=e)));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:s}=e,r=Object.create(null);r.matches=n||[],r.descriptionTitle=e.saneDescription,r.descriptionMatches=o||[],r.extraClasses=e.item.iconClasses,r.italic=e.item.italic,r.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,r),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,s),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const a=e.item.buttons;a&&a.length?(i.actionBar.push(a.map(((t,i)=>{let n=t.iconClass||(t.iconPath?or(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");const o=new Fo.aU(`id-${i}`,"",n,!0,(()=>{return i=this,n=void 0,s=function*(){e.fireButtonTriggered({button:t,item:e.item})},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}));return o.tooltip=t.tooltip||"",o})),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,we.B9)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=(0,we.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,we.B9)(e.toDisposeTemplate)}}vr.ID="listelement";class br{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return vr.ID}}var Cr;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage"}(Cr||(Cr={}));class wr{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new W.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new W.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new W.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new W.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new W.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new W.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new W.Q5,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=Y.R3(this.parent,fr(".quick-input-list"));const n=new br,o=new yr;this.list=i.createList("QuickInput",this.container,n,[new vr],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown((e=>{const t=new Yt.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(Se.dz?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,gt.w6)(this.list.length));break;case 16:const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break;case 18:const i=this.list.getFocus();1===i.length&&i[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(t)}))),this.disposables.push(this.list.onMouseDown((e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()}))),this.disposables.push(Y.nm(this.container,Y.tw.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()}))),this.disposables.push(this.list.onMouseMiddleClick((e=>{this._onLeave.fire()}))),this.disposables.push(this.list.onContextMenu((e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))}))),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return W.ju.map(this.list.onDidChangeFocus,(e=>e.elements.map((e=>e.item))))}get onDidChangeSelection(){return W.ju.map(this.list.onDidChangeSelection,(e=>({items:e.elements.map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)}))}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,we.B9)(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce(((i,n,o)=>{var s,r,a;if("separator"!==n.type){const l=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),d=n.meta&&n.meta.replace(/\r?\n/g," "),c=n.description&&n.description.replace(/\r?\n/g," "),u=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[h,c,u].map((e=>(0,Bo.JL)(e))).filter((e=>!!e)).join(", ");i.push(new _r({index:o,item:n,saneLabel:h,saneMeta:d,saneAriaLabel:g,saneDescription:c,saneDetail:u,labelHighlights:null===(s=n.highlights)||void 0===s?void 0:s.label,descriptionHighlights:null===(r=n.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(a=n.highlights)||void 0===a?void 0:a.detail,checked:!1,separator:l&&"separator"===l.type?l:void 0,fireButtonTriggered:t}))}return i}),[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map((e=>e.onChecked((()=>this.fireCheckedEvents()))))),this.elementsToIndexes=this.elements.reduce(((e,t,i)=>(e.set(t.item,i),e)),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map((e=>e.item))}setFocusedElements(e){if(this.list.setFocus(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e)))),e.length>0){const e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e))))}getCheckedElements(){return this.elements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===Cr.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=Cr.First),e===Cr.Previous&&0===this.list.getFocus()[0]&&(e=Cr.Last),e===Cr.Second&&this.list.length<2&&(e=Cr.First),e){case Cr.First:this.list.focusFirst();break;case Cr.Second:this.list.focusNth(1);break;case Cr.Last:this.list.focusLast();break;case Cr.Next:this.list.focusNext();break;case Cr.Previous:this.list.focusPrevious();break;case Cr.NextPage:this.list.focusNextPage();break;case Cr.PreviousPage:this.list.focusPreviousPage()}const t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let t;this.elements.forEach((i=>{const n=this.matchOnLabel?(0,Le.f6)((0,Vo.Gt)(e,(0,Vo.Ho)(i.saneLabel))):void 0,o=this.matchOnDescription?(0,Le.f6)((0,Vo.Gt)(e,(0,Vo.Ho)(i.saneDescription||""))):void 0,s=this.matchOnDetail?(0,Le.f6)((0,Vo.Gt)(e,(0,Vo.Ho)(i.saneDetail||""))):void 0,r=this.matchOnMeta?(0,Le.f6)((0,Vo.Gt)(e,(0,Vo.Ho)(i.saneMeta||""))):void 0;if(n||o||s||r?(i.labelHighlights=n,i.descriptionHighlights=o,i.detailHighlights=s,i.hidden=!1):(i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!i.item.alwaysShow),i.separator=void 0,!this.sortByLabel){const e=i.index&&this.inputElements[i.index-1];t=e&&"separator"===e.type?e:t,t&&!i.hidden&&(i.separator=t,t=void 0)}}))}else this.elements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0}));const t=this.elements.filter((e=>!e.hidden));if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort(((e,t)=>function(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i),r=o.startsWith(i);if(s!==r)return s?-1:1;if(s&&r){if(n.lengtho.length)return 1}return 0}(e,t,i);if(s)return s;const r=n.endsWith(i);if(r!==o.endsWith(i))return r?-1:1;const a=function(e,t,i=!1){const n=e||"",o=t||"",s=gr.value.collator.compare(n,o);return gr.value.collatorIsNumeric&&0===s&&n!==o?n(e.set(t.item,i),e)),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,we.B9)(this.elementDisposables),this.disposables=(0,we.B9)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}mr([pr.H],wr.prototype,"onDidChangeFocus",null),mr([pr.H],wr.prototype,"onDidChangeSelection",null);class yr{getWidgetAriaLabel(){return(0,ci.N)("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var Sr=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const Lr=Y.$,Nr={iconClass:(0,Bo.CM)("quick-input-back",Bo.lA.arrowLeft).classNames,tooltip:(0,ci.N)("quickInput.back","Back"),handle:-1};class xr extends we.JT{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=xr.noPromptMessage,this._severity=Jt.Z.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new W.Q5),this.onDidHideEmitter=this._register(new W.Q5),this.onDisposeEmitter=this._register(new W.Q5),this.visibleDisposables=this._register(new we.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Se.gn;this._ignoreFocusOut=e&&!Se.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=sr.Jq.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new Ce._F,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Nr));this.ui.leftActionBar.push(e.map(((e,t)=>{const i=new Fo.aU(`id-${t}`,"",e.iconClass||or(e.iconPath),!0,(()=>Sr(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))));return i.tooltip=e.tooltip||"",i})),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Nr));this.ui.rightActionBar.push(t.map(((e,t)=>{const i=new Fo.aU(`id-${t}`,"",e.iconClass||or(e.iconPath),!0,(()=>Sr(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))));return i.tooltip=e.tooltip||"",i})),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,Y.mc(this.ui.message,...(0,$s.T)(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,ci.N)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Jt.Z.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}xr.noPromptMessage=(0,ci.N)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class kr extends xr{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new W.Q5),this.onWillAcceptEmitter=this._register(new W.Q5),this.onDidAcceptEmitter=this._register(new W.Q5),this.onDidCustomEmitter=this._register(new W.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?sr.jG.NONE:sr.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new W.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new W.Q5),this.onDidTriggerItemButtonEmitter=this._register(new W.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?sr.X5:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Cr.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.inputBox.onMouseDown((e=>{this.autoFocusOnList||this.ui.list.clearFocus()}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:this.ui.list.focus(Cr.Next),this.canSelectMany&&this.ui.list.domFocus(),Y.zB.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Cr.Previous):this.ui.list.focus(Cr.Last),this.canSelectMany&&this.ui.list.domFocus(),Y.zB.stop(e,!0);break;case 12:this.ui.list.focus(Cr.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Y.zB.stop(e,!0);break;case 11:this.ui.list.focus(Cr.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Y.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cr.First),Y.zB.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cr.Last),Y.zB.stop(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,gt.fS)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,gt.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,gt.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return Y.nm(this.ui.container,Y.tw.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Yt.y(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const[n,o]=e.getParts();return!(o||(n.shiftKey&&4===i?t.ctrlKey||t.altKey||t.metaKey:!(n.altKey&&6===i||n.ctrlKey&&5===i||n.metaKey&&57===i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||kr.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case sr.jG.NONE:this._itemActivation=sr.jG.FIRST;break;case sr.jG.SECOND:this.ui.list.focus(Cr.Second),this._itemActivation=sr.jG.FIRST;break;case sr.jG.LAST:this.ui.list.focus(Cr.Last),this._itemActivation=sr.jG.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Cr.First)),this.keepScrollPosition&&(this.scrollTop=e)}}kr.DEFAULT_ARIA_LABEL=(0,ci.N)("quickInputBox.ariaLabel","Type to narrow down results.");class Dr extends we.JT{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new W.Q5),this.onDidCustomEmitter=this._register(new W.Q5),this.onDidTriggerButtonEmitter=this._register(new W.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new W.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new W.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(Y.nm(window,Y.tw.KEY_DOWN,e,!0)),this._register(Y.nm(window,Y.tw.KEY_UP,e,!0)),this._register(Y.nm(window,Y.tw.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=Y.R3(this.parentElement,Lr(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Y.dS(e),i=Y.R3(e,Lr(".quick-input-titlebar")),n=this._register(new Do.o(i));n.domNode.classList.add("quick-input-left-action-bar");const o=Y.R3(i,Lr(".quick-input-title")),s=this._register(new Do.o(i));s.domNode.classList.add("quick-input-right-action-bar");const r=Y.R3(e,Lr(".quick-input-description")),a=Y.R3(e,Lr(".quick-input-header")),l=Y.R3(a,Lr("input.quick-input-check-all"));l.type="checkbox",this._register(Y.mu(l,Y.tw.CHANGE,(e=>{const t=l.checked;y.setAllVisibleChecked(t)}))),this._register(Y.nm(l,Y.tw.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const h=Y.R3(a,Lr(".quick-input-description")),d=Y.R3(a,Lr(".quick-input-and-message")),c=Y.R3(d,Lr(".quick-input-filter")),u=this._register(new lr(c));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=Y.R3(c,Lr(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Gs.Z(g,{countFormat:(0,ci.N)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),m=Y.R3(c,Lr(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Gs.Z(m,{countFormat:(0,ci.N)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),_=Y.R3(a,Lr(".quick-input-action")),v=new qs(_);v.label=(0,ci.N)("ok","OK"),this._register(v.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=Y.R3(a,Lr(".quick-input-action")),C=new qs(b);C.label=(0,ci.N)("custom","Custom"),this._register(C.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const w=Y.R3(d,Lr(`#${this.idPrefix}message.quick-input-message`)),y=this._register(new wr(e,this.idPrefix+"list",this.options));this._register(y.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(y.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(y.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(y.onLeave((()=>{setTimeout((()=>{u.setFocus(),this.controller instanceof kr&&this.controller.canSelectMany&&y.clearFocus()}),0)}))),this._register(y.onDidChangeFocus((()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")})));const S=new er(e);S.getContainer().classList.add("quick-input-progress");const L=Y.go(e);return this._register(L),this._register(Y.nm(e,Y.tw.FOCUS,(e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0}),!0)),this._register(L.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(sr.Jq.Blur),this.previousFocusElement=void 0}))),this._register(Y.nm(e,Y.tw.FOCUS,(e=>{u.setFocus()}))),this._register(Y.nm(e,Y.tw.KEY_DOWN,(t=>{const i=new Yt.y(t);switch(i.keyCode){case 3:Y.zB.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:Y.zB.stop(t,!0),this.hide(sr.Jq.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){const n=[".action-label.codicon"];e.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list");const o=e.querySelectorAll(n.join(", "));i.shiftKey&&i.target===o[0]?(Y.zB.stop(t,!0),o[o.length-1].focus()):i.shiftKey||i.target!==o[o.length-1]||(Y.zB.stop(t,!0),o[0].focus())}}}))),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:r,description2:h,rightActionBar:s,checkAll:l,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:v,message:w,customButtonContainer:b,customButton:C,list:y,progressBar:S,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=V.T.None){return new Promise(((n,o)=>{let s=e=>{s=n,t.onKeyMods&&t.onKeyMods(r.keyMods),n(e)};if(i.isCancellationRequested)return void s(void 0);const r=this.createQuickPick();let a;const l=[r,r.onDidAccept((()=>{if(r.canSelectMany)s(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(s(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(s(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),o=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=o}}})))),r.onDidChangeValue((e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{(0,we.B9)(l),s(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,r.quickNavigate=t.quickNavigate,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,r.busy=!1,r.items=e,r.canSelectMany&&(r.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(r.activeItems=[a])})),r.show(),Promise.resolve(e).then(void 0,(e=>{o(e),r.hide()}))}))}createQuickPick(){const e=this.getUI();return new kr(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Jt.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Y.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();Nr.tooltip=n?(0,ci.N)("quickInput.backWithKeybinding","Back ({0})",n):(0,ci.N)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,Dr.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const s=[];this.styles.list.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}}Dr.MAX_WIDTH=600;var Er=i(9717),Ir=i(6152),Tr=i(8785),Mr=function(e,t){return function(i,n){t(i,n,e)}};let Ar=class extends we.JT{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Mn.B.as(Ir.IP.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,s]=this.getOrInstantiateProvider(e),r=this.visibleQuickAccess,a=null==r?void 0:r.descriptor;if(r&&s&&a===s)return e===s.prefix||(null==i?void 0:i.preserveValue)||(r.picker.value=e),void this.adjustValueSelection(r.picker,s,i);if(s&&!(null==i?void 0:i.preserveValue)){let t;if(r&&a&&a!==s){const e=r.value.substr(a.prefix.length);e&&(t=`${s.prefix}${e}`)}if(!t){const e=null==o?void 0:o.defaultFilterValue;e===Ir.Ry.LAST?t=this.lastAcceptedPickerValues.get(s):"string"==typeof e&&(t=`${s.prefix}${e}`)}"string"==typeof t&&(e=t)}const l=new we.SL,h=l.add(this.quickInputService.createQuickPick());let d,c;h.value=e,this.adjustValueSelection(h,s,i),h.placeholder=null==s?void 0:s.placeholder,h.quickNavigate=null==i?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!r,("number"==typeof(null==i?void 0:i.itemActivation)||(null==i?void 0:i.quickNavigateConfiguration))&&(h.itemActivation=null!==(n=null==i?void 0:i.itemActivation)&&void 0!==n?n:Tr.jG.SECOND),h.contextKey=null==s?void 0:s.contextKey,h.filterValue=e=>e.substring(s?s.prefix.length:0),(null==s?void 0:s.placeholder)&&(h.ariaLabel=null==s?void 0:s.placeholder),t&&(d=new Promise((e=>c=e)),l.add((0,Er.I)(h.onWillAccept)((e=>{e.veto(),h.hide()})))),l.add(this.registerPickerListeners(h,o,s,e));const u=l.add(new V.A);return o&&l.add(o.provide(h,u.token)),(0,Er.I)(h.onDidHide)((()=>{0===h.selectedItems.length&&u.cancel(),l.dispose(),null==c||c(h.selectedItems)})),h.show(),t?d:void 0}adjustValueSelection(e,t,i){var n;let o;o=(null==i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null==t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new we.SL,s=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,we.OF)((()=>{s===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),o.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0}):s.value=e}))),i&&o.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};Ar=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Mr(0,Tr.eJ),Mr(1,tn.TG)],Ar);var Rr=function(e,t){return function(i,n){t(i,n,e)}};let Or=class extends on.bB{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Ar))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),returnFocus:()=>e.focus(),createList:(e,t,i,n,o)=>this.instantiationService.createInstance(cs.ev,e,t,i,n,o),styles:this.computeStyles()},s=this._register(new Dr(Object.assign(Object.assign({},o),t)));return s.layout(e.dimension,null!==(n=null===(i=e.offset)||void 0===i?void 0:i.top)&&void 0!==n?n:0),this._register(e.onDidLayout((t=>{var i,n;return s.layout(t,null!==(n=null===(i=e.offset)||void 0===i?void 0:i.top)&&void 0!==n?n:0)}))),this._register(s.onShow((()=>this.resetContextKeys()))),this._register(s.onHide((()=>this.resetContextKeys()))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new mi.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=V.T.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},(0,Qo.o)(this.theme,{quickInputBackground:Gn.zK,quickInputForeground:Gn.tZ,quickInputTitleBackground:Gn.lo,contrastBorder:Gn.lR,widgetShadow:Gn.rh})),inputBox:(0,Qo.o)(this.theme,{inputForeground:Gn.zJ,inputBackground:Gn.sE,inputBorder:Gn.dt,inputValidationInfoBackground:Gn._l,inputValidationInfoForeground:Gn.YI,inputValidationInfoBorder:Gn.EP,inputValidationWarningBackground:Gn.RV,inputValidationWarningForeground:Gn.SU,inputValidationWarningBorder:Gn.C3,inputValidationErrorBackground:Gn.p,inputValidationErrorForeground:Gn._t,inputValidationErrorBorder:Gn.OZ}),countBadge:(0,Qo.o)(this.theme,{badgeBackground:Gn.g8,badgeForeground:Gn.qe,badgeBorder:Gn.lR}),button:(0,Qo.o)(this.theme,{buttonForeground:Gn.j5,buttonBackground:Gn.b7,buttonHoverBackground:Gn.GO,buttonBorder:Gn.lR}),progressBar:(0,Qo.o)(this.theme,{progressBarBackground:Gn.zR}),keybindingLabel:(0,Qo.o)(this.theme,{keybindingLabelBackground:Gn.oQ,keybindingLabelForeground:Gn.lW,keybindingLabelBorder:Gn.AW,keybindingLabelBottomBorder:Gn.K1,keybindingLabelShadow:Gn.rh}),list:(0,Qo.o)(this.theme,{listBackground:Gn.zK,listInactiveFocusForeground:Gn.NP,listInactiveSelectionIconForeground:Gn.cb,listInactiveFocusBackground:Gn.Vq,listFocusOutline:Gn.xL,listInactiveFocusOutline:Gn.xL,pickerGroupBorder:Gn.op,pickerGroupForeground:Gn.kJ})}}};Or=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Rr(0,tn.TG),Rr(1,mi.i6),Rr(2,on.XE),Rr(3,sn.F),Rr(4,es)],Or);var Pr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Fr=function(e,t){return function(i,n){t(i,n,e)}};let Br=class extends Or{constructor(e,t,i,n,o,s){super(t,i,n,o,s),this.host=void 0;const r=Wr.get(e);this.host={_serviceBrand:void 0,get container(){return r.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};Br=Pr([Fr(1,tn.TG),Fr(2,mi.i6),Fr(3,on.XE),Fr(4,sn.F),Fr(5,es)],Br);let Vr=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(Br,e);this.mapEditorToService.set(e,t),(0,Er.I)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=V.T.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};Vr=Pr([Fr(0,tn.TG),Fr(1,Q.$)],Vr);class Wr{constructor(e){this.editor=e,this.widget=new Hr(this.editor)}static get(e){return e.getContribution(Wr.ID)}dispose(){this.widget.dispose()}}Wr.ID="editor.controller.quickInput";class Hr{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Hr.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}var zr;Hr.ID="editor.contrib.quickInputWidget",(0,Us._K)(Wr.ID,Wr),function(e){const t=new rs.y;class i{constructor(e,t){this._serviceId=e,this._factory=t,this._value=null}get id(){return this._serviceId}get(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value}}e.LazyStaticService=i;let n=[];function o(e,t){let o=new i(e,t);return n.push(o),o}e.init=function(e){let t=new rs.y;for(const[e,i]of(0,Ns.d)())t.set(e,i);for(let i in e)e.hasOwnProperty(i)&&t.set((0,tn.yh)(i),e[i]);n.forEach((i=>t.set(i.id,i.get(e))));let i=new ls(t,!0);return t.set(tn.TG,i),[t,i]},e.instantiationService=o(tn.TG,(()=>new ls(t,!0)));const s=new Vi;e.configurationService=o(oi.Ui,(()=>s)),e.resourceConfigurationService=o(ut.V,(()=>new Wi(s))),e.resourcePropertiesService=o(ut.y,(()=>new Hi(s))),e.contextService=o(xi.ec,(()=>new Ki)),e.labelService=o(ds.e,(()=>new ji)),e.telemetryService=o(Lo.b,(()=>new zi)),e.dialogService=o(is.S,(()=>new Ri)),e.notificationService=o(Ni.lT,(()=>new Oi)),e.markerService=o(us.lT,(()=>new ms)),e.modeService=o(ve.h,(e=>new Fn)),e.standaloneThemeService=o(Xi.Z,(()=>new ho)),e.logService=o(pt.VZ,(()=>new pt.$V(new pt.kw))),e.undoRedoService=o(Is.tJ,(t=>new zs(e.dialogService.get(t),e.notificationService.get(t)))),e.languageConfigurationService=o(He.c_,(t=>new He.UU(e.configurationService.get(t),e.modeService.get(t)))),e.modelService=o(ct.q,(t=>new Bn.BR(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t),e.undoRedoService.get(t),e.modeService.get(t),e.languageConfigurationService.get(t)))),e.markerDecorationsService=o(ws.i,(t=>new Ls(e.modelService.get(t),e.markerService.get(t)))),e.contextKeyService=o(mi.i6,(t=>new wo(e.configurationService.get(t)))),e.codeEditorService=o(Q.$,(t=>new Cn(null,e.contextKeyService.get(t),e.standaloneThemeService.get(t)))),e.editorProgressService=o(an.e,(()=>new Ai)),e.storageService=o(fs.Uy,(()=>new fs.vm)),e.editorWorkerService=o(_e.p,(t=>new vt(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))))}(zr||(zr={}));class Kr extends we.JT{constructor(e,t){super();const[i,n]=zr.init(t);this._serviceCollection=i,this._instantiationService=n;const o=this.get(oi.Ui),s=this.get(Ni.lT),r=this.get(Lo.b),a=this.get(on.XE),l=this.get(pt.VZ),h=this.get(mi.i6);let d=(e,i)=>{let n=null;return t&&(n=t[e.toString()]),n||(n=i()),this._serviceCollection.set(e,n),n};d(sn.F,(()=>new ks(h,o))),d(cs.Lw,(()=>new cs.XN(a)));let c=d(ne.H,(()=>new Pi(this._instantiationService))),u=d(nn.d,(()=>this._register(new Fi(h,c,r,s,l,e)))),g=d(es,(()=>new qi(zr.codeEditorService.get(Q.$),e)));d(Tr.eJ,(()=>new Vr(n,zr.codeEditorService.get(Q.$))));let p=d(en.u,(()=>this._register(new ts(g))));d(rn.p,(()=>new Es)),d(en.i,(()=>{const e=new Jo(r,s,p,u,a);return e.configure({blockMouse:!1}),this._register(e)})),d(Ji.co,(()=>new bs(c))),d(ti.vu,(()=>new $i(zr.modelService.get(ct.q))))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}var Ur=i(9098);function $r(e,t,i){let n=new Kr(e,t),o=null;n.has(be.S)||(o=new Mi(zr.modelService.get()),n.set(be.S,o)),n.has(oe.v4)||n.set(oe.v4,new de(n.get(Q.$),n.get(ne.H)));let s=i(n);return o&&o.setEditor(s),s}function jr(e,t){return"boolean"==typeof e?e:t}function qr(e,t){return"string"==typeof e?e:t}function Gr(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Zr(e,t){t=t.replace(/@@/g,"");let i,n=0;do{i=!1,t=t.replace(/@(\w+)/g,(function(n,o){i=!0;let s="";if("string"==typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?Ot(e,"language definition does not contain attribute '"+o+"', used at: "+t):Ot(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return Mt(s)?"":"(?:"+s+")"})),n++}while(i&&n<5);t=t.replace(/\x01/g,"@");let o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}function Qr(e,t,i,n){let o=-1,s=i,r=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(o=parseInt(r[3]),r[2]&&(o+=100)),s=r[4]);let a,l="~",h=s;if(s&&0!==s.length?/^\w*$/.test(h)?l="==":(r=s.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(l=r[1],h=r[2])):(l="!=",h=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(h))if("@"===l||"!@"===l){let i=e[h];if(!i)throw Ot(e,"the @ match target '"+h+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const e of t)if("string"!=typeof e)return!1;return!0}(0,i))throw Ot(e,"the @ match target '"+h+"' must be an array of strings, in rule: "+t);let n=Gr(i,e.ignoreCase);a=function(e){return"@"===l?n(e):!n(e)}}else if("~"===l||"!~"===l)if(h.indexOf("$")<0){let t=Zr(e,"^"+h+"$");a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,o){return Zr(e,"^"+Pt(e,h,i,n,o)+"$").test(t)};else if(h.indexOf("$")<0){let t=At(e,h);a=function(e){return"=="===l?e===t:e!==t}}else{let t=At(e,h);a=function(i,n,o,s,r){let a=Pt(e,t,n,o,s);return"=="===l?i===a:i!==a}}else{let t=Gr(h.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===o?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){let s=function(e,t,i,n){if(n<0)return e;if(n=100){n-=100;let e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw Ot(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw Ot(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,Pt(e,o,"",[],""))))throw Ot(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){let n=[];for(let o=0,s=i.length;o0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Zr(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=Yr(e,this.name,t)}}class Jr{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if("function"==typeof this._actual.tokenize)return ea.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new j.Hi(n.tokens,n.endState)}}class ea{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let s=0,r=e.length;s0&&s[r-1]===h)continue;let d=l.startIndex;0===e?d=0:dPromise.resolve(e[0])));const oa=G();oa.editor={create:function(e,t,i){return $r(e,i||{},(i=>new kn(e,t,i,i.get(tn.TG),i.get(Q.$),i.get(ne.H),i.get(mi.i6),i.get(nn.d),i.get(en.u),i.get(Xi.Z),i.get(Ni.lT),i.get(oi.Ui),i.get(sn.F),i.get(ct.q),i.get(ve.h))))},onDidCreateEditor:function(e){return zr.codeEditorService.get().onCodeEditorAdd((t=>{e(t)}))},createDiffEditor:function(e,t,i){return $r(e,i||{},(i=>new Dn(e,t,i,i.get(tn.TG),i.get(mi.i6),i.get(nn.d),i.get(en.u),i.get(_e.p),i.get(Q.$),i.get(Xi.Z),i.get(Ni.lT),i.get(oi.Ui),i.get(en.i),i.get(an.e),i.get(rn.p))))},createDiffNavigator:function(e,t){return new ce.F(e,t)},createModel:function(e,t,i){return En(zr.modelService.get(),zr.modeService.get(),e,t,i)},setModelLanguage:function(e,t){zr.modelService.get().setMode(e,zr.modeService.get().create(t))},setModelMarkers:function(e,t,i){e&&zr.markerService.get().changeOne(t,e.uri,i)},getModelMarkers:function(e){return zr.markerService.get().read(e)},onDidChangeMarkers:function(e){return zr.markerService.get().onMarkerChanged(e)},getModels:function(){return zr.modelService.get().getModels()},getModel:function(e){return zr.modelService.get().getModel(e)},onDidCreateModel:function(e){return zr.modelService.get().onModelAdded(e)},onWillDisposeModel:function(e){return zr.modelService.get().onModelRemoved(e)},onDidChangeModelLanguage:function(e){return zr.modelService.get().onModelModeChanged((t=>{e({model:t.model,oldLanguage:t.oldModeId})}))},createWebWorker:function(e){return function(e,t){return new Nt(e,t)}(zr.modelService.get(),e)},colorizeElement:function(e,t){const i=zr.standaloneThemeService.get();return i.registerEditorContainer(e),Gt.colorizeElement(i,zr.modeService.get(),e,t)},colorize:function(e,t,i){return zr.standaloneThemeService.get().registerEditorContainer(document.body),Gt.colorize(zr.modeService.get(),e,t,i)},colorizeModelLine:function(e,t,i=4){return zr.standaloneThemeService.get().registerEditorContainer(document.body),Gt.colorizeModelLine(e,t,i)},tokenize:function(e,t){zr.modeService.get().triggerMode(t);let i=(n=t,me.RW.get(n)||{getInitialState:()=>fe.nO,tokenize:(e,t,i,o)=>(0,fe.Ri)(n,e,i,o)});var n;let o=(0,Ne.uq)(e),s=[],r=i.getInitialState();for(let e=0,t=o.length;e{n===e&&(i.dispose(),t())}));return i},getEncodedLanguageId:function(e){return zr.modeService.get().languageIdCodec.encodeLanguageId(e)},setLanguageConfiguration:function(e,t){const i=zr.modeService.get().validateLanguageId(e);if(!i)throw new Error(`Cannot set configuration for unknown language ${e}`);return He.zu.register(i,t,100)},setColorMap:function(e){if(e){const t=[null];for(let i=1,n=e.length;ifunction(e){return"tokenizeEncoded"in e}(e)?new Jr(i,e):new ea(i,e,zr.modeService.get(),zr.standaloneThemeService.get());return ta(t)?me.RW.registerPromise(e,t.then((e=>n(e)))):me.RW.register(e,n(t))},setMonarchTokensProvider:function(e,t){const i=t=>function(e,t,i,n){return new $t(e,t,i,n)}(zr.modeService.get(),zr.standaloneThemeService.get(),e,function(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");let i={};i.languageId=e,i.includeLF=jr(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=jr(t.ignoreCase,!1),i.unicode=jr(t.unicode,!1),i.tokenPostfix=qr(t.tokenPostfix,"."+i.languageId),i.defaultToken=qr(t.defaultToken,"source"),i.usesEmbedded=!1;let n=t;function o(e,s,r){for(const a of r){let r=a.include;if(r){if("string"!=typeof r)throw Ot(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw Ot(i,"include target '"+r+"' is not defined at: "+e);o(e+"."+r,s,t.tokenizer[r])}else{const t=new Xr(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw Ot(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw Ot(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=jr(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw Ot(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(let e in t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){i.start||(i.start=e);const n=t.tokenizer[e];i.tokenizer[e]=new Array,o("tokenizer."+e,i.tokenizer[e],n)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Ot(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let s=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw Ot(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof t.open||"string"!=typeof t.token||"string"!=typeof t.close)throw Ot(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:t.token+i.tokenPostfix,open:At(i,t.open),close:At(i,t.close)})}return i.brackets=s,i.noThrow=!0,i}(e,t));return ta(t)?me.RW.registerPromise(e,t.then((e=>i(e)))):me.RW.register(e,i(t))},registerReferenceProvider:function(e,t){return me.FL.register(e,t)},registerRenameProvider:function(e,t){return me.G0.register(e,t)},registerCompletionItemProvider:function(e,t){return me.KZ.register(e,t)},registerSignatureHelpProvider:function(e,t){return me.nD.register(e,t)},registerHoverProvider:function(e,t){return me.xp.register(e,{provideHover:(e,i,n)=>{let o=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&o&&(e.range=new U.e(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),e.range||(e.range=new U.e(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return me.vJ.register(e,t)},registerDocumentHighlightProvider:function(e,t){return me.vH.register(e,t)},registerLinkedEditingRangeProvider:function(e,t){return me.id.register(e,t)},registerDefinitionProvider:function(e,t){return me.Ct.register(e,t)},registerImplementationProvider:function(e,t){return me.vI.register(e,t)},registerTypeDefinitionProvider:function(e,t){return me.tA.register(e,t)},registerCodeLensProvider:function(e,t){return me.He.register(e,t)},registerCodeActionProvider:function(e,t,i){return me.H9.register(e,{providedCodeActionKinds:null==i?void 0:i.providedCodeActionKinds,provideCodeActions:(e,i,n,o)=>{let s=zr.markerService.get().read({resource:e.uri}).filter((e=>U.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:s,only:n.only},o)},resolveCodeAction:t.resolveCodeAction})},registerDocumentFormattingEditProvider:function(e,t){return me.Az.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return me.vN.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return me.ln.register(e,t)},registerLinkProvider:function(e,t){return me.pM.register(e,t)},registerColorProvider:function(e,t){return me.OH.register(e,t)},registerFoldingRangeProvider:function(e,t){return me.aC.register(e,t)},registerDeclarationProvider:function(e,t){return me.RN.register(e,t)},registerSelectionRangeProvider:function(e,t){return me.AC.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return me.wT.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return me.K7.register(e,t)},registerInlineCompletionsProvider:function(e,t){return me.zu.register(e,t)},registerInlayHintsProvider:function(e,t){return me.mX.register(e,t)},DocumentHighlightKind:c,CompletionItemKind:s,CompletionItemTag:r,CompletionItemInsertTextRule:o,SymbolKind:M,SymbolTag:A,IndentAction:f,CompletionTriggerKind:a,SignatureHelpTriggerKind:T,InlayHintKind:_,InlineCompletionTriggerKind:v,FoldingRangeKind:me.AD},oa.CancellationTokenSource;const sa=oa.Emitter,ra=(oa.KeyCode,oa.KeyMod,oa.Position,oa.Range),aa=(oa.Selection,oa.SelectionDirection,oa.MarkerSeverity),la=oa.MarkerTag,ha=oa.Uri,da=(oa.Token,oa.editor),ca=oa.languages;((null===(ia=Se.li.MonacoEnvironment)||void 0===ia?void 0:ia.globalAPI)||"function"==typeof define&&i.amdO)&&(self.monaco=oa),void 0!==self.require&&"function"==typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},3809:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(4333).yh)("themeService")},5244:(e,t,i)=>{i.d(t,{Q5:()=>n.Q5,ZL:()=>n.ZL,e6:()=>n.e6,Sf:()=>n.Sf,j6:()=>n.j6,Mj:()=>n.Mj});var n=i(6790)},1839:(e,t,i)=>{i.d(t,{Q5:()=>n.Q5,e6:()=>n.e6,Sf:()=>n.Sf,j6:()=>n.j6,Mj:()=>n.Mj});var n=i(6790)},8037:(e,t,i)=>{i.d(t,{Q5:()=>n.Q5,ZL:()=>n.ZL,e6:()=>n.e6,j6:()=>n.j6,Mj:()=>n.Mj});var n=i(6790)},7181:(e,t,i)=>{i.d(t,{Q5:()=>n.Q5,ZL:()=>n.ZL,eB:()=>n.eB,e6:()=>n.e6,Sf:()=>n.Sf,j6:()=>n.j6,Mj:()=>n.Mj});var n=i(6790)},9109:(e,t,i)=>{i.d(t,{TG:()=>d}),i(6790);var n,o,s,r,a,l=i(7181);!function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(o||(o={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(s||(s={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(r||(r={})),function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(a||(a={}));var h=function(){function e(e,t,i,n){this._onDidChange=new l.Q5,this._onDidExtraLibsChange=new l.Q5,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.addExtraLib=function(e,t){var i,n=this;if(i=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[i]&&(o=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(o=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=n._extraLibs[i];e&&e.version===o&&(delete n._extraLibs[i],n._removedExtraLibs[i]=o,n._fireOnDidExtraLibsChangeSoon())}}},e.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;i{function n(e,t,...i){return function(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,i){const n=i[0];return void 0!==t[n]?t[n]:e})),i}(t,i)}i.d(t,{N:()=>n})},8708:(e,t,i)=>{i.d(t,{F:()=>o,U:()=>s});var n=i(499);const o=(0,i(4333).yh)("accessibilityService"),s=new n.uy("accessibilityModeEnabled",!1)},1208:(e,t,i)=>{i.d(t,{vr:()=>p,eH:()=>m,co:()=>f,BH:()=>_,NZ:()=>v,U8:()=>b});var n=i(8299),o=i(407),s=i(6709),r=i(7865),a=i(8431),l=i(7979),h=i(793),d=i(499),c=i(4333),u=i(8566),g=function(e,t){return function(i,n){t(i,n,e)}};function p(e){return void 0!==e.command}class m{constructor(e){this.id=m._idPool++,this._debugName=e}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const f=(0,c.yh)("menuService"),_=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===m.CommandPalette}}addCommand(e){return this.addCommands(r.$.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,a.OF)((()=>{let t=!1;for(const i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){return this.appendMenuItems(r.$.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,i=new l.S;for(const{id:n,item:o}of e){let e=this._menuItems.get(n);e||(e=new l.S,this._menuItems.set(n,e)),i.push(e.push(o)),t.add(n)}return this._onDidChangeMenu.fire(t),(0,a.OF)((()=>{if(i.size>0){for(let e of i)e();this._onDidChangeMenu.fire(t),i.clear()}}))}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===m.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)p(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class v extends n.wY{constructor(e,t,i,n){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=n}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);t.dispose();for(const[,t]of i)t.length>0&&(e.push(...t),e.push(new n.Z0));return e.length&&e.pop(),e}}let b=class e{constructor(t,i,n,s,r){var a,l;if(this._commandService=r,this.id=t.id,this.label=(null==n?void 0:n.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(l="string"==typeof t.tooltip?t.tooltip:null===(a=t.tooltip)||void 0===a?void 0:a.value)&&void 0!==l?l:"",this.enabled=!t.precondition||s.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=s.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=i?new e(i,void 0,n,s,r):void 0,this._options=n,u.kS.isThemeIcon(t.icon)&&(this.class=o.dT.asClassName(t.icon))}dispose(){}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(3,d.i6),g(4,h.H)],b)},1941:(e,t,i)=>{i.d(t,{p:()=>n});const n=(0,i(4333).yh)("clipboardService")},793:(e,t,i)=>{i.d(t,{H:()=>l,P:()=>h});var n=i(6709),o=i(7865),s=i(8431),r=i(7979),a=i(4818);const l=(0,i(4333).yh)("commandService"),h=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let i of e.description.args)t.push(i.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.D8)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.S,this._commands.set(i,n));let o=n.unshift(e),l=(0,s.OF)((()=>{o();const e=this._commands.get(i);(null==e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return h.registerCommand(e,((e,...i)=>e.get(l).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return o.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};h.registerCommand("noop",(()=>{}))},1177:(e,t,i)=>{i.d(t,{Ui:()=>r,Od:()=>a,KV:()=>l,xL:()=>h,Mt:()=>c,MR:()=>u,O4:()=>g});var n=i(2326),o=i(4333),s=i(6325);const r=(0,o.yh)("configurationService");function a(e,t){const i=Object.create(null);for(let n in e)l(i,n,e[n],t);return i}function l(e,t,i,n){const o=t.split("."),s=o.pop();let r=e;for(let e=0;econsole.error(`Conflict in default settings: ${e}`)));return e}},2326:(e,t,i)=>{i.d(t,{IP:()=>l,G1:()=>_,Uh:()=>v});var n=i(6709),o=i(4818),s=i(6386),r=i(2123),a=i(6325);const l={Configuration:"base.contributions.configuration"},h={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m="vscode://schemas/settings/resourceLanguage",f=a.B.as(r.I.JSONContribution),_=new RegExp("\\[.*\\]$");function v(e){return e.substring(1,e.length-1)}const b=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Q5,this._onDidUpdateConfiguration=new n.Q5,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:s.N("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},f.registerSchema(m,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=this.doRegisterConfigurations(e,t);f.registerSchema(m,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){const i=[];return e.forEach((e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})),i}validateAndRegisterProperties(e,t=!0,i,n=3){var s;n=o.Jp(e.scope)?n:e.scope;let r=[],a=e.properties;if(a)for(let e in a){if(t&&C(e)){delete a[e];continue}const l=a[e];this.updatePropertyDefaultValue(e,l),_.test(e)?l.scope=void 0:(l.scope=o.Jp(l.scope)?n:l.scope,l.restricted=o.Jp(l.restricted)?!!(null===(s=null==i?void 0:i.restrictedConfigurations)||void 0===s?void 0:s.includes(e)):l.restricted),!a[e].hasOwnProperty("included")||a[e].included?(this.configurationProperties[e]=a[e],!a[e].deprecationMessage&&a[e].markdownDeprecationMessage&&(a[e].deprecationMessage=a[e].markdownDeprecationMessage),r.push(e)):(this.excludedConfigurationProperties[e]=a[e],delete a[e])}let l=e.allOf;if(l)for(let e of l)r.push(...this.validateAndRegisterProperties(e,t,i,n));return r}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{let i=e.properties;if(i)for(const e in i)this.updateSchema(e,i[e]);let n=e.allOf;n&&n.forEach(t)};t(e)}updateSchema(e,t){switch(h.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:c.properties[e]=t;break;case 6:u.properties[e]=t;break;case 3:g.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:s.N("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.N("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:m};this.updatePropertyDefaultValue(t,i),h.properties[t]=i,d.properties[t]=i,c.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.defaultValues[e];o.o8(i)&&(i=t.default),o.o8(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i}};function C(e){return e.trim()?_.test(e)?s.N("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==b.getConfigurationProperties()[e]?s.N("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null:s.N("config.property.empty","Cannot register an empty property")}a.B.add(l.Configuration,b)},499:(e,t,i)=>{i.d(t,{Ao:()=>h,Fb:()=>d,uy:()=>I,i6:()=>T,Eq:()=>M,K8:()=>O});var n=i(1138),o=i(7416),s=i(4333);let r=n.WE||"";const a=new Map;a.set("false",!1),a.set("true",!0),a.set("isMac",n.dz),a.set("isLinux",n.IJ),a.set("isWindows",n.ED),a.set("isWeb",n.$L),a.set("isMacNative",n.dz&&!n.$L),a.set("isEdge",r.indexOf("Edg/")>=0),a.set("isFirefox",r.indexOf("Firefox")>=0),a.set("isChrome",r.indexOf("Chrome")>=0),a.set("isSafari",r.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class h{static has(e){return p.create(e)}static equals(e,t){return m.create(e,t)}static regex(e,t){return N.create(e,t)}static not(e){return b.create(e)}static and(...e){return D.create(e,null)}static or(...e){return E.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let i=e.split("||");return E.create(i.map((e=>this._deserializeAndExpression(e,t))),null,!0)}static _deserializeAndExpression(e,t){let i=e.split("&&");return D.create(i.map((e=>this._deserializeOne(e,t))),null)}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let i=e.split("!=");return v.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("==")>=0){let i=e.split("==");return m.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("=~")>=0){let i=e.split("=~");return N.create(i[0].trim(),this._deserializeRegexValue(i[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return f.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const t=e.split(">=");return y.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const t=e.split(">");return w.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return L.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return S.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?b.create(e.substr(1).trim()):p.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let i=/^'([^']*)'$/.exec(e);return i?i[1].trim():e}static _deserializeRegexValue(e,t){if((0,o.m5)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let i=e.indexOf("/"),n=e.lastIndexOf("/");if(i===n||i<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let s=e.slice(i+1,n),r="i"===e[n+1]?"i":"";try{return new RegExp(s,r)}catch(i){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${i}`);return console.warn(`bad regexp-value '${e}', parse error: ${i}`),null}}}function d(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function c(e,t){return e.cmp(t)}class u{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}u.INSTANCE=new u;class g{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return u.INSTANCE}}g.INSTANCE=new g;class p{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const i=a.get(e);return"boolean"==typeof i?i?g.INSTANCE:u.INSTANCE:new p(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:A(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=a.get(this.key);return"boolean"==typeof e?e?g.INSTANCE:u.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}class m{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}static create(e,t,i=null){if("boolean"==typeof t)return t?p.create(e,i):b.create(e,i);const n=a.get(e);return"boolean"==typeof n?t===(n?"true":"false")?g.INSTANCE:u.INSTANCE:new m(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=a.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?g.INSTANCE:u.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class f{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new f(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.indexOf(i)>=0:"string"==typeof i&&"object"==typeof t&&null!==t&&l.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=_.create(this)),this.negated}}class _{constructor(e){this._actual=e,this.type=11}static create(e){return new _(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class v{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}static create(e,t,i=null){if("boolean"==typeof t)return t?b.create(e,i):p.create(e,i);const n=a.get(e);return"boolean"==typeof n?t===(n?"true":"false")?u.INSTANCE:g.INSTANCE:new v(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=a.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?u.INSTANCE:g.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class b{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const i=a.get(e);return"boolean"==typeof i?i?u.INSTANCE:g.INSTANCE:new b(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:A(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=a.get(this.key);return"boolean"==typeof e?e?u.INSTANCE:g.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function C(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):u.INSTANCE}class w{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}static create(e,t,i=null){return C(t,(t=>new w(e,t,i)))}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class y{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}static create(e,t,i=null){return C(t,(t=>new y(e,t,i)))}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class S{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}static create(e,t,i=null){return C(t,(t=>new S(e,t,i)))}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new L(e,t,i)))}cmp(e){return e.type!==this.type?this.type-e.type:R(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class N{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new N(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}class x{constructor(e){this._actual=e,this.type=8}static create(e){return new x(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function k(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),n=0===i.length,o=E.create(e.expr.map((e=>D.create([e,t],null))),null,n);o&&(i.push(o),i.sort(c))}return 1===i.length?i[0]:new D(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=E.create(e,this,!0)}return this.negated}}class E{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,i){return E._normalizeArr(e,t,i)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of P(t))for(const t of P(i))n.push(D.create([e,t],null));const o=0===e.length;e.unshift(E.create(n,null,o))}this.negated=e[0]}return this.negated}}class I extends p{constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?I._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&I._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}static all(){return I._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return m.create(this.key,e)}}I._info=[];const T=(0,s.yh)("contextKeyService"),M="setContext";function A(e,t){return et?1:0}function R(e,t,i,n){return ei?1:tn?1:0}function O(e,t){if(6===t.type&&9!==e.type&&6!==e.type)for(const i of t.expr)if(e.equals(i))return!0;const i=P(e.negate()).concat(P(t));i.sort(c);for(let e=0;e{i.d(t,{c:()=>s,d:()=>r});var n=i(1138),o=i(6386);const s=new(i(499).uy)("isWindows",n.ED,(0,o.N)("isWindows","Whether the operating system is Windows")),r="inputFocus"},6953:(e,t,i)=>{i.d(t,{u:()=>o,i:()=>s});var n=i(4333);const o=(0,n.yh)("contextViewService"),s=(0,n.yh)("contextMenuService")},5267:(e,t,i)=>{i.d(t,{S:()=>n});const n=(0,i(4333).yh)("dialogService")},840:(e,t,i)=>{i.d(t,{M:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},3061:(e,t,i)=>{i.d(t,{z:()=>s,d:()=>r});var n=i(840);const o=[];function s(e,t,i){t instanceof n.M||(t=new n.M(t,[],i)),o.push([e,t])}function r(){return o}},4333:(e,t,i)=>{var n;i.d(t,{I8:()=>n,TG:()=>o,yh:()=>r,jt:()=>a}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const o=r("instantiationService");function s(e,t,i,o){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i,optional:o}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i,optional:o}],t[n.DI_TARGET]=t)}function r(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,n,!1)};return t.toString=()=>e,n.serviceIds.set(e,t),t}function a(e){return function(t,i,n){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,n,!0)}}},8596:(e,t,i)=>{i.d(t,{y:()=>n});class n{constructor(...e){this._entries=new Map;for(let[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}},2123:(e,t,i)=>{i.d(t,{I:()=>s});var n=i(6709),o=i(6325);const s={JSONContribution:"base.contributions.json"},r=new class{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.B.add(s.JSONContribution,r)},5495:(e,t,i)=>{i.d(t,{d:()=>n});const n=(0,i(4333).yh)("keybindingService")},7679:(e,t,i)=>{i.d(t,{W:()=>l});var n=i(1994),o=i(1138),s=i(793),r=i(6325);class a{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=a.bindToCurrentPlatform(e);if(t&&t.primary){const i=(0,n.gm)(t.primary,o.OS);i&&this._registerDefaultKeybinding(i,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let i=0,s=t.secondary.length;i=21&&e<=30||e>=31&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&a._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,i,n,s,r){1===o.OS&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e.parts,command:t,commandArgs:i,when:r,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(h)),this._cachedMergedKeybindings.slice(0)}}const l=new a;function h(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}r.B.add("platform.keybindingsRegistry",l)},8680:(e,t,i)=>{i.d(t,{e:()=>n});const n=(0,i(4333).yh)("labelService")},3857:(e,t,i)=>{i.d(t,{Lw:()=>$e,XN:()=>je,ls:()=>kt,ev:()=>ft,CQ:()=>Ze});var n=i(4441),o=i(6308),s=i(7464),r=i(6709),a=i(8431),l=i(9765);class h{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.JT.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,i.data,n);const r=new s.A,a=o.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class d{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}var c=i(9846);class u{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=u.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const t of e){const e=n.get(t.templateId);if(!e)throw new Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],o=[];for(let e=0;enew g(e,t))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=new c.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d}),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const m=new u(o,s,(e=>this.splitview.getViewSize(e)));var f;this.list=new l.aV(e,this.domNode,(f=i,{getHeight:e=>f.getHeight(e),getTemplateId:()=>u.TemplateId}),[m],a),this.columnLayoutDisposable=r.ju.any(...h.map((e=>e.onDidLayout)))((([e,t])=>m.layoutColumn(e,t))),this.styleElement=(0,n.dS)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.splitview.dispose(),this.list.dispose(),this.columnLayoutDisposable.dispose()}}p.InstanceCount=0;var m,f=i(4102),_=i(9181),v=i(4505),b=i(6544);!function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element"}(m||(m={}));class C extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class w{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var y=i(230),S=i(7865);function L(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function N(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function x(e){return"boolean"==typeof e.collapsible}class k{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new r.E7,this._onDidChangeCollapseState=new r.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new r.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new r.Q5,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=S.$.empty(),n={}){if(0===e.length)throw new C(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,s){var r;void 0===n&&(n=S.$.empty()),void 0===s&&(s=null!==(r=o.diffDepth)&&void 0!==r?r:0);const{parentNode:a}=this.getParentNodeWithListIndex(t);if(!a.lastDiffIds)return this.spliceSimple(t,i,n,o);const l=[...n],h=t[t.length-1],d=new y.Hs({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,h),...l,...a.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(t,i,l,o);const c=t.slice(0,-1),u=(t,i,n)=>{if(s>0)for(let r=0;rt.originalStart-e.originalStart)))u(g,p,g-(e.originalStart+e.originalLength)),g=e.originalStart,p=e.modifiedStart-h,this.spliceSimple([...c,g],e.originalLength,S.$.slice(l,p,p+e.modifiedLength),o);u(g,p,g)}spliceSimple(e,t,i=S.$.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),c=[],u=S.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,c,n))),g=e[e.length-1],p=a.children.length>0;let m=0;for(let e=g;e>=0&&er.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let C=0;for(const e of b)e.visible&&C++;if(0!==C)for(let e=g+f.length;ee+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,c)}if(b.length>0&&s){const e=t=>{s(t),t.children.forEach(e)};b.forEach(e)}const w=a.children.length>0;p!==w&&this.setCollapsible(e.slice(0,-1),w),this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});let y=a;for(;y;){if(2===y.visibility){this.refilter();break}y=y.parent}}rerender(e){if(0===e.length)throw new C(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),s=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!x(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}n>-1&&this._setCollapseState([...e,n],t)}return s}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const s=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=s-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(x(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!x(t)&&t.recursive)for(const i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)}createTreeNode(e,t,i,n,o,s){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&o.push(r);const l=e.children||S.$.empty(),h=n&&0!==a&&!r.collapsed,d=S.$.map(l,(e=>this.createTreeNode(e,r,a,h,o,s)));let c=0,u=1;for(const e of d)r.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=c++);return r.collapsible=r.collapsible||r.children.length>0,r.visibleChildrenCount=c,r.visible=2===a?c>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=u):(r.renderNodeCount=0,n&&o.pop()),s&&s(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const s=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const s of e.children)r=this._updateNodeAfterFilterChange(s,o,i,n&&!e.collapsed)||r,s.visible&&(s.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?r:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-s):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,i?1:0):L(i)?(e.filterData=i.data,N(i.visibility)):(e.filterData=void 0,N(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new C(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),s=e[e.length-1];if(s<0||s>t.children.length)throw new C(this.user,"Invalid tree location");const r=t.children[s];return{node:r,listIndex:i,revealed:n,visible:o&&r.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[s,...r]=e;if(s<0||s>t.children.length)throw new C(this.user,"Invalid tree location");for(let e=0;ee.element))),this.data=e}}function z(e){return e instanceof f.kX?new H(e):e}class K{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.JT.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(z(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(z(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,O.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return s?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),s=i.getParentNodeLocation(o),r=i.getNode(s),a=s&&i.getListIndex(s);return this.onDragOver(e,r,a,n,!1)}const l=this.modelProvider(),h=l.getNodeLocation(t),d=l.getListIndex(h),c=l.getListRenderCount(h);return Object.assign(Object.assign({},r),{feedback:(0,o.w6)(d,d+c)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(z(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}class U{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(R||(R={}));class ${constructor(e,t=[]){this._elements=t,this.onDidChange=r.ju.forEach(e,(e=>this._elements=e))}get elements(){return this._elements}}class j{constructor(e,t,i,n,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=j.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new P.r,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.JT.None,this.disposables=new a.SL,this.templateId=e.templateId,this.updateOptions(o),r.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent&&(this.indent=(0,B.u)(e.indent,0,40)),void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==R.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const e=new a.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.R3)(t,(0,n.$)(".monaco-tl-indent")),o=(0,n.R3)(t,(0,n.$)(".monaco-tl-twistie")),s=(0,n.R3)(t,(0,n.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:o,indentGuidesDisposable:a.JT.None,templateData:r}}renderElement(e,t,i,n){"number"==typeof n&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const o=j.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${o}px`,i.indent.style.width=o+this.indent-16+"px",this.renderTwistie(e,i),"number"==typeof n&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...E.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...E.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if((0,n.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new a.SL,o=this.modelProvider();let s=e;for(;;){const e=o.getNodeLocation(s),r=o.getParentNodeLocation(e);if(!r)break;const l=o.getNode(r),h=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&h.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(h):t.indent.insertBefore(h,t.indent.firstElementChild),this.renderedIndentGuides.add(l,h),i.add((0,a.OF)((()=>this.renderedIndentGuides.delete(l,h)))),s=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(e){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,a.B9)(this.disposables)}}j.DefaultIndent=8;class q{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.SL,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const i=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return i;let n;if(n="boolean"==typeof i?i?1:0:L(i)?N(i.visibility):i,0===n)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:F.CL.Default,visibility:!0};const i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(i)?i:[i];for(const e of n){const t=e&&e.toString();if(void 0===t)return{data:F.CL.Default,visibility:!0};const i=(0,F.EW)(this._pattern,this._lowercasePattern,0,t,t.toLowerCase(),0,!0);if(i)return this._matchCount++,1===n.length?{data:i,visibility:!0}:{data:{label:t,score:i},visibility:!0}}return this.tree.options.filterOnType?2:{data:F.CL.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,a.B9)(this.disposables)}}class G{constructor(e,t,i,o,s){this.tree=e,this.view=i,this.filter=o,this.keyboardNavigationDelegate=s,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new r.Q5,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new r.Q5,this.enabledDisposables=new a.SL,this.disposables=new a.SL,this.domNode=(0,n.$)(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,this.disposables.add((0,n.nm)(this.domNode,"dragstart",(()=>this.onDragStart()))),this.messageDomNode=(0,n.R3)(i.getHTMLElement(),(0,n.$)(".monaco-list-type-filter-message")),this.labelDomNode=(0,n.R3)(this.domNode,(0,n.$)("span.label"));const l=(0,n.R3)(this.domNode,(0,n.$)(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=(0,n.R3)(l,(0,n.$)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add((0,n.nm)(this.filterOnTypeDomNode,"input",(()=>this.onDidChangeFilterOnType()))),this.clearDomNode=(0,n.R3)(l,(0,n.$)("button.clear"+M.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=(0,W.N)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=this.enabledDisposables.add(new v.Y(this.view.getHTMLElement(),"keydown")),t=r.ju.chain(e.event).filter((e=>!(0,l.cK)(e.target)||e.target===this.filterOnTypeDomNode)).filter((e=>"Dead"!==e.key&&!/^Media/.test(e.key))).map((e=>new b.y(e))).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter((()=>this.automaticKeyboardNavigation||this.triggered)).filter((e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(this.pattern.length>0||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(V.dz?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey)).forEach((e=>{e.stopPropagation(),e.preventDefault()})).event,i=this.enabledDisposables.add(new v.Y(this.clearDomNode,"click"));r.ju.chain(r.ju.any(t,i.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(V.dz?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(e=>!F.CL.isDefault(e.filterData)));const i=this.tree.getFocus();if(i.length>0){const e=i[0];null===this.tree.getRelativeTop(e)&&this.tree.reveal(e,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=(0,n.i)(e),i=e.clientWidth,o=i/2,s=this.domNode.clientWidth,r=new a.SL;let l=this.positionClassName;const h=()=>{switch(l){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=i-s-6+"px"}},d=()=>{this.positionClassName=l,this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",(0,a.B9)(r)};h(),this.domNode.classList.remove(l),this.domNode.classList.add("dragging"),r.add((0,a.OF)((()=>this.domNode.classList.remove("dragging")))),r.add((0,n.nm)(document,"dragover",(e=>(e=>{e.preventDefault();const i=e.clientX-t;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=id()))),_.P$.CurrentDragAndDropData=new _.TN("vscode-ui"),r.add((0,a.OF)((()=>_.P$.CurrentDragAndDropData=void 0)))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...T.classNamesArray),this.filterOnTypeDomNode.classList.add(...I.classNamesArray),this.filterOnTypeDomNode.title=(0,W.N)("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...I.classNamesArray),this.filterOnTypeDomNode.classList.add(...T.classNamesArray),this.filterOnTypeDomNode.title=(0,W.N)("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=(0,W.N)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=(0,W.N)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||this.filter.totalCount>0&&this.filter.matchCount<=1||!F.CL.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),(0,a.B9)(this.disposables)}}function Z(e){let t=m.Unknown;return(0,n.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=m.Twistie:(0,n.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=m.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function Q(e,t){t(e),e.children.forEach((e=>Q(e,t)))}class Y{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){var i;!(null===(i=t)||void 0===i?void 0:i.__forceEvent)&&(0,o.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>Q(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>Q(e,n)));const o=new Map,s=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>Q(e,s)));const r=[];for(const e of this.nodes){const t=this.identityProvider.getId(e.element).toString();if(i.has(t)){const e=o.get(t);e&&r.push(e)}else r.push(e)}if(this.nodes.length>0&&0===r.length){const e=this.getFirstViewElementWithTrait();e&&r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class X extends l.sx{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if((0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if(o="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick,o&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible){const i=this.tree.model,s=i.getNodeLocation(t),r=e.browserEvent.altKey;if(this.tree.setFocus([s]),i.setCollapsed(s,void 0,r),o&&n)return}super.onViewPointer(e)}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&super.onDoubleClick(e)}}class J extends l.aV{constructor(e,t,i,n,o,s,r,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=s,this.anchorTrait=r}createMouseController(e){return new X(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],s=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&s.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),n.length>0&&super.setFocus((0,o.EB)([...super.getFocus(),...n])),s.length>0&&super.setSelection((0,o.EB)([...super.getSelection(),...s])),"number"==typeof r&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class ee{constructor(e,t,i,o,s={}){this._options=s,this.eventBufferer=new r.E7,this.disposables=new a.SL,this._onWillRefilter=new r.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new r.Q5;const h=new U(i),d=new r.ZD,c=new r.ZD,u=new $(c.event);this.renderers=o.map((e=>new j(e,(()=>this.model),d.event,u,s)));for(let e of this.renderers)this.disposables.add(e);let g;var p,m;s.keyboardNavigationLabelProvider&&(g=new q(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:g}),this.disposables.add(g)),this.focus=new Y((()=>this.view.getFocusedElements()[0]),s.identityProvider),this.selection=new Y((()=>this.view.getSelectedElements()[0]),s.identityProvider),this.anchor=new Y((()=>this.view.getAnchorElement()),s.identityProvider),this.view=new J(e,t,h,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},(p=()=>this.model,(m=s)&&Object.assign(Object.assign({},m),{identityProvider:m.identityProvider&&{getId:e=>m.identityProvider.getId(e.element)},dnd:m.dnd&&new K(p,m.dnd),multipleSelectionController:m.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>m.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element})),isSelectionRangeChangeEvent:e=>m.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},accessibilityProvider:m.accessibilityProvider&&Object.assign(Object.assign({},m.accessibilityProvider),{getSetSize(e){const t=p(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:m.accessibilityProvider&&m.accessibilityProvider.isChecked?e=>m.accessibilityProvider.isChecked(e.element):void 0,getRole:m.accessibilityProvider&&m.accessibilityProvider.getRole?e=>m.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>m.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>m.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:m.accessibilityProvider&&m.accessibilityProvider.getWidgetRole?()=>m.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:m.accessibilityProvider&&m.accessibilityProvider.getAriaLevel?e=>m.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:m.accessibilityProvider.getActiveDescendantId&&(e=>m.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:m.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},m.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:e=>m.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}),enableKeyboardNavigation:m.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(e,this.view,s),d.input=this.model.onDidChangeCollapseState;const f=r.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}));if(f((()=>null),null,this.disposables),c.input=r.ju.chain(r.ju.any(f,this.focus.onDidChange,this.selection.onDidChange)).debounce((()=>null),0).map((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]})).event,!1!==s.keyboardSupport){const e=r.ju.chain(this.view.onKeyDown).filter((e=>!(0,l.cK)(e.target))).map((e=>new b.y(e)));e.filter((e=>15===e.keyCode)).on(this.onLeftArrow,this,this.disposables),e.filter((e=>17===e.keyCode)).on(this.onRightArrow,this,this.disposables),e.filter((e=>10===e.keyCode)).on(this.onSpace,this,this.disposables)}if(s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||l.WK;this.typeFilterController=new G(this,this.model,this.view,g,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=(0,n.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===R.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return r.ju.map(this.view.onMouseDblClick,Z)}get onPointer(){return r.ju.map(this.view.onPointer,Z)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===R.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}focusNext(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);-1!==i&&this.view.reveal(i,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){(0,a.B9)(this.disposables),this.view.dispose()}}class te{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new k(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.$.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=S.$.empty(),i){const n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null===e.element)return;const s=e;if(n.add(s.element),this.nodes.set(s.element,s),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.add(e),this.nodesByIdentity.set(e,s)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,s)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const s=e;if(n.has(s.element)||this.nodes.delete(s.element),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,s)}}))}preserveCollapseState(e=S.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});const i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,n=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new C(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new C(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new C(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new C(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function ie(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.$.map(S.$.from(e.children),ie),collapsible:e.collapsible,collapsed:e.collapsed}}function ne(e){const t=[e.element],i=e.incompressible||!1;let n,o;for(;[o,n]=S.$.consume(S.$.from(e.children),2),1===o.length&&!o[0].incompressible;)e=o[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.$.map(S.$.concat(o,n),ne),collapsible:e.collapsible,collapsed:e.collapsed}}function oe(e,t=0){let i;return i=toe(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function se(e){return oe(e,0)}function re(e,t,i){return e.element===t?Object.assign(Object.assign({},e),{children:i}):Object.assign(Object.assign({},e),{children:S.$.map(S.$.from(e.children),(e=>re(e,t,i)))})}class ae{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new te(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=S.$.empty(),i){const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=S.$.map(t,this.enabled?ne:ie);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const s=this.nodes.get(e);if(!s)throw new Error("Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),h=re(se(r),e,t),d=(this.enabled?ne:ie)(h),c=l.children.map((e=>e===r?d:e));this._setChildren(l.element,c,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.$.map(t,se),n=S.$.map(i,e?ne:ie);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new C(this.user,`Tree element not found: ${e}`);return t}}const le=e=>e[e.length-1];class he{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new he(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class de{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||le;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new w((e=>new he(n,e))),this.model=new ae(e,function(e,t){return{splice(i,n,o){t.splice(i,n,o.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}})}(n,i))}get onDidSplice(){return r.ju.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return r.ju.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return r.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}setChildren(e,t=S.$.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var ce=i(4848);class ue extends ee{constructor(e,t,i,n,o={}){super(e,t,i,n,o)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=S.$.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new te(e,t,i)}}class ge{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}!function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([ce.H],ge.prototype,"compressedTreeNodeProvider",null);class pe extends ue{constructor(e,t,i,n,o={}){const s=()=>this;super(e,t,i,n.map((e=>new ge(s,e))),function(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}})}(s,o))}setChildren(e,t=S.$.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new de(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var me=i(996),fe=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function _e(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ve(e,t){return!!t.parent&&(t.parent===e||ve(e,t.parent))}class be{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new be(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Ce{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...A.classNamesArray),!0):(t.classList.remove(...A.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function we(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function ye(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Se extends f.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Le(e){return e instanceof f.kX?new Se(e):e}class Ne{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Le(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(Le(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(Le(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function xe(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new Ne(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element})),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function ke(e,t){t(e),e.children.forEach((e=>ke(e,t)))}class De{constructor(e,t,i,n,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.Q5,this._onDidChangeNodeSlowState=new r.Q5,this.nodeMapper=new w((e=>new be(e))),this.disposables=new a.SL,this.identityProvider=s.identityProvider,this.autoExpandSingleChildren=void 0!==s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.collapseByDefault=s.collapseByDefault,this.tree=this.createTree(e,t,i,n,s),this.root=_e({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return r.ju.map(this.tree.onDidChangeFocus,we)}get onDidChangeSelection(){return r.ju.map(this.tree.onDidChangeSelection,we)}get onMouseDblClick(){return r.ju.map(this.tree.onMouseDblClick,ye)}get onPointer(){return r.ju.map(this.tree.onPointer,ye)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,o){const s=new U(i),r=n.map((e=>new Ce(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=xe(o)||{};return new ue(e,t,s,r,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return fe(this,void 0,void 0,(function*(){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,i=!1,n,o){return fe(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new C(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event));const s=this.getDataNode(e);if(yield this.refreshAndRenderNode(s,t,n,o),i)try{this.tree.rerender(s)}catch(e){}}))}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return fe(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new C(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event)),n}))}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new C(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return fe(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)}))}refreshNode(e,t,i){return fe(this,void 0,void 0,(function*(){let n;return this.subTreeRefreshPromises.forEach(((o,s)=>{!n&&function(e,t){return e===t||ve(e,t)||ve(t,e)}(s,e)&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n||this.doRefreshSubTree(e,t,i)}))}doRefreshSubTree(e,t,i){return fe(this,void 0,void 0,(function*(){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const o=yield this.doRefreshNode(e,t,i);e.stale=!1,yield O.jT.settled(o.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}))}doRefreshNode(e,t,i){return fe(this,void 0,void 0,(function*(){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=(0,O.Vs)(800);t.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=this.doGetChildren(e).finally((()=>t.cancel()))}else n=Promise.resolve(S.$.empty());try{const o=yield n;return this.setChildren(e,o,t,i)}catch(t){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,me.VV)(t))return[];throw t}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){let t=this.refreshPromises.get(e);return t||(t=(0,O.PG)((()=>fe(this,void 0,void 0,(function*(){const t=yield this.dataSource.getChildren(e.element);return this.processChildren(t)})))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(me.dL))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const s=new Map,r=new Map;for(const t of e.children)if(s.set(t.element,t),this.identityProvider){const e=this.tree.isCollapsed(t);r.set(t.id,{node:t,collapsed:e})}const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=_e({element:t,parent:e,hasChildren:o});return o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(i.collapsedByDefault=!1,a.push(i)),i}const l=this.identityProvider.getId(t).toString(),h=r.get(l);if(h){const e=h.node;return s.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?h.collapsed?(e.children.forEach((e=>ke(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,a.push(e)),e}const d=_e({element:t,parent:e,id:l,hasChildren:o});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1?a.push(d):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(d.collapsedByDefault=!1,a.push(d)),d}));for(const e of s.values())ke(e,(e=>this.nodes.delete(e.element)));for(const e of l)this.nodes.set(e.element,e);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].collapsedByDefault=!1,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}});this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return i=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?S.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class Ee{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new Ee(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Ie{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...A.classNamesArray),!0):(t.classList.remove(...A.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}class Te extends De{constructor(e,t,i,n,o,s,r={}){super(e,t,i,o,s,r),this.compressionDelegate=n,this.compressibleNodeMapper=new w((e=>new Ee(e))),this.filter=r.filter}createTree(e,t,i,n,o){const s=new U(i),r=n.map((e=>new Ie(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&xe(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))})})}(o)||{};return new pe(e,t,s,r,a)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const n of e){const e=this.tree.getCompressedTreeNode(n===this.root?null:n);if(e.element)for(const n of e.element.elements)t.add(i(n.element))}return t},o=n(this.tree.getSelection()),s=n(this.tree.getFocus());super.render(e,t);const r=this.getSelection();let a=!1;const l=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let e=0;e{const t="boolean"==typeof(i=this.filter.filter(e,1))?i?1:0:L(i)?N(i.visibility):N(i);var i;if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t}))),super.processChildren(e)}}class Me extends ee{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new te(e,t,i)}}var Ae=i(8708),Re=i(1177),Oe=i(2326),Pe=i(499),Fe=i(7131),Be=i(4333),Ve=i(5495),We=i(6325),He=i(3003),ze=i(8566),Ke=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ue=function(e,t){return function(i,n){t(i,n,e)}};const $e=(0,Be.yh)("listService");let je=class{constructor(e){this._themeService=e,this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new l.wD((0,n.dS)(),"");this.disposables.add((0,He.Jl)(e,this._themeService))}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),(0,a.F8)(e.onDidFocus((()=>this._lastFocusedWidget=e)),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&(this._lastFocusedWidget=void 0)})))}dispose(){this.disposables.dispose()}};je=Ke([Ue(0,ze.XE)],je);const qe=new Pe.uy("listFocus",!0),Ge=new Pe.uy("listSupportsMultiselect",!0),Ze=Pe.Ao.and(qe,Pe.Ao.not(Fe.d)),Qe=new Pe.uy("listHasSelectionOrFocus",!1),Ye=new Pe.uy("listDoubleSelection",!1),Xe=new Pe.uy("listMultiSelection",!1),Je=new Pe.uy("listSelectionNavigation",!1),et="listAutomaticKeyboardNavigation";function tt(e,t){const i=e.createScoped(t.getHTMLElement());return qe.bindTo(i),i}const it="workbench.list.multiSelectModifier",nt="workbench.list.openMode",ot="workbench.list.horizontalScrolling",st="workbench.list.keyboardNavigation",rt="workbench.list.automaticKeyboardNavigation",at="workbench.tree.indent",lt="workbench.tree.renderIndentGuides",ht="workbench.list.smoothScrolling",dt="workbench.list.mouseWheelScrollSensitivity",ct="workbench.list.fastScrollSensitivity",ut="workbench.tree.expandMode";function gt(e){return"alt"===e.getValue(it)}class pt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=gt(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(it)&&(this.useAltAsMultipleSelectionModifier=gt(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function mt(e,t,i){var n;const o=new a.SL;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>i.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(t.getValue(ht)),mouseWheelScrollSensitivity:t.getValue(dt),fastScrollSensitivity:t.getValue(ct),multipleSelectionController:null!==(n=e.multipleSelectionController)&&void 0!==n?n:o.add(new pt(t))}),o]}let ft=class extends l.aV{constructor(e,t,i,n,o,s,r,a,l,h){const d=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(ot)),[c,u]=mt(o,l,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,He.o)(a.getColorTheme(),He.O2)),c),{horizontalScrolling:d})),this.disposables.add(u),this.contextKeyService=tt(s,this),this.themeService=a,this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Qe.bindTo(this.contextKeyService),this.listDoubleSelection=Ye.bindTo(this.contextKeyService),this.listMultiSelection=Xe.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=gt(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(it)&&(this._useAltAsMultipleSelectionModifier=gt(l));let t={};if(e.affectsConfiguration(ot)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ot));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(ht)){const e=Boolean(l.getValue(ht));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(dt)){const e=l.getValue(dt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(ct)){const e=l.getValue(ct);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Ct(this,Object.assign({configurationService:l},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,He.Jl)(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),super.dispose()}};ft=Ke([Ue(5,Pe.i6),Ue(6,$e),Ue(7,ze.XE),Ue(8,Re.Ui),Ue(9,Ve.d)],ft);let _t=class extends class{constructor(e,t,i,n,o={}){const s=()=>this.model,r=n.map((e=>new h(e,s)));this.list=new l.aV(e,t,i,r,function(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new d(e,t.accessibilityProvider)})}(s,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.ju.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return r.ju.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return r.ju.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,o.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}{constructor(e,t,i,n,o,s,r,l,h,d){const c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(h.getValue(ot)),[u,g]=mt(o,h,d);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,He.o)(l.getColorTheme(),He.O2)),u),{horizontalScrolling:c})),this.disposables=new a.SL,this.disposables.add(g),this.contextKeyService=tt(s,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=gt(h),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add((0,He.Jl)(this,l,o.overrideStyles)),this.disposables.add(h.onDidChangeConfiguration((e=>{e.affectsConfiguration(it)&&(this._useAltAsMultipleSelectionModifier=gt(h));let t={};if(e.affectsConfiguration(ot)&&void 0===this.horizontalScrolling){const e=Boolean(h.getValue(ot));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(ht)){const e=Boolean(h.getValue(ht));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(dt)){const e=h.getValue(dt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(ct)){const e=h.getValue(ct);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Ct(this,Object.assign({configurationService:h},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,He.Jl)(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),super.dispose()}};_t=Ke([Ue(5,Pe.i6),Ue(6,$e),Ue(7,ze.XE),Ue(8,Re.Ui),Ue(9,Ve.d)],_t);let vt=class extends p{constructor(e,t,i,n,o,s,r,l,h,d,c){const u=void 0!==s.horizontalScrolling?s.horizontalScrolling:Boolean(d.getValue(ot)),[g,p]=mt(s,d,c);super(e,t,i,n,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,He.o)(h.getColorTheme(),He.O2)),g),{horizontalScrolling:u})),this.disposables=new a.SL,this.disposables.add(p),this.contextKeyService=tt(r,this),this.themeService=h,this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=Qe.bindTo(this.contextKeyService),this.listDoubleSelection=Ye.bindTo(this.contextKeyService),this.listMultiSelection=Xe.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=gt(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(d.onDidChangeConfiguration((e=>{e.affectsConfiguration(it)&&(this._useAltAsMultipleSelectionModifier=gt(d));let t={};if(e.affectsConfiguration(ot)&&void 0===this.horizontalScrolling){const e=Boolean(d.getValue(ot));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(ht)){const e=Boolean(d.getValue(ht));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(dt)){const e=d.getValue(dt);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(ct)){const e=d.getValue(ct);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new wt(this,Object.assign({configurationService:d},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=(0,He.Jl)(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),super.dispose()}};vt=Ke([Ue(6,Pe.i6),Ue(7,$e),Ue(8,ze.XE),Ue(9,Re.Ui),Ue(10,Ve.d)],vt);class bt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.Q5),this.onDidOpen=this._onDidOpen.event,this._register(r.ju.filter(this.widget.onDidChangeSelection,(e=>e.browserEvent instanceof KeyboardEvent))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&(null==t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(nt)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration((()=>{this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(nt))})))):this.openOnSingleClick=null===(i=null==t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Ct extends bt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class wt extends bt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class yt extends bt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function St(e,t){let i=!1;return n=>{if(i)return i=!1,!1;const o=t.softDispatch(n,e);return o&&o.enterChord?(i=!0,!1):(i=!1,!0)}}let Lt=class extends ue{constructor(e,t,i,n,o,s,r,a,l,h,d){const{options:c,getAutomaticKeyboardNavigation:u,disposable:g}=Et(t,o,s,l,h,d);super(e,t,i,n,c),this.disposables.add(g),this.internals=new It(this,o,u,o.overrideStyles,s,r,a,l,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};Lt=Ke([Ue(5,Pe.i6),Ue(6,$e),Ue(7,ze.XE),Ue(8,Re.Ui),Ue(9,Ve.d),Ue(10,Ae.F)],Lt);let Nt=class extends pe{constructor(e,t,i,n,o,s,r,a,l,h,d){const{options:c,getAutomaticKeyboardNavigation:u,disposable:g}=Et(t,o,s,l,h,d);super(e,t,i,n,c),this.disposables.add(g),this.internals=new It(this,o,u,o.overrideStyles,s,r,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Nt=Ke([Ue(5,Pe.i6),Ue(6,$e),Ue(7,ze.XE),Ue(8,Re.Ui),Ue(9,Ve.d),Ue(10,Ae.F)],Nt);let xt=class extends Me{constructor(e,t,i,n,o,s,r,a,l,h,d,c){const{options:u,getAutomaticKeyboardNavigation:g,disposable:p}=Et(t,s,r,h,d,c);super(e,t,i,n,o,u),this.disposables.add(p),this.internals=new It(this,s,g,s.overrideStyles,r,a,l,h,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};xt=Ke([Ue(6,Pe.i6),Ue(7,$e),Ue(8,ze.XE),Ue(9,Re.Ui),Ue(10,Ve.d),Ue(11,Ae.F)],xt);let kt=class extends De{constructor(e,t,i,n,o,s,r,a,l,h,d,c){const{options:u,getAutomaticKeyboardNavigation:g,disposable:p}=Et(t,s,r,h,d,c);super(e,t,i,n,o,u),this.disposables.add(p),this.internals=new It(this,s,g,s.overrideStyles,r,a,l,h,c),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};kt=Ke([Ue(6,Pe.i6),Ue(7,$e),Ue(8,ze.XE),Ue(9,Re.Ui),Ue(10,Ve.d),Ue(11,Ae.F)],kt);let Dt=class extends Te{constructor(e,t,i,n,o,s,r,a,l,h,d,c,u){const{options:g,getAutomaticKeyboardNavigation:p,disposable:m}=Et(t,r,a,d,c,u);super(e,t,i,n,o,s,g),this.disposables.add(m),this.internals=new It(this,r,p,r.overrideStyles,a,l,h,d,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function Et(e,t,i,n,o,s){var r;const a=()=>{let e=Boolean(i.getContextKeyValue(et));return e&&(e=Boolean(n.getValue(rt))),e},l=s.isScreenReaderOptimized(),h=t.simpleKeyboardNavigation||l?"simple":n.getValue(st),d=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(ot)),[c,u]=mt(t,n,o),g=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:u,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:"number"==typeof n.getValue(at)?n.getValue(at):void 0,renderIndentGuides:n.getValue(lt),smoothScrolling:Boolean(n.getValue(ht)),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:"simple"===h,filterOnType:"filter"===h,horizontalScrolling:d,keyboardNavigationEventFilter:St(e,o),additionalScrollHeight:g,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(r=t.expandOnlyOnTwistieClick)&&void 0!==r?r:"doubleClick"===n.getValue(ut)})}}Dt=Ke([Ue(7,Pe.i6),Ue(8,$e),Ue(9,ze.XE),Ue(10,Re.Ui),Ue(11,Ve.d),Ue(12,Ae.F)],Dt);let It=class{constructor(e,t,i,n,o,s,r,a,l){this.tree=e,this.themeService=r,this.disposables=[],this.contextKeyService=tt(o,e),this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.hasSelectionOrFocus=Qe.bindTo(this.contextKeyService),this.hasDoubleSelection=Ye.bindTo(this.contextKeyService),this.hasMultiSelection=Xe.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=gt(a);const h=new Set;h.add(et);const d=()=>{const t=l.isScreenReaderOptimized()?"simple":a.getValue(st);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})};this.updateStyleOverrides(n),this.disposables.push(this.contextKeyService,s.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0)})),a.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(it)&&(this._useAltAsMultipleSelectionModifier=gt(a)),n.affectsConfiguration(at)){const e=a.getValue(at);o=Object.assign(Object.assign({},o),{indent:e})}if(n.affectsConfiguration(lt)){const e=a.getValue(lt);o=Object.assign(Object.assign({},o),{renderIndentGuides:e})}if(n.affectsConfiguration(ht)){const e=Boolean(a.getValue(ht));o=Object.assign(Object.assign({},o),{smoothScrolling:e})}if(n.affectsConfiguration(st)&&d(),n.affectsConfiguration(rt)&&(o=Object.assign(Object.assign({},o),{automaticKeyboardNavigation:i()})),n.affectsConfiguration(ot)&&void 0===t.horizontalScrolling){const e=Boolean(a.getValue(ot));o=Object.assign(Object.assign({},o),{horizontalScrolling:e})}if(n.affectsConfiguration(ut)&&void 0===t.expandOnlyOnTwistieClick&&(o=Object.assign(Object.assign({},o),{expandOnlyOnTwistieClick:"doubleClick"===a.getValue(ut)})),n.affectsConfiguration(dt)){const e=a.getValue(dt);o=Object.assign(Object.assign({},o),{mouseWheelScrollSensitivity:e})}if(n.affectsConfiguration(ct)){const e=a.getValue(ct);o=Object.assign(Object.assign({},o),{fastScrollSensitivity:e})}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(h)&&e.updateOptions({automaticKeyboardNavigation:i()})})),l.onDidChangeScreenReaderOptimized((()=>d()))),this.navigator=new yt(e,Object.assign({configurationService:a},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){(0,a.B9)(this.styler),this.styler=e?(0,He.Jl)(this.tree,this.themeService,e):a.JT.None}dispose(){this.disposables=(0,a.B9)(this.disposables),(0,a.B9)(this.styler),this.styler=void 0}};It=Ke([Ue(4,Pe.i6),Ue(5,$e),Ue(6,ze.XE),Ue(7,Re.Ui),Ue(8,Ae.F)],It),We.B.as(Oe.IP.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,W.N)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[it]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[(0,W.N)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,W.N)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,W.N)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[nt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,W.N)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[ot]:{type:"boolean",default:!1,description:(0,W.N)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[at]:{type:"number",default:8,minimum:0,maximum:40,description:(0,W.N)("tree indent setting","Controls tree indentation in pixels.")},[lt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,W.N)("render tree indent guides","Controls whether the tree should render indent guides.")},[ht]:{type:"boolean",default:!1,description:(0,W.N)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[dt]:{type:"number",default:1,description:(0,W.N)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[ct]:{type:"number",default:5,description:(0,W.N)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[st]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,W.N)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,W.N)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,W.N)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,W.N)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[rt]:{type:"boolean",default:!0,markdownDescription:(0,W.N)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},[ut]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,W.N)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}})},9271:(e,t,i)=>{i.d(t,{VZ:()=>s,in:()=>r,kw:()=>h,$V:()=>d});var n=i(6709),o=i(8431);const s=(0,i(4333).yh)("logService");var r;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(r||(r={}));const a=r.Info;class l extends o.JT{constructor(){super(...arguments),this.level=a,this._onDidChangeLogLevel=this._register(new n.Q5)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class h extends l{constructor(e=a){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=r.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=r.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=r.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=r.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}class d extends o.JT{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}},6156:(e,t,i)=>{i.d(t,{ZL:()=>n,H0:()=>o,lT:()=>l});var n,o,s=i(7068),r=i(6386),a=i(4333);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.N)("sev.error","Error"),t[e.Warning]=(0,r.N)("sev.warning","Warning"),t[e.Info]=(0,r.N)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Z.Error:return e.Error;case s.Z.Warning:return e.Warning;case s.Z.Info:return e.Info;case s.Z.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Z.Error;case e.Warning:return s.Z.Warning;case e.Info:return s.Z.Info;case e.Hint:return s.Z.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){let o=[t];return e.source?o.push(e.source.replace("¦","\\¦")):o.push(t),e.code?"string"==typeof e.code?o.push(e.code.replace("¦","\\¦")):o.push(e.code.value.replace("¦","\\¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(n.toString(e.severity)):o.push(t),e.message&&i?o.push(e.message.replace("¦","\\¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(o||(o={}));const l=(0,a.yh)("markerService")},7968:(e,t,i)=>{i.d(t,{lT:()=>n,EO:()=>o}),i(7068);const n=(0,i(4333).yh)("notificationService");class o{}},8786:(e,t,i)=>{i.d(t,{v4:()=>l,SW:()=>h,xn:()=>d});var n=i(8431),o=i(7416),s=i(8919),r=i(4333),a=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const l=(0,r.yh)("openerService"),h=Object.freeze({_serviceBrand:void 0,registerOpener:()=>n.JT.None,registerValidator:()=>n.JT.None,registerExternalUriResolver:()=>n.JT.None,setDefaultExternalOpener(){},registerExternalOpener:()=>n.JT.None,open(){return a(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(e){return a(this,void 0,void 0,(function*(){return{resolved:e,dispose(){}}}))}});function d(e,t){return s.o.isUri(e)?(0,o.qq)(e.scheme,t):(0,o.ok)(e,t+":")}},9969:(e,t,i)=>{i.d(t,{E:()=>o,e:()=>s});var n=i(4333);class o{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}o.None=Object.freeze({report(){}});const s=(0,n.yh)("editorProgressService")},6152:(e,t,i)=>{i.d(t,{Ry:()=>n,IP:()=>a});var n,o=i(6308),s=i(8431),r=i(6325);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.B.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,s.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,o.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||this.defaultProvider}})},8785:(e,t,i)=>{i.d(t,{jG:()=>o.jG,eJ:()=>s});var n=i(4333),o=i(4304);const s=(0,n.yh)("quickInputService")},6325:(e,t,i)=>{i.d(t,{B:()=>s});var n=i(4527),o=i(4818);const s=new class{constructor(){this.data=new Map}add(e,t){n.ok(o.HD(e)),n.ok(o.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},7508:(e,t,i)=>{i.d(t,{Uy:()=>g,vm:()=>f,fk:()=>p});var n,o=i(6709),s=i(8431),r=i(4818),a=i(3484),l=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};!function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends s.JT{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o.Q5),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=new a.rH(h.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.accept(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.accept(e,void 0)))}accept(e,t){if(this.state===n.Closed)return;let i=!1;(0,r.Jp)(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return(0,r.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,r.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,r.Jp)(i)?t:parseInt(i,10)}set(e,t){return l(this,void 0,void 0,(function*(){if(this.state===n.Closed)return;if((0,r.Jp)(t))return this.delete(e);const i=String(t);return this.cache.get(e)!==i?(this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger((()=>this.flushPending()))):void 0}))}delete(e){return l(this,void 0,void 0,(function*(){if(this.state!==n.Closed)return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger((()=>this.flushPending()))):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return l(this,void 0,void 0,(function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}h.DEFAULT_FLUSH_DELAY=100;class d{constructor(){this.onDidChangeItemsExternal=o.ju.None,this.items=new Map}updateItems(e){return l(this,void 0,void 0,(function*(){e.insert&&e.insert.forEach(((e,t)=>this.items.set(t,e))),e.delete&&e.delete.forEach((e=>this.items.delete(e)))}))}}var c=i(4333);const u="__$__targetStorageMarker",g=(0,c.yh)("storageService");var p;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(p||(p={}));class m extends s.JT{constructor(e={flushInterval:m.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.K3),this._onDidChangeTarget=this._register(new o.K3),this._onWillSaveState=this._register(new o.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===u?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){(0,r.Jp)(t)?this.remove(e,i):this.withPausedEmitters((()=>{var o;this.updateKeyTarget(e,i,n),null===(o=this.getStorage(i))||void 0===o||o.set(e,t)}))}remove(e,t){this.withPausedEmitters((()=>{var i;this.updateKeyTarget(e,t,void 0),null===(i=this.getStorage(t))||void 0===i||i.delete(e)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,o;const s=this.getKeyTargets(t);"number"==typeof i?s[e]!==i&&(s[e]=i,null===(n=this.getStorage(t))||void 0===n||n.set(u,JSON.stringify(s))):"number"==typeof s[e]&&(delete s[e],null===(o=this.getStorage(t))||void 0===o||o.set(u,JSON.stringify(s)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(u,e);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}}m.DEFAULT_FLUSH_INTERVAL=6e4;class f extends m{constructor(){super(),this.globalStorage=this._register(new h(new d)),this.workspaceStorage=this._register(new h(new d)),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.globalStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e))))}getStorage(e){return 0===e?this.globalStorage:this.workspaceStorage}}},8554:(e,t,i)=>{i.d(t,{b:()=>n});const n=(0,i(4333).yh)("telemetryService")},2537:(e,t,i)=>{i.d(t,{IP:()=>d,P6:()=>u,dR:()=>g,Id:()=>p,XZ:()=>m,R8:()=>f,lR:()=>_,xL:()=>v,ur:()=>b,sg:()=>C,Sw:()=>w,rh:()=>y,sE:()=>S,zJ:()=>L,dt:()=>N,PR:()=>x,XE:()=>k,Pv:()=>D,_l:()=>E,YI:()=>I,EP:()=>T,RV:()=>M,SU:()=>A,C3:()=>R,p:()=>O,_t:()=>P,OZ:()=>F,j5:()=>W,b7:()=>H,GO:()=>z,g8:()=>K,qe:()=>U,_w:()=>$,et:()=>j,AB:()=>q,yn:()=>G,zR:()=>Z,A2:()=>Q,lX:()=>Y,b6:()=>X,gp:()=>J,uo:()=>ee,pW:()=>te,fe:()=>ie,c6:()=>ne,T8:()=>oe,Du:()=>se,fE:()=>re,cv:()=>ae,NO:()=>le,D0:()=>he,Hf:()=>de,D1:()=>ce,Ng:()=>ue,zK:()=>ge,tZ:()=>pe,lo:()=>me,kJ:()=>fe,op:()=>_e,oQ:()=>ve,lW:()=>be,AW:()=>Ce,K1:()=>we,hE:()=>ye,yb:()=>Se,ES:()=>Le,Rz:()=>Ne,g_:()=>xe,ny:()=>ke,MU:()=>De,jU:()=>Ee,pn:()=>Ie,Ei:()=>Te,gk:()=>Me,pt:()=>Ae,yJ:()=>Re,Sb:()=>Oe,CN:()=>Pe,Lo:()=>Fe,_Y:()=>Be,VV:()=>Ve,Pp:()=>We,hX:()=>He,bK:()=>ze,HC:()=>Ke,ph:()=>Ue,Fu:()=>$e,sK:()=>je,Cz:()=>qe,ke:()=>Ge,yp:()=>Ze,P4:()=>Qe,XL:()=>Ye,mH:()=>Xe,LL:()=>Je,L_:()=>et,_b:()=>tt,_2:()=>it,Oo:()=>nt,dC:()=>ot,M6:()=>st,Tn:()=>rt,rg:()=>at,yt:()=>lt,kv:()=>ht,s$:()=>dt,F3:()=>ct,mV:()=>ut,$d:()=>gt,AS:()=>pt,Gw:()=>mt,PX:()=>ft,vG:()=>bt,oS:()=>Ct,S:()=>wt,Un:()=>yt,ux:()=>St,NP:()=>Nt,cb:()=>xt,Vq:()=>kt,Cd:()=>Dt,DE:()=>Et,Hz:()=>It,jb:()=>Tt,$D:()=>Mt,E3:()=>At,ZG:()=>Rt,lU:()=>Ot,u2:()=>Pt,Pk:()=>Ft,I1:()=>Bt,U6:()=>Vt,Fm:()=>Wt,SP:()=>Ht,KT:()=>zt,IY:()=>Kt,ov:()=>Ut,Gj:()=>$t,Iv:()=>jt,kV:()=>qt,It:()=>Gt,CA:()=>Zt,Xy:()=>Qt,br:()=>Yt,Jp:()=>Xt,BO:()=>Jt,OL:()=>ei,Zn:()=>ni,kw:()=>oi,Sn:()=>ri});var n=i(3484),o=i(6741),s=i(6709),r=i(4818),a=i(6386),l=i(2123),h=i(6325);const d={ColorContribution:"base.contributions.colors"},c=new class{constructor(){this._onDidChangeSchema=new s.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){let s={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=s;let r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(r.deprecationMessage=o),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults)return ri(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{let i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,i,n,o){return c.registerColor(e,t,i,n,o)}h.B.add(d.ColorContribution,c);const g=u("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},a.N("foreground","Overall foreground color. This color is only used if not overridden by a component.")),p=u("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},a.N("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},a.N("iconForeground","The default color for icons in the workbench.")),f=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},a.N("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),_=u("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},a.N("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),v=u("contrastActiveBorder",{light:null,dark:null,hc:f},a.N("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),b=u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},a.N("textLinkForeground","Foreground color for links in text.")),C=u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},a.N("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),w=u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:o.Il.black},a.N("textCodeBlockBackground","Background color for code blocks in text.")),y=u("widget.shadow",{dark:ni(o.Il.black,.36),light:ni(o.Il.black,.16),hc:null},a.N("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),S=u("input.background",{dark:"#3C3C3C",light:o.Il.white,hc:o.Il.black},a.N("inputBoxBackground","Input box background.")),L=u("input.foreground",{dark:g,light:g,hc:g},a.N("inputBoxForeground","Input box foreground.")),N=u("input.border",{dark:null,light:null,hc:_},a.N("inputBoxBorder","Input box border.")),x=u("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:_},a.N("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),k=u("inputOption.activeBackground",{dark:ni(f,.4),light:ni(f,.2),hc:o.Il.transparent},a.N("inputOption.activeBackground","Background color of activated options in input fields.")),D=u("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hc:null},a.N("inputOption.activeForeground","Foreground color of activated options in input fields.")),E=u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:o.Il.black},a.N("inputValidationInfoBackground","Input validation background color for information severity.")),I=u("inputValidation.infoForeground",{dark:null,light:null,hc:null},a.N("inputValidationInfoForeground","Input validation foreground color for information severity.")),T=u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:_},a.N("inputValidationInfoBorder","Input validation border color for information severity.")),M=u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:o.Il.black},a.N("inputValidationWarningBackground","Input validation background color for warning severity.")),A=u("inputValidation.warningForeground",{dark:null,light:null,hc:null},a.N("inputValidationWarningForeground","Input validation foreground color for warning severity.")),R=u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:_},a.N("inputValidationWarningBorder","Input validation border color for warning severity.")),O=u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:o.Il.black},a.N("inputValidationErrorBackground","Input validation background color for error severity.")),P=u("inputValidation.errorForeground",{dark:null,light:null,hc:null},a.N("inputValidationErrorForeground","Input validation foreground color for error severity.")),F=u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:_},a.N("inputValidationErrorBorder","Input validation border color for error severity.")),B=u("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hc:o.Il.black},a.N("dropdownBackground","Dropdown background.")),V=u("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:o.Il.white},a.N("dropdownForeground","Dropdown foreground.")),W=u("button.foreground",{dark:o.Il.white,light:o.Il.white,hc:o.Il.white},a.N("buttonForeground","Button foreground color.")),H=u("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},a.N("buttonBackground","Button background color.")),z=u("button.hoverBackground",{dark:ii(H,.2),light:ti(H,.2),hc:null},a.N("buttonHoverBackground","Button background color when hovering.")),K=u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:o.Il.black},a.N("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),U=u("badge.foreground",{dark:o.Il.white,light:"#333",hc:o.Il.white},a.N("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),$=u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},a.N("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),j=u("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hc:ni(_,.6)},a.N("scrollbarSliderBackground","Scrollbar slider background color.")),q=u("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hc:ni(_,.8)},a.N("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),G=u("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hc:_},a.N("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=u("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hc:_},a.N("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Q=u("editorError.background",{dark:null,light:null,hc:null},a.N("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Y=u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},a.N("editorError.foreground","Foreground color of error squigglies in the editor.")),X=u("editorError.border",{dark:null,light:null,hc:o.Il.fromHex("#E47777").transparent(.8)},a.N("errorBorder","Border color of error boxes in the editor.")),J=u("editorWarning.background",{dark:null,light:null,hc:null},a.N("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ee=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},a.N("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),te=u("editorWarning.border",{dark:null,light:null,hc:o.Il.fromHex("#FFCC00").transparent(.8)},a.N("warningBorder","Border color of warning boxes in the editor.")),ie=u("editorInfo.background",{dark:null,light:null,hc:null},a.N("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ne=u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},a.N("editorInfo.foreground","Foreground color of info squigglies in the editor.")),oe=u("editorInfo.border",{dark:null,light:null,hc:o.Il.fromHex("#3794FF").transparent(.8)},a.N("infoBorder","Border color of info boxes in the editor.")),se=u("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},a.N("editorHint.foreground","Foreground color of hint squigglies in the editor.")),re=u("editorHint.border",{dark:null,light:null,hc:o.Il.fromHex("#eeeeee").transparent(.8)},a.N("hintBorder","Border color of hint boxes in the editor.")),ae=u("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:o.Il.black},a.N("editorBackground","Editor background color.")),le=u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:o.Il.white},a.N("editorForeground","Editor default foreground color.")),he=u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},a.N("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),de=u("editorWidget.foreground",{dark:g,light:g,hc:g},a.N("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ce=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:_},a.N("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ue=u("editorWidget.resizeBorder",{light:null,dark:null,hc:null},a.N("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ge=u("quickInput.background",{dark:he,light:he,hc:he},a.N("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),pe=u("quickInput.foreground",{dark:de,light:de,hc:de},a.N("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),me=u("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hc:"#000000"},a.N("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),fe=u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:o.Il.white},a.N("pickerGroupForeground","Quick picker color for grouping labels.")),_e=u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:o.Il.white},a.N("pickerGroupBorder","Quick picker color for grouping borders.")),ve=u("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hc:o.Il.transparent},a.N("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),be=u("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hc:o.Il.white},a.N("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),Ce=u("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hc:new o.Il(new o.VS(111,195,223))},a.N("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),we=u("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hc:new o.Il(new o.VS(111,195,223))},a.N("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),ye=u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},a.N("editorSelectionBackground","Color of the editor selection.")),Se=u("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},a.N("editorSelectionForeground","Color of the selected text for high contrast.")),Le=u("editor.inactiveSelectionBackground",{light:ni(ye,.5),dark:ni(ye,.5),hc:ni(ye,.5)},a.N("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ne=u("editor.selectionHighlightBackground",{light:si(ye,ae,.3,.6),dark:si(ye,ae,.3,.6),hc:null},a.N("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),xe=u("editor.selectionHighlightBorder",{light:null,dark:null,hc:v},a.N("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),ke=u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},a.N("editorFindMatch","Color of the current search match.")),De=u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},a.N("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ee=u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},a.N("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=u("editor.findMatchBorder",{light:null,dark:null,hc:v},a.N("editorFindMatchBorder","Border color of the current search match.")),Te=u("editor.findMatchHighlightBorder",{light:null,dark:null,hc:v},a.N("findMatchHighlightBorder","Border color of the other search matches.")),Me=u("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ni(v,.4)},a.N("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ae=u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},a.N("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Re=u("editorHoverWidget.background",{light:he,dark:he,hc:he},a.N("hoverBackground","Background color of the editor hover.")),Oe=u("editorHoverWidget.foreground",{light:de,dark:de,hc:de},a.N("hoverForeground","Foreground color of the editor hover.")),Pe=u("editorHoverWidget.border",{light:ce,dark:ce,hc:ce},a.N("hoverBorder","Border color of the editor hover.")),Fe=u("editorHoverWidget.statusBarBackground",{dark:ii(Re,.2),light:ti(Re,.05),hc:he},a.N("statusBarBackground","Background color of the editor hover status bar.")),Be=u("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hc:o.Il.cyan},a.N("activeLinkForeground","Color of active links.")),Ve=u("editorInlayHint.foreground",{dark:ni(U,.8),light:ni(U,.8),hc:U},a.N("editorInlayHintForeground","Foreground color of inline hints")),We=u("editorInlayHint.background",{dark:ni(K,.6),light:ni(K,.3),hc:K},a.N("editorInlayHintBackground","Background color of inline hints")),He=u("editorInlayHint.typeForeground",{dark:Ve,light:Ve,hc:Ve},a.N("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),ze=u("editorInlayHint.typeBackground",{dark:We,light:We,hc:We},a.N("editorInlayHintBackgroundTypes","Background color of inline hints for types")),Ke=u("editorInlayHint.parameterForeground",{dark:Ve,light:Ve,hc:Ve},a.N("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),Ue=u("editorInlayHint.parameterBackground",{dark:We,light:We,hc:We},a.N("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),$e=u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},a.N("editorLightBulbForeground","The color used for the lightbulb actions icon.")),je=u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},a.N("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),qe=new o.Il(new o.VS(155,185,85,.2)),Ge=new o.Il(new o.VS(255,0,0,.2)),Ze=u("diffEditor.insertedTextBackground",{dark:qe,light:qe,hc:null},a.N("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=u("diffEditor.removedTextBackground",{dark:Ge,light:Ge,hc:null},a.N("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ye=u("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},a.N("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Xe=u("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},a.N("diffEditorRemovedOutline","Outline color for text that got removed.")),Je=u("diffEditor.border",{dark:null,light:null,hc:_},a.N("diffEditorBorder","Border color between the two text editors.")),et=u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},a.N("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),tt=u("list.focusBackground",{dark:null,light:null,hc:null},a.N("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),it=u("list.focusForeground",{dark:null,light:null,hc:null},a.N("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),nt=u("list.focusOutline",{dark:f,light:f,hc:v},a.N("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ot=u("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},a.N("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),st=u("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hc:null},a.N("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=u("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},a.N("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),at=u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},a.N("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),lt=u("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},a.N("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ht=u("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},a.N("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),dt=u("list.inactiveFocusBackground",{dark:null,light:null,hc:null},a.N("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=u("list.inactiveFocusOutline",{dark:null,light:null,hc:null},a.N("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ut=u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},a.N("listHoverBackground","List/Tree background when hovering over items using the mouse.")),gt=u("list.hoverForeground",{dark:null,light:null,hc:null},a.N("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),pt=u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},a.N("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),mt=u("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:f},a.N("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ft=u("list.focusHighlightForeground",{dark:mt,light:(_t=ot,vt=mt,"#9DDDFF",{op:5,if:_t,then:vt,else:"#9DDDFF"}),hc:mt},a.N("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var _t,vt;const bt=u("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:o.Il.black},a.N("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Ct=u("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hc:"#f38518"},a.N("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),wt=u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:_},a.N("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),yt=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},a.N("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),St=u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},a.N("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Lt=u("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,a.N("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Nt=u("quickInputList.focusForeground",{dark:st,light:st,hc:st},a.N("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),xt=u("quickInputList.focusIconForeground",{dark:rt,light:rt,hc:rt},a.N("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),kt=u("quickInputList.focusBackground",{dark:oi(Lt,ot),light:oi(Lt,ot),hc:null},a.N("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Dt=u("menu.border",{dark:null,light:null,hc:_},a.N("menuBorder","Border color of menus.")),Et=u("menu.foreground",{dark:V,light:g,hc:V},a.N("menuForeground","Foreground color of menu items.")),It=u("menu.background",{dark:B,light:B,hc:B},a.N("menuBackground","Background color of menu items.")),Tt=u("menu.selectionForeground",{dark:st,light:st,hc:st},a.N("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Mt=u("menu.selectionBackground",{dark:ot,light:ot,hc:ot},a.N("menuSelectionBackground","Background color of the selected menu item in menus.")),At=u("menu.selectionBorder",{dark:null,light:null,hc:v},a.N("menuSelectionBorder","Border color of the selected menu item in menus.")),Rt=u("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:_},a.N("menuSeparatorBackground","Color of a separator menu item in menus.")),Ot=u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},a.N("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Pt=u("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hc:new o.Il(new o.VS(124,124,124,.3))},a.N("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Ft=u("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},a.N("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Bt=u("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},a.N("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Vt=u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hc:"#525252"},a.N("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Wt=u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},a.N("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ht=u("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},a.N("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),zt=u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},a.N("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Kt=u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hc:"#ffffff"},a.N("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),Ut=u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},a.N("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),$t=u("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hc:new o.Il(new o.VS(255,50,50,1))},a.N("minimapError","Minimap marker color for errors.")),jt=u("minimap.warningHighlight",{dark:ee,light:ee,hc:te},a.N("overviewRuleWarning","Minimap marker color for warnings.")),qt=u("minimap.background",{dark:null,light:null,hc:null},a.N("minimapBackground","Minimap background color.")),Gt=u("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hc:o.Il.fromHex("#000f")},a.N("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Zt=u("minimapSlider.background",{light:ni(j,.5),dark:ni(j,.5),hc:ni(j,.5)},a.N("minimapSliderBackground","Minimap slider background color.")),Qt=u("minimapSlider.hoverBackground",{light:ni(q,.5),dark:ni(q,.5),hc:ni(q,.5)},a.N("minimapSliderHoverBackground","Minimap slider background color when hovering.")),Yt=u("minimapSlider.activeBackground",{light:ni(G,.5),dark:ni(G,.5),hc:ni(G,.5)},a.N("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),Xt=u("problemsErrorIcon.foreground",{dark:Y,light:Y,hc:Y},a.N("problemsErrorIconForeground","The color used for the problems error icon.")),Jt=u("problemsWarningIcon.foreground",{dark:ee,light:ee,hc:ee},a.N("problemsWarningIconForeground","The color used for the problems warning icon.")),ei=u("problemsInfoIcon.foreground",{dark:ne,light:ne,hc:ne},a.N("problemsInfoIconForeground","The color used for the problems info icon."));function ti(e,t){return{op:0,value:e,factor:t}}function ii(e,t){return{op:1,value:e,factor:t}}function ni(e,t){return{op:2,value:e,factor:t}}function oi(...e){return{op:3,values:e}}function si(e,t,i,n){return{op:4,value:e,background:t,factor:i,transparency:n}}function ri(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"==typeof e?function(e,t){var i,n,s;switch(e.op){case 0:return null===(i=ri(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=ri(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(s=ri(e.value,t))||void 0===s?void 0:s.transparent(e.factor);case 3:for(const i of e.values){const e=ri(i,t);if(e)return e}return;case 5:return ri(t.defines(e.if)?e.then:e.else,t);case 4:const a=ri(e.value,t);if(!a)return;const l=ri(e.background,t);return l?a.isDarkerThan(l)?o.Il.getLighterColor(a,l,e.factor).transparent(e.transparency):o.Il.getDarkerColor(a,l,e.factor).transparent(e.transparency):a.transparent(e.factor*e.transparency);default:throw(0,r.vE)(e)}}(e,t):void 0}const ai="vscode://schemas/workbench-colors";let li=h.B.as(l.I.JSONContribution);li.registerSchema(ai,c.getColorSchema());const hi=new n.pY((()=>li.notifySchemaChanged(ai)),200);c.onDidChangeSchema((()=>{hi.isScheduled()||hi.schedule()}))},9528:(e,t,i)=>{i.d(t,{q5:()=>c,Ks:()=>u,s_:()=>f});var n=i(3484),o=i(407),s=i(6709),r=i(6386),a=i(2123),l=i(6325),h=i(8566);const d=new class{constructor(){this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,r.N)("iconDefintion.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,r.N)("iconDefintion.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.dT.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}let s={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=s;let r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}getIconFont(e){return this.iconFontsById[e]}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;h.kS.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`};let i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${h.kS.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!h.kS.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}};function c(e,t,i,n){return d.registerIcon(e,t,i,n)}function u(){return d}l.B.add("base.contributions.icons",d),function(){for(const e of o.fK.all)d.registerIcon(e.id,e.definition,e.description);o.fK.onDidRegister((e=>d.registerIcon(e.id,e.definition,e.description)))}();const g="vscode://schemas/icons";let p=l.B.as(a.I.JSONContribution);p.registerSchema(g,d.getIconSchema());const m=new n.pY((()=>p.notifySchemaChanged(g)),200);d.onDidChange((()=>{m.isScheduled()||m.schedule()}));const f=c("widget-close",o.lA.close,(0,r.N)("widgetClose","Icon for the close action in widgets."))},3003:(e,t,i)=>{i.d(t,{o:()=>o,WZ:()=>r,Jl:()=>a,O2:()=>l,tj:()=>d});var n=i(2537);function o(e,t){const i=Object.create(null);for(let o in t){const s=t[o];s&&(i[o]=(0,n.Sn)(s,e))}return i}function s(e,t,i){function n(){const n=o(e.getColorTheme(),t);"function"==typeof i?i(n):i.style(n)}return n(),e.onDidColorThemeChange(n)}function r(e,t,i){return s(t,{badgeBackground:(null==i?void 0:i.badgeBackground)||n.g8,badgeForeground:(null==i?void 0:i.badgeForeground)||n.qe,badgeBorder:n.lR},e)}function a(e,t,i){return s(t,Object.assign(Object.assign({},l),i||{}),e)}const l={listFocusBackground:n._b,listFocusForeground:n._2,listFocusOutline:n.Oo,listActiveSelectionBackground:n.dC,listActiveSelectionForeground:n.M6,listActiveSelectionIconForeground:n.Tn,listFocusAndSelectionBackground:n.dC,listFocusAndSelectionForeground:n.M6,listInactiveSelectionBackground:n.rg,listInactiveSelectionIconForeground:n.kv,listInactiveSelectionForeground:n.yt,listInactiveFocusBackground:n.s$,listInactiveFocusOutline:n.F3,listHoverBackground:n.mV,listHoverForeground:n.$d,listDropBackground:n.AS,listSelectionOutline:n.xL,listHoverOutline:n.xL,listFilterWidgetBackground:n.vG,listFilterWidgetOutline:n.oS,listFilterWidgetNoMatchesOutline:n.S,listMatchesShadow:n.rh,treeIndentGuidesStroke:n.Un,tableColumnsBorder:n.ux},h={shadowColor:n.rh,borderColor:n.Cd,foregroundColor:n.DE,backgroundColor:n.Hz,selectionForegroundColor:n.jb,selectionBackgroundColor:n.$D,selectionBorderColor:n.E3,separatorColor:n.ZG};function d(e,t,i){return s(t,Object.assign(Object.assign({},h),i),e)}},9914:(e,t,i)=>{var n;i.d(t,{e:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(n||(n={}))},8566:(e,t,i)=>{i.d(t,{XE:()=>h,EN:()=>u,kS:()=>c,m6:()=>g,IP:()=>p,Ic:()=>f,bB:()=>_});var n=i(407),o=i(6709),s=i(8431),r=i(4333),a=i(6325),l=i(9914);const h=(0,r.yh)("themeService");var d,c;function u(e){return{id:e}}function g(e){switch(e){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(d||(d={})),function(e){e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||d.isThemeColor(e.color))};const t=new RegExp(`^\\$\\((${n.dT.iconNameExpression}(?:${n.dT.iconModifierExpression})?)\\)$`);e.fromString=function(e){const i=t.exec(e);if(!i)return;let[,n]=i;return{id:n}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?u(t):void 0}},e.asClassNameArray=n.dT.asClassNameArray,e.asClassName=n.dT.asClassName,e.asCSSSelector=n.dT.asCSSSelector}(c||(c={}));const p={ThemingContribution:"base.contributions.theming"};let m=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new o.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function f(e){return m.onColorThemeChange(e)}a.B.add(p.ThemingContribution,m);class _ extends s.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},8900:(e,t,i)=>{i.d(t,{tJ:()=>n,YO:()=>o,Xt:()=>s,gJ:()=>r});const n=(0,i(4333).yh)("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},3799:(e,t,i)=>{i.d(t,{ec:()=>n,md:()=>o}),i(9832);const n=(0,i(4333).yh)("contextService");class o{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={id:e,loaded:!1,exports:{}};return i[e](s,s.exports,o),s.loaded=!0,s.exports}o.m=i,o.amdO={},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".entry.js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="demo:",o.l=(i,n,s,r)=>{if(e[i])e[i].push(n);else{var a,l;if(void 0!==s)for(var h=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(g);var o=e[i];if(delete e[i],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},g=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/public/yaml/",(()=>{o.b=document.baseURI||self.location.href;var e={179:0};o.f.j=(t,i)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise(((i,o)=>n=e[t]=[i,o]));i.push(n[2]=s);var r=o.p+o.u(t),a=new Error;o.l(r,(i=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,n[1](a)}}),"chunk-"+t,t)}};var t=(t,i)=>{var n,s,[r,a,l]=i,h=0;if(r.some((t=>0!==e[t]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);l&&l(o)}for(t&&t(i);h{var e=o(7464),t=o(4818),i=o(8919),n=o(4657),s=o(1223),r=o(6308),a=o(996),l=o(7865),h=o(9832),d=o(38),c=o(8490),u=o(6578);class g{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let i;"string"==typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let e=0;void 0!==t.children.get(n);e++)n=`${i}_${e}`;return n}static empty(e){return 0===e.children.size}}class p extends g{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class m extends g{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class f extends g{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(t,i){let n=this._keys.for(t,!0),o=f._requests.get(n);if(!o){let i=new e.A;o={promiseCnt:0,source:i,promise:f._create(t,i.token),model:void 0},f._requests.set(n,o);const s=Date.now();o.promise.then((()=>{this._requestDurations.update(t,Date.now()-s)}))}return o.model?Promise.resolve(o.model):(o.promiseCnt+=1,i.onCancellationRequested((()=>{0==--o.promiseCnt&&(o.source.cancel(),f._requests.delete(n))})),new Promise(((e,t)=>{o.promise.then((t=>{o.model=t,e(t)}),(e=>{f._requests.delete(n),t(e)}))})))}static _create(t,i){const n=new e.A(i),o=new f(t.uri),s=c.vJ.ordered(t),l=s.map(((e,i)=>{var s;let r=g.findId(`provider_${i}`,o),l=new m(r,o,null!==(s=e.displayName)&&void 0!==s?s:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,n.token)).then((e=>{for(const t of e||[])f._makeOutlineElement(t,l);return l}),(e=>((0,a.Cp)(e),l))).then((e=>{g.empty(e)?e.remove():o._groups.set(r,e)}))})),h=c.vJ.onDidChange((()=>{const e=c.vJ.ordered(t);(0,r.fS)(e,s)||n.cancel()}));return Promise.all(l).then((()=>n.token.isCancellationRequested&&!i.isCancellationRequested?f._create(t,i):o._compact())).finally((()=>{h.dispose()}))}static _makeOutlineElement(e,t){let i=g.findId(e,t),n=new p(i,t,e);if(e.children)for(const t of e.children)f._makeOutlineElement(t,n);t.children.set(n.id,n)}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{let e=l.$.first(this._groups.values());for(let[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof p?e.push(t.symbol):e.push(...l.$.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>d.e.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return f._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>d.e.compareRangesUsingStarts(e.range,t.range)))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&f._flattenDocumentSymbols(e,n.children,n.name)}}f._requestDurations=new u.Y(c.vJ,350),f._requests=new h.z6(9,.75),f._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(e,t){return`${e.id}/${t?e.getVersionId():""}/${this._hash(c.vJ.all(e))}`}_hash(e){let t="";for(const i of e){let e=this._data.get(i);void 0===e&&(e=this._counter++,this._data.set(i,e)),t+=e}return t}};var _=o(793),v=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function b(e,t,i){return v(this,void 0,void 0,(function*(){const n=yield f.create(e,i);return t?n.asListOfDocumentSymbols():n.getTopLevelSymbols()}))}_.P.registerCommand("_executeDocumentSymbolProvider",(function(o,...r){return v(this,void 0,void 0,(function*(){const[a]=r;(0,t.p_)(i.o.isUri(a));const l=o.get(n.q).getModel(a);if(l)return b(l,!1,e.T.None);const h=yield o.get(s.S).createModelReference(a);try{return yield b(h.object.textEditorModel,!1,e.T.None)}finally{h.dispose()}}))}));var C,w,y,S,L,N,x,k,D,E,I,T,M,A,R,O,P,F,B,V,W,H,z,K,U,$,j=o(6790);!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(C||(C={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(w||(w={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=w.MAX_VALUE),t===Number.MAX_VALUE&&(t=w.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return xe.objectLiteral(t)&&xe.uinteger(t.line)&&xe.uinteger(t.character)}}(y||(y={})),function(e){e.create=function(e,t,i,n){if(xe.uinteger(e)&&xe.uinteger(t)&&xe.uinteger(i)&&xe.uinteger(n))return{start:y.create(e,t),end:y.create(i,n)};if(y.is(e)&&y.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},e.is=function(e){var t=e;return xe.objectLiteral(t)&&y.is(t.start)&&y.is(t.end)}}(S||(S={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return xe.defined(t)&&S.is(t.range)&&(xe.string(t.uri)||xe.undefined(t.uri))}}(L||(L={})),function(e){e.create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},e.is=function(e){var t=e;return xe.defined(t)&&S.is(t.targetRange)&&xe.string(t.targetUri)&&(S.is(t.targetSelectionRange)||xe.undefined(t.targetSelectionRange))&&(S.is(t.originSelectionRange)||xe.undefined(t.originSelectionRange))}}(N||(N={})),function(e){e.create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},e.is=function(e){var t=e;return xe.numberRange(t.red,0,1)&&xe.numberRange(t.green,0,1)&&xe.numberRange(t.blue,0,1)&&xe.numberRange(t.alpha,0,1)}}(x||(x={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return S.is(t.range)&&x.is(t.color)}}(k||(k={})),function(e){e.create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},e.is=function(e){var t=e;return xe.string(t.label)&&(xe.undefined(t.textEdit)||F.is(t))&&(xe.undefined(t.additionalTextEdits)||xe.typedArray(t.additionalTextEdits,F.is))}}(D||(D={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(E||(E={})),function(e){e.create=function(e,t,i,n,o){var s={startLine:e,endLine:t};return xe.defined(i)&&(s.startCharacter=i),xe.defined(n)&&(s.endCharacter=n),xe.defined(o)&&(s.kind=o),s},e.is=function(e){var t=e;return xe.uinteger(t.startLine)&&xe.uinteger(t.startLine)&&(xe.undefined(t.startCharacter)||xe.uinteger(t.startCharacter))&&(xe.undefined(t.endCharacter)||xe.uinteger(t.endCharacter))&&(xe.undefined(t.kind)||xe.string(t.kind))}}(I||(I={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return xe.defined(t)&&L.is(t.location)&&xe.string(t.message)}}(T||(T={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(M||(M={})),function(e){e.Unnecessary=1,e.Deprecated=2}(A||(A={})),function(e){e.is=function(e){var t=e;return null!=t&&xe.string(t.href)}}(R||(R={})),function(e){e.create=function(e,t,i,n,o,s){var r={range:e,message:t};return xe.defined(i)&&(r.severity=i),xe.defined(n)&&(r.code=n),xe.defined(o)&&(r.source=o),xe.defined(s)&&(r.relatedInformation=s),r},e.is=function(e){var t,i=e;return xe.defined(i)&&S.is(i.range)&&xe.string(i.message)&&(xe.number(i.severity)||xe.undefined(i.severity))&&(xe.integer(i.code)||xe.string(i.code)||xe.undefined(i.code))&&(xe.undefined(i.codeDescription)||xe.string(null===(t=i.codeDescription)||void 0===t?void 0:t.href))&&(xe.string(i.source)||xe.undefined(i.source))&&(xe.undefined(i.relatedInformation)||xe.typedArray(i.relatedInformation,T.is))}}(O||(O={})),function(e){e.create=function(e,t){for(var i=[],n=2;n0&&(o.arguments=i),o},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.title)&&xe.string(t.command)}}(P||(P={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return xe.objectLiteral(t)&&xe.string(t.newText)&&S.is(t.range)}}(F||(F={})),function(e){e.create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},e.is=function(e){var t=e;return void 0!==t&&xe.objectLiteral(t)&&xe.string(t.label)&&(xe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(xe.string(t.description)||void 0===t.description)}}(B||(B={})),function(e){e.is=function(e){return"string"==typeof e}}(V||(V={})),function(e){e.replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},e.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return F.is(t)&&(B.is(t.annotationId)||V.is(t.annotationId))}}(W||(W={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return xe.defined(t)&&Z.is(t.textDocument)&&Array.isArray(t.edits)}}(H||(H={})),function(e){e.create=function(e,t,i){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),void 0!==i&&(n.annotationId=i),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(z||(z={})),function(e){e.create=function(e,t,i,n){var o={kind:"rename",oldUri:e,newUri:t};return void 0===i||void 0===i.overwrite&&void 0===i.ignoreIfExists||(o.options=i),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&xe.string(t.oldUri)&&xe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(K||(K={})),function(e){e.create=function(e,t,i){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),void 0!==i&&(n.annotationId=i),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||xe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||xe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(U||(U={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return xe.string(e.kind)?z.is(e)||K.is(e)||U.is(e):H.is(e)})))}}($||($={}));var q,G,Z,Q,Y,X,J,ee,te,ie,ne,oe,se,re,ae,le,he,de,ce,ue,ge,pe,me,fe,_e,ve,be,Ce,we,ye,Se,Le=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,o;if(void 0===i?n=F.insert(e,t):V.is(i)?(o=i,n=W.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=W.insert(e,t,o)),this.edits.push(n),void 0!==o)return o},e.prototype.replace=function(e,t,i){var n,o;if(void 0===i?n=F.replace(e,t):V.is(i)?(o=i,n=W.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=W.replace(e,t,o)),this.edits.push(n),void 0!==o)return o},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=F.del(e):V.is(t)?(n=t,i=W.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=W.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Ne=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(V.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw new Error("Id "+i+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ne(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(H.is(e)){var i=new Le(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}}))):e.changes&&Object.keys(e.changes).forEach((function(i){var n=new Le(e.changes[i]);t._textEditChanges[i]=n}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Z.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(n=this._textEditChanges[t.uri])){var i={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(i),n=new Le(o,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n;if(!(n=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,n=new Le(o),this._textEditChanges[e]=n}return n},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ne,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,o,s;if(B.is(t)||V.is(t)?n=t:i=t,void 0===n?o=z.create(e,i):(s=V.is(n)?n:this._changeAnnotations.manage(n),o=z.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.renameFile=function(e,t,i,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,s,r;if(B.is(i)||V.is(i)?o=i:n=i,void 0===o?s=K.create(e,t,n):(r=V.is(o)?o:this._changeAnnotations.manage(o),s=K.create(e,t,n,r)),this._workspaceEdit.documentChanges.push(s),void 0!==r)return r},e.prototype.deleteFile=function(e,t,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,o,s;if(B.is(t)||V.is(t)?n=t:i=t,void 0===n?o=U.create(e,i):(s=V.is(n)?n:this._changeAnnotations.manage(n),o=U.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&xe.integer(t.version)}}(G||(G={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&(null===t.version||xe.integer(t.version))}}(Z||(Z={})),function(e){e.create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&xe.string(t.languageId)&&xe.integer(t.version)&&xe.string(t.text)}}(Q||(Q={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(Y||(Y={})),function(e){e.is=function(t){var i=t;return i===e.PlainText||i===e.Markdown}}(Y||(Y={})),function(e){e.is=function(e){var t=e;return xe.objectLiteral(e)&&Y.is(t.kind)&&xe.string(t.value)}}(X||(X={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(J||(J={})),function(e){e.PlainText=1,e.Snippet=2}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,i){return{newText:e,insert:t,replace:i}},e.is=function(e){var t=e;return t&&xe.string(t.newText)&&S.is(t.insert)&&S.is(t.replace)}}(ie||(ie={})),function(e){e.asIs=1,e.adjustIndentation=2}(ne||(ne={})),function(e){e.create=function(e){return{label:e}}}(oe||(oe={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(se||(se={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return xe.string(t)||xe.objectLiteral(t)&&xe.string(t.language)&&xe.string(t.value)}}(re||(re={})),function(e){e.is=function(e){var t=e;return!!t&&xe.objectLiteral(t)&&(X.is(t.contents)||re.is(t.contents)||xe.typedArray(t.contents,re.is))&&(void 0===e.range||S.is(e.range))}}(ae||(ae={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(le||(le={})),function(e){e.create=function(e,t){for(var i=[],n=2;n=0;r--){var a=o[r],l=e.offsetAt(a.range.start),h=e.offsetAt(a.range.end);if(!(h<=s))throw new Error("Overlapping edit");n=n.substring(0,l)+a.newText+n.substring(h,n.length),s=l}return n}}(Se||(Se={}));var xe,ke=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return y.create(0,e);for(;ie?n=o:i=o+1}var s=i-1;return y.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1{t&&(t.dispose(),t=void 0),i=void 0};return setInterval((()=>{t&&Date.now()-n>12e4&&o()}),3e4),e.onDidChange((()=>o())),async(...o)=>{const s=await(n=Date.now(),i||(t=j.j6.createWebWorker({moduleId:"vs/language/yaml/yamlWorker",label:e.languageId,createData:{languageSettings:e.diagnosticsOptions,enableSchemaRequest:e.diagnosticsOptions.enableSchemaRequest,isKubernetes:e.diagnosticsOptions.isKubernetes,customTags:e.diagnosticsOptions.customTags}}),i=t.getProxy()),i);return await t.withSyncedResources(o),s}}(e);var i;j.Mj.registerCompletionItemProvider(De,(i=t,{triggerCharacters:[" ",":"],async provideCompletionItems(e,t){const n=e.uri,o=await i(n),s=await o.doComplete(String(n),Te(t));if(!s)return;const r=e.getWordUntilPosition(t),a=new j.e6(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),l=s.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:Ae(e.kind),range:a};return e.textEdit&&(t.range=Me("range"in e.textEdit?e.textEdit.range:e.textEdit.replace),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Re)),e.insertTextFormat===ee.Snippet&&(t.insertTextRules=j.Mj.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{incomplete:s.isIncomplete,suggestions:l}}})),j.Mj.registerHoverProvider(De,function(e){return{async provideHover(t,i){const n=t.uri,o=await e(n),s=await o.doHover(String(n),Te(i));if(s)return{range:Me(s.range),contents:[{value:s.contents.value}]}}}}(t)),j.Mj.registerDefinitionProvider(De,function(e){return{async provideDefinition(t,i){const n=t.uri,o=await e(n),s=await o.doDefinition(String(n),Te(i));return null==s?void 0:s.map((e=>({originSelectionRange:e.originSelectionRange,range:Me(e.targetRange),targetSelectionRange:e.targetSelectionRange,uri:j.Sf.parse(e.targetUri)})))}}}(t)),j.Mj.registerDocumentSymbolProvider(De,function(e){return{async provideDocumentSymbols(t){const i=t.uri,n=await e(i),o=await n.findDocumentSymbols(String(i));if(o)return o.map(Pe)}}}(t)),j.Mj.registerDocumentFormattingEditProvider(De,function(e){return{async provideDocumentFormattingEdits(t,i){const n=t.uri,o=await e(n),s=await o.format(String(n),function(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces,...e}}(i));if(s&&0!==s.length)return s.map(Re)}}}(t)),j.Mj.registerLinkProvider(De,function(e){return{async provideLinks(t){const i=t.uri,n=await e(i);return{links:(await n.findLinks(String(i))).map(Fe)}}}}(t)),function(e,t){const i=new Map,n=async t=>{(await e()).resetSchema(String(t))},o=async t=>{const i=await e(t),n=(await i.doValidation(String(t))).map(Ie),o=j.j6.getModel(t);o&&o.getLanguageId()===De&&j.j6.setModelMarkers(o,De,n)},s=e=>{if(e.getLanguageId()!==De)return;let t;i.set(String(e.uri),e.onDidChangeContent((()=>{clearTimeout(t),t=setTimeout((()=>o(e.uri)),500)}))),o(e.uri)},r=e=>{j.j6.setModelMarkers(e,De,[]);const t=String(e.uri),n=i.get(t);n&&(n.dispose(),i.delete(t))};j.j6.onDidCreateModel(s),j.j6.onWillDisposeModel((e=>{r(e),n(e.uri)})),j.j6.onDidChangeModelLanguage((e=>{r(e.model),s(e.model),n(e.model.uri)})),t.onDidChange((()=>{for(const e of j.j6.getModels())e.getLanguageId()===De&&(r(e),s(e))}));for(const e of j.j6.getModels())s(e)}(t,e),j.Mj.setLanguageConfiguration(De,Be)}var We={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2"},He=function(e){const t=new j.Q5;let i=e;const n={get onDidChange(){return t.event},get languageId(){return De},get diagnosticsOptions(){return i},setDiagnosticsOptions(e){i={...We,...e},t.fire(n)}};return n}(We);function ze(e={}){j.Mj.yaml.yamlDefaults.setDiagnosticsOptions(e)}j.Mj.yaml={yamlDefaults:He},j.Mj.register({id:De,extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]}),j.Mj.onLanguage("yaml",(()=>{Ve(He)})),o(9109);var Ke=o(5244),Ue=function(){function e(e,t,i){this._onDidChange=new Ke.Q5,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),$e={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},je={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},qe=new Ue("css",$e,je),Ge=new Ue("scss",$e,je),Ze=new Ue("less",$e,je);function Qe(){return o.e(1565).then(o.bind(o,1565))}Ke.Mj.css={cssDefaults:qe,lessDefaults:Ze,scssDefaults:Ge},Ke.Mj.onLanguage("less",(function(){Qe().then((function(e){return e.setupMode(Ze)}))})),Ke.Mj.onLanguage("scss",(function(){Qe().then((function(e){return e.setupMode(Ge)}))})),Ke.Mj.onLanguage("css",(function(){Qe().then((function(e){return e.setupMode(qe)}))}));var Ye=o(8037),Xe=function(){function e(e,t,i){this._onDidChange=new Ye.Q5,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),Je=new Xe("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});Ye.Mj.json={jsonDefaults:Je},Ye.Mj.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),Ye.Mj.onLanguage("json",(function(){o.e(3389).then(o.bind(o,3389)).then((function(e){return e.setupMode(Je)}))}));var et=o(1839),tt=function(){function e(e,t,i){this._onDidChange=new et.Q5,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),it={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function nt(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===ot,documentFormattingEdits:e===ot,documentRangeFormattingEdits:e===ot}}var ot="html",st="handlebars",rt="razor",at=gt(ot,it,nt(ot)),lt=at.defaults,ht=gt(st,it,nt(st)),dt=ht.defaults,ct=gt(rt,it,nt(rt)),ut=ct.defaults;function gt(e,t,i){var n=this;void 0===t&&(t=it),void 0===i&&(i=nt(e));var s,r=new tt(e,t,i),a=et.Mj.onLanguage(e,(function(){return e=n,t=void 0,a=function(){return function(e,t){var i,n,o,s,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,n=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:Nt.Y.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new yt.W5).appendText((0,kt.N)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,wt.Z9)((0,kt.N)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Nt.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};var Mt,At;Tt.ID="editor.contrib.selectionAnchorController",Tt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(Mt=1,At=Dt.i6,function(e,t){At(e,t,Mt)})],Tt);class Rt extends Lt.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,kt.N)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:xt.u.editorTextFocus,primary:(0,St.gx)(2089,2080),weight:100}})}run(e,t){return Et(this,void 0,void 0,(function*(){Tt.get(t).setSelectionAnchor()}))}}class Ot extends Lt.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,kt.N)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:It})}run(e,t){return Et(this,void 0,void 0,(function*(){Tt.get(t).goToSelectionAnchor()}))}}class Pt extends Lt.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,kt.N)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:It,kbOpts:{kbExpr:xt.u.editorTextFocus,primary:(0,St.gx)(2089,2089),weight:100}})}run(e,t){return Et(this,void 0,void 0,(function*(){Tt.get(t).selectFromAnchorToCursor()}))}}class Ft extends Lt.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,kt.N)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:It,kbOpts:{kbExpr:xt.u.editorTextFocus,primary:9,weight:100}})}run(e,t){return Et(this,void 0,void 0,(function*(){Tt.get(t).cancelSelectionAnchor()}))}}(0,Lt._K)(Tt.ID,Tt),(0,Lt.Qr)(Rt),(0,Lt.Qr)(Ot),(0,Lt.Qr)(Pt),(0,Lt.Qr)(Ft);var Bt=o(3484),Vt=o(8431),Wt=o(8964),Ht=o(1913),zt=o(9831),Kt=o(1248),Ut=o(1208),$t=o(2537),jt=o(8566);const qt=(0,$t.P6)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},kt.N("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Gt extends Lt.R6{constructor(){super({id:"editor.action.jumpToBracket",label:kt.N("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:xt.u.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=Yt.get(t);i&&i.jumpToBracket()}}class Zt extends Lt.R6{constructor(){super({id:"editor.action.selectToBracket",label:kt.N("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=Yt.get(t);if(!n)return;let o=!0;i&&!1===i.selectBrackets&&(o=!1),n.selectToBracket(o)}}class Qt{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yt extends Vt.JT{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Bt.pY((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}static get(e){return e.getContribution(Yt.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.matchBracket(i);let o=null;if(n)n[0].containsPosition(i)?o=n[1].getStartPosition():n[1].containsPosition(i)&&(o=n[0].getStartPosition());else{const t=e.findEnclosingBrackets(i);if(t)o=t[0].getStartPosition();else{const t=e.findNextBracket(i);t&&t.range&&(o=t.range.getStartPosition())}}return o?new Nt.Y(o.lineNumber,o.column,o.lineNumber,o.column):new Nt.Y(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const o=n.getStartPosition();let s=t.matchBracket(o);if(!s&&(s=t.findEnclosingBrackets(o),!s)){const e=t.findNextBracket(o);e&&e.range&&(s=t.matchBracket(e.range.getStartPosition()))}let r=null,a=null;if(s){s.sort(d.e.compareRangesUsingStarts);const[t,i]=s;if(r=e?t.getStartPosition():t.getEndPosition(),a=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(o)){const e=r;r=a,a=e}}r&&a&&i.push(new Nt.Y(r.lineNumber,r.column,a.lineNumber,a.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],s=0;for(let t=0,i=e.length;t1&&o.sort(Wt.L.compare);let r=[],a=0,l=0,h=n.length;for(let e=0,i=o.length;e{const i=e.getColor(Kt.TC);i&&t.addRule(`.monaco-editor .bracket-match { background-color: ${i}; }`);const n=e.getColor(Kt.Dl);n&&t.addRule(`.monaco-editor .bracket-match { border: 1px solid ${n}; }`)})),Ut.BH.appendMenuItem(Ut.eH.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:kt.N({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Xt{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||o!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const s=new d.e(i,n-1,i,n),r=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new d.e(i,o,i,o),r)}else{const s=new d.e(i,o,i,o+1),r=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new d.e(i,n,i,n),r)}}computeCursorState(e,t){return this._isMovingLeft?new Nt.Y(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Nt.Y(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Jt extends Lt.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const e of n)i.push(new Xt(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,Lt.Qr)(class extends Jt{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:kt.N("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:xt.u.writable})}}),(0,Lt.Qr)(class extends Jt{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:kt.N("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:xt.u.writable})}});var ei=o(8050),ti=o(3814);class ii extends Lt.R6{constructor(){super({id:"editor.action.transposeLetters",label:kt.N("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:xt.u.writable,kbOpts:{kbExpr:xt.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let e of o){if(!e.isEmpty())continue;let t=e.startLineNumber,o=e.startColumn,s=i.getLineMaxColumn(t);if(1===t&&(1===o||2===o&&2===s))continue;let r=o===s?e.getPosition():ti.o.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),a=ti.o.leftPosition(i,r),l=ti.o.leftPosition(i,a),h=i.getValueInRange(d.e.fromPositions(l,a)),c=i.getValueInRange(d.e.fromPositions(a,r)),u=d.e.fromPositions(l,r);n.push(new ei.T4(u,c+h))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,Lt.Qr)(ii);var ni=o(1488),oi=o(1138),si=o(521),ri=o(5603),ai=o(1941);const li="9_cutcopypaste",hi=oi.tY||document.queryCommandSupported("cut"),di=oi.tY||document.queryCommandSupported("copy"),ci=void 0!==navigator.clipboard&&!ni.vU||document.queryCommandSupported("paste");function ui(e){return e.register(),e}const gi=hi?ui(new Lt.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:oi.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Ut.eH.MenubarEditMenu,group:"2_ccp",title:kt.N({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Ut.eH.EditorContext,group:li,title:kt.N("actions.clipboard.cutLabel","Cut"),when:xt.u.writable,order:1},{menuId:Ut.eH.CommandPalette,group:"",title:kt.N("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Ut.eH.SimpleEditorContext,group:li,title:kt.N("actions.clipboard.cutLabel","Cut"),when:xt.u.writable,order:1}]})):void 0,pi=di?ui(new Lt.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:oi.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Ut.eH.MenubarEditMenu,group:"2_ccp",title:kt.N({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Ut.eH.EditorContext,group:li,title:kt.N("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Ut.eH.CommandPalette,group:"",title:kt.N("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Ut.eH.SimpleEditorContext,group:li,title:kt.N("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ut.BH.appendMenuItem(Ut.eH.MenubarEditMenu,{submenu:Ut.eH.MenubarCopy,title:{value:kt.N("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),Ut.BH.appendMenuItem(Ut.eH.EditorContext,{submenu:Ut.eH.EditorContextCopy,title:{value:kt.N("copy as","Copy As"),original:"Copy As"},group:li,order:3});const mi=ci?ui(new Lt.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:oi.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Ut.eH.MenubarEditMenu,group:"2_ccp",title:kt.N({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Ut.eH.EditorContext,group:li,title:kt.N("actions.clipboard.pasteLabel","Paste"),when:xt.u.writable,order:4},{menuId:Ut.eH.CommandPalette,group:"",title:kt.N("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Ut.eH.SimpleEditorContext,group:li,title:kt.N("actions.clipboard.pasteLabel","Paste"),when:xt.u.writable,order:4}]})):void 0;class fi extends Lt.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:kt.N("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:xt.u.textInputFocus,primary:0,weight:100}})}run(e,t){t.hasModel()&&(!t.getOption(32)&&t.getSelection().isEmpty()||(si.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),si.RA.forceCopyWithSyntaxHighlighting=!1))}}function _i(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(ri.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(32),i=n.getSelection();return i&&i.isEmpty()&&!e||document.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>(document.execCommand(t),!0))))}_i(gi,"cut"),_i(pi,"copy"),mi&&(mi.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(ri.$),n=e.get(ai.p),o=i.getFocusedCodeEditor();return!(!o||!o.hasTextFocus())&&(!(!document.execCommand("paste")&&oi.$L)||(s=void 0,r=void 0,l=function*(){const e=yield n.readText();if(""!==e){const t=si.Nl.INSTANCE.get(e);let i=!1,n=null,s=null;t&&(i=o.getOption(32)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,s=t.mode),o.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}},new((a=void 0)||(a=Promise))((function(e,t){function i(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):function(e){return e instanceof a?e:new a((function(t){t(e)}))}(t.value).then(i,n)}o((l=l.apply(s,r||[])).next())}))));var s,r,a,l})),mi.addImplementation(0,"generic-dom",((e,t)=>(document.execCommand("paste"),!0)))),di&&(0,Lt.Qr)(fi);class vi{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var bi=o(7416),Ci=o(3028),wi=o(5834),yi=o(9969);class Si{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+Si.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Si(this.value+Si.sep+e)}}function Li(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}Si.sep=".",Si.None=new Si("@@none@@"),Si.Empty=new Si(""),Si.QuickFix=new Si("quickfix"),Si.Refactor=new Si("refactor"),Si.Source=new Si("source"),Si.SourceOrganizeImports=Si.Source.append("organizeImports"),Si.SourceFixAll=Si.Source.append("fixAll");class Ni{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return e&&"object"==typeof e?new Ni(Ni.getKindFromUser(e,t.kind),Ni.getApplyFromUser(e,t.apply),Ni.getPreferredUser(e)):new Ni(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new Si(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}}var xi=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const ki="editor.action.codeAction",Di="editor.action.refactor",Ei="editor.action.sourceAction",Ii="editor.action.organizeImports",Ti="editor.action.fixAll";class Mi{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return xi(this,void 0,void 0,(function*(){if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=yield this.provider.resolveCodeAction(this.action,e)}catch(e){(0,a.Cp)(e)}t&&(this.action.edit=t.edit)}return this}))}}class Ai extends Vt.JT{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Ai.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:(0,r.Of)(e.diagnostics)?(0,r.Of)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:(0,r.Of)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&Si.QuickFix.contains(new Si(e.kind))&&!!e.isPreferred))}}const Ri={actions:[],documentation:void 0};function Oi(e,t,i,n,o){var s;const l=i.filter||{},h={only:null===(s=l.include)||void 0===s?void 0:s.value,trigger:i.type},d=new wi.YQ(e,o),u=function(e,t){return c.H9.all(e).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>function(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some((i=>Li(t,i,e.include)))||!e.includeSourceActions&&Si.Source.contains(t))}(t,new Si(e))))))}(e,l),g=new Vt.SL,p=u.map((i=>xi(this,void 0,void 0,(function*(){try{n.report(i);const o=yield i.provideCodeActions(e,t,h,d.token);if(o&&g.add(o),d.token.isCancellationRequested)return Ri;const s=((null==o?void 0:o.actions)||[]).filter((e=>e&&function(e,t){const i=t.kind?new Si(t.kind):void 0;return!(!(!e.include||i&&e.include.contains(i))||e.excludes&&i&&e.excludes.some((t=>Li(i,t,e.include)))||!e.includeSourceActions&&i&&Si.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}(l,e))),r=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new Si(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null==e?void 0:e.command}for(const e of t)if(e.kind)for(const t of n)if(t.kind.contains(new Si(e.kind)))return t.command}(i,s,l.include);return{actions:s.map((e=>new Mi(e,i))),documentation:r}}catch(e){if((0,a.VV)(e))throw e;return(0,a.Cp)(e),Ri}})))),m=c.H9.onDidChange((()=>{const t=c.H9.all(e);(0,r.fS)(t,u)||d.cancel()}));return Promise.all(p).then((e=>{const t=(0,r.xH)(e.map((e=>e.actions))),i=(0,r.kX)(e.map((e=>e.documentation)));return new Ai(t,i,g)})).finally((()=>{m.dispose(),d.dispose()}))}_.P.registerCommand("_executeCodeActionProvider",(function(t,o,s,r,l){return xi(this,void 0,void 0,(function*(){if(!(o instanceof i.o))throw(0,a.b1)();const h=t.get(n.q).getModel(o);if(!h)throw(0,a.b1)();const c=Nt.Y.isISelection(s)?Nt.Y.liftSelection(s):d.e.isIRange(s)?h.validateRange(s):void 0;if(!c)throw(0,a.b1)();const u="string"==typeof r?new Si(r):void 0,g=yield Oi(h,c,{type:1,filter:{includeSourceActions:!0,include:u}},yi.E.None,e.T.None),p=[],m=Math.min(g.validActions.length,"number"==typeof l?l:0);for(let t=0;te.action))}finally{setTimeout((()=>g.dispose()),100)}}))}));var Pi=o(9914);let Fi=class e{constructor(t,i){this._messageWidget=new Vt.XK,this._messageListeners=new Vt.SL,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i),this._editorListener=this._editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit()))}static get(t){return t.getContribution(e.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,wt.Z9)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new Vi(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(new Bt._F((()=>this.closeMessage()),3e3)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new d.e(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Vi.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(kt.N("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};Fi.ID="editor.contrib.messageController",Fi.MESSAGE_VISIBLE=new Dt.uy("messageVisible",!1,kt.N("messageVisible","Whether the editor is currently showing an inline message")),Fi=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,Dt.i6)],Fi);const Bi=Lt._l.bindToContribution(Fi.get);(0,Lt.fK)(new Bi({id:"leaveEditorMessage",precondition:Fi.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class Vi{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("message"),s.textContent=n,this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,Lt._K)(Fi.ID,Fi),(0,jt.Ic)(((e,t)=>{const i=e.getColor($t.EP);if(i){let n=e.type===Pi.e.HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${i}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${i}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${n}px solid ${i}; }`)}const n=e.getColor($t._l);n&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${n}; }`);const o=e.getColor($t.YI);o&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${o}; }`)}));var Wi=o(4333),Hi=o(4441),zi=o(8299),Ki=o(6953),Ui=o(5495),$i=function(e,t){return function(i,n){t(i,n,e)}};class ji extends zi.aU{constructor(e,t){super(e.command?e.command.id:e.title,e.title.replace(/\r\n|\r|\n/g," "),void 0,!e.disabled,t),this.action=e}}let qi=class extends Vt.JT{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new Vt.XK),this._keybindingResolver=new Gi({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return o=this,s=void 0,l=function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,(0,a.F0)();this._visible=!0,this._showingActions.value=t;const s=this.getMenuActions(e,o,t.documentation),r=Wt.L.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),h=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:h?this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>s,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof ji?l(e.action):void 0})},new((r=void 0)||(r=Promise))((function(e,t){function i(e){try{a(l.next(e))}catch(e){t(e)}}function n(e){try{a(l.throw(e))}catch(e){t(e)}}function a(t){t.done?e(t.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(t.value).then(i,n)}a((l=l.apply(o,s||[])).next())}));var o,s,r,l}getMenuActions(e,t,i){var n,o;const s=e=>new ji(e.action,(()=>this._delegate.onSelectCodeAction(e))),r=t.map(s),a=[...i],l=this._editor.getModel();if(l&&r.length)for(const i of c.H9.all(l))i._getAdditionalMenuItems&&a.push(...i._getAdditionalMenuItems({trigger:e.type,only:null===(o=null===(n=e.filter)||void 0===n?void 0:n.include)||void 0===o?void 0:o.value},t.map((e=>e.action))));return a.length&&r.push(new zi.Z0,...a.map((e=>s(new Mi({title:e.title,command:e},void 0))))),r}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,Hi.i)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}};qi=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([$i(2,Ki.i),$i(3,Ui.d)],qi);class Gi{constructor(e){this._keybindingProvider=e}getResolver(){const e=new vi((()=>this._keybindingProvider.getKeybindings().filter((e=>Gi.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===Ii?t={kind:Si.SourceOrganizeImports.value}:e.command===Ti&&(t={kind:Si.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},Ni.fromUser(t,{kind:Si.None,apply:"never"}))}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return null==i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Si(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}}Gi.codeActionCommands=[Di,ki,Ei,Ii,Ti];var Zi,Qi=o(6249),Yi=o(265),Xi=o(407),Ji=o(6709);!function(e){e.Hidden={type:0},e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(Zi||(Zi={}));let en=class e extends Vt.JT{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new Ji.Q5),this.onClick=this._onClick.event,this._state=Zi.Hidden,this._domNode=document.createElement("div"),this._domNode.className=Xi.lA.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),Yi.o.ignoreTarget(this._domNode),this._register(Hi.Gw(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=Hi.i(this._domNode),n=this._editor.getOption(58);let o=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{if(1!=(1&e.buttons))return;this.hide();const t=new Qi.Z;t.startMonitoring(e.target,e.buttons,Qi.e,(()=>{}),(()=>{t.dispose()}))}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()}))),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,i,n){if(t.validActions.length<=0)return this.hide();const o=this._editor.getOptions();if(!o.get(56).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(n),l=s.getOptions().tabSize,h=o.get(43),d=s.getLineContent(r),c=zt.yO.computeIndentLevel(d,l),u=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let g=r;if(!(h.spaceWidth*c>22))if(r>1&&!u(r-1))g-=1;else if(u(r+1)){if(a*h.spaceWidth<22)return this.hide()}else g+=1;this.state=new Zi.Showing(t,i,n,{position:{lineNumber:g,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Zi.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...Xi.lA.lightBulb.classNamesArray),this._domNode.classList.add(...Xi.lA.lightbulbAutofix.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=kt.N("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",e.getLabel()))}this._domNode.classList.remove(...Xi.lA.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...Xi.lA.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?kt.N("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):kt.N("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};en._posPref=[0],en=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(3,Ui.d)],en),(0,jt.Ic)(((e,t)=>{var i;const n=null===(i=e.getColor($t.cv))||void 0===i?void 0:i.transparent(.7),o=e.getColor($t.Fu);o&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${Xi.lA.lightBulb.cssSelector} {\n\t\t\tcolor: ${o};\n\t\t\tbackground-color: ${n};\n\t\t}`);const s=e.getColor($t.sK);s&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${Xi.lA.lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${s};\n\t\t\tbackground-color: ${n};\n\t\t}`)}));var tn,nn=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let on=class extends Vt.JT{constructor(e,t,i,n,o){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new Vt.XK),tn.set(this,!1),this._codeActionWidget=new vi((()=>this._register(o.createInstance(qi,this._editor,{onSelectCodeAction:e=>nn(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0)}))})))),this._lightBulbWidget=new vi((()=>{const e=this._register(o.createInstance(en,this._editor,t,i));return this._register(e.onClick((e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})))),e}))}dispose(){(function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,i):o?o.value=i:t.set(e,i)})(this,tn,!0,"f"),super.dispose()}update(e){var t,i,n;return nn(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let o;try{o=yield e.actions}catch(e){return void(0,a.dL)(e)}if(!function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}(this,tn,"f"))if(this._lightBulbWidget.getValue().update(o,e.trigger,e.position),1===e.trigger.type){if(null===(i=e.trigger.filter)||void 0===i?void 0:i.include){const t=this.tryGetValidActionToApply(e.trigger,o);if(t){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(t,!1)}finally{o.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,o);if(t&&t.action.disabled)return Fi.get(this._editor).showMessage(t.action.disabled,e.trigger.context.position),void o.dispose()}}const t=!!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include);if(e.trigger.context&&(!o.allActions.length||!t&&!o.validActions.length))return Fi.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=o,void o.dispose();this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(e.trigger,o,e.position,{includeDisabledActions:t})}else this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,i,n){return nn(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,i,n)}))}};tn=new WeakMap,on=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(4,Wi.TG)],on);var sn,rn=o(6156),an=o(7968),ln=o(8554),hn=o(6227),dn=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};const cn=new Dt.uy("supportedCodeAction","");class un extends Vt.JT{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new Bt._F),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._onCursorChange())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,hn.Xy)(e,t.uri)))&&this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2})}),this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2})}),this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const i of this._markerService.read({resource:t.uri})){const n=t.validateRange(i);if(d.e.intersectRanges(n,e))return d.e.lift(n)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&2===e.type){const{lineNumber:e,column:n}=i.getPosition(),o=t.getLineContent(e);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===t.getLineMaxColumn(e)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i)return void this._signalChange(void 0);const n=this._getRangeOfMarker(t),o=n?n.getStartPosition():t.getStartPosition(),s={trigger:e,selection:t,position:o};return this._signalChange(s),s}}var gn;!function(e){e.Empty={type:0},e.Triggered=class{constructor(e,t,i,n){this.trigger=e,this.rangeOrSelection=t,this.position=i,this._cancellablePromise=n,this.type=1,this.actions=n.catch((e=>{if((0,a.VV)(e))return pn;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(gn||(gn={}));const pn={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class mn extends Vt.JT{constructor(e,t,i,n){super(),this._editor=e,this._markerService=t,this._progressService=n,this._codeActionOracle=this._register(new Vt.XK),this._state=gn.Empty,this._onDidChangeState=this._register(new Ji.Q5),this.onDidChangeState=this._onDidChangeState.event,sn.set(this,!1),this._supportedCodeActions=cn.bindTo(i),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(c.H9.onDidChange((()=>this._update()))),this._update()}dispose(){dn(this,sn,"f")||(function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,i):o?o.value=i:t.set(e,i)}(this,sn,!0,"f"),super.dispose(),this.setState(gn.Empty,!0))}_update(){if(dn(this,sn,"f"))return;this._codeActionOracle.value=void 0,this.setState(gn.Empty);const e=this._editor.getModel();if(e&&c.H9.has(e)&&!this._editor.getOption(80)){const t=[];for(const i of c.H9.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new un(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(gn.Empty);const n=(0,Bt.PG)((i=>Oi(e,t.selection,t.trigger,yi.E.None,i)));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(n,250)),this.setState(new gn.Triggered(t.trigger,t.selection,t.position,n))}),void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||dn(this,sn,"f")||this._onDidChangeState.fire(e))}}sn=new WeakMap;var fn=function(e,t){return function(i,n){t(i,n,e)}},_n=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function vn(e){return Dt.Ao.regex(cn.keys()[0],new RegExp("(\\s|^)"+(0,bi.ec)(e.value)+"\\b"))}const bn={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:kt.N("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:kt.N("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[kt.N("args.schema.apply.first","Always apply the first returned code action."),kt.N("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),kt.N("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:kt.N("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let Cn=class e extends Vt.JT{constructor(e,t,i,n,o){super(),this._instantiationService=o,this._editor=e,this._model=this._register(new mn(this._editor,t,i,n)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._ui=new vi((()=>this._register(new on(e,Sn.Id,En.Id,{applyCodeAction:(e,t)=>_n(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e)}finally{t&&this._trigger({type:2,filter:{}})}}))},this._instantiationService))))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,i){if(!this._editor.hasModel())return;Fi.get(this._editor).closeMessage();const n=this._editor.getPosition();this._trigger({type:1,filter:t,autoApply:i,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(wn,e,this._editor)}};function wn(t,i,n){return _n(this,void 0,void 0,(function*(){const o=t.get(Ci.vu),s=t.get(_.H),r=t.get(ln.b),a=t.get(an.lT);if(r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:i.action.title,codeActionKind:i.action.kind,codeActionIsPreferred:!!i.action.isPreferred}),yield i.resolve(e.T.None),i.action.edit&&(yield o.apply(Ci.fo.convert(i.action.edit),{editor:n,label:i.action.title})),i.action.command)try{yield s.executeCommand(i.action.command.id,...i.action.command.arguments||[])}catch(e){const t=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}(e);a.error("string"==typeof t?t:kt.N("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function yn(e,t,i,n){if(e.hasModel()){const o=Cn.get(e);o&&o.manualTriggerAtCurrentPosition(t,i,n)}}Cn.ID="editor.contrib.quickFixController",Cn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([fn(1,rn.lT),fn(2,Dt.i6),fn(3,yi.e),fn(4,Wi.TG)],Cn);class Sn extends Lt.R6{constructor(){super({id:Sn.Id,label:kt.N("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Dt.Ao.and(xt.u.writable,xt.u.hasCodeActionsProvider),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:2132,weight:100}})}run(e,t){return yn(t,kt.N("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}Sn.Id="editor.action.quickFix";class Ln extends Lt._l{constructor(){super({id:ki,precondition:Dt.Ao.and(xt.u.writable,xt.u.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:bn}]}})}runEditorCommand(e,t,i){const n=Ni.fromUser(i,{kind:Si.Empty,apply:"ifSingle"});return yn(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?kt.N("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):kt.N("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?kt.N("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):kt.N("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class Nn extends Lt.R6{constructor(){super({id:Di,label:kt.N("refactor.label","Refactor..."),alias:"Refactor...",precondition:Dt.Ao.and(xt.u.writable,xt.u.hasCodeActionsProvider),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Dt.Ao.and(xt.u.writable,vn(Si.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:bn}]}})}run(e,t,i){const n=Ni.fromUser(i,{kind:Si.Refactor,apply:"never"});return yn(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?kt.N("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):kt.N("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?kt.N("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):kt.N("editor.action.refactor.noneMessage","No refactorings available"),{include:Si.Refactor.contains(n.kind)?n.kind:Si.None,onlyIncludePreferredActions:n.preferred},n.apply)}}class xn extends Lt.R6{constructor(){super({id:Ei,label:kt.N("source.label","Source Action..."),alias:"Source Action...",precondition:Dt.Ao.and(xt.u.writable,xt.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Dt.Ao.and(xt.u.writable,vn(Si.Source))},description:{description:"Source Action...",args:[{name:"args",schema:bn}]}})}run(e,t,i){const n=Ni.fromUser(i,{kind:Si.Source,apply:"never"});return yn(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?kt.N("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):kt.N("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?kt.N("editor.action.source.noneMessage.preferred","No preferred source actions available"):kt.N("editor.action.source.noneMessage","No source actions available"),{include:Si.Source.contains(n.kind)?n.kind:Si.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class kn extends Lt.R6{constructor(){super({id:Ii,label:kt.N("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Dt.Ao.and(xt.u.writable,vn(Si.SourceOrganizeImports)),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:1581,weight:100}})}run(e,t){return yn(t,kt.N("editor.action.organize.noneMessage","No organize imports action available"),{include:Si.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class Dn extends Lt.R6{constructor(){super({id:Ti,label:kt.N("fixAll.label","Fix All"),alias:"Fix All",precondition:Dt.Ao.and(xt.u.writable,vn(Si.SourceFixAll))})}run(e,t){return yn(t,kt.N("fixAll.noneMessage","No fix all action available"),{include:Si.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class En extends Lt.R6{constructor(){super({id:En.Id,label:kt.N("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Dt.Ao.and(xt.u.writable,vn(Si.QuickFix)),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return yn(t,kt.N("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Si.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}En.Id="editor.action.autoFix",(0,Lt._K)(Cn.ID,Cn),(0,Lt.Qr)(Sn),(0,Lt.Qr)(Nn),(0,Lt.Qr)(xn),(0,Lt.Qr)(kn),(0,Lt.Qr)(En),(0,Lt.Qr)(Dn),(0,Lt.fK)(new Ln);var In=o(2916),Tn=o(54),Mn=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class An{constructor(){this.lenses=[],this._disposables=new Vt.SL}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function Rn(e,t){return Mn(this,void 0,void 0,(function*(){const i=c.He.ordered(e),n=new Map,o=new An,s=i.map(((i,s)=>Mn(this,void 0,void 0,(function*(){n.set(i,s);try{const n=yield Promise.resolve(i.provideCodeLenses(e,t));n&&o.add(n,i)}catch(e){(0,a.Cp)(e)}}))));return yield Promise.all(s),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumbert.symbol.range.startLineNumber?1:n.get(e.provider)n.get(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0)),o}))}_.P.registerCommand("_executeCodeLensProvider",(function(o,...s){let[r,l]=s;(0,t.p_)(i.o.isUri(r)),(0,t.p_)("number"==typeof l||!l);const h=o.get(n.q).getModel(r);if(!h)throw(0,a.b1)();const d=[],c=new Vt.SL;return Rn(h,e.T.None).then((t=>{c.add(t);let i=[];for(const n of t.lenses)null==l||Boolean(n.symbol.command)?d.push(n.symbol):l-- >0&&n.provider.resolveCodeLens&&i.push(Promise.resolve(n.provider.resolveCodeLens(h,n.symbol,e.T.None)).then((e=>d.push(e||n.symbol))));return Promise.all(i)})).then((()=>d)).finally((()=>{setTimeout((()=>c.dispose()),100)}))}));var On=o(9717),Pn=o(3061),Fn=o(7508);const Bn=(0,Wi.yh)("ICodeLensCache");class Vn{constructor(e,t){this.lineCount=e,this.data=t}}let Wn=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new h.z6(20,.75),(0,Bt.To)((()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),(0,On.I)(e.onWillSaveState)((i=>{i.reason===Fn.fk.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new An;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new Vn(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new d.e(e,1,e,11)});const o=new An;o.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new Vn(i.lineCount,o))}}catch(e){}}};Wn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,Fn.Uy)],Wn),(0,Pn.z)(Bn,Wn);var Hn=o(9111);class zn{constructor(e,t,i){this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class Kn{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+Kn._idPool++,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();let i=[],n=!1;for(let t=0;t{e.symbol.command&&l.push(e.symbol),n.addDecoration({range:e.symbol.range,options:zt.qx.EMPTY},(e=>this._decorationIds[t]=e)),a=a?d.e.plusRange(a,e.symbol.range):d.e.lift(e.symbol.range)})),this._viewZone=new zn(a.startLineNumber-1,s,r),this._viewZoneId=o.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Kn(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||d.e.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:zt.qx.EMPTY},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t{const i=e.getColor(Kt.Yp);i&&(t.addRule(`.monaco-editor .codelens-decoration { color: ${i}; }`),t.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${i}; }`));const n=e.getColor($t._Y);n&&(t.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${n} !important; }`),t.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${n} !important; }`))}));var jn=o(8785),qn=function(e,t){return function(i,n){t(i,n,e)}};let Gn=class{constructor(e,t,i,n){this._editor=e,this._commandService=t,this._notificationService=i,this._codeLensCache=n,this._disposables=new Vt.SL,this._localToDispose=new Vt.SL,this._lenses=[],this._getCodeLensModelDelays=new u.Y(c.He,250,2500),this._oldCodeLensModels=new Vt.SL,this._resolveCodeLensesDelays=new u.Y(c.He,250,2500),this._resolveCodeLensesScheduler=new Bt.pY((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDelays.min),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(43)||e.hasChanged(16)||e.hasChanged(15))&&this._updateLensStyle(),e.hasChanged(14)&&this._onModelChange()}))),this._disposables.add(c.He.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+(0,In.vp)(this._editor.getId()).toString(16),this._styleElement=Hi.dS(Hi.OO(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){let e,t=this._editor.getOption(16);return!t||t<5?(t=.9*this._editor.getOption(45)|0,e=this._editor.getOption(58)):e=t*Math.max(1.3,this._editor.getOption(58)/this._editor.getOption(45))|0,{codeLensHeight:e,fontSize:t}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(43),o=`--codelens-font-family${this._styleClassName}`,s=`--codelens-font-features${this._styleClassName}`;let r=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(.5*t)}px; font-feature-settings: var(${s}) }\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; }\n\t\t`;i&&(r+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${o}), ${Tn.hL.fontFamily}}`),this._styleElement.textContent=r,this._editor.getContainerDomNode().style.setProperty(o,null!=i?i:"inherit"),this._editor.getContainerDomNode().style.setProperty(s,n.fontFeatureSettings),this._editor.changeViewZones((t=>{for(let i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!c.He.has(e))return void(t&&this._localToDispose.add((0,Bt.Vg)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4)));for(const t of c.He.all(e))if("function"==typeof t.onDidChange){let e=t.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new Bt.pY((()=>{var t;const n=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,Bt.PG)((t=>Rn(e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const o=this._getCodeLensModelDelays.update(e,Date.now()-n);i.delay=o,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),a.dL)}),this._getCodeLensModelDelays.get(e));this._localToDispose.add(i),this._localToDispose.add((0,Vt.OF)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{let i=[],n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));let o=new Un;i.forEach((e=>{e.dispose(o,t),this._lenses.splice(this._lenses.indexOf(e),1)})),o.commit(e)}))})),i.schedule()}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,Vt.OF)((()=>{if(this._editor.getModel()){const e=wi.ZF.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null==t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null==t?void 0:t.tagName))for(const e of this._lenses){let i=e.getCommand(t);if(i){this._commandService.executeCommand(i.id,...i.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new Un;for(const e of this._lenses)e.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t,i=this._editor.getModel().getLineCount(),n=[];for(let o of e.lenses){let e=o.symbol.range.startLineNumber;e<1||e>i||(t&&t[t.length-1].symbol.range.startLineNumber===e?t.push(o):(t=[o],n.push(t)))}const o=wi.ZF.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=new Un;let o=0,r=0;for(;rthis._resolveCodeLensesInViewportSoon()))),o++,r++)}for(;othis._resolveCodeLensesInViewportSoon()))),r++;i.commit(e)}))})),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach((e=>{const o=e.computeIfNecessary(t);o&&(i.push(o),n.push(e))})),0===i.length)return;const o=Date.now(),s=(0,Bt.PG)((e=>{const o=i.map(((i,o)=>{const s=new Array(i.length),r=i.map(((i,n)=>i.symbol.command||"function"!=typeof i.provider.resolveCodeLens?(s[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{s[n]=e}),a.Cp)));return Promise.all(r).then((()=>{e.isCancellationRequested||n[o].isDisposed()||n[o].updateCommands(s)}))}));return Promise.all(o)}));this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDelays.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,a.dL)(e),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}getLenses(){return this._lenses}};Gn.ID="css.editor.codeLens",Gn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([qn(1,_.H),qn(2,an.lT),qn(3,Bn)],Gn),(0,Lt._K)(Gn.ID,Gn),(0,Lt.Qr)(class extends Lt.R6{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:xt.u.hasCodeLensProvider,label:(0,kt.N)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return i=this,n=void 0,s=function*(){if(!t.hasModel())return;const i=e.get(jn.eJ),n=e.get(_.H),o=e.get(an.lT),s=t.getSelection().positionLineNumber,r=t.getContribution(Gn.ID),a=[];for(let e of r.getLenses())if(e.getLineNumber()===s)for(let t of e.getItems()){const{command:e}=t.symbol;e&&a.push({label:e.title,command:e})}if(0===a.length)return;const l=yield i.pick(a,{canPickMany:!1});if(l)try{yield n.executeCommand(l.command.id,...l.command.arguments||[])}catch(e){o.error(e)}},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof o?e:new o((function(t){t(e)}))}(t.value).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}});var Zn=o(6741);function Qn(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}_.P.registerCommand("_executeDocumentColorProvider",(function(t,...o){const[s]=o;if(!(s instanceof i.o))throw(0,a.b1)();const r=t.get(n.q).getModel(s);if(!r)throw(0,a.b1)();const l=[],h=c.OH.ordered(r).reverse().map((t=>Promise.resolve(t.provideDocumentColors(r,e.T.None)).then((e=>{if(Array.isArray(e))for(let t of e)l.push({range:t.range,color:[t.color.red,t.color.green,t.color.blue,t.color.alpha]})}))));return Promise.all(h).then((()=>l))})),_.P.registerCommand("_executeColorPresentationProvider",(function(t,...o){const[s,r]=o,{uri:l,range:h}=r;if(!(l instanceof i.o&&Array.isArray(s)&&4===s.length&&d.e.isIRange(h)))throw(0,a.b1)();const[u,g,p,m]=s,f=t.get(n.q).getModel(l);if(!f)throw(0,a.b1)();const _={range:h,color:{red:u,green:g,blue:p,alpha:m}},v=[],b=c.OH.ordered(f).reverse().map((t=>Promise.resolve(t.provideColorPresentations(f,_,e.T.None)).then((e=>{Array.isArray(e)&&v.push(...e)}))));return Promise.all(b).then((()=>v))}));var Yn=o(1177),Xn=function(e,t){return function(i,n){t(i,n,e)}};let Jn=class e extends Vt.JT{constructor(e,t,i){super(),this._editor=e,this._codeEditorService=t,this._configurationService=i,this._localToDispose=this._register(new Vt.SL),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel((()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()}))),this._register(e.onDidChangeModelLanguage((()=>this.onModelChanged()))),this._register(c.OH.onDidChange((()=>this.onModelChanged()))),this._register(e.onDidChangeConfiguration((()=>{let e=this._isEnabled;this._isEnabled=this.isEnabled(),e!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"==typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(17)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const t=this._editor.getModel();t&&c.OH.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new Bt._F,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),e.RECOMPUTE_TIME))}))),this.beginCompute())}beginCompute(){this._computePromise=(0,Bt.PG)((e=>{const t=this._editor.getModel();return t?function(e,t){const i=[],n=c.OH.ordered(e).reverse().map((n=>Promise.resolve(n.provideDocumentColors(e,t)).then((e=>{if(Array.isArray(e))for(let t of e)i.push({colorInfo:t,provider:n})}))));return Promise.all(n).then((()=>i))}(t,e):Promise.resolve([])})),this._computePromise.then((e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}),a.dL)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:zt.qx.EMPTY})));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}updateColorDecorators(e){let t=[],i={};for(let n=0;n{i[e]||this._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach((e=>{this._codeEditorService.removeDecorationType(e)}))}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(d.e.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}};Jn.ID="editor.contrib.colorDetector",Jn.RECOMPUTE_TIME=1e3,Jn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Xn(1,ri.$),Xn(2,Yn.Ui)],Jn),(0,Lt._K)(Jn.ID,Jn);var eo=o(4052);function to(e,t){return!!e[t]}class io{constructor(e,t){this.target=e.target,this.hasTriggerModifier=to(e.event,t.triggerModifier),this.hasSideBySideModifier=to(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class no{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=to(e,t.triggerModifier)}}class oo{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function so(e){return"altKey"===e?oi.dz?new oo(57,"metaKey",6,"altKey"):new oo(5,"ctrlKey",6,"altKey"):oi.dz?new oo(6,"altKey",57,"metaKey"):new oo(6,"altKey",5,"ctrlKey")}class ro extends Vt.JT{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Ji.Q5),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Ji.Q5),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Ji.Q5),this.onCancel=this._onCancel.event,this._editor=e,this._opts=so(this._editor.getOption(69)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(69)){const e=so(this._editor.getOption(69));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new io(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new io(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new io(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new no(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new no(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var ao=o(7235),lo=o(3127),ho=o(8708),co=function(e,t){return function(i,n){t(i,n,e)}};let uo=class extends Ct.Gm{constructor(e,t,i,n,o,s,r,a,l,h){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,o,s,r,a,l,h),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){lo.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};uo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([co(3,Wi.TG),co(4,ri.$),co(5,_.H),co(6,Dt.i6),co(7,jt.XE),co(8,an.lT),co(9,ho.F)],uo);var go=o(3800),po=o(6100);const mo=new Zn.Il(new Zn.VS(0,122,204)),fo={showArrow:!0,showFrame:!0,className:"",frameColor:mo,arrowColor:mo,keepEditorSelection:!1};class _o{constructor(e,t,i,n,o,s){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class vo{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class bo{constructor(e){this._editor=e,this._ruleName=bo._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),Hi.uN(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){Hi.uN(this._ruleName),Hi.fk(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:d.e.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}bo._IdGenerator=new po.R(".arrow-decoration-");var Co=o(6544),wo=o(5898);class yo extends zi.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new Ji.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,Hi.R3)(e,(0,Hi.$)(".monaco-dropdown")),this._label=(0,Hi.R3)(this._element,(0,Hi.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const e of[Hi.tw.CLICK,Hi.tw.MOUSE_DOWN,Yi.t.Tap])this._register((0,Hi.nm)(this.element,e,(e=>Hi.zB.stop(e,!0))));for(const e of[Hi.tw.MOUSE_DOWN,Yi.t.Tap])this._register((0,Hi.nm)(this._label,e,(e=>{e instanceof MouseEvent&&e.detail>1||(this.visible?this.hide():this.show())})));this._register((0,Hi.nm)(this._label,Hi.tw.KEY_UP,(e=>{const t=new Co.y(e);(t.equals(3)||t.equals(10))&&(Hi.zB.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(Yi.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class So extends yo{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class Lo extends wo.Y{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new Ji.Q5),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,Hi.R3)(e,(0,Hi.$)("a.action-label"));let t=[];return"string"==typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new So(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}this.updateEnabled()}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;const i=!this.getAction().enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}var No=o(9553),xo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ko=function(e,t){return function(i,n){t(i,n,e)}},Do=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let Eo=class extends wo.g{constructor(e,t,i,n,o){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=o,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new Vt.XK),this._altKey=Hi._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return Do(this,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}}))}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(oi.ED||oi.IJ)&&this._altKey.keyStatus.shiftKey;const n=()=>{const e=t&&i;e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event((e=>{i=e.altKey||(oi.ED||oi.IJ)&&e.shiftKey,n()}))),this._register((0,Hi.nm)(e,"mouseleave",(e=>{t=!1,n()}))),this._register((0,Hi.nm)(e,"mouseenter",(e=>{t=!0,n()})))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let n=t?(0,kt.N)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),o=i?(0,kt.N)("titleAndKb","{0} ({1})",e,i):e;n+=`\n[${No.xo.modifierLabels[oi.OS].altKey}] ${o}`}this.label.title=n}}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:n}=this;if(!i||!n)return;const o=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(o)if(jt.kS.isThemeIcon(o)){const e=jt.kS.asClassNameArray(o);n.classList.add(...e),this._itemClassDispose.value=(0,Vt.OF)((()=>{n.classList.remove(...e)}))}else o.light&&n.style.setProperty("--menu-entry-icon-light",(0,Hi.wY)(o.light)),o.dark&&n.style.setProperty("--menu-entry-icon-dark",(0,Hi.wY)(o.dark)),n.classList.add("icon"),this._itemClassDispose.value=(0,Vt.OF)((()=>{n.classList.remove("icon"),n.style.removeProperty("--menu-entry-icon-light"),n.style.removeProperty("--menu-entry-icon-dark")}))}};Eo=xo([ko(2,Ui.d),ko(3,an.lT),ko(4,Dt.i6)],Eo);let Io=class extends Lo{constructor(e,t,i){var n,o;const s=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(o=null==t?void 0:t.classNames)&&void 0!==o?o:jt.kS.isThemeIcon(e.item.icon)?jt.kS.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,s)}render(e){if(super.render(e),this.element){e.classList.add("menu-entry");const{icon:t}=this._action.item;t&&!jt.kS.isThemeIcon(t)&&(this.element.classList.add("icon"),t.light&&this.element.style.setProperty("--menu-entry-icon-light",(0,Hi.wY)(t.light)),t.dark&&this.element.style.setProperty("--menu-entry-icon-dark",(0,Hi.wY)(t.dark)))}}};Io=xo([ko(2,Ki.i)],Io);let To=class extends wo.Y{constructor(e,t,i,n,o,s,r,a){var l,h,d;let c;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=s,this._instaService=r,this._storageService=a,this._container=null,this._storageKey=`${e.item.submenu._debugName}_lastActionId`;let u=a.get(this._storageKey,1);u&&(c=e.actions.find((e=>u===e.id))),c||(c=e.actions[0]),this._defaultAction=this._instaService.createInstance(Eo,c,void 0);const g=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(l=null==t?void 0:t.menuAsChild)||void 0===l||l,classNames:null!==(h=null==t?void 0:t.classNames)&&void 0!==h?h:["codicon","codicon-chevron-down"],actionRunner:null!==(d=null==t?void 0:t.actionRunner)&&void 0!==d?d:new zi.Wi});this._dropdown=new Lo(e,e.actions,this._contextMenuService,g),this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof Ut.U8&&this.update(e.action)}))}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(Eo,e,void 0),this._defaultAction.actionRunner=new class extends zi.Wi{runAction(e,t){return Do(this,void 0,void 0,(function*(){yield e.run(void 0)}))}},this._container&&this._defaultAction.render((0,Hi.Ce)(this._container,(0,Hi.$)(".action-container")))}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,Hi.$)(".action-container");this._defaultAction.render((0,Hi.R3)(this._container,t)),this._register((0,Hi.nm)(t,Hi.tw.KEY_DOWN,(e=>{const t=new Co.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,Hi.$)(".dropdown-action-container");this._dropdown.render((0,Hi.R3)(this._container,i)),this._register((0,Hi.nm)(i,Hi.tw.KEY_DOWN,(e=>{var t;const i=new Co.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function Mo(e,t,i){return t instanceof Ut.U8?e.createInstance(Eo,t,void 0):t instanceof Ut.NZ?t.item.rememberDefaultAction?e.createInstance(To,t,i):e.createInstance(Io,t,i):void 0}To=xo([ko(2,Ui.d),ko(3,an.lT),ko(4,Ki.i),ko(5,Ut.co),ko(6,Wi.TG),ko(7,Fn.Uy)],To);var Ao=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ro=function(e,t){return function(i,n){t(i,n,e)}};const Oo=(0,Wi.yh)("IPeekViewService");var Po;(0,Pn.z)(Oo,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}}),function(e){e.inPeekEditor=new Dt.uy("inReferenceSearchEditor",!0,kt.N("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(Po||(Po={}));let Fo=class{constructor(e,t){e instanceof uo&&Po.inPeekEditor.bindTo(t)}dispose(){}};Fo.ID="editor.contrib.referenceController",Fo=Ao([Ro(1,Dt.i6)],Fo),(0,Lt._K)(Fo.ID,Fo);const Bo={headerBackgroundColor:Zn.Il.white,primaryHeadingColor:Zn.Il.fromHex("#333333"),secondaryHeadingColor:Zn.Il.fromHex("#6c6c6cb3")};let Vo=class extends class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new Vt.SL,this.container=null,this._isShowing=!1,this.editor=e,this.options=lo.I8(t),lo.jB(this.options,fo,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new bo(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){let t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash&&this._resizeSash.layout()}get position(){const[e]=this._positionMarkerId;if(!e)return;const t=this.editor.getModel();if(!t)return;const i=t.getDecorationRange(e);return i?i.getStartPosition():void 0}show(e,t){const i=d.e.isIRange(e)?d.e.lift(e):d.e.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:i,options:zt.qx.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let e=this.editor.getOption(58),t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";const s=document.createElement("div");s.style.overflow="hidden";const r=this.editor.getOption(58),a=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,a);let l=0,h=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(r/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(h=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new _o(s,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e))),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new vo("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:h;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}let d=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);const c=this.editor.getModel();if(c){const t=e.endLineNumber+1;t<=c.getLineCount()?this.revealLine(t,!1):this.revealLine(c.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new go.g(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){let i=(t.currentY-e.startY)/this.editor.getOption(58),n=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new Ji.Q5,this.onDidClose=this._onDidClose.event,lo.jB(this.options,Bo,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=Hi.$(".head"),this._bodyElement=Hi.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=Hi.$(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),Hi.mu(i,"click",(e=>this._onTitleClick(e)))),Hi.R3(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=Hi.$("span.filename"),this._secondaryHeading=Hi.$("span.dirname"),this._metaHeading=Hi.$("span.meta"),Hi.R3(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=Hi.$(".peekview-actions");Hi.R3(this._headElement,n);const o=this._getActionBarOptions();this._actionbarWidget=new ao.o(n,o),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new zi.aU("peekview.close",kt.N("label.close","Close"),Xi.lA.close.classNames,!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Mo.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Hi.PO(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Hi.$Z(this._metaHeading)):Hi.Cp(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(58)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};Vo=Ao([Ro(2,Wi.TG)],Vo);const Wo=(0,$t.P6)("peekViewTitle.background",{dark:(0,$t.Zn)($t.c6,.1),light:(0,$t.Zn)($t.c6,.1),hc:null},kt.N("peekViewTitleBackground","Background color of the peek view title area.")),Ho=(0,$t.P6)("peekViewTitleLabel.foreground",{dark:Zn.Il.white,light:Zn.Il.black,hc:Zn.Il.white},kt.N("peekViewTitleForeground","Color of the peek view title.")),zo=(0,$t.P6)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hc:"#FFFFFF99"},kt.N("peekViewTitleInfoForeground","Color of the peek view title info.")),Ko=(0,$t.P6)("peekView.border",{dark:$t.c6,light:$t.c6,hc:$t.lR},kt.N("peekViewBorder","Color of the peek view borders and arrow.")),Uo=(0,$t.P6)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:Zn.Il.black},kt.N("peekViewResultsBackground","Background color of the peek view result list.")),$o=(0,$t.P6)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:Zn.Il.white},kt.N("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),jo=(0,$t.P6)("peekViewResult.fileForeground",{dark:Zn.Il.white,light:"#1E1E1E",hc:Zn.Il.white},kt.N("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),qo=(0,$t.P6)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},kt.N("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Go=(0,$t.P6)("peekViewResult.selectionForeground",{dark:Zn.Il.white,light:"#6C6C6C",hc:Zn.Il.white},kt.N("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Zo=(0,$t.P6)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:Zn.Il.black},kt.N("peekViewEditorBackground","Background color of the peek view editor.")),Qo=(0,$t.P6)("peekViewEditorGutter.background",{dark:Zo,light:Zo,hc:Zo},kt.N("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Yo=(0,$t.P6)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},kt.N("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Xo=(0,$t.P6)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},kt.N("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Jo=(0,$t.P6)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:$t.xL},kt.N("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var es=o(6086),ts=o(7679),is=o(3857);class ns{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=po.a.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,kt.N)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",(0,hn.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):(0,kt.N)("aria.oneReference","symbol in {0} on line {1} at column {2}",(0,hn.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class os{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),l=new d.e(n,a.startColumn,n,o),h=new d.e(s,r,s,1073741824),c=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:c+u+i.getValueInRange(h).replace(/\s+$/,""),highlight:{start:c.length,end:c.length+u.length}}}}class ss{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new h.Y9}dispose(){(0,Vt.B9)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,kt.N)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,hn.EZ)(this.uri),this.uri.fsPath):(0,kt.N)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,hn.EZ)(this.uri),this.uri.fsPath)}resolve(e){return t=this,i=void 0,o=function*(){if(0!==this._previews.size)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new os(i))}catch(e){(0,a.dL)(e)}return this},new((n=void 0)||(n=Promise))((function(e,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(t.value).then(r,a)}l((o=o.apply(t,i||[])).next())}));var t,i,n,o}}class rs{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Ji.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(rs._compareReferences);for(let t of e)if(n&&hn.SF.isEqual(n.uri,t.uri,!0)||(n=new ss(this,t.uri),this.groups.push(n)),0===n.children.length||0!==rs._compareReferences(t,n.children[n.children.length-1])){const e=new ns(i===t,n,t,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,Vt.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new rs(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,kt.N)("aria.result.0","No results found"):1===this.references.length?(0,kt.N)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,kt.N)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,kt.N)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:i}=e,n=i.children.indexOf(e),o=i.children.length,s=i.parent.groups.length;return 1===s||t&&n+10?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%s,i.parent.groups[n].children[0]):(n=(n+s-1)%s,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:bi.Mh(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&d.e.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return hn.SF.compare(e.uri,t.uri)||d.e.compareRangesUsingStarts(e.range,t.range)}}var as=o(9846),ls=o(5007),hs=o(4608),ds=o(4404),cs=o(6357),us=o(4449),gs=o(4538),ps=o(7128);function ms(e){if(!e)return;"string"==typeof e&&(e=i.o.file(e));const t=(0,hn.EZ)(e)||(e.scheme===ls.lg.file?e.fsPath:e.path);return oi.ED&&(0,ps.vY)(t)?fs(t):t}function fs(e){return(0,ps.oP)(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var _s=o(8680),vs=o(3003),bs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Cs=function(e,t){return function(i,n){t(i,n,e)}};let ws=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof rs||e instanceof ss}getChildren(e){if(e instanceof rs)return e.groups;if(e instanceof ss)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};ws=bs([Cs(0,s.S)],ws);class ys{getHeight(){return 23}getTemplateId(e){return e instanceof ss?xs.id:Ds.id}}let Ss=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof ns){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,hn.EZ)(e.uri)}};Ss=bs([Cs(0,Ui.d)],Ss);class Ls{getId(e){return e instanceof ns?e.id:e.uri}}let Ns=class extends Vt.JT{constructor(e,t,i){super(),this._uriLabel=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new us.g(n,{supportHighlights:!0})),this.badge=new ds.Z(Hi.R3(n,Hi.$(".count"))),this._register((0,vs.WZ)(this.badge,i)),e.appendChild(n)}set(e,t){let i=(0,hn.XX)(e.uri);this.file.setLabel(ms(e.uri),this._uriLabel.getUriLabel(i,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,kt.N)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,kt.N)("referenceCount","{0} reference",n))}};Ns=bs([Cs(1,_s.e),Cs(2,jt.XE)],Ns);let xs=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(Ns,e)}renderElement(e,t,i){i.set(e.element,(0,gs.mB)(e.filterData))}disposeTemplate(e){e.dispose()}};xs.id="FileReferencesRenderer",xs=bs([Cs(0,Wi.TG)],xs);class ks{constructor(e){this.label=new cs.q(e,!1)}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!gs.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,gs.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,hn.EZ)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Ds{constructor(){this.templateId=Ds.id}renderTemplate(e){return new ks(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}Ds.id="OneReferenceRenderer";class Es{getWidgetAriaLabel(){return(0,kt.N)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Is=o(8900),Ts=function(e,t){return function(i,n){t(i,n,e)}},Ms=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class As{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Vt.SL,this._callOnModelChange=new Vt.SL,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(let t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,o=e.children.length;n{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(Rs,"ReferencesWidget",this._treeContainer,new ys,[this._instantiationService.createInstance(xs),this._instantiationService.createInstance(Ds)],this._instantiationService.createInstance(ws),t),this._splitView.addView({onDidChange:Ji.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},as.M.Distribute),this._splitView.addView({onDidChange:Ji.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},as.M.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));let i=(e,t)=>{e instanceof ns&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),Hi.Cp(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Hi.Ro(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=kt.N("noResults","No results"),Hi.$Z(this._messageContainer),Promise.resolve(void 0)):(Hi.Cp(this._messageContainer),this._decorationsManager=new As(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),Hi.$Z(this._treeContainer),Hi.$Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof ns?e:e instanceof ss&&e.children.length>0?e.children[0]:void 0}revealReference(e){return Ms(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return Ms(this,void 0,void 0,(function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==ls.lg.inMemory?this.setTitle((0,hn.Hx)(e.uri),this._uriLabel.getUriLabel((0,hn.XX)(e.uri))):this.setTitle(kt.N("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e);const n=yield i;if(!this._model)return void n.dispose();(0,Vt.B9)(this._previewModelReference);const o=n.object;if(o){const t=this._preview.getModel()===o.textEditorModel?0:1,i=d.e.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}))}};Os=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ts(3,jt.XE),Ts(4,s.S),Ts(5,Wi.TG),Ts(6,Oo),Ts(7,_s.e),Ts(8,Is.tJ),Ts(9,Ui.d),Ts(10,eo.h),Ts(11,hs.c_)],Os),(0,jt.Ic)(((e,t)=>{const i=e.getColor(Yo);i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${i}; }`);const n=e.getColor(Xo);n&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${n}; }`);const o=e.getColor(Jo);o&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${o}; box-sizing: border-box; }`);const s=e.getColor($t.xL);s&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${s}; box-sizing: border-box; }`);const r=e.getColor(Uo);r&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${r}; }`);const a=e.getColor($o);a&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${a}; }`);const l=e.getColor(jo);l&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${l}; }`);const h=e.getColor(qo);h&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${h}; }`);const d=e.getColor(Go);d&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${d} !important; }`);const c=e.getColor(Zo);c&&t.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: ${c};}`);const u=e.getColor(Qo);u&&t.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: ${u};}`)}));var Ps=function(e,t){return function(i,n){t(i,n,e)}},Fs=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const Bs=new Dt.uy("referenceSearchVisible",!1,kt.N("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vs=class e{constructor(e,t,i,n,o,s,r,a){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=r,this._configurationService=a,this._disposables=new Vt.SL,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Bs.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const o="peekViewLayout",s=class{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:i||18}}}.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(Os,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(kt.N("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{let{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(kt.N("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let t=this._editor.getModel().uri,i=new Wt.L(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(76)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return Fs(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return Fs(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const i=d.e.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i}},this._editor).then((t=>{var n;if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(i),this._widget.focusOnReferenceTree();else{const o=e.get(t),s=this._model.clone();this.closeWidget(),t.focus(),o.toggleWidget(i,(0,Bt.PG)((e=>Promise.resolve(s))),null!==(n=this._peekMode)&&void 0!==n&&n)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,a.dL)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,pinned:i}},this._editor,t)}};function Ws(e,t){const i=function(e){let t=e.get(ri.$).getFocusedCodeEditor();return t instanceof uo?t.getParentEditor():t}(e);if(!i)return;let n=Vs.get(i);n&&t(n)}Vs.ID="editor.contrib.referencesController",Vs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ps(2,Dt.i6),Ps(3,ri.$),Ps(4,an.lT),Ps(5,Wi.TG),Ps(6,Fn.Uy),Ps(7,Yn.Ui)],Vs),ts.W.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,St.gx)(2089,60),when:Dt.Ao.or(Bs,Po.inPeekEditor),handler(e){Ws(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),ts.W.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:Dt.Ao.or(Bs,Po.inPeekEditor),handler(e){Ws(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),ts.W.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:Dt.Ao.or(Bs,Po.inPeekEditor),handler(e){Ws(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),_.P.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),_.P.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),_.P.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),_.P.registerCommand("closeReferenceSearch",(e=>Ws(e,(e=>e.closeWidget())))),ts.W.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:Dt.Ao.and(Po.inPeekEditor,Dt.Ao.not("config.editor.stablePeek"))}),ts.W.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:Dt.Ao.and(Bs,Dt.Ao.not("config.editor.stablePeek"))}),ts.W.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:Dt.Ao.and(Bs,is.CQ),handler(e){var t;const i=null===(t=e.get(is.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof ns&&Ws(e,(e=>e.revealReference(i[0])))}}),ts.W.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:Dt.Ao.and(Bs,is.CQ),handler(e){var t;const i=null===(t=e.get(is.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof ns&&Ws(e,(e=>e.openReference(i[0],!0,!0)))}}),_.P.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(is.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof ns&&Ws(e,(e=>e.openReference(i[0],!1,!0)))}));var Hs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},zs=function(e,t){return function(i,n){t(i,n,e)}};const Ks=new Dt.uy("hasSymbols",!1,(0,kt.N)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Us=(0,Wi.yh)("ISymbolNavigationService");let $s=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Ks.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new js(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),o=i.getPosition();if(!n||!o)return;let s=!1,r=!1;for(const e of t.references)if((0,hn.Xy)(e.uri,n.uri))s=!0,r=r||d.e.containsPosition(e.range,o);else if(s)break;s&&r||this.reset()}));this._currentState=(0,Vt.F8)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:d.e.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,kt.N)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,kt.N)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};$s=Hs([zs(0,Dt.i6),zs(1,ri.$),zs(2,an.lT),zs(3,Ui.d)],$s),(0,Pn.z)(Us,$s,!0),(0,Lt.fK)(new class extends Lt._l{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:Ks,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(Us).revealNext(t)}}),ts.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Ks,primary:9,handler(e){e.get(Us).reset()}});let js=class{constructor(e){this._listener=new Map,this._disposables=new Vt.SL,this._onDidChange=new Ji.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,Vt.B9)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,Vt.F8)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};js=Hs([zs(0,ri.$)],js);var qs=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function Gs(e,t,i,n){const o=i.ordered(e).map((i=>Promise.resolve(n(i,e,t)).then(void 0,(e=>{(0,a.Cp)(e)}))));return Promise.all(o).then((e=>{const t=[];for(let i of e)Array.isArray(i)?t.push(...i):i&&t.push(i);return t}))}function Zs(e,t,i){return Gs(e,t,c.Ct,((e,t,n)=>e.provideDefinition(t,n,i)))}function Qs(e,t,i){return Gs(e,t,c.RN,((e,t,n)=>e.provideDeclaration(t,n,i)))}function Ys(e,t,i){return Gs(e,t,c.vI,((e,t,n)=>e.provideImplementation(t,n,i)))}function Xs(e,t,i){return Gs(e,t,c.tA,((e,t,n)=>e.provideTypeDefinition(t,n,i)))}function Js(e,t,i,n){return Gs(e,t,c.FL,((e,t,o)=>qs(this,void 0,void 0,(function*(){const s=yield e.provideReferences(t,o,{includeDeclaration:!0},n);if(!i||!s||2!==s.length)return s;const r=yield e.provideReferences(t,o,{includeDeclaration:!1},n);return r&&1===r.length?r:s}))))}function er(e){return qs(this,void 0,void 0,(function*(){const t=yield e(),i=new rs(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}))}(0,Lt.sb)("_executeDefinitionProvider",((t,i)=>er((()=>Zs(t,i,e.T.None))))),(0,Lt.sb)("_executeDeclarationProvider",((t,i)=>er((()=>Qs(t,i,e.T.None))))),(0,Lt.sb)("_executeImplementationProvider",((t,i)=>er((()=>Ys(t,i,e.T.None))))),(0,Lt.sb)("_executeTypeDefinitionProvider",((t,i)=>er((()=>Xs(t,i,e.T.None))))),(0,Lt.sb)("_executeReferenceProvider",((t,i)=>er((()=>Js(t,i,!1,e.T.None)))));var tr,ir,nr,or,sr,rr,ar,lr,hr=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};Ut.BH.appendMenuItem(Ut.eH.EditorContext,{submenu:Ut.eH.EditorContextPeek,title:kt.N("peek.submenu","Peek"),group:"navigation",order:100});const dr=new Set;function cr(e){const t=new e;return(0,Lt.QG)(t),dr.add(t.id),t}class ur extends Lt.R6{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);const i=e.get(an.lT),n=e.get(ri.$),o=e.get(yi.e),s=e.get(Us),r=t.getModel(),a=t.getPosition(),l=new wi.Dl(t,5),h=(0,Bt.eP)(this._getLocationModel(r,a,l.token),l.token).then((e=>hr(this,void 0,void 0,(function*(){if(!e||l.token.isCancellationRequested)return;let i;if((0,wt.Z9)(e.ariaMessage),e.referenceAt(r.uri,a)){const e=this._getAlternativeCommand(t);e!==this.id&&dr.has(e)&&(i=t.getAction(e))}const o=e.references.length;if(0===o){if(!this._configuration.muteMessage){const e=r.getWordAtPosition(a);Fi.get(t).showMessage(this._getNoResultFoundMessage(e),a)}}else{if(1!==o||!i)return this._onResult(n,s,t,e);i.run()}}))),(e=>{i.error(e)})).finally((()=>{l.dispose()}));return o.showWhile(h,250),h}_onResult(e,t,i,n){return hr(this,void 0,void 0,(function*(){const o=this._getGoToPreference(i);if(i instanceof uo||!(this._configuration.openInPeek||"peek"===o&&n.references.length>1)){const s=n.firstReference(),r=n.references.length>1&&"gotoAndPeek"===o,a=yield this._openReference(i,e,s,this._configuration.openToSide,!r);r&&a?this._openInPeek(a,n):n.dispose(),"goto"===o&&t.put(s)}else this._openInPeek(i,n)}))}_openReference(e,t,i,n,o){return hr(this,void 0,void 0,(function*(){let s;if((0,c.vx)(i)&&(s=i.targetSelectionRange),s||(s=i.range),!s)return;const r=yield t.openCodeEditor({resource:i.uri,options:{selection:d.e.collapseToStart(s),selectionRevealType:3}},e,n);if(r){if(o){const e=r.getModel(),t=r.deltaDecorations([],[{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&r.deltaDecorations(t,[])}),350)}return r}}))}_openInPeek(e,t){let i=Vs.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),(0,Bt.PG)((e=>Promise.resolve(t))),this._configuration.openInPeek):t.dispose()}}class gr extends ur{_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Zs(e,t,i),kt.N("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?kt.N("noResultWord","No definition found for '{0}'",e.word):kt.N("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(50).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(50).multipleDefinitions}}const pr=oi.$L&&!ni.$W?2118:70;cr(((tr=class e extends gr{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:kt.N("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:Dt.Ao.and(xt.u.hasDefinitionProvider,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:pr,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),_.P.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",tr)),cr(((ir=class e extends gr{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:kt.N("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:Dt.Ao.and(xt.u.hasDefinitionProvider,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:(0,St.gx)(2089,pr),weight:100}}),_.P.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",ir)),cr(((nr=class e extends gr{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:kt.N("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:Dt.Ao.and(xt.u.hasDefinitionProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:Ut.eH.EditorContextPeek,group:"peek",order:2}}),_.P.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",nr));class mr extends ur{_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Qs(e,t,i),kt.N("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?kt.N("decl.noResultWord","No declaration found for '{0}'",e.word):kt.N("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(50).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(50).multipleDeclarations}}cr(((or=class e extends mr{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:kt.N("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:Dt.Ao.and(xt.u.hasDeclarationProvider,xt.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?kt.N("decl.noResultWord","No declaration found for '{0}'",e.word):kt.N("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",or)),cr(class extends mr{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:kt.N("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:Dt.Ao.and(xt.u.hasDeclarationProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Ut.eH.EditorContextPeek,group:"peek",order:3}})}});class fr extends ur{_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Xs(e,t,i),kt.N("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?kt.N("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):kt.N("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(50).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(50).multipleTypeDefinitions}}cr(((sr=class e extends fr{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:kt.N("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:Dt.Ao.and(xt.u.hasTypeDefinitionProvider,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}}).ID="editor.action.goToTypeDefinition",sr)),cr(((rr=class e extends fr{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:kt.N("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:Dt.Ao.and(xt.u.hasTypeDefinitionProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Ut.eH.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",rr));class _r extends ur{_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Ys(e,t,i),kt.N("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?kt.N("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):kt.N("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(50).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(50).multipleImplementations}}cr(((ar=class e extends _r{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:kt.N("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:Dt.Ao.and(xt.u.hasImplementationProvider,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",ar)),cr(((lr=class e extends _r{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:kt.N("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:Dt.Ao.and(xt.u.hasImplementationProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:Ut.eH.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",lr));class vr extends ur{_getNoResultFoundMessage(e){return e?kt.N("references.no","No references found for '{0}'",e.word):kt.N("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(50).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(50).multipleReferences}}cr(class extends vr{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:kt.N("goToReferences.label","Go to References"),alias:"Go to References",precondition:Dt.Ao.and(xt.u.hasReferenceProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:xt.u.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Js(e,t,!0,i),kt.N("ref.title","References"))}))}}),cr(class extends vr{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:kt.N("references.action.label","Peek References"),alias:"Peek References",precondition:Dt.Ao.and(xt.u.hasReferenceProvider,Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Ut.eH.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(yield Js(e,t,!1,i),kt.N("ref.title","References"))}))}});class br extends ur{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:kt.N("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:Dt.Ao.and(Po.notInPeekEditor,xt.u.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i){return hr(this,void 0,void 0,(function*(){return new rs(this._references,kt.N("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&kt.N("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(50).multipleReferences}_getAlternativeCommand(){return""}}_.P.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:i.o},{name:"position",description:"The position at which to start",constraint:Wt.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,n,o,s,r,a,l)=>hr(void 0,void 0,void 0,(function*(){(0,t.p_)(i.o.isUri(n)),(0,t.p_)(Wt.L.isIPosition(o)),(0,t.p_)(Array.isArray(s)),(0,t.p_)(void 0===r||"string"==typeof r),(0,t.p_)(void 0===l||"boolean"==typeof l);const h=e.get(ri.$),d=yield h.openCodeEditor({resource:n},h.getFocusedCodeEditor());if((0,es.CL)(d))return d.setPosition(o),d.revealPositionInCenterIfOutsideViewport(o,0),d.invokeWithinContext((e=>{const t=new class extends br{_getNoResultFoundMessage(e){return a||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(a),openInPeek:Boolean(l),openToSide:!1},s,r);e.get(Wi.TG).invokeFunction(t.run.bind(t),d)}))}))}),_.P.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:i.o},{name:"position",description:"The position at which to start",constraint:Wt.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(e,t,i,n,o)=>hr(void 0,void 0,void 0,(function*(){e.get(_.H).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}))}),_.P.registerCommand({id:"editor.action.findReferences",handler:(e,n,o)=>{(0,t.p_)(i.o.isUri(n)),(0,t.p_)(Wt.L.isIPosition(o));const s=e.get(ri.$);return s.openCodeEditor({resource:n},s.getFocusedCodeEditor()).then((e=>{if(!(0,es.CL)(e)||!e.hasModel())return;const t=Vs.get(e);if(!t)return;const i=(0,Bt.PG)((t=>Js(e.getModel(),Wt.L.lift(o),!1,t).then((e=>new rs(e,kt.N("ref.title","References")))))),n=new d.e(o.lineNumber,o.column,o.lineNumber,o.column);return Promise.resolve(t.toggleWidget(n,i,!1))}))}}),_.P.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),Ut.BH.appendMenuItems([{id:Ut.eH.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:kt.N({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:Ut.eH.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:kt.N({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:Ut.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:kt.N({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:Ut.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:kt.N({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:Ut.eH.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:kt.N({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var Cr=function(e,t){return function(i,n){t(i,n,e)}};let wr=class e{constructor(e,i,n){this.textModelResolverService=i,this.modeService=n,this.toUnhook=new Vt.SL,this.toUnhookForKeyboard=new Vt.SL,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let o=new ro(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown((([e,i])=>{this.startFindDefinitionFromMouse(e,(0,t.f6)(i))}))),this.toUnhook.add(o.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((()=>{this.removeLinkDecorations()}),(e=>{this.removeLinkDecorations(),(0,a.dL)(e)}))}))),this.toUnhook.add(o.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then((()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;let n=new wi.yy(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,Bt.PG)((t=>this.findDefinition(e,t))),this.previousPromise.then((t=>{if(t&&t.length&&n.validate(this.editor))if(t.length>1)this.addDecoration(new d.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),(new yt.W5).appendText(kt.N("multipleResults","Click to show {0} definitions.",t.length)));else{let n=t[0];if(!n.uri)return;this.textModelResolverService.createModelReference(n.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:o}}=t,{startLineNumber:s}=n.range;if(s<1||s>o.getLineCount())return void t.dispose();const r=this.getPreviewValue(o,s,n);let a;a=n.originSelectionRange?d.e.lift(n.originSelectionRange):new d.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const l=this.modeService.getModeIdByFilepathOrFirstLine(o.uri);this.addDecoration(a,(new yt.W5).appendCodeblock(l||"",r)),t.dispose()}))}else this.removeLinkDecorations()})).then(void 0,a.dL)}getPreviewValue(t,i,n){let o=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(t,i);return o.endLineNumber-o.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,i)),this.stripIndentationFromPreviewRange(t,i,o)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;on)return new d.e(i,1,n+1,1);r=t.findNextBracket(new Wt.L(a,l))}return new d.e(i,1,n+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[i])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&c.Ct.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?Zs(i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(77)&&!this.isInPeekEditor(e);return new gr({openToSide:t,openInPeek:i,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,this.editor)}))}isInPeekEditor(e){const t=e.get(Dt.i6);return Po.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};wr.ID="editor.contrib.gotodefinitionatposition",wr.MAX_SOURCE_PREVIEW_LINES=8,wr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Cr(1,s.S),Cr(2,eo.h)],wr),(0,Lt._K)(wr.ID,wr),(0,jt.Ic)(((e,t)=>{const i=e.getColor($t._Y);i&&t.addRule(`.monaco-editor .goto-definition-link { color: ${i} !important; }`)}));var yr=o(8638);const Sr=Hi.$;class Lr extends Vt.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new yr.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class Nr extends Vt.JT{constructor(e,t,i){super(),this.actionContainer=Hi.R3(e,Sr("div.action-container")),this.action=Hi.R3(this.actionContainer,Sr("a.action")),this.action.setAttribute("href","#"),this.action.setAttribute("role","button"),t.iconClass&&Hi.R3(this.action,Sr(`span.icon.${t.iconClass}`)),Hi.R3(this.action,Sr("span")).textContent=i?`${t.label} (${i})`:t.label,this._register(Hi.nm(this.actionContainer,Hi.tw.MOUSE_DOWN,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this.setEnabled(!0)}static render(e,t,i){return new Nr(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var xr=o(8305);class kr{constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new Ji.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Ji.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Ji.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let e=0;e{this.backgroundColor=e.getColor($t.yJ)||Zn.Il.white}))),this._register(Hi.nm(this.pickedColorNode,Hi.tw.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(Hi.nm(o,Hi.tw.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=Zn.Il.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=Zn.Il.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(Dr(".codicon.codicon-color-mode"))}}class Ir extends Vt.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=Dr(".colorpicker-body"),Hi.R3(e,this.domNode),this.saturationBox=new Tr(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Ar(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Rr(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new Zn.Il(new Zn.tx(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new Zn.Il(new Zn.tx(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new Zn.Il(new Zn.tx(360===i?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Tr extends Vt.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new Ji.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Ji.Q5,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Dr(".saturation-wrap"),Hi.R3(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",Hi.R3(this.domNode,this.canvas),this.selection=Dr(".saturation-selection"),Hi.R3(this.domNode,this.selection),this.layout(),this._register(Hi.Lo(this.domNode,(e=>this.onMouseDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new Qi.Z);const t=Hi.i(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,Qi.e,(e=>this.onDidChangePosition(e.posx-t.left,e.posy-t.top)),(()=>null));const i=Hi.qV(document,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new Zn.Il(new Zn.tx(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const o=i.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=Zn.Il.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=o,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Mr extends Vt.JT{constructor(e,t){super(),this.model=t,this._onDidChange=new Ji.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Ji.Q5,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Hi.R3(e,Dr(".strip")),this.overlay=Hi.R3(this.domNode,Dr(".overlay")),this.slider=Hi.R3(this.domNode,Dr(".slider")),this.slider.style.top="0px",this._register(Hi.Lo(this.domNode,(e=>this.onMouseDown(e)))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){const t=this._register(new Qi.Z),i=Hi.i(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,Qi.e,(e=>this.onDidChangeTop(e.posy-i.top)),(()=>null));const n=Hi.qV(document,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class Ar extends Mr{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,o=new Zn.Il(new Zn.VS(t,i,n,1)),s=new Zn.Il(new Zn.VS(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}}class Rr extends Mr{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Or extends xr.${constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register((0,ni.fX)((()=>this.layout())));const o=Dr(".colorpicker-widget");e.appendChild(o);const s=new Er(o,this.model,n);this.body=new Ir(o,this.model,this.pixelRatio),this._register(s),this._register(this.body)}layout(){this.body.layout()}}var Pr=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Fr{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Br=class{constructor(e,t,i){this._editor=e,this._hover=t,this._themeService=i}computeSync(e,t){return[]}computeAsync(e,t,i){return Pr(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return[];const e=Jn.get(this._editor);for(const i of t){if("color-detector-color"!==i.options.description)continue;const t=e.getColorData(i.range.getStartPosition());if(t)return[yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider)]}return[]}))}_createColorHover(t,i,n){return Pr(this,void 0,void 0,(function*(){const o=t.getValueInRange(i.range),{red:s,green:r,blue:a,alpha:l}=i.color,h=new Zn.VS(Math.round(255*s),Math.round(255*r),Math.round(255*a),l),c=new Zn.Il(h),u=yield Qn(t,i,n,e.T.None),g=new kr(c,[],0);return g.colorPresentations=u||[],g.guessColorPresentation(c,o),new Fr(this,d.e.lift(i.range),g,n)}))}renderHoverParts(t,i,n){if(0===t.length||!this._editor.hasModel())return Vt.JT.None;const o=new Vt.SL,s=t[0],r=this._editor.getModel(),a=s.model,l=o.add(new Or(i,a,this._editor.getOption(127),this._themeService));let h=new d.e(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);const c=()=>{let e,t;if(a.presentation.textEdit){e=[a.presentation.textEdit],t=new d.e(a.presentation.textEdit.range.startLineNumber,a.presentation.textEdit.range.startColumn,a.presentation.textEdit.range.endLineNumber,a.presentation.textEdit.range.endColumn);const i=this._editor.getModel()._setTrackedRange(null,t,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e),t=this._editor.getModel()._getTrackedRange(i)||t}else e=[{identifier:null,range:h,text:a.presentation.label,forceMoveMarkers:!1}],t=h.setEndPosition(h.endLineNumber,h.startColumn+a.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e);a.presentation.additionalTextEdits&&(e=[...a.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",e),this._hover.hide()),this._editor.pushUndoStop(),h=t},u=t=>Qn(r,{range:h,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},s.provider,e.T.None).then((e=>{a.colorPresentations=e||[]}));return o.add(a.onColorFlushed((e=>{u(e).then(c)}))),o.add(a.onDidChangeColor(u)),this._hover.setColorPicker(l),o}};Br=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(2,jt.XE)],Br);class Vr{constructor(e,t,i,n,o){this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new Bt.pY((()=>this._triggerAsyncComputation()),0),this._secondWaitScheduler=new Bt.pY((()=>this._triggerSyncComputation()),0),this._loadingMessageScheduler=new Bt.pY((()=>this._showLoadingMessage()),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=i,this._progressCallback=n}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=(0,Bt.PG)((e=>this._computer.computeAsync(e))),this._asyncComputationPromise.then((e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)}),(e=>this._onError(e)))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):(0,a.dL)(e)}_onProgress(e){this._progressCallback(e)}start(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}class Wr{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class Hr{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}var zr=Object.hasOwnProperty,Kr=Object.setPrototypeOf,Ur=Object.isFrozen,$r=Object.getPrototypeOf,jr=Object.getOwnPropertyDescriptor,qr=Object.freeze,Gr=Object.seal,Zr=Object.create,Qr="undefined"!=typeof Reflect&&Reflect,Yr=Qr.apply,Xr=Qr.construct;Yr||(Yr=function(e,t,i){return e.apply(t,i)}),qr||(qr=function(e){return e}),Gr||(Gr=function(e){return e}),Xr||(Xr=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t1?i-1:0),o=1;o/gm),ka=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),Da=Gr(/^aria-[\-\w]+$/),Ea=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ia=Gr(/^(?:\w+script|data):/i),Ta=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Aa(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Ra(),i=function(t){return e(t)};if(i.version="2.3.1",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,o=t.document,s=t.DocumentFragment,r=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,d=t.NamedNodeMap,c=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,u=t.Text,g=t.Comment,p=t.DOMParser,m=t.trustedTypes,f=l.prototype,_=ga(f,"cloneNode"),v=ga(f,"nextSibling"),b=ga(f,"childNodes"),C=ga(f,"parentNode");if("function"==typeof r){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var y=Oa(m,n),S=y&&te?y.createHTML(""):"",L=o,N=L.implementation,x=L.createNodeIterator,k=L.createDocumentFragment,D=L.getElementsByTagName,E=n.importNode,I={};try{I=ua(o).documentMode?o.documentMode:{}}catch(e){}var T={};i.isSupported="function"==typeof C&&N&&void 0!==N.createHTMLDocument&&9!==I;var M=Na,A=xa,R=ka,O=Da,P=Ia,F=Ta,B=Ea,V=null,W=ca({},[].concat(Aa(pa),Aa(ma),Aa(fa),Aa(va),Aa(Ca))),H=null,z=ca({},[].concat(Aa(wa),Aa(ya),Aa(Sa),Aa(La))),K=null,U=null,$=!0,j=!0,q=!1,G=!1,Z=!1,Q=!1,Y=!1,X=!1,J=!1,ee=!0,te=!1,ie=!0,ne=!0,oe=!1,se={},re=null,ae=ca({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),le=null,he=ca({},["audio","video","img","source","image","track"]),de=null,ce=ca({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",me=pe,fe=!1,_e=null,ve=o.createElement("form"),be=function(e){_e&&_e===e||(e&&"object"===(void 0===e?"undefined":Ma(e))||(e={}),e=ua(e),V="ALLOWED_TAGS"in e?ca({},e.ALLOWED_TAGS):W,H="ALLOWED_ATTR"in e?ca({},e.ALLOWED_ATTR):z,de="ADD_URI_SAFE_ATTR"in e?ca(ua(ce),e.ADD_URI_SAFE_ATTR):ce,le="ADD_DATA_URI_TAGS"in e?ca(ua(he),e.ADD_DATA_URI_TAGS):he,re="FORBID_CONTENTS"in e?ca({},e.FORBID_CONTENTS):ae,K="FORBID_TAGS"in e?ca({},e.FORBID_TAGS):{},U="FORBID_ATTR"in e?ca({},e.FORBID_ATTR):{},se="USE_PROFILES"in e&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,j=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=e.SAFE_FOR_TEMPLATES||!1,Z=e.WHOLE_DOCUMENT||!1,X=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,me=e.NAMESPACE||pe,G&&(j=!1),J&&(X=!0),se&&(V=ca({},[].concat(Aa(Ca))),H=[],!0===se.html&&(ca(V,pa),ca(H,wa)),!0===se.svg&&(ca(V,ma),ca(H,ya),ca(H,La)),!0===se.svgFilters&&(ca(V,fa),ca(H,ya),ca(H,La)),!0===se.mathMl&&(ca(V,va),ca(H,Sa),ca(H,La))),e.ADD_TAGS&&(V===W&&(V=ua(V)),ca(V,e.ADD_TAGS)),e.ADD_ATTR&&(H===z&&(H=ua(H)),ca(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ca(de,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(re===ae&&(re=ua(re)),ca(re,e.FORBID_CONTENTS)),ne&&(V["#text"]=!0),Z&&ca(V,["html","head","body"]),V.table&&(ca(V,["tbody"]),delete K.tbody),qr&&qr(e),_e=e)},Ce=ca({},["mi","mo","mn","ms","mtext"]),we=ca({},["foreignobject","desc","title","annotation-xml"]),ye=ca({},ma);ca(ye,fa),ca(ye,_a);var Se=ca({},va);ca(Se,ba);var Le=function(e){var t=C(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var i=na(e.tagName),n=na(t.tagName);if(e.namespaceURI===ge)return t.namespaceURI===pe?"svg"===i:t.namespaceURI===ue?"svg"===i&&("annotation-xml"===n||Ce[n]):Boolean(ye[i]);if(e.namespaceURI===ue)return t.namespaceURI===pe?"math"===i:t.namespaceURI===ge?"math"===i&&we[n]:Boolean(Se[i]);if(e.namespaceURI===pe){if(t.namespaceURI===ge&&!we[n])return!1;if(t.namespaceURI===ue&&!Ce[n])return!1;var o=ca({},["title","style","font","a","script"]);return!Se[i]&&(o[i]||!ye[i])}return!1},Ne=function(e){ia(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=S}catch(t){e.remove()}}},xe=function(e,t){try{ia(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ia(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(X||J)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ke=function(e){var t=void 0,i=void 0;if(Y)e=""+e;else{var n=oa(e,/^[\r\n\t ]+/);i=n&&n[0]}var s=y?y.createHTML(e):e;if(me===pe)try{t=(new p).parseFromString(s,"text/html")}catch(e){}if(!t||!t.documentElement){t=N.createDocument(me,"template",null);try{t.documentElement.innerHTML=fe?"":s}catch(e){}}var r=t.body||t.documentElement;return e&&i&&r.insertBefore(o.createTextNode(i),r.childNodes[0]||null),me===pe?D.call(t,Z?"html":"body")[0]:Z?t.documentElement:r},De=function(e){return x.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Ee=function(e){return!(e instanceof u||e instanceof g||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof c&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Ie=function(e){return"object"===(void 0===a?"undefined":Ma(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Ma(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Te=function(e,t,n){T[e]&&ea(T[e],(function(e){e.call(i,t,n,_e)}))},Me=function(e){var t=void 0;if(Te("beforeSanitizeElements",e,null),Ee(e))return Ne(e),!0;if(oa(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var n=na(e.nodeName);if(Te("uponSanitizeElement",e,{tagName:n,allowedTags:V}),!Ie(e.firstElementChild)&&(!Ie(e.content)||!Ie(e.content.firstElementChild))&&la(/<[/\w]/g,e.innerHTML)&&la(/<[/\w]/g,e.textContent))return Ne(e),!0;if("select"===n&&la(/