You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
22 KiB
8 lines
22 KiB
2 years ago
|
var e=Object.defineProperty,t=(t,i,s)=>(((t,i,s)=>{i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s})(t,"symbol"!=typeof i?i+"":i,s),s);import{t as i,m as s}from"./index.98082097.js";import"./useVisualData.9b99c843.js";import"./preload-helper.fde915ab.js";import"./index.7b4f7ca9.js";import"./editorWorker.944419af.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./useAnimate.644289ba.js";
|
||
|
/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,l=(e,t,i)=>(((e,t,i)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i),c={};((e,t,i,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||!i&&"default"===l||r(e,l,{get:()=>t[l],enumerable:!(s=n(t,l))||s.enumerable})})(c,s);var d=class{constructor(e,i){t(this,"_modeId"),t(this,"_defaults"),t(this,"_configChangeListener"),t(this,"_updateExtraLibsToken"),t(this,"_extraLibsChangeListener"),t(this,"_worker"),t(this,"_client"),this._modeId=e,this._defaults=i,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){if(!this._client){this._worker=c.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}});let e=this._worker.getProxy();this._defaults.getEagerModelSync()&&(e=e.then((e=>this._worker?this._worker.withSyncedResources(c.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):e))),this._client=e}return this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}},u={};function g(e,t,i=0){if("string"==typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;e<i;e++)s+=" "}if(s+=e.messageText,i++,e.next)for(const r of e.next)s+=g(r,t,i);return s}function p(e){return e?e.map((e=>e.text)).join(""):""}u["lib.d.ts"]=!0,u["lib.dom.d.ts"]=!0,u["lib.dom.iterable.d.ts"]=!0,u["lib.es2015.collection.d.ts"]=!0,u["lib.es2015.core.d.ts"]=!0,u["lib.es2015.d.ts"]=!0,u["lib.es2015.generator.d.ts"]=!0,u["lib.es2015.iterable.d.ts"]=!0,u["lib.es2015.promise.d.ts"]=!0,u["lib.es2015.proxy.d.ts"]=!0,u["lib.es2015.reflect.d.ts"]=!0,u["lib.es2015.symbol.d.ts"]=!0,u["lib.es2015.symbol.wellknown.d.ts"]=!0,u["lib.es2016.array.include.d.ts"]=!0,u["lib.es2016.d.ts"]=!0,u["lib.es2016.full.d.ts"]=!0,u["lib.es2017.d.ts"]=!0,u["lib.es2017.full.d.ts"]=!0,u["lib.es2017.intl.d.ts"]=!0,u["lib.es2017.object.d.ts"]=!0,u["lib.es2017.sharedmemory.d.ts"]=!0,u["lib.es2017.string.d.ts"]=!0,u["lib.es2017.typedarrays.d.ts"]=!0,u["lib.es2018.asyncgenerator.d.ts"]=!0,u["lib.es2018.asynciterable.d.ts"]=!0,u["lib.es2018.d.ts"]=!0,u["lib.es2018.full.d.ts"]=!0,u["lib.es2018.intl.d.ts"]=!0,u["lib.es2018.promise.d.ts"]=!0,u["lib.es2018.regexp.d.ts"]=!0,u["lib.es2019.array.d.ts"]=!0,u["lib.es2019.d.ts"]=!0,u["lib.es2019.full.d.ts"]=!0,u["lib.es2019.object.d.ts"]=!0,u["lib.es2019.string.d.ts"]=!0,u["lib.es2019.symbol.d.ts"]=!0,u["lib.es2020.bigint.d.ts"]=!0,u["lib.es2020.d.ts"]=!0,u["lib.es2020.full.d.ts"]=!0,u["lib.es2020.intl.d.ts"]=!0,u["lib.es2020.promise.d.ts"]=!0,u["lib.es2020.sharedmemory.d.ts"]=!0,u["lib.es2020.string.d.ts"]=!0,u["lib.es2020.symbol.wellknown.d.ts"]=!0,u["lib.es2021.d.ts"]=!0,u["lib.es2021.full.d.ts"]=!0,u["lib.es2021.intl.d.ts"]=!0,u["lib.es2021.promise.d.ts"]=!0,u["lib.es2021.string.d.ts"]=!0,u["lib.es2021.weakref.d.ts"]=!0,u["lib.es5.d.ts"]=!0,u["lib.es6.d.ts"]=!0,u["lib.esnext.d.ts"]=!0,u["lib.esnext.full.d.ts"]=!0,u["lib.esnext.intl.d.ts"]=!0,u["lib.esnext.
|