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.
9 lines
38 KiB
9 lines
38 KiB
2 years ago
|
!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.d5294fd5.js","./useVisualData-legacy.7d5d4b8f.js","./preload-helper-legacy.3a841cdc.js","./index-legacy.190ca0d6.js","./editorWorker-legacy.babf63cf.js","./plugin-vue_export-helper-legacy.7bb61c33.js","./useAnimate-legacy.13c846f4.js"],(function(t){"use strict";var n;return{setters:[function(e){n=e.m},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){t({fromPosition:dt,fromRange:gt,setupMode:function(e){const t=[],n=[],r=new re(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);function o(){const{languageId:t,modeConfiguration:r}=e;var o;$t(n),r.documentFormattingEdits&&n.push(s.languages.registerDocumentFormattingEditProvider(t,new Ct(i))),r.documentRangeFormattingEdits&&n.push(s.languages.registerDocumentRangeFormattingEditProvider(t,new yt(i))),r.completionItems&&n.push(s.languages.registerCompletionItemProvider(t,new ut(i,[" ",":",'"']))),r.hovers&&n.push(s.languages.registerHoverProvider(t,new pt(i))),r.documentSymbols&&n.push(s.languages.registerDocumentSymbolProvider(t,new kt(i))),r.tokens&&n.push(s.languages.setTokensProvider(t,(o=!0,{getInitialState:()=>new qt(null,null,!1,null),tokenize:(e,t)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=jt(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),g="";const l=a.scan();if(17===l)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,l){case 1:c=zt.push(c,0),g=Pt,s=!1;break;case 2:c=zt.pop(c),g=Pt,s=!1;break;case 3:c=zt.push(c,1),g=Mt,s=!1;break;case 4:c=zt.pop(c),g=Mt,s=!1;break;case 6:g=Lt,s=!0;break;case 5:g=Ft,s=!1;break;case 8:case 9:g=Ot,s=!1;break;case 7:g=Wt,s=!1;break;case 10:const e=1===(c?c.type:0);g=s||e?Nt:Vt,s=!1;break;case 11:g=Ut,s=!1}if(e)switch(l){case 12:g=Kt;break;case 13:g=Ht}u.endState=new qt(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:g})}return u}(o,e,t)}))),r.colors&&n.push(s.languages.registerColorProvider(t,new At(i))),r.foldingRanges&&n.push(s.languages.registerFoldingRangeProvider(t,new xt(i))),r.diagnostics&&n.push(new Xt(t,i,e)),r.selectionRanges&&n.push(s.languages.registerSelectionRangeProvider(t,new St(i)))}o(),t.push(s.languages.setLanguageConfiguration(e.languageId,Qt));let a=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==a&&(a=e.modeConfiguration,o())})),t.push(Bt(n)),Bt(t)},toRange:lt,toTextEdit:ft});
|
||
|
/*!-----------------------------------------------------------------------------
|
||
|
* 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,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={};((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of o(t))a.call(e,c)||!n&&"default"===c||r(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable})})(s,n);var c,u,d,g,l,h,f,p,m,v,b,_,k,w,C,y,E,A,x,I,S,T,R,D,j,P,M,L,F,O,W,N,U,V,H,K,z,q,X,B,$,Q,G,J,Y,Z,ee,te,ne,re=t("WorkerManager",class{constructor(t){e(this,"_defaults",void 0),e(this,"_idleCheckInterval",void 0),e(this,"_lastUsedTime",void 0),e(this,"_configChangeListener",void 0),e(this,"_worker",void 0),e(this,"_client",void 0),this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=s.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),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=c||(c={})).MIN_VALUE=-2147483648,u.MAX_VALUE=2147483647,(g=d||(d={})).MIN_VALUE=0,g.MAX_VALUE=2147483647,(h=l||(l={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=d.MAX_VALUE),t===Number.MAX_VALUE&&(t=d.MAX_VALUE),{line:e,character:t}},h.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.uinteger(t.line)&&rt.uinteger(t.character)},(p=f||(f={})).create=function(e,t,n,r){if(rt.uinteger(e)&&rt.uinteger(t)&&rt.uinteger(n)&&rt.uinteger(r))return{start:l.create(e,t),end:l.create(n,r)};if(l.is(e)&&l.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},p.is=function(e){var t=e;return rt.objectLiteral(t)&&l.is(t.start)&&l.is(t.end)},(v=m||(m={})).create=function(e,t){return{uri:e,range:t}},v.is=function(e){var t=e;return rt.defined(t)&&f.is(t.range)&&(rt.string(t.uri)||rt.undefined(t.uri))},(_=b||(b={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},_.is=function(e){var t=e;return rt.defined(t)&&f.is(t.targetRange)&&rt.string(t.targetUri)&&(f.is(t.targetSelectionRange)||rt.undefined(t.targetSelectionRange))&&(f.is(t.originSelectionRange)||rt.undefined(t.originSelectionRange))},(w=k||(k={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},w.is=function(e){var t=e;return rt.numberRange(t.red,0,1)&&rt.numberRange(t.green,0,1)&&rt.numberRange(t.blue,0,1)&&rt.numberRange(t.alpha,0,1)},(y=C||(C={})).create=function(e,t){return{range:e,color:t}},y.is=function(e){var t=e;return f.is(t.range)&&k.is(t.color)},(A=E||(E={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},A.is=function(e){var t=e;return rt.string(t.label)&&(rt.undefined(t.textEdit)||V.is(t))&&(rt.undefined(t.additionalTextEdits)||rt.typedArray(t.additionalTextEdits,V.is))},(I=x||(x={})).Comment="comment",I.Imports="imports",I.Region="region",(T=S||(S={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return rt.defined(n)&&(o.startCharacter=n),rt.defined(r)&&(o.endCharacter=r),rt.defined(i)&&(o.kind=i),o},T.is=function(e){var t=e;return rt.uinteger(t.startLine)&&rt.uinteger(t.startLine)&&(rt.undefined(t.startCharacter)||rt.uinteger(t.startCharacter))&&(rt.undefined(t.endCharacter)||rt.uinteger(t.endCharacter))&&(rt.undefined(t.kind)||rt.string(t.kind))},(D=R||(R={})).create=function(e,t){return{loc
|