study_xxqg/web/xxqg/build/static/js/5342.53abb94f.chunk.js

2 lines
40 KiB
JavaScript

"use strict";(self.webpackChunkxxqg=self.webpackChunkxxqg||[]).push([[5342],{95342:function(e,n,t){t.r(n),t.d(n,{CompletionAdapter:function(){return kn},DefinitionAdapter:function(){return Tn},DiagnosticsAdapter:function(){return pn},DocumentColorAdapter:function(){return Nn},DocumentFormattingEditProvider:function(){return Ln},DocumentHighlightAdapter:function(){return In},DocumentLinkAdapter:function(){return jn},DocumentRangeFormattingEditProvider:function(){return Fn},DocumentSymbolAdapter:function(){return Pn},FoldingRangeAdapter:function(){return Wn},HoverAdapter:function(){return En},ReferenceAdapter:function(){return Dn},RenameAdapter:function(){return Zn},SelectionRangeAdapter:function(){return Vn},WorkerManager:function(){return le},fromPosition:function(){return _n},fromRange:function(){return bn},setupMode:function(){return ut},toRange:function(){return wn},toTextEdit:function(){return Cn}});var r,i,o=t(60136),a=t(27277),s=t(15671),u=t(43144),c=t(4942),d=t(37762),f=t(94389),g=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,p=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var i,o=(0,d.Z)(h(n));try{var a=function(){var o=i.value;v.call(e,o)||o===t||g(e,o,{get:function(){return n[o]},enumerable:!(r=l(n,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},m={};p(m,r=f,"default"),i&&p(i,r,"default");var k,_,b,w,y,C,E,A,x,I,S,T,R,D,Z,P,M,j,L,F,O,N,W,U,V,H,K,z,q,X,B,$,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue,ce,de,fe,ge,le=function(){function e(n){var t=this;(0,s.Z)(this,e),(0,c.Z)(this,"_defaults",void 0),(0,c.Z)(this,"_idleCheckInterval",void 0),(0,c.Z)(this,"_lastUsedTime",void 0),(0,c.Z)(this,"_configChangeListener",void 0),(0,c.Z)(this,"_worker",void 0),(0,c.Z)(this,"_client",void 0),this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return(0,u.Z)(e,[{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())}},{key:"_getClient",value:function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=m.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}},{key:"getLanguageServiceWorker",value:function(){for(var e,n=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return this._getClient().then((function(n){e=n})).then((function(e){if(n._worker)return n._worker.withSyncedResources(r)})).then((function(n){return e}))}}]),e}();(_=k||(k={})).MIN_VALUE=-2147483648,_.MAX_VALUE=2147483647,(w=b||(b={})).MIN_VALUE=0,w.MAX_VALUE=2147483647,(C=y||(y={})).create=function(e,n){return e===Number.MAX_VALUE&&(e=b.MAX_VALUE),n===Number.MAX_VALUE&&(n=b.MAX_VALUE),{line:e,character:n}},C.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.uinteger(n.line)&&hn.uinteger(n.character)},(A=E||(E={})).create=function(e,n,t,r){if(hn.uinteger(e)&&hn.uinteger(n)&&hn.uinteger(t)&&hn.uinteger(r))return{start:y.create(e,n),end:y.create(t,r)};if(y.is(e)&&y.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+t+", "+r+"]")},A.is=function(e){var n=e;return hn.objectLiteral(n)&&y.is(n.start)&&y.is(n.end)},(I=x||(x={})).create=function(e,n){return{uri:e,range:n}},I.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.string(n.uri)||hn.undefined(n.uri))},(T=S||(S={})).create=function(e,n,t,r){return{targetUri:e,targetRange:n,targetSelectionRange:t,originSelectionRange:r}},T.is=function(e){var n=e;return hn.defined(n)&&E.is(n.targetRange)&&hn.string(n.targetUri)&&(E.is(n.targetSelectionRange)||hn.undefined(n.targetSelectionRange))&&(E.is(n.originSelectionRange)||hn.undefined(n.originSelectionRange))},(D=R||(R={})).create=function(e,n,t,r){return{red:e,green:n,blue:t,alpha:r}},D.is=function(e){var n=e;return hn.numberRange(n.red,0,1)&&hn.numberRange(n.green,0,1)&&hn.numberRange(n.blue,0,1)&&hn.numberRange(n.alpha,0,1)},(P=Z||(Z={})).create=function(e,n){return{range:e,color:n}},P.is=function(e){var n=e;return E.is(n.range)&&R.is(n.color)},(j=M||(M={})).create=function(e,n,t){return{label:e,textEdit:n,additionalTextEdits:t}},j.is=function(e){var n=e;return hn.string(n.label)&&(hn.undefined(n.textEdit)||G.is(n))&&(hn.undefined(n.additionalTextEdits)||hn.typedArray(n.additionalTextEdits,G.is))},(F=L||(L={})).Comment="comment",F.Imports="imports",F.Region="region",(N=O||(O={})).create=function(e,n,t,r,i){var o={startLine:e,endLine:n};return hn.defined(t)&&(o.startCharacter=t),hn.defined(r)&&(o.endCharacter=r),hn.defined(i)&&(o.kind=i),o},N.is=function(e){var n=e;return hn.uinteger(n.startLine)&&hn.uinteger(n.startLine)&&(hn.undefined(n.startCharacter)||hn.uinteger(n.startCharacter))&&(hn.undefined(n.endCharacter)||hn.uinteger(n.endCharacter))&&(hn.undefined(n.kind)||hn.string(n.kind))},(U=W||(W={})).create=function(e,n){return{location:e,message:n}},U.is=function(e){var n=e;return hn.defined(n)&&x.is(n.location)&&hn.string(n.message)},(H=V||(V={})).Error=1,H.Warning=2,H.Information=3,H.Hint=4,(z=K||(K={})).Unnecessary=1,z.Deprecated=2,(q||(q={})).is=function(e){var n=e;return void 0!==n&&null!==n&&hn.string(n.href)},(B=X||(X={})).create=function(e,n,t,r,i,o){var a={range:e,message:n};return hn.defined(t)&&(a.severity=t),hn.defined(r)&&(a.code=r),hn.defined(i)&&(a.source=i),hn.defined(o)&&(a.relatedInformation=o),a},B.is=function(e){var n,t=e;return hn.defined(t)&&E.is(t.range)&&hn.string(t.message)&&(hn.number(t.severity)||hn.undefined(t.severity))&&(hn.integer(t.code)||hn.string(t.code)||hn.undefined(t.code))&&(hn.undefined(t.codeDescription)||hn.string(null===(n=t.codeDescription)||void 0===n?void 0:n.href))&&(hn.string(t.source)||hn.undefined(t.source))&&(hn.undefined(t.relatedInformation)||hn.typedArray(t.relatedInformation,W.is))},(Q=$||($={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={title:e,command:n};return hn.defined(t)&&t.length>0&&(i.arguments=t),i},Q.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.title)&&hn.string(n.command)},(J=G||(G={})).replace=function(e,n){return{range:e,newText:n}},J.insert=function(e,n){return{range:{start:e,end:e},newText:n}},J.del=function(e){return{range:e,newText:""}},J.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.string(n.newText)&&E.is(n.range)},(ee=Y||(Y={})).create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},ee.is=function(e){var n=e;return void 0!==n&&hn.objectLiteral(n)&&hn.string(n.label)&&(hn.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(hn.string(n.description)||void 0===n.description)},(ne||(ne={})).is=function(e){return"string"===typeof e},(re=te||(te={})).replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},re.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},re.del=function(e,n){return{range:e,newText:"",annotationId:n}},re.is=function(e){var n=e;return G.is(n)&&(Y.is(n.annotationId)||ne.is(n.annotationId))},(oe=ie||(ie={})).create=function(e,n){return{textDocument:e,edits:n}},oe.is=function(e){var n=e;return hn.defined(n)&&ke.is(n.textDocument)&&Array.isArray(n.edits)},(se=ae||(ae={})).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},se.is=function(e){var n=e;return n&&"create"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ce=ue||(ue={})).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},ce.is=function(e){var n=e;return n&&"rename"===n.kind&&hn.string(n.oldUri)&&hn.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(fe=de||(de={})).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},fe.is=function(e){var n=e;return n&&"delete"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||hn.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||hn.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ge||(ge={})).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 hn.string(e.kind)?ae.is(e)||ue.is(e)||de.is(e):ie.is(e)})))};var he,ve,pe,me,ke,_e,be,we,ye,Ce,Ee,Ae,xe,Ie,Se,Te,Re,De,Ze,Pe,Me,je,Le,Fe,Oe,Ne,We,Ue,Ve,He,Ke,ze,qe,Xe,Be,$e,Qe,Ge,Je,Ye,en,nn,tn,rn,on,an,sn,un,cn,dn,fn,gn=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=G.insert(e,n):ne.is(t)?(i=t,r=te.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.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=G.replace(e,n):ne.is(t)?(i=t,r=te.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.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=G.del(e):ne.is(n)?(r=n,t=te.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=te.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}(),ln=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(ne.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 ln(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(ie.is(e)){var t=new gn(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new gn(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(ke.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 gn(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 gn(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ln,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)||ne.is(n)?r=n:t=n,void 0===r?i=ae.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=ae.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)||ne.is(t)?i=t:r=t,void 0===i?o=ue.create(e,n,r):(a=ne.is(i)?i:this._changeAnnotations.manage(i),o=ue.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)||ne.is(n)?r=n:t=n,void 0===r?i=de.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=de.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ve=he||(he={})).create=function(e){return{uri:e}},ve.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)},(me=pe||(pe={})).create=function(e,n){return{uri:e,version:n}},me.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.integer(n.version)},(_e=ke||(ke={})).create=function(e,n){return{uri:e,version:n}},_e.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&(null===n.version||hn.integer(n.version))},(we=be||(be={})).create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},we.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.string(n.languageId)&&hn.integer(n.version)&&hn.string(n.text)},(Ce=ye||(ye={})).PlainText="plaintext",Ce.Markdown="markdown",function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(ye||(ye={})),(Ee||(Ee={})).is=function(e){var n=e;return hn.objectLiteral(e)&&ye.is(n.kind)&&hn.string(n.value)},(xe=Ae||(Ae={})).Text=1,xe.Method=2,xe.Function=3,xe.Constructor=4,xe.Field=5,xe.Variable=6,xe.Class=7,xe.Interface=8,xe.Module=9,xe.Property=10,xe.Unit=11,xe.Value=12,xe.Enum=13,xe.Keyword=14,xe.Snippet=15,xe.Color=16,xe.File=17,xe.Reference=18,xe.Folder=19,xe.EnumMember=20,xe.Constant=21,xe.Struct=22,xe.Event=23,xe.Operator=24,xe.TypeParameter=25,(Se=Ie||(Ie={})).PlainText=1,Se.Snippet=2,(Te||(Te={})).Deprecated=1,(De=Re||(Re={})).create=function(e,n,t){return{newText:e,insert:n,replace:t}},De.is=function(e){var n=e;return n&&hn.string(n.newText)&&E.is(n.insert)&&E.is(n.replace)},(Pe=Ze||(Ze={})).asIs=1,Pe.adjustIndentation=2,(Me||(Me={})).create=function(e){return{label:e}},(je||(je={})).create=function(e,n){return{items:e||[],isIncomplete:!!n}},(Fe=Le||(Le={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){var n=e;return hn.string(n)||hn.objectLiteral(n)&&hn.string(n.language)&&hn.string(n.value)},(Oe||(Oe={})).is=function(e){var n=e;return!!n&&hn.objectLiteral(n)&&(Ee.is(n.contents)||Le.is(n.contents)||hn.typedArray(n.contents,Le.is))&&(void 0===e.range||E.is(e.range))},(Ne||(Ne={})).create=function(e,n){return n?{label:e,documentation:n}:{label:e}},(We||(We={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={label:e};return hn.defined(n)&&(i.documentation=n),hn.defined(t)?i.parameters=t:i.parameters=[],i},(Ve=Ue||(Ue={})).Text=1,Ve.Read=2,Ve.Write=3,(He||(He={})).create=function(e,n){var t={range:e};return hn.number(n)&&(t.kind=n),t},(ze=Ke||(Ke={})).File=1,ze.Module=2,ze.Namespace=3,ze.Package=4,ze.Class=5,ze.Method=6,ze.Property=7,ze.Field=8,ze.Constructor=9,ze.Enum=10,ze.Interface=11,ze.Function=12,ze.Variable=13,ze.Constant=14,ze.String=15,ze.Number=16,ze.Boolean=17,ze.Array=18,ze.Object=19,ze.Key=20,ze.Null=21,ze.EnumMember=22,ze.Struct=23,ze.Event=24,ze.Operator=25,ze.TypeParameter=26,(qe||(qe={})).Deprecated=1,(Xe||(Xe={})).create=function(e,n,t,r,i){var o={name:e,kind:n,location:{uri:r,range:t}};return i&&(o.containerName=i),o},($e=Be||(Be={})).create=function(e,n,t,r,i,o){var a={name:e,detail:n,kind:t,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){var n=e;return n&&hn.string(n.name)&&hn.number(n.kind)&&E.is(n.range)&&E.is(n.selectionRange)&&(void 0===n.detail||hn.string(n.detail))&&(void 0===n.deprecated||hn.boolean(n.deprecated))&&(void 0===n.children||Array.isArray(n.children))&&(void 0===n.tags||Array.isArray(n.tags))},(Ge=Qe||(Qe={})).Empty="",Ge.QuickFix="quickfix",Ge.Refactor="refactor",Ge.RefactorExtract="refactor.extract",Ge.RefactorInline="refactor.inline",Ge.RefactorRewrite="refactor.rewrite",Ge.Source="source",Ge.SourceOrganizeImports="source.organizeImports",Ge.SourceFixAll="source.fixAll",(Ye=Je||(Je={})).create=function(e,n){var t={diagnostics:e};return void 0!==n&&null!==n&&(t.only=n),t},Ye.is=function(e){var n=e;return hn.defined(n)&&hn.typedArray(n.diagnostics,X.is)&&(void 0===n.only||hn.typedArray(n.only,hn.string))},(nn=en||(en={})).create=function(e,n,t){var r={title:e},i=!0;return"string"===typeof n?(i=!1,r.kind=n):$.is(n)?r.command=n:r.edit=n,i&&void 0!==t&&(r.kind=t),r},nn.is=function(e){var n=e;return n&&hn.string(n.title)&&(void 0===n.diagnostics||hn.typedArray(n.diagnostics,X.is))&&(void 0===n.kind||hn.string(n.kind))&&(void 0!==n.edit||void 0!==n.command)&&(void 0===n.command||$.is(n.command))&&(void 0===n.isPreferred||hn.boolean(n.isPreferred))&&(void 0===n.edit||ge.is(n.edit))},(rn=tn||(tn={})).create=function(e,n){var t={range:e};return hn.defined(n)&&(t.data=n),t},rn.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.undefined(n.command)||$.is(n.command))},(an=on||(on={})).create=function(e,n){return{tabSize:e,insertSpaces:n}},an.is=function(e){var n=e;return hn.defined(n)&&hn.uinteger(n.tabSize)&&hn.boolean(n.insertSpaces)},(un=sn||(sn={})).create=function(e,n,t){return{range:e,target:n,data:t}},un.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.undefined(n.target)||hn.string(n.target))},(dn=cn||(cn={})).create=function(e,n){return{range:e,parent:n}},dn.is=function(e){var n=e;return void 0!==n&&E.is(n.range)&&(void 0===n.parent||dn.is(n.parent))},function(e){function n(e,t){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);n(i,t),n(o,t);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=t(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,n,t,r){return new vn(e,n,t,r)},e.is=function(e){var n=e;return!!(hn.defined(n)&&hn.string(n.uri)&&(hn.undefined(n.languageId)||hn.string(n.languageId))&&hn.uinteger(n.lineCount)&&hn.func(n.getText)&&hn.func(n.positionAt)&&hn.func(n.offsetAt))},e.applyEdits=function(e,t){for(var r=e.getText(),i=n(t,(function(e,n){var t=e.range.start.line-n.range.start.line;return 0===t?e.range.start.character-n.range.start.character:t})),o=r.length,a=i.length-1;a>=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}}(fn||(fn={}));var hn,vn=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;r<n.length;r++){t&&(e.push(r),t=!1);var i=n.charAt(r);t="\r"===i||"\n"===i,"\r"===i&&r+1<n.length&&"\n"===n.charAt(r+1)&&r++}t&&n.length>0&&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 y.create(0,e);for(;t<r;){var i=Math.floor((t+r)/2);n[i]>e?r=i:t=i+1}var o=t-1;return y.create(o,e-n[o])},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.length?n[e.line+1]:this._content.length;return Math.max(Math.min(t+e.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var n=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===n.call(e)},e.number=function(e){return"[object Number]"===n.call(e)},e.numberRange=function(e,t,r){return"[object Number]"===n.call(e)&&t<=e&&e<=r},e.integer=function(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===n.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,n){return Array.isArray(e)&&e.every(n)}}(hn||(hn={}));var pn=function(){function e(n,t,r){var i=this;(0,s.Z)(this,e),(0,c.Z)(this,"_disposables",[]),(0,c.Z)(this,"_listener",Object.create(null)),this._languageId=n,this._worker=t;var o=function(e){var n,t=e.getLanguageId();t===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(n),n=window.setTimeout((function(){return i._doValidate(e.uri,t)}),500)})),i._doValidate(e.uri,t))},a=function(e){m.editor.setModelMarkers(e,i._languageId,[]);var n=e.uri.toString(),t=i._listener[n];t&&(t.dispose(),delete i._listener[n])};this._disposables.push(m.editor.onDidCreateModel(o)),this._disposables.push(m.editor.onWillDisposeModel(a)),this._disposables.push(m.editor.onDidChangeModelLanguage((function(e){a(e.model),o(e.model)}))),this._disposables.push(r((function(e){m.editor.getModels().forEach((function(e){e.getLanguageId()===i._languageId&&(a(e),o(e))}))}))),this._disposables.push({dispose:function(){for(var e in m.editor.getModels().forEach(a),i._listener)i._listener[e].dispose()}}),m.editor.getModels().forEach(o)}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables.length=0}},{key:"_doValidate",value:function(e,n){this._worker(e).then((function(n){return n.doValidation(e.toString())})).then((function(t){var r=t.map((function(e){return function(e,n){var t="number"===typeof n.code?String(n.code):n.code;return{severity:mn(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:t,source:n.source}}(0,e)})),i=m.editor.getModel(e);i&&i.getLanguageId()===n&&m.editor.setModelMarkers(i,n,r)})).then(void 0,(function(e){console.error(e)}))}}]),e}();function mn(e){switch(e){case V.Error:return m.MarkerSeverity.Error;case V.Warning:return m.MarkerSeverity.Warning;case V.Information:return m.MarkerSeverity.Info;case V.Hint:return m.MarkerSeverity.Hint;default:return m.MarkerSeverity.Info}}var kn=function(){function e(n,t){(0,s.Z)(this,e),this._worker=n,this._triggerCharacters=t}return(0,u.Z)(e,[{key:"triggerCharacters",get:function(){return this._triggerCharacters}},{key:"provideCompletionItems",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doComplete(i.toString(),_n(n))})).then((function(t){if(t){var r=e.getWordUntilPosition(n),i=new m.Range(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn),o=t.items.map((function(e){var n,t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:yn(e.kind)};return e.textEdit&&("undefined"!==typeof(t=e.textEdit).insert&&"undefined"!==typeof t.replace?r.range={insert:wn(e.textEdit.insert),replace:wn(e.textEdit.replace)}:r.range=wn(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(Cn)),e.insertTextFormat===Ie.Snippet&&(r.insertTextRules=m.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:t.isIncomplete,suggestions:o}}}))}}]),e}();function _n(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function bn(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function wn(e){if(e)return new m.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function yn(e){var n=m.languages.CompletionItemKind;switch(e){case Ae.Text:return n.Text;case Ae.Method:return n.Method;case Ae.Function:return n.Function;case Ae.Constructor:return n.Constructor;case Ae.Field:return n.Field;case Ae.Variable:return n.Variable;case Ae.Class:return n.Class;case Ae.Interface:return n.Interface;case Ae.Module:return n.Module;case Ae.Property:return n.Property;case Ae.Unit:return n.Unit;case Ae.Value:return n.Value;case Ae.Enum:return n.Enum;case Ae.Keyword:return n.Keyword;case Ae.Snippet:return n.Snippet;case Ae.Color:return n.Color;case Ae.File:return n.File;case Ae.Reference:return n.Reference}return n.Property}function Cn(e){if(e)return{range:wn(e.range),text:e.newText}}var En=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideHover",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),_n(n))})).then((function(e){if(e)return{range:wn(e.range),contents:xn(e.contents)}}))}}]),e}();function An(e){return"string"===typeof e?{value:e}:(n=e)&&"object"===typeof n&&"string"===typeof n.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var n}function xn(e){if(e)return Array.isArray(e)?e.map(An):[An(e)]}var In=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentHighlights",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentHighlights(r.toString(),_n(n))})).then((function(e){if(e)return e.map((function(e){return{range:wn(e.range),kind:Sn(e.kind)}}))}))}}]),e}();function Sn(e){switch(e){case Ue.Read:return m.languages.DocumentHighlightKind.Read;case Ue.Write:return m.languages.DocumentHighlightKind.Write;case Ue.Text:return m.languages.DocumentHighlightKind.Text}return m.languages.DocumentHighlightKind.Text}var Tn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDefinition",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDefinition(r.toString(),_n(n))})).then((function(e){if(e)return[Rn(e)]}))}}]),e}();function Rn(e){return{uri:m.Uri.parse(e.uri),range:wn(e.range)}}var Dn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideReferences",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),_n(n))})).then((function(e){if(e)return e.map(Rn)}))}}]),e}(),Zn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideRenameEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doRename(i.toString(),_n(n),t)})).then((function(e){return function(e){if(!e||!e.changes)return;var n=[];for(var t in e.changes){var r,i=m.Uri.parse(t),o=(0,d.Z)(e.changes[t]);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push({resource:i,versionId:void 0,textEdit:{range:wn(a.range),text:a.newText}})}}catch(s){o.e(s)}finally{o.f()}}return{edits:n}}(e)}))}}]),e}();var Pn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentSymbols",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentSymbols(t.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:Mn(e.kind),range:wn(e.location.range),selectionRange:wn(e.location.range),tags:[]}}))}))}}]),e}();function Mn(e){var n=m.languages.SymbolKind;switch(e){case Ke.File:return n.Array;case Ke.Module:return n.Module;case Ke.Namespace:return n.Namespace;case Ke.Package:return n.Package;case Ke.Class:return n.Class;case Ke.Method:return n.Method;case Ke.Property:return n.Property;case Ke.Field:return n.Field;case Ke.Constructor:return n.Constructor;case Ke.Enum:return n.Enum;case Ke.Interface:return n.Interface;case Ke.Function:return n.Function;case Ke.Variable:return n.Variable;case Ke.Constant:return n.Constant;case Ke.String:return n.String;case Ke.Number:return n.Number;case Ke.Boolean:return n.Boolean;case Ke.Array:return n.Array}return n.Function}var jn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideLinks",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentLinks(t.toString())})).then((function(e){if(e)return{links:e.map((function(e){return{range:wn(e.range),url:e.target}}))}}))}}]),e}(),Ln=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentFormattingEdits",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,On(n)).then((function(e){if(e&&0!==e.length)return e.map(Cn)}))}))}}]),e}(),Fn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentRangeFormattingEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),bn(n),On(t)).then((function(e){if(e&&0!==e.length)return e.map(Cn)}))}))}}]),e}();function On(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Nn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentColors",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentColors(t.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:wn(e.range)}}))}))}},{key:"provideColorPresentations",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getColorPresentations(r.toString(),n.color,bn(n.range))})).then((function(e){if(e)return e.map((function(e){var n={label:e.label};return e.textEdit&&(n.textEdit=Cn(e.textEdit)),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(Cn)),n}))}))}}]),e}(),Wn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideFoldingRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getFoldingRanges(r.toString(),n)})).then((function(e){if(e)return e.map((function(e){var n={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(n.kind=function(e){switch(e){case L.Comment:return m.languages.FoldingRangeKind.Comment;case L.Imports:return m.languages.FoldingRangeKind.Imports;case L.Region:return m.languages.FoldingRangeKind.Region}return}(e.kind)),n}))}))}}]),e}();var Un,Vn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideSelectionRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getSelectionRanges(r.toString(),n.map(_n))})).then((function(e){if(e)return e.map((function(e){for(var n=[];e;)n.push({range:wn(e.range)}),e=e.parent;return n}))}))}}]),e}();function Hn(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 Kn(e){return 10===e||13===e||8232===e||8233===e}function zn(e){return e>=48&&e<=57}(Un||(Un={})).DEFAULT={allowTrailingComma:!1};var qn=function(e,n){void 0===n&&(n=!1);var t=e.length,r=0,i="",o=0,a=16,s=0,u=0,c=0,d=0,f=0;function g(n,t){for(var i=0,o=0;i<n||!t;){var a=e.charCodeAt(r);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i<n&&(o=-1),o}function l(){if(i="",f=0,o=r,u=s,d=c,r>=t)return o=t,a=17;var n=e.charCodeAt(r);if(Hn(n)){do{r++,i+=String.fromCharCode(n),n=e.charCodeAt(r)}while(Hn(n));return a=15}if(Kn(n))return r++,i+=String.fromCharCode(n),13===n&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,c=r,a=14;switch(n){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var n="",i=r;;){if(r>=t){n+=e.substring(i,r),f=2;break}var o=e.charCodeAt(r);if(34===o){n+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Kn(o)){n+=e.substring(i,r),f=2;break}f=6}r++}else{if(n+=e.substring(i,r),++r>=t){f=2;break}switch(e.charCodeAt(r++)){case 34:n+='"';break;case 92:n+="\\";break;case 47:n+="/";break;case 98:n+="\b";break;case 102:n+="\f";break;case 110:n+="\n";break;case 114:n+="\r";break;case 116:n+="\t";break;case 117:var a=g(4,!0);a>=0?n+=String.fromCharCode(a):f=4;break;default:f=5}i=r}}return n}(),a=10;case 47:var l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<t&&!Kn(e.charCodeAt(r));)r++;return i=e.substring(l,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;for(var v=t-1,p=!1;r<v;){var m=e.charCodeAt(r);if(42===m&&47===e.charCodeAt(r+1)){r+=2,p=!0;break}r++,Kn(m)&&(13===m&&10===e.charCodeAt(r)&&r++,s++,c=r)}return p||(r++,f=1),i=e.substring(l,r),a=13}return i+=String.fromCharCode(n),r++,a=16;case 45:if(i+=String.fromCharCode(n),++r===t||!zn(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var n=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&zn(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&zn(e.charCodeAt(r))))return f=3,e.substring(n,r);for(r++;r<e.length&&zn(e.charCodeAt(r));)r++}var t=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&zn(e.charCodeAt(r))){for(r++;r<e.length&&zn(e.charCodeAt(r));)r++;t=r}else f=3;return e.substring(n,t)}(),a=11;default:for(;r<t&&h(n);)r++,n=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(n),r++,a=16}}function h(e){if(Hn(e)||Kn(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,f=0},getPosition:function(){return r},scan:n?function(){var e;do{e=l()}while(e>=12&&e<=15);return e}:l,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return f}}};function Xn(e){return{getInitialState:function(){return new at(null,null,!1,null)},tokenize:function(n,t){return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=0,o=!1;switch(t.scanError){case 2:n='"'+n,i=1;break;case 1:n="/*"+n,i=2}var a=qn(n),s=t.lastWasColon,u=t.parents,c={tokens:[],endState:t.clone()};for(;;){var d=r+a.getPosition(),f="",g=a.scan();if(17===g)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:u=ot.push(u,0),f=Bn,s=!1;break;case 2:u=ot.pop(u),f=Bn,s=!1;break;case 3:u=ot.push(u,1),f=$n,s=!1;break;case 4:u=ot.pop(u),f=$n,s=!1;break;case 6:f=Qn,s=!0;break;case 5:f=Gn,s=!1;break;case 8:case 9:f=Jn,s=!1;break;case 7:f=Yn,s=!1;break;case 10:var l=u?u.type:0;f=s||1===l?et:tt,s=!1;break;case 11:f=nt,s=!1}if(e)switch(g){case 12:f=it;break;case 13:f=rt}c.endState=new at(t.getStateData(),a.getTokenError(),s,u),c.tokens.push({startIndex:d,scopes:f})}return c}(e,n,t)}}}var Bn="delimiter.bracket.json",$n="delimiter.array.json",Qn="delimiter.colon.json",Gn="delimiter.comma.json",Jn="keyword.json",Yn="keyword.json",et="string.value.json",nt="number.json",tt="string.key.json",rt="comment.block.json",it="comment.line.json",ot=function(){function e(n,t){(0,s.Z)(this,e),this.parent=n,this.type=t}return(0,u.Z)(e,null,[{key:"pop",value:function(e){return e?e.parent:null}},{key:"push",value:function(n,t){return new e(n,t)}},{key:"equals",value:function(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}}]),e}(),at=function(){function e(n,t,r,i){(0,s.Z)(this,e),(0,c.Z)(this,"_state",void 0),(0,c.Z)(this,"scanError",void 0),(0,c.Z)(this,"lastWasColon",void 0),(0,c.Z)(this,"parents",void 0),this._state=n,this.scanError=t,this.lastWasColon=r,this.parents=i}return(0,u.Z)(e,[{key:"clone",value:function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}},{key:"equals",value:function(n){return n===this||!!(n&&n instanceof e)&&(this.scanError===n.scanError&&this.lastWasColon===n.lastWasColon&&ot.equals(this.parents,n.parents))}},{key:"getStateData",value:function(){return this._state}},{key:"setStateData",value:function(e){this._state=e}}]),e}();var st=function(e){(0,o.Z)(t,e);var n=(0,a.Z)(t);function t(e,r,i){var o;return(0,s.Z)(this,t),(o=n.call(this,e,r,i.onDidChange))._disposables.push(m.editor.onWillDisposeModel((function(e){o._resetSchema(e.uri)}))),o._disposables.push(m.editor.onDidChangeModelLanguage((function(e){o._resetSchema(e.model.uri)}))),o}return(0,u.Z)(t,[{key:"_resetSchema",value:function(e){this._worker().then((function(n){n.resetSchema(e.toString())}))}}]),t}(pn);function ut(e){var n=[],t=[],r=new le(e);n.push(r);var i=function(){return r.getLanguageServiceWorker.apply(r,arguments)};function o(){var n=e.languageId,r=e.modeConfiguration;dt(t),r.documentFormattingEdits&&t.push(m.languages.registerDocumentFormattingEditProvider(n,new Ln(i))),r.documentRangeFormattingEdits&&t.push(m.languages.registerDocumentRangeFormattingEditProvider(n,new Fn(i))),r.completionItems&&t.push(m.languages.registerCompletionItemProvider(n,new kn(i,[" ",":",'"']))),r.hovers&&t.push(m.languages.registerHoverProvider(n,new En(i))),r.documentSymbols&&t.push(m.languages.registerDocumentSymbolProvider(n,new Pn(i))),r.tokens&&t.push(m.languages.setTokensProvider(n,Xn(!0))),r.colors&&t.push(m.languages.registerColorProvider(n,new Nn(i))),r.foldingRanges&&t.push(m.languages.registerFoldingRangeProvider(n,new Wn(i))),r.diagnostics&&t.push(new st(n,i,e)),r.selectionRanges&&t.push(m.languages.registerSelectionRangeProvider(n,new Vn(i)))}o(),n.push(m.languages.setLanguageConfiguration(e.languageId,ft));var a=e.modeConfiguration;return e.onDidChange((function(e){e.modeConfiguration!==a&&(a=e.modeConfiguration,o())})),n.push(ct(t)),ct(n)}function ct(e){return{dispose:function(){return dt(e)}}}function dt(e){for(;e.length;)e.pop().dispose()}var ft={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
//# sourceMappingURL=5342.53abb94f.chunk.js.map