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

2 lines
40 KiB
JavaScript
Raw Normal View History

2022-09-26 11:57:35 +00:00
"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
//# sourceMappingURL=5342.53abb94f.chunk.js.map