|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["vendors-node_modules_monaco-editor_esm_vs_language_json_jsonMode_js"],{"./node_modules/monaco-editor/esm/vs/language/json/jsonMode.js":function(Kt,ce,K){K.r(ce),K.d(ce,{CompletionAdapter:function(){return Be},DefinitionAdapter:function(){return yt},DiagnosticsAdapter:function(){return ze},DocumentColorAdapter:function(){return et},DocumentFormattingEditProvider:function(){return Qe},DocumentHighlightAdapter:function(){return St},DocumentLinkAdapter:function(){return Mt},DocumentRangeFormattingEditProvider:function(){return Ze},DocumentSymbolAdapter:function(){return Ye},FoldingRangeAdapter:function(){return tt},HoverAdapter:function(){return Xe},ReferenceAdapter:function(){return Tt},RenameAdapter:function(){return Dt},SelectionRangeAdapter:function(){return rt},WorkerManager:function(){return fe},fromPosition:function(){return P},fromRange:function(){return oe},getWorker:function(){return qt},setupMode:function(){return $t},toRange:function(){return w},toTextEdit:function(){return N}});var dt=K("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var ft=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,ht=Object.prototype.hasOwnProperty,de=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of gt(n))!ht.call(e,t)&&t!==i&&ft(e,t,{get:()=>n[t],enumerable:!(r=lt(n,t))||r.enumerable});return e},vt=(e,n,i)=>(de(e,n,"default"),i&&de(i,n,"default")),f={};vt(f,dt);var pt=2*60*1e3,fe=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),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>pt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=f.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 n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},le;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(le||(le={}));var q;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(q||(q={}));var y;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=q.MAX_VALUE),t===Number.MAX_VALUE&&(t=q.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(y||(y={}));var _;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:y.create(r,t),end:y.create(a,o)};if(y.is(r)&&y.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&y.is(t.start)&&y.is(t.end)}e.is=i})(_||(_={}));var ee;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&_.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(ee||(ee={}));var ge;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&_.is(t.targetRange)&&s.string(t.targetUri)&&(_.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(ge||(ge={}));var te;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(te||(te={}));var he;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return _.is(t.range)&&te.is(t.color)}e.is=i})(he||(he={}));var ve;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||D.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,D.is))}e.is=i})(ve||(ve={}));var F;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(F||(F={}));var pe;(function(e){function n(r,t,a,o,u){var l={startLine:r,endLine:t};return s.defined(a)&&(l.startCharacter=a),s.defined(o)&&(l.endCharacter=o),s.defined(u)&&(l.kind=u),l}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(pe||(pe={}));var re;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&ee.is(t.location)&&s.string(t.message)}e.is=i})(re||(re={}));var M;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(M||(M={}));var me;(function(e){e.Unnecessary=1,e.Deprecated=2})(me||(me={}));var _e;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(_e||(_e={}));var Y;(function(e){function n(r,t,a,o,u,l){var c={range:r,message:t};return s.defined(a)&&(c.severity=a),s.defined(o)&&(c.code=o),s.defined(u)&&(c.source=u),s.defined(l)&&(c.relatedInformation=l),c}e.create=n;function i(r){var t,a=r;return s.defined(a)&&_.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,re.is))}e.is=i})(Y||(Y={}));var x;(function(e){function n(r,t){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var u={title:r,command:t};return s.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(x||(x={}));var D;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&_.is(o.range)}e.is=t})(D||(D={}));var L;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(L||(L={}));var k;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(k||(k={}));var R;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return D.is(o)&&(L.is(o.annotationId)||k.is(o.annotationId))}e.is=t})(R||(R={}));var $;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})($||($={}));var W;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||k.is(t.annotationId))}e.is=i})(W||(W={}));var U;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||k.is(t.annotationId))}e.is=i})(U||(U={}));var V;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||k.is(t.annotationId))}e.is=i})(V||(V={}));var ne;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?W.is(t)||U.is(t)||V.is(t):$.is(t)}))}e.is=n})(ne||(ne={}));var G=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=D.insert(n,i):k.is(r)?(a=r,t=R.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=R.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=D.replace(n,i):k.is(r)?(a=r,t=R.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=R.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=D.del(n):k.is(i)?(t=i,r=R.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=R.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ke=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,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(n,i){var r;if(k.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),er=function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ke(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if($.is(r)){var t=new G(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new G(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new G(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new G(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ke,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;L.is(i)||k.is(i)?t=i:r=i;var a,o;if(t===void 0?a=W.create(n,r):(o=k.is(t)?t:this._changeAnnotations.manage(t),a=W.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;L.is(r)||k.is(r)?a=r:t=r;var o,u;if(a===void 0?o=U.create(n,i,t):(u=k.is(a)?a:this._changeAnnotations.manage(a),o=U.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;L.is(i)||k.is(i)?t=i:r=i;var a,o;if(t===void 0?a=V.create(n,r):(o=k.is(t)?t:this._changeAnnotations.manage(t),a=V.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e}(),we;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(we||(we={}));var Ce;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(Ce||(Ce={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(Q||(Q={}));var be;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(be||(be={}));var H;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(H||(H={})),function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n}(H||(H={}));var ie;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&H.is(r.kind)&&s.string(r.value)}e.is=n})(ie||(ie={}));var p;(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})(p||(p={}));var ae;(function(e){e.PlainText=1,e.Snippet=2})(ae||(ae={}));var Ee;(function(e){e.Deprecated=1})(Ee||(Ee={}));var Ae;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)}e.is=i})(Ae||(Ae={}));var Se;(function(e){e.asIs=1,e.adjustIndentation=2})(Se||(Se={}));var Ie;(function(e){function n(i){return{label:i}}e.create=n})(Ie||(Ie={}));var ye;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ye||(ye={}));var Z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(Z||(Z={}));var Te;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(ie.is(r.contents)||Z.is(r.contents)||s.typedArray(r.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Te||(Te={}));var De;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(De||(De={}));var Re;(function(e){function n(i,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var o={label:i};return s.defined(r)&&(o.documentation=r),s.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(Re||(Re={}));var z;(function(e){e.Text=1,e.Read=2,e.Write=3})(z||(z={}));var Pe;(function(e){function n(i,r){var t={range:i};return s.number(r)&&(t.kind=r),t}e.create=n})(Pe||(Pe={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var Me;(function(e){e.Deprecated=1})(Me||(Me={}));var Le;(function(e){function n(i,r,t,a,o){var u={name:i,kind:r,location:{uri:a,range:t}};return o&&(u.containerName=o),u}e.create=n})(Le||(Le={}));var Ne;(function(e){function n(r,t,a,o,u,l){var c={name:r,detail:t,kind:a,range:o,selectionRange:u};return l!==void 0&&(c.children=l),c}e.create=n;function i(r){var t=r;return t&&s.string(t.name)&&s.number(t.kind)&&_.is(t.range)&&_.is(t.selectionRange)&&(t.detail===void 0||s.string(t.detail))&&(t.deprecated===void 0||s.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Ne||(Ne={}));var je;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(je||(je={}));var Oe;(function(e){function n(r,t){var a={diagnostics:r};return t!=null&&(a.only=t),a}e.create=n;function i(r){var t=r;return s.defined(t)&&s.typedArray(t.diagnostics,Y.is)&&(t.only===void 0||s.typedArray(t.only,s.string))}e.is=i})(Oe||(Oe={}));var Fe;(function(e){function n(r,t,a){var o={title:r},u=!0;return typeof t=="string"?(u=!1,o.kind=t):x.is(t)?o.command=t:o.edit=t,u&&a!==void 0&&(o.kind=a),o}e.create=n;function i(r){var t=r;return t&&s.string(t.title)&&(t.diagnostics===void 0||s.typedArray(t.diagnostics,Y.is))&&(t.kind===void 0||s.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||x.is(t.command))&&(t.isPreferred===void 0||s.boolean(t.isPreferred))&&(t.edit===void 0||ne.is(t.edit))}e.is=i})(Fe||(Fe={}));var xe;(function(e){function n(r,t){var a={range:r};return s.defined(t)&&(a.data=t),a}e.create=n;function i(r){var t=r;return s.defined(t)&&_.is(t.range)&&(s.undefined(t.command)||x.is(t.command))}e.is=i})(xe||(xe={}));var We;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.uinteger(t.tabSize)&&s.boolean(t.insertSpaces)}e.is=i})(We||(We={}));var Ue;(function(e){function n(r,t,a){return{range:r,target:t,data:a}}e.create=n;function i(r){var t=r;return s.defined(t)&&_.is(t.range)&&(s.undefined(t.target)||s.string(t.target))}e.is=i})(Ue||(Ue={}));var Ve;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){var t=r;return t!==void 0&&_.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Ve||(Ve={}));var He;(function(e){function n(a,o,u,l){return new mt(a,o,u,l)}e.create=n;function i(a){var o=a;return!!(s.defined(o)&&s.string(o.uri)&&(s.undefined(o.languageId)||s.string(o.languageId))&&s.uinteger(o.lineCount)&&s.func(o.getText)&&s.func(o.positionAt)&&s.func(o.offsetAt))}e.is=i;function r(a,o){for(var u=a.getText(),l=t(o,function(T,O){var J=T.range.start.line-O.range.start.line;return J===0?T.range.start.character-O.range.start.character:J}),c=u.length,v=l.length-1;v>=0;v--){var g=l[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=c)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");c=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,l=a.slice(0,u),c=a.slice(u);t(l,o),t(c,o);for(var v=0,g=0,b=0;v<l.length&&g<c.length;){var h=o(l[v],c[g]);h<=0?a[b++]=l[v++]:a[b++]=c[g++]}for(;v<l.length;)a[b++]=l[v++];for(;g<c.length;)a[b++]=c[g++];return a}})(He||(He={}));var mt=function(){function e(n,i,r,t){this._uri=n,this._languageId=i,this._version=r,this._content=t,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(n){if(n){var i=this.offsetAt(n.start),r=this.offsetAt(n.end);return this._content.substring(i,r)}return this._content},e.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,r=!0,t=0;t<i.length;t++){r&&(n.push(t),r=!1);var a=i.charAt(t);r=a==="\r"||a===`
|
|
`&&t++}r&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return y.create(0,n);for(;r<t;){var a=Math.floor((r+t)/2);i[a]>n?t=a:r=a+1}var o=r-1;return y.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(r+n.character,t),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),s;(function(e){var n=Object.prototype.toString;function i(h){return typeof h<"u"}e.defined=i;function r(h){return typeof h>"u"}e.undefined=r;function t(h){return h===!0||h===!1}e.boolean=t;function a(h){return n.call(h)==="[object String]"}e.string=a;function o(h){return n.call(h)==="[object Number]"}e.number=o;function u(h,T,O){return n.call(h)==="[object Number]"&&T<=h&&h<=O}e.numberRange=u;function l(h){return n.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=l;function c(h){return n.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=c;function v(h){return n.call(h)==="[object Function]"}e.func=v;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,T){return Array.isArray(h)&&h.every(T)}e.typedArray=b})(s||(s={}));var ze=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{f.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(f.editor.onDidCreateModel(r)),this._disposables.push(f.editor.onWillDisposeModel(t)),this._disposables.push(f.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{f.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{f.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),f.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>kt(e,a));let t=f.editor.getModel(e);t&&t.getLanguageId()===n&&f.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function _t(e){switch(e){case M.Error:return f.MarkerSeverity.Error;case M.Warning:return f.MarkerSeverity.Warning;case M.Information:return f.MarkerSeverity.Info;case M.Hint:return f.MarkerSeverity.Hint;default:return f.MarkerSeverity.Info}}function kt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:_t(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Be=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),P(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new f.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),l=a.items.map(c=>{const v={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:bt(c.command),range:u,kind:Ct(c.kind)};return c.textEdit&&(wt(c.textEdit)?v.range={insert:w(c.textEdit.insert),replace:w(c.textEdit.replace)}:v.range=w(c.textEdit.range),v.insertText=c.textEdit.newText),c.additionalTextEdits&&(v.additionalTextEdits=c.additionalTextEdits.map(N)),c.insertTextFormat===ae.Snippet&&(v.insertTextRules=f.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:l}})}};function P(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function oe(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function w(e){if(e)return new f.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function wt(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ct(e){const n=f.languages.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function N(e){if(e)return{range:w(e.range),text:e.newText}}function bt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Xe=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),P(n))).then(t=>{if(t)return{range:w(t.range),contents:At(t.contents)}})}};function Et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Je(e){return typeof e=="string"?{value:e}:Et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
|
|
`+e.value+"\n```\n"}}function At(e){if(e)return Array.isArray(e)?e.map(Je):[Je(e)]}var St=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),P(n))).then(t=>{if(t)return t.map(a=>({range:w(a.range),kind:It(a.kind)}))})}};function It(e){switch(e){case z.Read:return f.languages.DocumentHighlightKind.Read;case z.Write:return f.languages.DocumentHighlightKind.Write;case z.Text:return f.languages.DocumentHighlightKind.Text}return f.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),P(n))).then(t=>{if(t)return[qe(t)]})}};function qe(e){return{uri:f.Uri.parse(e.uri),range:w(e.range)}}var Tt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),P(n))).then(a=>{if(a)return a.map(qe)})}},Dt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),P(n),i)).then(a=>Rt(a))}};function Rt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=f.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:w(t.range),text:t.newText}})}return{edits:n}}var Ye=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Pt(t)?$e(t):{name:t.name,detail:"",containerName:t.containerName,kind:Ge(t.kind),range:w(t.location.range),selectionRange:w(t.location.range),tags:[]})})}};function Pt(e){return"children"in e}function $e(e){return{name:e.name,detail:e.detail??"",kind:Ge(e.kind),range:w(e.range),selectionRange:w(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>$e(n))}}function Ge(e){let n=f.languages.SymbolKind;switch(e){case m.File:return n.File;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}var Mt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:w(t.range),url:t.target}))}})}},Qe=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Ke(n)).then(a=>{if(!(!a||a.length===0))return a.map(N)}))}},Ze=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),oe(n),Ke(i)).then(o=>{if(!(!o||o.length===0))return o.map(N)}))}};function Ke(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:w(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,oe(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=N(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(N)),o})})}},tt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=Lt(a.kind)),o})})}};function Lt(e){switch(e){case F.Comment:return f.languages.FoldingRangeKind.Comment;case F.Imports:return f.languages.FoldingRangeKind.Imports;case F.Region:return f.languages.FoldingRangeKind.Region}}var rt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(P))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:w(a.range)}),a=a.parent;return o})})}};function Nt(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,o=16,u=0,l=0,c=0,v=0,g=0;function b(d,E){for(var I=0,A=0;I<d||!E;){var C=e.charCodeAt(r);if(C>=48&&C<=57)A=A*16+C-48;else if(C>=65&&C<=70)A=A*16+C-65+10;else if(C>=97&&C<=102)A=A*16+C-97+10;else break;r++,I++}return I<d&&(A=-1),A}function h(d){r=d,t="",a=0,o=16,g=0}function T(){var d=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&j(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&j(e.charCodeAt(r)))for(r++;r<e.length&&j(e.charCodeAt(r));)r++;else return g=3,e.substring(d,r);var E=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&j(e.charCodeAt(r))){for(r++;r<e.length&&j(e.charCodeAt(r));)r++;E=r}else g=3;return e.substring(d,E)}function O(){for(var d="",E=r;;){if(r>=i){d+=e.substring(E,r),g=2;break}var I=e.charCodeAt(r);if(I===34){d+=e.substring(E,r),r++;break}if(I===92){if(d+=e.substring(E,r),r++,r>=i){g=2;break}var A=e.charCodeAt(r++);switch(A){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
`),u++,c=r,o=14;switch(d){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,t=O(),o=10;case 47:var E=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<i&&!B(e.charCodeAt(r));)r++;return t=e.substring(E,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;for(var I=i-1,A=!1;r<I;){var C=e.charCodeAt(r);if(C===42&&e.charCodeAt(r+1)===47){r+=2,A=!0;break}r++,B(C)&&(C===13&&e.charCodeAt(r)===10&&r++,u++,c=r)}return A||(r++,g=1),t=e.substring(E,r),o=13}return t+=String.fromCharCode(d),r++,o=16;case 45:if(t+=String.fromCharCode(d),r++,r===i||!j(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t+=T(),o=11;default:for(;r<i&&Qt(d);)r++,d=e.charCodeAt(r);if(a!==r){switch(t=e.substring(a,r),t){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return t+=String.fromCharCode(d),r++,o=16}}function Qt(d){if(se(d)||B(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Zt(){var d;do d=J();while(d>=12&&d<=15);return d}return{setPosition:h,getPosition:function(){return r},scan:n?Zt:J,getToken:function(){return o},getTokenValue:function(){return t},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return a-v},getTokenError:function(){return g}}}function se(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function B(e){return e===10||e===13||e===8232||e===8233}function j(e){return e>=48&&e<=57}var nt;(function(e){e.DEFAULT={allowTrailingComma:!1}})(nt||(nt={}));var jt=Nt;function Ot(e){return{getInitialState:()=>new ot(null,null,!1,null),tokenize:(n,i)=>Jt(e,n,i)}}var it="delimiter.bracket.json",at="delimiter.array.json",Ft="delimiter.colon.json",xt="delimiter.comma.json",Wt="keyword.json",Ut="keyword.json",Vt="string.value.json",Ht="number.json",zt="string.key.json",Bt="comment.block.json",Xt="comment.line.json",X=class ct{constructor(n,i){this.parent=n,this.type=i}static pop(n){return n?n.parent:null}static push(n,i){return new ct(n,i)}static equals(n,i){if(!n&&!i)return!0;if(!n||!i)return!1;for(;n&&i;){if(n===i)return!0;if(n.type!==i.type)return!1;n=n.parent,i=i.parent}return!0}},ot=class ue{constructor(n,i,r,t){this._state=n,this.scanError=i,this.lastWasColon=r,this.parents=t}clone(){return new ue(this._state,this.scanError,this.lastWasColon,this.parents)}equals(n){return n===this?!0:!n||!(n instanceof ue)?!1:this.scanError===n.scanError&&this.lastWasColon===n.lastWasColon&&X.equals(this.parents,n.parents)}getStateData(){return this._state}setStateData(n){this._state=n}};function Jt(e,n,i,r=0){let t=0,a=!1;switch(i.scanError){case 2:n='"'+n,t=1;break;case 1:n="/*"+n,t=2;break}const o=jt(n);let u=i.lastWasColon,l=i.parents;const c={tokens:[],endState:i.clone()};for(;;){let v=r+o.getPosition(),g="";const b=o.scan();if(b===17)break;if(v===r+o.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(o.getPosition(),3));switch(a&&(v-=t),a=t>0,b){case 1:l=X.push(l,0),g=it,u=!1;break;case 2:l=X.pop(l),g=it,u=!1;break;case 3:l=X.push(l,1),g=at,u=!1;break;case 4:l=X.pop(l),g=at,u=!1;break;case 6:g=Ft,u=!0;break;case 5:g=xt,u=!1;break;case 8:case 9:g=Wt,u=!1;break;case 7:g=Ut,u=!1;break;case 10:const T=(l?l.type:0)===1;g=u||T?Vt:zt,u=!1;break;case 11:g=Ht,u=!1;break}if(e)switch(b){case 12:g=Xt;break;case 13:g=Bt;break}c.endState=new ot(i.getStateData(),o.getTokenError(),u,l),c.tokens.push({startIndex:v,scopes:g})}return c}var S;function qt(){return new Promise((e,n)=>{if(!S)return n("JSON not registered!");e(S)})}var Yt=class extends ze{constructor(e,n,i){super(e,n,i.onDidChange),this._disposables.push(f.editor.onWillDisposeModel(r=>{this._resetSchema(r.uri)})),this._disposables.push(f.editor.onDidChangeModelLanguage(r=>{this._resetSchema(r.model.uri)}))}_resetSchema(e){this._worker().then(n=>{n.resetSchema(e.toString())})}};function $t(e){const n=[],i=[],r=new fe(e);n.push(r),S=(...o)=>r.getLanguageServiceWorker(...o);function t(){const{languageId:o,modeConfiguration:u}=e;ut(i),u.documentFormattingEdits&&i.push(f.languages.registerDocumentFormattingEditProvider(o,new Qe(S))),u.documentRangeFormattingEdits&&i.push(f.languages.registerDocumentRangeFormattingEditProvider(o,new Ze(S))),u.completionItems&&i.push(f.languages.registerCompletionItemProvider(o,new Be(S,[" ",":",'"']))),u.hovers&&i.push(f.languages.registerHoverProvider(o,new Xe(S))),u.documentSymbols&&i.push(f.languages.registerDocumentSymbolProvider(o,new Ye(S))),u.tokens&&i.push(f.languages.setTokensProvider(o,Ot(!0))),u.colors&&i.push(f.languages.registerColorProvider(o,new et(S))),u.foldingRanges&&i.push(f.languages.registerFoldingRangeProvider(o,new tt(S))),u.diagnostics&&i.push(new Yt(o,S,e)),u.selectionRanges&&i.push(f.languages.registerSelectionRangeProvider(o,new rt(S)))}t(),n.push(f.languages.setLanguageConfiguration(e.languageId,Gt));let a=e.modeConfiguration;return e.onDidChange(o=>{o.modeConfiguration!==a&&(a=o.modeConfiguration,t())}),n.push(st(i)),st(n)}function st(e){return{dispose:()=>ut(e)}}function ut(e){for(;e.length;)e.pop().dispose()}var Gt={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
|