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.
NewEduCoderBuild/json.worker.js

38 lines
249 KiB

(function(je){var q={};function X(O){if(q[O])return q[O].exports;var G=q[O]={i:O,l:!1,exports:{}};return je[O].call(G.exports,G,G.exports,X),G.l=!0,G.exports}return X.m=je,X.c=q,X.d=function(O,G,V){X.o(O,G)||Object.defineProperty(O,G,{enumerable:!0,get:V})},X.r=function(O){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(O,"__esModule",{value:!0})},X.t=function(O,G){if(G&1&&(O=X(O)),G&8||G&4&&typeof O=="object"&&O&&O.__esModule)return O;var V=Object.create(null);if(X.r(V),Object.defineProperty(V,"default",{enumerable:!0,value:O}),G&2&&typeof O!="string")for(var ae in O)X.d(V,ae,function(ce){return O[ce]}.bind(null,ae));return V},X.n=function(O){var G=O&&O.__esModule?function(){return O.default}:function(){return O};return X.d(G,"a",G),G},X.o=function(O,G){return Object.prototype.hasOwnProperty.call(O,G)},X.p="/react/build/",X(X.s="8Z8O")})({"33yf":function(je,q,X){(function(O){function G(k,U){for(var $=0,B=k.length-1;B>=0;B--){var ie=k[B];ie==="."?k.splice(B,1):ie===".."?(k.splice(B,1),$++):$&&(k.splice(B,1),$--)}if(U)for(;$--;$)k.unshift("..");return k}q.resolve=function(){for(var k="",U=!1,$=arguments.length-1;$>=-1&&!U;$--){var B=$>=0?arguments[$]:O.cwd();if(typeof B!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!B)continue;k=B+"/"+k,U=B.charAt(0)==="/"}return k=G(ae(k.split("/"),function(ie){return!!ie}),!U).join("/"),(U?"/":"")+k||"."},q.normalize=function(k){var U=q.isAbsolute(k),$=ce(k,-1)==="/";return k=G(ae(k.split("/"),function(B){return!!B}),!U).join("/"),!k&&!U&&(k="."),k&&$&&(k+="/"),(U?"/":"")+k},q.isAbsolute=function(k){return k.charAt(0)==="/"},q.join=function(){var k=Array.prototype.slice.call(arguments,0);return q.normalize(ae(k,function(U,$){if(typeof U!="string")throw new TypeError("Arguments to path.join must be strings");return U}).join("/"))},q.relative=function(k,U){k=q.resolve(k).substr(1),U=q.resolve(U).substr(1);function $(R){for(var J=0;J<R.length&&R[J]==="";J++);for(var re=R.length-1;re>=0&&R[re]==="";re--);return J>re?[]:R.slice(J,re-J+1)}for(var B=$(k.split("/")),ie=$(U.split("/")),le=Math.min(B.length,ie.length),pe=le,te=0;te<le;te++)if(B[te]!==ie[te]){pe=te;break}for(var F=[],te=pe;te<B.length;te++)F.push("..");return F=F.concat(ie.slice(pe)),F.join("/")},q.sep="/",q.delimiter=":",q.dirname=function(k){if(typeof k!="string"&&(k=k+""),k.length===0)return".";for(var U=k.charCodeAt(0),$=U===47,B=-1,ie=!0,le=k.length-1;le>=1;--le)if(U=k.charCodeAt(le),U===47){if(!ie){B=le;break}}else ie=!1;return B===-1?$?"/":".":$&&B===1?"/":k.slice(0,B)};function V(k){typeof k!="string"&&(k=k+"");var U=0,$=-1,B=!0,ie;for(ie=k.length-1;ie>=0;--ie)if(k.charCodeAt(ie)===47){if(!B){U=ie+1;break}}else $===-1&&(B=!1,$=ie+1);return $===-1?"":k.slice(U,$)}q.basename=function(k,U){var $=V(k);return U&&$.substr(-1*U.length)===U&&($=$.substr(0,$.length-U.length)),$},q.extname=function(k){typeof k!="string"&&(k=k+"");for(var U=-1,$=0,B=-1,ie=!0,le=0,pe=k.length-1;pe>=0;--pe){var te=k.charCodeAt(pe);if(te===47){if(!ie){$=pe+1;break}continue}B===-1&&(ie=!1,B=pe+1),te===46?U===-1?U=pe:le!==1&&(le=1):U!==-1&&(le=-1)}return U===-1||B===-1||le===0||le===1&&U===B-1&&U===$+1?"":k.slice(U,B)};function ae(k,U){if(k.filter)return k.filter(U);for(var $=[],B=0;B<k.length;B++)U(k[B],B,k)&&$.push(k[B]);return $}var ce="ab".substr(-1)==="b"?function(k,U,$){return k.substr(U,$)}:function(k,U,$){return U<0&&(U=k.length+U),k.substr(U,$)}}).call(this,X("Q2Ig"))},"8Z8O":function(je,q,X){"use strict";X.r(q);var O=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(function(){throw t.stack?new Error(t.message+`
`+t.stack):t},0)}}return e.prototype.emit=function(t){this.listeners.forEach(function(r){r(t)})},e.prototype.onUnexpectedError=function(t){this.unexpectedErrorHandler(t),this.emit(t)},e.prototype.onUnexpectedExternalError=function(t){this.unexpectedErrorHandler(t)},e}(),G=new O;function V(e){U(e)||G.onUnexpectedError(e)}function ae(e){U(e)||G.onUnexpectedExternalError(e)}function ce(e){if(e instanceof Error){var t=e.name,r=e.message,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n}}return e}var k="Canceled";function U(e){return e instanceof Error&&e.name===k&&e.message===k}function $(){var e=new Error(k);return e.name=e.message,e}function B(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function ie(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}var le=!1,pe="__is_disposable_tracked__";function te(e){if(!!le&&e&&e!==Pe.None)try{e[pe]=!0}catch(t){}}function F(e){if(!le)return e;var t=new Error("Potentially leaked disposable").stack;return setTimeout(function(){e[pe]||console.log(t)},3e3),e}function R(e){return typeof e.dispose=="function"&&e.dispose.length===0}function J(e){return Array.isArray(e)?(e.forEach(function(t){t&&(te(t),t.dispose())}),[]):e?(te(e),e.dispose(),e):void 0}function re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(te),F({dispose:function(){return J(e)}})}function Z(e){var t=F({dispose:function(){te(t),e()}});return t}var ge=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(te(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach(function(t){return t.dispose()}),this._toDispose.clear()},e.prototype.add=function(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return te(t),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t},e}(),Pe=function(){function e(){this._store=new ge,F(this)}return e.prototype.dispose=function(){te(this),this._store.dispose()},e.prototype._register=function(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)},e.None=Object.freeze({dispose:function(){}}),e}(),Xe=function(){function e(){this._isDisposed=!1,F(this)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(r){this._isDisposed||r===this._value||(this._value&&this._value.dispose(),r&&te(r),this._value=r)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,te(this),this._value&&this._value.dispose(),this._value=void 0},e}(),Ce=function(){function e(t){this.object=t}return e.prototype.dispose=function(){},e}(),ye=X("MNsG"),_e={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function pt(e){return Array.isArray?Array.isArray(e):!!(e&&typeof e.length===_e.number&&e.constructor===Array)}function ke(e){return typeof e===_e.string||e instanceof String}function gt(e){return typeof e===_e.object&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function dt(e){return(typeof e===_e.number||e instanceof Number)&&!isNaN(e)}function C(e){return e===!0||e===!1}function T(e){return typeof e===_e.undefined}function I(e){return T(e)||e===null}function j(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var ee=Object.prototype.hasOwnProperty;function H(e){if(!gt(e))return!1;for(var t in e)if(ee.call(e,t))return!1;return!0}function K(e){return typeof e===_e.function}function tt(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)yt(e[n],t[n])}function yt(e,t){if(ke(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(K(t)){try{if(e instanceof t)return}catch(r){}if(!I(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Ae(e){for(var t=[],r=Object.getPrototypeOf(e);Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return t}function We(e){for(var t=[],r=0,n=Ae(e);r<n.length;r++){var i=n[r];typeof e[i]=="function"&&t.push(i)}return t}function Me(e,t){for(var r=function(f){return function(){var o=Array.prototype.slice.call(arguments,0);return t(f,o)}},n={},i=0,a=e;i<a.length;i++){var s=a[i];n[s]=r(s)}return n}function ao(e){return e===null?void 0:e}function so(e){return typeof e=="undefined"?null:e}var Zi=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$r="$initialize",Hr=!1;function oo(e){!ye.b||(Hr||(Hr=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var Yr=function(){function e(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(t){this._workerId=t},e.prototype.sendMessage=function(t,r){var n=this,i=String(++this._lastSentReq);return new Promise(function(a,s){n._pendingReplies[i]={resolve:a,reject:s},n._send({vsWorker:n._workerId,req:i,method:t,args:r})})},e.prototype.handleMessage=function(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)},e.prototype._handleMessage=function(t){var r=this;if(t.seq){var n=t;if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var a=n.err;n.err.$isError&&(a=new Error,a.name=n.err.name,a.message=n.err.message,a.stack=n.err.stack),i.reject(a);return}i.resolve(n.res);return}var s=t,l=s.req,f=this._handler.handleMessage(s.method,s.args);f.then(function(o){r._send({vsWorker:r._workerId,seq:l,res:o,err:void 0})},function(o){o.detail instanceof Error&&(o.detail=ce(o.detail)),r._send({vsWorker:r._workerId,seq:l,res:void 0,err:ce(o)})})},e.prototype._send=function(t){var r=[];if(t.req)for(var n=t,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&r.push(n.args[i]);else{var n=t;n.res instanceof ArrayBuffer&&r.push(n.res)}this._handler.sendMessage(t,r)},e}(),uo=function(e){Zi(t,e);function t(r,n,i){var a=e.call(this)||this,s=null;a._worker=a._register(r.create("vs/base/common/worker/simpleWorker",function(u){a._protocol.handleMessage(u)},function(u){s&&s(u)})),a._protocol=new Yr({sendMessage:function(c,v){a._worker.postMessage(c,v)},handleMessage:function(c,v){if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,v))}catch(m){return Promise.reject(m)}}}),a._protocol.setWorkerId(a._worker.getId());var l=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?l=self.require.getConfig():typeof self.requirejs!="undefined"&&(l=self.requirejs.s.contexts._.config);var f=We(i);a._onModuleLoaded=a._protocol.sendMessage($r,[a._worker.getId(),JSON.parse(JSON.stringify(l)),n,f]);var o=function(c,v){return a._request(c,v)};return a._lazyProxy=new Promise(function(u,c){s=c,a._onModuleLoaded.then(function(v){u(Me(v,o))},function(v){c(v),a._onError("Worker failed to load "+n,v)})}),a}return t.prototype.getProxyObject=function(){return this._lazyProxy},t.prototype._request=function(r,n){var i=this;return new Promise(function(a,s){i._onModuleLoaded.then(function(){i._protocol.sendMessage(r,n).then(a,s)},s)})},t.prototype._onError=function(r,n){console.error(r),console.info(n)},t}(Pe),zr=function(){function e(t,r){var n=this;this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new Yr({sendMessage:function(a,s){t(a,s)},handleMessage:function(a,s){return n._handleMessage(a,s)}})}return e.prototype.onmessage=function(t){this._protocol.handleMessage(t)},e.prototype._handleMessage=function(t,r){if(t===$r)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(n){return Promise.reject(n)}},e.prototype.initialize=function(t,r,n,i){var a=this;this._protocol.setWorkerId(t);var s=function(o,u){return a._protocol.sendMessage(o,u)},l=Me(i,s);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(We(this._requestHandler))):(r&&(typeof r.baseUrl!="undefined"&&delete r.baseUrl,typeof r.paths!="undefined"&&typeof r.paths.vs!="undefined"&&delete r.paths.vs,r.catchError=!0,self.require.config(r)),new Promise(function(f,o){self.require([n],function(u){if(a._requestHandler=u.create(l),!a._requestHandler){o(new Error("No RequestHandler!"));return}f(We(a._requestHandler))},o)}))},e}();function fo(e){return new zr(e,null)}function lo(e,t){return t===void 0&&(t=0),e[e.length-(1+t)]}function co(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function ho(e,t,r){if(r===void 0&&(r=function(s,l){return s===l}),e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!r(e[n],t[n]))return!1;return!0}function vo(e,t,r){for(var n=0,i=e.length-1;n<=i;){var a=(n+i)/2|0,s=r(e[a],t);if(s<0)n=a+1;else if(s>0)i=a-1;else return a}return-(n+1)}function mo(e,t){var r=0,n=e.length;if(n===0)return 0;for(;r<n;){var i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r}function Gr(e,t){return Gt(e,t,0,e.length-1,[]),e}function Xi(e,t,r,n,i,a){for(var s=r,l=n+1,f=r;f<=i;f++)a[f]=e[f];for(var f=r;f<=i;f++)s>n?e[f]=a[l++]:l>i?e[f]=a[s++]:t(a[l],a[s])<0?e[f]=a[l++]:e[f]=a[s++]}function Gt(e,t,r,n,i){if(!(n<=r)){var a=r+(n-r)/2|0;Gt(e,t,r,a,i),Gt(e,t,a+1,n,i),!(t(e[a],e[a+1])<=0)&&Xi(e,t,r,a,n,i)}}function po(e,t){for(var r=[],n=void 0,i=0,a=Gr(e.slice(0),t);i<a.length;i++){var s=a[i];!n||t(n[0],s)!==0?(n=[s],r.push(n)):n.push(s)}return r}function go(e){return e.filter(function(t){return!!t})}function yo(e){return!Array.isArray(e)||e.length===0}function bo(e){return Array.isArray(e)&&e.length>0}function _o(e,t){if(!t)return e.filter(function(n,i){return e.indexOf(n)===i});var r=Object.create(null);return e.filter(function(n){var i=t(n);return r[i]?!1:(r[i]=!0,!0)})}function So(e){var t=new Set;return e.filter(function(r){return t.has(r)?!1:(t.add(r),!0)})}function wo(e){var t=[];return e.forEach(function(r){return t.push(r)}),t}function Ki(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return r}return-1}function No(e,t,r){r===void 0&&(r=void 0);var n=Ki(e,t);return n<0?r:e[n]}function Ao(e,t){return e.length>0?e[0]:t}function Lo(e){var t;return(t=[]).concat.apply(t,e)}function Eo(e,t){var r=typeof t=="number"?e:0;typeof t=="number"?r=e:(r=0,t=e);var n=[];if(r<=t)for(var i=r;i<t;i++)n.push(i);else for(var i=r;i>t;i--)n.push(i);return n}function Po(e,t,r){var n=e.slice(0,t),i=e.slice(t);return n.concat(r,i)}function ko(e,t){var r=e.indexOf(t);r>-1&&(e.splice(r,1),e.unshift(t))}function To(e,t){var r=e.indexOf(t);r>-1&&(e.splice(r,1),e.push(t))}function xo(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r,e))return n}}function Co(e){return Array.isArray(e)?e:[e]}var ze=function(){function e(t,r,n,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=n,this.modifiedLength=i}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function Jr(e,t){switch(t===void 0&&(t=0),typeof e){case"object":return e===null?Ve(349,t):Array.isArray(e)?ta(e,t):ra(e,t);case"string":return Jt(e,t);case"boolean":return ea(e,t);case"number":return Ve(e,t);case"undefined":return Ve(0,937);default:return Ve(0,617)}}function Ve(e,t){return(t<<5)-t+e|0}function ea(e,t){return Ve(e?433:863,t)}function Jt(e,t){t=Ve(149417,t);for(var r=0,n=e.length;r<n;r++)t=Ve(e.charCodeAt(r),t);return t}function ta(e,t){return t=Ve(104579,t),e.reduce(function(r,n){return Jr(n,r)},t)}function ra(e,t){return t=Ve(181387,t),Object.keys(e).sort().reduce(function(r,n){return r=Jt(n,r),Jr(e[n],r)},t)}var Qr=function(){function e(t){this.source=t}return e.prototype.getElements=function(){for(var t=this.source,r=new Int32Array(t.length),n=0,i=t.length;n<i;n++)r[n]=t.charCodeAt(n);return r},e}();function na(e,t,r){return new Xr(new Qr(e),new Qr(t)).ComputeDiff(r).changes}var rt=function(){function e(){}return e.Assert=function(t,r){if(!t)throw new Error(r)},e}(),nt=function(){function e(){}return e.Copy=function(t,r,n,i,a){for(var s=0;s<a;s++)n[i+s]=t[r+s]},e.Copy2=function(t,r,n,i,a){for(var s=0;s<a;s++)n[i+s]=t[r+s]},e}(),Zr=function(){function e(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ze(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},e.prototype.AddOriginalElement=function(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++},e.prototype.AddModifiedElement=function(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),Xr=function(){function e(t,r,n){n===void 0&&(n=null),this.ContinueProcessingPredicate=n;var i=e._getElements(t),a=i[0],s=i[1],l=i[2],f=e._getElements(r),o=f[0],u=f[1],c=f[2];this._hasStrings=l&&c,this._originalStringElements=a,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e._isStringArray=function(t){return t.length>0&&typeof t[0]=="string"},e._getElements=function(t){var r=t.getElements();if(e._isStringArray(r)){for(var n=new Int32Array(r.length),i=0,a=r.length;i<a;i++)n[i]=Jt(r[i],0);return[r,n,!0]}return r instanceof Int32Array?[[],r,!1]:[[],new Int32Array(r),!1]},e.prototype.ElementsAreEqual=function(t,r){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[r]:!0},e.prototype.OriginalElementsAreEqual=function(t,r){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[r]:!0},e.prototype.ModifiedElementsAreEqual=function(t,r){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[r]:!0},e.prototype.ComputeDiff=function(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)},e.prototype._ComputeDiff=function(t,r,n,i,a){var s=[!1],l=this.ComputeDiffRecursive(t,r,n,i,s);return a&&(l=this.PrettifyChanges(l)),{quitEarly:s[0],changes:l}},e.prototype.ComputeDiffRecursive=function(t,r,n,i,a){for(a[0]=!1;t<=r&&n<=i&&this.ElementsAreEqual(t,n);)t++,n++;for(;r>=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){var s=void 0;return n<=i?(rt.Assert(t===r+1,"originalStart should only be one more than originalEnd"),s=[new ze(t,0,n,i-n+1)]):t<=r?(rt.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new ze(t,r-t+1,n,0)]):(rt.Assert(t===r+1,"originalStart should only be one more than originalEnd"),rt.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}var l=[0],f=[0],o=this.ComputeRecursionPoint(t,r,n,i,l,f,a),u=l[0],c=f[0];if(o!==null)return o;if(!a[0]){var v=this.ComputeDiffRecursive(t,u,n,c,a),m=[];return a[0]?m=[new ze(u+1,r-(u+1)+1,c+1,i-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,r,c+1,i,a),this.ConcatenateChanges(v,m)}return[new ze(t,r-t+1,n,i-n+1)]},e.prototype.WALKTRACE=function(t,r,n,i,a,s,l,f,o,u,c,v,m,p,g,N,S,b){var h=null,_=null,d=new Zr,w=r,A=n,L=m[0]-N[0]-i,E=-1073741824,x=this.m_forwardHistory.length-1;do{var y=L+t;y===w||y<A&&o[y-1]<o[y+1]?(c=o[y+1],p=c-L-i,c<E&&d.MarkNextChange(),E=c,d.AddModifiedElement(c+1,p),L=y+1-t):(c=o[y-1]+1,p=c-L-i,c<E&&d.MarkNextChange(),E=c-1,d.AddOriginalElement(c,p+1),L=y-1-t),x>=0&&(o=this.m_forwardHistory[x],t=o[0],w=1,A=o.length-1)}while(--x>=-1);if(h=d.getReverseChanges(),b[0]){var M=m[0]+1,W=N[0]+1;if(h!==null&&h.length>0){var z=h[h.length-1];M=Math.max(M,z.getOriginalEnd()),W=Math.max(W,z.getModifiedEnd())}_=[new ze(M,v-M+1,W,g-W+1)]}else{d=new Zr,w=s,A=l,L=m[0]-N[0]-f,E=1073741824,x=S?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var y=L+a;y===w||y<A&&u[y-1]>=u[y+1]?(c=u[y+1]-1,p=c-L-f,c>E&&d.MarkNextChange(),E=c+1,d.AddOriginalElement(c+1,p+1),L=y+1-a):(c=u[y-1],p=c-L-f,c>E&&d.MarkNextChange(),E=c,d.AddModifiedElement(c+1,p+1),L=y-1-a),x>=0&&(u=this.m_reverseHistory[x],a=u[0],w=1,A=u.length-1)}while(--x>=-1);_=d.getChanges()}return this.ConcatenateChanges(h,_)},e.prototype.ComputeRecursionPoint=function(t,r,n,i,a,s,l){var f=0,o=0,u=0,c=0,v=0,m=0;t--,n--,a[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var p=r-t+(i-n),g=p+1,N=new Int32Array(g),S=new Int32Array(g),b=i-n,h=r-t,_=t-n,d=r-i,w=h-b,A=w%2==0;N[b]=t,S[h]=r,l[0]=!1;for(var L=1;L<=p/2+1;L++){var E=0,x=0;u=this.ClipDiagonalBound(b-L,L,b,g),c=this.ClipDiagonalBound(b+L,L,b,g);for(var y=u;y<=c;y+=2){y===u||y<c&&N[y-1]<N[y+1]?f=N[y+1]:f=N[y-1]+1,o=f-(y-b)-_;for(var M=f;f<r&&o<i&&this.ElementsAreEqual(f+1,o+1);)f++,o++;if(N[y]=f,f+o>E+x&&(E=f,x=o),!A&&Math.abs(y-h)<=L-1&&f>=S[y])return a[0]=f,s[0]=o,M<=S[y]&&1447>0&&L<=1447+1?this.WALKTRACE(b,u,c,_,h,v,m,d,N,S,f,r,a,o,i,s,A,l):null}var W=(E-t+(x-n)-L)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(E,W))return l[0]=!0,a[0]=E,s[0]=x,W>0&&1447>0&&L<=1447+1?this.WALKTRACE(b,u,c,_,h,v,m,d,N,S,f,r,a,o,i,s,A,l):(t++,n++,[new ze(t,r-t+1,n,i-n+1)]);v=this.ClipDiagonalBound(h-L,L,h,g),m=this.ClipDiagonalBound(h+L,L,h,g);for(var y=v;y<=m;y+=2){y===v||y<m&&S[y-1]>=S[y+1]?f=S[y+1]-1:f=S[y-1],o=f-(y-h)-d;for(var M=f;f>t&&o>n&&this.ElementsAreEqual(f,o);)f--,o--;if(S[y]=f,A&&Math.abs(y-b)<=L&&f<=N[y])return a[0]=f,s[0]=o,M>=N[y]&&1447>0&&L<=1447+1?this.WALKTRACE(b,u,c,_,h,v,m,d,N,S,f,r,a,o,i,s,A,l):null}if(L<=1447){var z=new Int32Array(c-u+2);z[0]=b-u+1,nt.Copy2(N,u,z,1,c-u+1),this.m_forwardHistory.push(z),z=new Int32Array(m-v+2),z[0]=h-v+1,nt.Copy2(S,v,z,1,m-v+1),this.m_reverseHistory.push(z)}}return this.WALKTRACE(b,u,c,_,h,v,m,d,N,S,f,r,a,o,i,s,A,l)},e.prototype.PrettifyChanges=function(t){for(var r=0;r<t.length;r++){for(var n=t[r],i=r<t.length-1?t[r+1].originalStart:this._originalElementsOrHash.length,a=r<t.length-1?t[r+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,l=n.modifiedLength>0;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<a&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!l||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;var f=[null];if(r<t.length-1&&this.ChangesOverlap(t[r],t[r+1],f)){t[r]=f[0],t.splice(r+1,1),r--;continue}}for(var r=t.length-1;r>=0;r--){var n=t[r],i=0,a=0;if(r>0){var o=t[r-1];o.originalLength>0&&(i=o.originalStart+o.originalLength),o.modifiedLength>0&&(a=o.modifiedStart+o.modifiedLength)}for(var s=n.originalLength>0,l=n.modifiedLength>0,u=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),v=1;;v++){var m=n.originalStart-v,p=n.modifiedStart-v;if(m<i||p<a||s&&!this.OriginalElementsAreEqual(m,m+n.originalLength)||l&&!this.ModifiedElementsAreEqual(p,p+n.modifiedLength))break;var g=this._boundaryScore(m,n.originalLength,p,n.modifiedLength);g>c&&(c=g,u=v)}n.originalStart-=u,n.modifiedStart-=u}return t},e.prototype._OriginalIsBoundary=function(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])},e.prototype._OriginalRegionIsBoundary=function(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){var n=t+r;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])},e.prototype._ModifiedRegionIsBoundary=function(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){var n=t+r;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(t,r,n,i){var a=this._OriginalRegionIsBoundary(t,r)?1:0,s=this._ModifiedRegionIsBoundary(n,i)?1:0;return a+s},e.prototype.ConcatenateChanges=function(t,r){var n=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],n)){var i=new Array(t.length+r.length-1);return nt.Copy(t,0,i,0,t.length-1),i[t.length-1]=n[0],nt.Copy(r,1,i,t.length,r.length-1),i}else{var i=new Array(t.length+r.length);return nt.Copy(t,0,i,0,t.length),nt.Copy(r,0,i,t.length,r.length),i}},e.prototype.ChangesOverlap=function(t,r,n){if(rt.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),rt.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){var i=t.originalStart,a=t.originalLength,s=t.modifiedStart,l=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(a=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(l=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new ze(i,a,s,l),!0}else return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(t,r,n,i){if(t>=0&&t<i)return t;var a=n,s=i-n-1,l=r%2==0;if(t<0){var f=a%2==0;return l===f?0:1}else{var o=s%2==0;return l===o?i-1:i-2}},e}(),ia=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qe={done:!0,value:void 0},kt;(function(e){var t={next:function(){return qe}};function r(){return t}e.empty=r;function n(m){var p=!1;return{next:function(){return p?qe:(p=!0,{done:!1,value:m})}}}e.single=n;function i(m,p,g){return p===void 0&&(p=0),g===void 0&&(g=m.length),{next:function(){return p>=g?qe:{done:!1,value:m[p++]}}}}e.fromArray=i;function a(m){return{next:function(){var g=m.next();return g.done?qe:{done:!1,value:g.value}}}}e.fromNativeIterator=a;function s(m){return m?Array.isArray(m)?e.fromArray(m):m:e.empty()}e.from=s;function l(m,p){return{next:function(){var N=m.next();return N.done?qe:{done:!1,value:p(N.value)}}}}e.map=l;function f(m,p){return{next:function(){for(;;){var N=m.next();if(N.done)return qe;if(p(N.value))return{done:!1,value:N.value}}}}}e.filter=f;function o(m,p){for(var g=m.next();!g.done;g=m.next())p(g.value)}e.forEach=o;function u(m,p){p===void 0&&(p=Number.POSITIVE_INFINITY);var g=[];if(p===0)return g;for(var N=0,S=m.next();!S.done&&(g.push(S.value),!(++N>=p));S=m.next());return g}e.collect=u;function c(){for(var m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];var g=0;return{next:function(){if(g>=m.length)return qe;var S=m[g],b=S.next();return b.done?(g++,this.next()):b}}}e.concat=c;function v(m){return new aa(m)}e.chain=v})(kt||(kt={}));var aa=function(){function e(t){this.it=t}return e.prototype.next=function(){return this.it.next()},e}();function Mo(e){return Array.isArray(e)?kt.fromArray(e):e||kt.empty()}var sa=function(){function e(t,r,n,i){r===void 0&&(r=0),n===void 0&&(n=t.length),i===void 0&&(i=r-1),this.items=t,this.start=r,this.end=n,this.index=i}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),Fo=function(e){ia(t,e);function t(r,n,i,a){return n===void 0&&(n=0),i===void 0&&(i=r.length),a===void 0&&(a=n-1),e.call(this,r,n,i,a)||this}return t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(sa),Io=function(){function e(t,r){this.iterator=t,this.fn=r}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}(),oa=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),he,ua=/^\w[\w\d+.-]*$/,fa=/^\//,la=/^\/\//;function ca(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!ua.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!fa.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(la.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function ha(e,t){return!e&&!t?"file":e}function va(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Fe&&(t=Fe+t):t=Fe;break}return t}var se="",Fe="/",ma=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Qt=function(){function e(t,r,n,i,a,s){s===void 0&&(s=!1),typeof t=="object"?(this.scheme=t.scheme||se,this.authority=t.authority||se,this.path=t.path||se,this.query=t.query||se,this.fragment=t.fragment||se):(this.scheme=ha(t,s),this.authority=r||se,this.path=va(this.scheme,n||se),this.query=i||se,this.fragment=a||se,ca(this,s))}return e.isUri=function(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="function"&&typeof t.with=="function"&&typeof t.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return rn(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(t){if(!t)return this;var r=t.scheme,n=t.authority,i=t.path,a=t.query,s=t.fragment;return r===void 0?r=this.scheme:r===null&&(r=se),n===void 0?n=this.authority:n===null&&(n=se),i===void 0?i=this.path:i===null&&(i=se),a===void 0?a=this.query:a===null&&(a=se),s===void 0?s=this.fragment:s===null&&(s=se),r===this.scheme&&n===this.authority&&i===this.path&&a===this.query&&s===this.fragment?this:new it(r,n,i,a,s)},e.parse=function(t,r){r===void 0&&(r=!1);var n=ma.exec(t);return n?new it(n[2]||se,Tt(n[4]||se),Tt(n[5]||se),Tt(n[7]||se),Tt(n[9]||se),r):new it(se,se,se,se,se)},e.file=function(t){var r=se;if(ye.c&&(t=t.replace(/\\/g,Fe)),t[0]===Fe&&t[1]===Fe){var n=t.indexOf(Fe,2);n===-1?(r=t.substring(2),t=Fe):(r=t.substring(2,n),t=t.substring(n)||Fe)}return new it("file",r,t,se,se)},e.from=function(t){return new it(t.scheme,t.authority,t.path,t.query,t.fragment)},e.prototype.toString=function(t){return t===void 0&&(t=!1),Zt(this,t)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var r=new it(t);return r._formatted=t.external,r._fsPath=t._sep===Kr?t.fsPath:null,r}else return t},e}(),Kr=ye.c?1:void 0,it=function(e){oa(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=rn(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(r){return r===void 0&&(r=!1),r?Zt(this,!0):(this._formatted||(this._formatted=Zt(this,!1)),this._formatted)},t.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=Kr),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},t}(Qt),en=(he={},he[58]="%3A",he[47]="%2F",he[63]="%3F",he[35]="%23",he[91]="%5B",he[93]="%5D",he[64]="%40",he[33]="%21",he[36]="%24",he[38]="%26",he[39]="%27",he[40]="%28",he[41]="%29",he[42]="%2A",he[43]="%2B",he[44]="%2C",he[59]="%3B",he[61]="%3D",he[32]="%20",he);function tn(e,t){for(var r=void 0,n=-1,i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47)n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));var s=en[a];s!==void 0?(n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=s):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(e.substring(n))),r!==void 0?r:e}function pa(e){for(var t=void 0,r=0;r<e.length;r++){var n=e.charCodeAt(r);n===35||n===63?(t===void 0&&(t=e.substr(0,r)),t+=en[n]):t!==void 0&&(t+=e[r])}return t!==void 0?t:e}function rn(e){var t;return e.authority&&e.path.length>1&&e.scheme==="file"?t="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t=e.path[1].toLowerCase()+e.path.substr(2):t=e.path,ye.c&&(t=t.replace(/\//g,"\\")),t}function Zt(e,t){var r=t?pa:tn,n="",i=e.scheme,a=e.authority,s=e.path,l=e.query,f=e.fragment;if(i&&(n+=i,n+=":"),(a||i==="file")&&(n+=Fe,n+=Fe),a){var o=a.indexOf("@");if(o!==-1){var u=a.substr(0,o);a=a.substr(o+1),o=u.indexOf(":"),o===-1?n+=r(u,!1):(n+=r(u.substr(0,o),!1),n+=":",n+=r(u.substr(o+1),!1)),n+="@"}a=a.toLowerCase(),o=a.indexOf(":"),o===-1?n+=r(a,!1):(n+=r(a.substr(0,o),!1),n+=a.substr(o))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var c=s.charCodeAt(1);c>=65&&c<=90&&(s="/"+String.fromCharCode(c+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var c=s.charCodeAt(0);c>=65&&c<=90&&(s=String.fromCharCode(c+32)+":"+s.substr(2))}n+=r(s,!0)}return l&&(n+="?",n+=r(l,!1)),f&&(n+="#",n+=t?f:tn(f,!1)),n}function nn(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+nn(e.substr(3)):e}}var an=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Tt(e){return e.match(an)?e.replace(an,function(t){return nn(t)}):e}var at=function(){function e(t,r){this.lineNumber=t,this.column=r}return e.prototype.with=function(t,r){return t===void 0&&(t=this.lineNumber),r===void 0&&(r=this.column),t===this.lineNumber&&r===this.column?this:new e(t,r)},e.prototype.delta=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=0),this.with(this.lineNumber+t,this.column+r)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<r.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<=r.column},e.compare=function(t,r){var n=t.lineNumber|0,i=r.lineNumber|0;if(n===i){var a=t.column|0,s=r.column|0;return a-s}return n-i},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"},e}(),st=function(){function e(t,r,n,i){t>n||t===n&&r>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<t.startColumn||r.lineNumber===t.endLineNumber&&r.column>t.endColumn)},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>t.endColumn)},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,r){var n,i,a,s;return r.startLineNumber<t.startLineNumber?(n=r.startLineNumber,i=r.startColumn):r.startLineNumber===t.startLineNumber?(n=r.startLineNumber,i=Math.min(r.startColumn,t.startColumn)):(n=t.startLineNumber,i=t.startColumn),r.endLineNumber>t.endLineNumber?(a=r.endLineNumber,s=r.endColumn):r.endLineNumber===t.endLineNumber?(a=r.endLineNumber,s=Math.max(r.endColumn,t.endColumn)):(a=t.endLineNumber,s=t.endColumn),new e(n,i,a,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,r){var n=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,s=t.endColumn,l=r.startLineNumber,f=r.startColumn,o=r.endLineNumber,u=r.endColumn;return n<l?(n=l,i=f):n===l&&(i=Math.max(i,f)),a>o?(a=o,s=u):a===o&&(s=Math.min(s,u)),n>a||n===a&&i>s?null:new e(n,i,a,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(t,r){return!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn},e.prototype.getEndPosition=function(){return new at(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new at(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,r){return new e(this.startLineNumber,this.startColumn,t,r)},e.prototype.setStartPosition=function(t,r){return new e(t,r,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,r){return r===void 0&&(r=t),new e(t.lineNumber,t.column,r.lineNumber,r.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"},e.areIntersectingOrTouching=function(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<t.startColumn)},e.areIntersecting=function(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<=r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<=t.startColumn)},e.compareRangesUsingStarts=function(t,r){if(t&&r){var n=t.startLineNumber|0,i=r.startLineNumber|0;if(n===i){var a=t.startColumn|0,s=r.startColumn|0;if(a===s){var l=t.endLineNumber|0,f=r.endLineNumber|0;if(l===f){var o=t.endColumn|0,u=r.endColumn|0;return o-u}return l-f}return a-s}return n-i}var c=t?1:0,v=r?1:0;return c-v},e.compareRangesUsingEnds=function(t,r){return t.endLineNumber===r.endLineNumber?t.endColumn===r.endColumn?t.startLineNumber===r.startLineNumber?t.startColumn-r.startColumn:t.startLineNumber-r.startLineNumber:t.endColumn-r.endColumn:t.endLineNumber-r.endLineNumber},e.spansMultipleLines=function(t){return t.endLineNumber>t.startLineNumber},e}();function Oo(e){return!e||typeof e!="string"?!0:e.trim().length===0}function jo(e,t,r){r===void 0&&(r="0");for(var n=""+e,i=[n],a=n.length;a<t;a++)i.push(r);return i.reverse().join("")}var ga=/{(\d+)}/g;function Do(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.length===0?e:e.replace(ga,function(n,i){var a=parseInt(i,10);return isNaN(a)||a<0||a>=t.length?n:t[a]})}function Ro(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return t}})}function da(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Uo(e,t){t===void 0&&(t=" ");var r=ya(e,t);return ba(r,t)}function ya(e,t){if(!e||!t)return e;var r=t.length;if(r===0||e.length===0)return e;for(var n=0;e.indexOf(t,n)===n;)n=n+r;return e.substring(n)}function ba(e,t){if(!e||!t)return e;var r=t.length,n=e.length;if(r===0||n===0)return e;for(var i=n,a=-1;a=e.lastIndexOf(t,i-1),!(a===-1||a+r!==i);){if(a===0)return"";i=a}return e.substring(0,i)}function Wo(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Vo(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}function qo(e,t){var r=e.length-t.length;return r>0?e.indexOf(t,r)===r:r===0?e===t:!1}function Bo(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("Cannot create regex from empty string");t||(e=da(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));var n="";return r.global&&(n+="g"),r.matchCase||(n+="i"),r.multiline&&(n+="m"),r.unicode&&(n+="u"),new RegExp(e,n)}function $o(e){if(e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$")return!1;var t=e.exec("");return!!(t&&e.lastIndex===0)}function Ho(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function _a(e){for(var t=0,r=e.length;t<r;t++){var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Yo(e,t,r){t===void 0&&(t=0),r===void 0&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(i!==32&&i!==9)return e.substring(t,n)}return e.substring(t,r)}function Sa(e,t){t===void 0&&(t=e.length-1);for(var r=t;r>=0;r--){var n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function wa(e,t){return e<t?-1:e>t?1:0}function zo(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){var i=e.charCodeAt(n),a=t.charCodeAt(n);if(i!==a){Kt(i)&&(i+=32),Kt(a)&&(a+=32);var s=i-a;if(s!==0)return Xt(i)&&Xt(a)?s:wa(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function Xt(e){return e>=97&&e<=122}function Kt(e){return e>=65&&e<=90}function sn(e){return Xt(e)||Kt(e)}function Go(e,t){return e.length===t.length&&on(e,t)}function on(e,t,r){r===void 0&&(r=e.length);for(var n=0;n<r;n++){var i=e.charCodeAt(n),a=t.charCodeAt(n);if(i!==a){if(sn(i)&&sn(a)){var s=Math.abs(i-a);if(s!==0&&s!==32)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(a).toLowerCase())return!1}}return!0}function Jo(e,t){var r=t.length;return t.length>e.length?!1:on(e,t,r)}function Qo(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Zo(e,t){var r,n=Math.min(e.length,t.length),i=e.length-1,a=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(a-r))return r;return n}function un(e){return 55296<=e&&e<=56319}function fn(e){return 56320<=e&&e<=57343}function ln(e,t,r){var n=e.charCodeAt(r);if(un(n)&&r+1<t){var i=e.charCodeAt(r+1);if(fn(i))return(n-55296<<10)+(i-56320)+65536}return n}function cn(e,t){var r=e.charCodeAt(t-1);if(fn(r)&&t>1){var n=e.charCodeAt(t-2);if(un(n))return(n-55296<<10)+(r-56320)+65536}return r}function Xo(e,t){var r=er.getInstance(),n=t,i=e.length,a=ln(e,i,t);t+=a>=65536?2:1;for(var s=r.getGraphemeBreakType(a);t<i;){var l=ln(e,i,t),f=r.getGraphemeBreakType(l);if(hn(s,f))break;t+=l>=65536?2:1,s=f}return t-n}function Ko(e,t){var r=er.getInstance(),n=t,i=cn(e,t);t-=i>=65536?2:1;for(var a=r.getGraphemeBreakType(i);t>0;){var s=cn(e,t),l=r.getGraphemeBreakType(s);if(hn(l,a))break;t-=s>=65536?2:1,a=l}return n-t}var Na=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function eu(e){return Na.test(e)}var Aa=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function tu(e){return Aa.test(e)}var La=/^[\t\n\r\x20-\x7E]*$/;function ru(e){return La.test(e)}function nu(e){for(var t=0,r=e.length;t<r;t++)if(Ea(e.charCodeAt(t)))return!0;return!1}function Ea(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function iu(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685}var au=String.fromCharCode(65279);function su(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function ou(e){return btoa(encodeURIComponent(e))}function uu(e,t){for(var r="",n=0;n<t;n++)r+=e;return r}function fu(e,t){return t===void 0&&(t=!1),e?(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function lu(e){var t=90-65+1;return e=e%(2*t),e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function cu(e){var t=er.getInstance();return t.getGraphemeBreakType(e)}function hn(e,t){return e===0?t!==5&&t!==7:e===2&&t===3?!1:e===4||e===2||e===3||t===4||t===2||t===3?!0:!(e===8&&(t===8||t===9||t===11||t===12)||(e===11||e===9)&&(t===9||t===10)||(e===12||e===10)&&t===10||t===5||t===13||t===7||e===1||e===13&&t===14||e===6&&t===6)}var er=function(){function e(){this._data=Pa()}return e.getInstance=function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE},e.prototype.getGraphemeBreakType=function(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;for(var r=this._data,n=r.length/3,i=1;i<=n;)if(t<r[3*i])i=2*i;else if(t>r[3*i+1])i=2*i+1;else return r[3*i+2];return 0},e._INSTANCE=null,e}();function Pa(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}var ka=3;function vn(e,t,r,n){var i=new Xr(e,t,r);return i.ComputeDiff(n)}var mn=function(){function e(t){for(var r=[],n=[],i=0,a=t.length;i<a;i++)r[i]=nr(t[i],1),n[i]=ir(t[i],1);this.lines=t,this._startColumns=r,this._endColumns=n}return e.prototype.getElements=function(){for(var t=[],r=0,n=this.lines.length;r<n;r++)t[r]=this.lines[r].substring(this._startColumns[r]-1,this._endColumns[r]-1);return t},e.prototype.getStartLineNumber=function(t){return t+1},e.prototype.getEndLineNumber=function(t){return t+1},e.prototype.createCharSequence=function(t,r,n){for(var i=[],a=[],s=[],l=0,f=r;f<=n;f++)for(var o=this.lines[f],u=t?this._startColumns[f]:1,c=t?this._endColumns[f]:o.length+1,v=u;v<c;v++)i[l]=o.charCodeAt(v-1),a[l]=f+1,s[l]=v,l++;return new Ta(i,a,s)},e}(),Ta=function(){function e(t,r,n){this._charCodes=t,this._lineNumbers=r,this._columns=n}return e.prototype.getElements=function(){return this._charCodes},e.prototype.getStartLineNumber=function(t){return this._lineNumbers[t]},e.prototype.getStartColumn=function(t){return this._columns[t]},e.prototype.getEndLineNumber=function(t){return this._lineNumbers[t]},e.prototype.getEndColumn=function(t){return this._columns[t]+1},e}(),tr=function(){function e(t,r,n,i,a,s,l,f){this.originalStartLineNumber=t,this.originalStartColumn=r,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=a,this.modifiedStartColumn=s,this.modifiedEndLineNumber=l,this.modifiedEndColumn=f}return e.createFromDiffChange=function(t,r,n){var i,a,s,l,f,o,u,c;return t.originalLength===0?(i=0,a=0,s=0,l=0):(i=r.getStartLineNumber(t.originalStart),a=r.getStartColumn(t.originalStart),s=r.getEndLineNumber(t.originalStart+t.originalLength-1),l=r.getEndColumn(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(f=0,o=0,u=0,c=0):(f=n.getStartLineNumber(t.modifiedStart),o=n.getStartColumn(t.modifiedStart),u=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),c=n.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(i,a,s,l,f,o,u,c)},e}();function xa(e){if(e.length<=1)return e;for(var t=[e[0]],r=t[0],n=1,i=e.length;n<i;n++){var a=e[n],s=a.originalStart-(r.originalStart+r.originalLength),l=a.modifiedStart-(r.modifiedStart+r.modifiedLength),f=Math.min(s,l);f<ka?(r.originalLength=a.originalStart+a.originalLength-r.originalStart,r.modifiedLength=a.modifiedStart+a.modifiedLength-r.modifiedStart):(t.push(a),r=a)}return t}var rr=function(){function e(t,r,n,i,a){this.originalStartLineNumber=t,this.originalEndLineNumber=r,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=a}return e.createFromDiffResult=function(t,r,n,i,a,s,l){var f,o,u,c,v=void 0;if(r.originalLength===0?(f=n.getStartLineNumber(r.originalStart)-1,o=0):(f=n.getStartLineNumber(r.originalStart),o=n.getEndLineNumber(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(u=i.getStartLineNumber(r.modifiedStart)-1,c=0):(u=i.getStartLineNumber(r.modifiedStart),c=i.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),s&&r.originalLength>0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&a()){var m=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),p=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1),g=vn(m,p,a,!0).changes;l&&(g=xa(g)),v=[];for(var N=0,S=g.length;N<S;N++)v.push(tr.createFromDiffChange(g[N],m,p))}return new e(f,o,u,c,v)},e}(),Ca=function(){function e(t,r,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=r,this.original=new mn(t),this.modified=new mn(r),this.continueLineDiff=pn(n.maxComputationTime),this.continueCharDiff=pn(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}return e.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var t=vn(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),r=t.changes,n=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],a=0,s=r.length;a<s;a++)i.push(rr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,r[a],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var l=[],f=0,o=0,a=-1,u=r.length;a<u;a++){for(var c=a+1<u?r[a+1]:null,v=c?c.originalStart:this.originalLines.length,m=c?c.modifiedStart:this.modifiedLines.length;f<v&&o<m;){var p=this.originalLines[f],g=this.modifiedLines[o];if(p!==g){{for(var N=nr(p,1),S=nr(g,1);N>1&&S>1;){var b=p.charCodeAt(N-2),h=g.charCodeAt(S-2);if(b!==h)break;N--,S--}(N>1||S>1)&&this._pushTrimWhitespaceCharChange(l,f+1,1,N,o+1,1,S)}{for(var _=ir(p,1),d=ir(g,1),w=p.length+1,A=g.length+1;_<w&&d<A;){var b=p.charCodeAt(_-1),h=p.charCodeAt(d-1);if(b!==h)break;_++,d++}(_<w||d<A)&&this._pushTrimWhitespaceCharChange(l,f+1,_,w,o+1,d,A)}}f++,o++}c&&(l.push(rr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),f+=c.originalLength,o+=c.modifiedLength)}return{quitEarly:n,changes:l}},e.prototype._pushTrimWhitespaceCharChange=function(t,r,n,i,a,s,l){if(!this._mergeTrimWhitespaceCharChange(t,r,n,i,a,s,l)){var f=void 0;this.shouldComputeCharChanges&&(f=[new tr(r,n,r,i,a,s,a,l)]),t.push(new rr(r,r,a,a,f))}},e.prototype._mergeTrimWhitespaceCharChange=function(t,r,n,i,a,s,l){var f=t.length;if(f===0)return!1;var o=t[f-1];return o.originalEndLineNumber===0||o.modifiedEndLineNumber===0?!1:o.originalEndLineNumber+1===r&&o.modifiedEndLineNumber+1===a?(o.originalEndLineNumber=r,o.modifiedEndLineNumber=a,this.shouldComputeCharChanges&&o.charChanges&&o.charChanges.push(new tr(r,n,r,i,a,s,a,l)),!0):!1},e}();function nr(e,t){var r=_a(e);return r===-1?t:r+1}function ir(e,t){var r=Sa(e);return r===-1?t:r+2}function pn(e){if(e===0)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}function gn(e){return e<0?0:e>255?255:e|0}function ot(e){return e<0?0:e>4294967295?4294967295:e|0}var Ma=function(){function e(t,r){this.index=t,this.remainder=r}return e}(),Fa=function(){function e(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.insertValues=function(t,r){t=ot(t);var n=this.values,i=this.prefixSum,a=r.length;return a===0?!1:(this.values=new Uint32Array(n.length+a),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+a),this.values.set(r,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(t,r){return t=ot(t),r=ot(r),this.values[t]===r?!1:(this.values[t]=r,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)},e.prototype.removeValues=function(t,r){t=ot(t),r=ot(r);var n=this.values,i=this.prefixSum;if(t>=n.length)return!1;var a=n.length-t;return r>=a&&(r=a),r===0?!1:(this.values=new Uint32Array(n.length-r),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(t){return t<0?0:(t=ot(t),this._getAccumulatedValue(t))},e.prototype._getAccumulatedValue=function(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];var r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(var n=r;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]},e.prototype.getIndexOf=function(t){t=Math.floor(t),this.getTotalValue();for(var r=0,n=this.values.length-1,i=0,a=0,s=0;r<=n;)if(i=r+(n-r)/2|0,a=this.prefixSum[i],s=a-this.values[i],t<s)n=i-1;else if(t>=a)r=i+1;else break;return new Ma(i,t-s)},e}(),Ia=function(){function e(t,r,n,i){this._uri=t,this._lines=r,this._eol=n,this._versionId=i,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);for(var r=t.changes,n=0,i=r;n<i.length;n++){var a=i[n];this._acceptDeleteRange(a.range),this._acceptInsertText(new at(a.range.startLineNumber,a.range.startColumn),a.text)}this._versionId=t.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var t=this._eol.length,r=this._lines.length,n=new Uint32Array(r),i=0;i<r;i++)n[i]=this._lines[i].length+t;this._lineStarts=new Fa(n)}},e.prototype._setLineText=function(t,r){this._lines[t]=r,this._lineStarts&&this._lineStarts.changeValue(t,this._lines[t].length+this._eol.length)},e.prototype._acceptDeleteRange=function(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)},e.prototype._acceptInsertText=function(t,r){if(r.length!==0){var n=r.split(/\r\n|\r|\n/);if(n.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}n[n.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),a=1;a<n.length;a++)this._lines.splice(t.lineNumber+a-1,0,n[a]),i[a-1]=n[a].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}},e}(),Oa="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function ja(e){e===void 0&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",r=0,n=Oa;r<n.length;r++){var i=n[r];e.indexOf(i)>=0||(t+="\\"+i)}return t+="\\s]+)",new RegExp(t,"g")}var Da=ja();function Ra(e){var t=Da;if(e&&e instanceof RegExp)if(e.global)t=e;else{var r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}function Ua(e,t,r,n){var i=e-1-n,a=r.lastIndexOf(" ",i-1)+1;t.lastIndex=a;for(var s;s=t.exec(r);){var l=s.index||0;if(l<=i&&t.lastIndex>=i)return{word:s[0],startColumn:n+1+l,endColumn:n+1+t.lastIndex}}return null}function Wa(e,t,r,n){var i=e-1-n;t.lastIndex=0;for(var a;a=t.exec(r);){var s=a.index||0;if(s>i)return null;if(t.lastIndex>=i)return{word:a[0],startColumn:n+1+s,endColumn:n+1+t.lastIndex}}return null}function Va(e,t,r,n){t.lastIndex=0;var i=t.exec(r);if(!i)return null;var a=i[0].indexOf(" ")>=0?Wa(e,t,r,n):Ua(e,t,r,n);return t.lastIndex=0,a}var dn=function(){function e(t){var r=gn(t);this._defaultValue=r,this._asciiMap=e._createAsciiMap(r),this._map=new Map}return e._createAsciiMap=function(t){for(var r=new Uint8Array(256),n=0;n<256;n++)r[n]=t;return r},e.prototype.set=function(t,r){var n=gn(r);t>=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)},e.prototype.get=function(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue},e}(),hu=function(){function e(){this._actual=new dn(0)}return e.prototype.add=function(t){this._actual.set(t,1)},e.prototype.has=function(t){return this._actual.get(t)===1},e}(),qa=function(){function e(t,r,n){for(var i=new Uint8Array(t*r),a=0,s=t*r;a<s;a++)i[a]=n;this._data=i,this.rows=t,this.cols=r}return e.prototype.get=function(t,r){return this._data[t*this.cols+r]},e.prototype.set=function(t,r,n){this._data[t*this.cols+r]=n},e}(),Ba=function(){function e(t){for(var r=0,n=0,i=0,a=t.length;i<a;i++){var s=t[i],l=s[0],f=s[1],o=s[2];f>r&&(r=f),l>n&&(n=l),o>n&&(n=o)}r++,n++;for(var u=new qa(n,r,0),i=0,a=t.length;i<a;i++){var c=t[i],l=c[0],f=c[1],o=c[2];u.set(l,f,o)}this._states=u,this._maxCharCode=r}return e.prototype.nextState=function(t,r){return r<0||r>=this._maxCharCode?0:this._states.get(t,r)},e}(),ar=null;function $a(){return ar===null&&(ar=new Ba([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ar}var bt=null;function Ha(){if(bt===null){bt=new dn(0);for(var e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,t=0;t<e.length;t++)bt.set(e.charCodeAt(t),1);for(var r=".,;",t=0;t<r.length;t++)bt.set(r.charCodeAt(t),2)}return bt}var Ya=function(){function e(){}return e._createLink=function(t,r,n,i,a){var s=a-1;do{var l=r.charCodeAt(s),f=t.get(l);if(f!==2)break;s--}while(s>i);if(i>0){var o=r.charCodeAt(i-1),u=r.charCodeAt(s);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:r.substring(i,s+1)}},e.computeLinks=function(t,r){r===void 0&&(r=$a());for(var n=Ha(),i=[],a=1,s=t.getLineCount();a<=s;a++){for(var l=t.getLineContent(a),f=l.length,o=0,u=0,c=0,v=1,m=!1,p=!1,g=!1;o<f;){var N=!1,S=l.charCodeAt(o);if(v===13){var b=void 0;switch(S){case 40:m=!0,b=0;break;case 41:b=m?0:1;break;case 91:p=!0,b=0;break;case 93:b=p?0:1;break;case 123:g=!0,b=0;break;case 125:b=g?0:1;break;case 39:b=c===34||c===96?0:1;break;case 34:b=c===39||c===96?0:1;break;case 96:b=c===39||c===34?0:1;break;case 42:b=c===42?1:0;break;case 124:b=c===124?1:0;break;default:b=n.get(S)}b===1&&(i.push(e._createLink(n,l,a,u,o)),N=!0)}else if(v===12){var b=void 0;S===91?(p=!0,b=0):b=n.get(S),b===1?N=!0:v=13}else v=r.nextState(v,S),v===0&&(N=!0);N&&(v=1,m=!1,p=!1,g=!1,u=o+1,c=S),o++}v===13&&i.push(e._createLink(n,l,a,u,f))}return i},e}();function za(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Ya.computeLinks(e)}var Ga=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(t,r,n,i,a){if(t&&r){var s=this.doNavigateValueSet(r,a);if(s)return{range:t,value:s}}if(n&&i){var s=this.doNavigateValueSet(i,a);if(s)return{range:n,value:s}}return null},e.prototype.doNavigateValueSet=function(t,r){var n=this.numberReplace(t,r);return n!==null?n:this.textReplace(t,r)},e.prototype.numberReplace=function(t,r){var n=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),a=parseFloat(t);return!isNaN(i)&&!isNaN(a)&&i===a?i===0&&!r?null:(i=Math.floor(i*n),i+=r?n:-n,String(i/n)):null},e.prototype.textReplace=function(t,r){return this.valueSetsReplace(this._defaultValueSet,t,r)},e.prototype.valueSetsReplace=function(t,r,n){for(var i=null,a=0,s=t.length;i===null&&a<s;a++)i=this.valueSetReplace(t[a],r,n);return i},e.prototype.valueSetReplace=function(t,r,n){var i=t.indexOf(r);return i>=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null},e.INSTANCE=new e,e}(),vu=X("URDS");function Ja(e){var t=this,r=!1,n;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var ve=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),sr=function(){function e(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===ve.Undefined},e.prototype.clear=function(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0},e.prototype.unshift=function(t){return this._insert(t,!1)},e.prototype.push=function(t){return this._insert(t,!0)},e.prototype._insert=function(t,r){var n=this,i=new ve(t);if(this._first===ve.Undefined)this._first=i,this._last=i;else if(r){var a=this._last;this._last=i,i.prev=a,a.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;var l=!1;return function(){l||(l=!0,n._remove(i))}},e.prototype.shift=function(){if(this._first!==ve.Undefined){var t=this._first.element;return this._remove(this._first),t}},e.prototype.pop=function(){if(this._last!==ve.Undefined){var t=this._last.element;return this._remove(this._last),t}},e.prototype._remove=function(t){if(t.prev!==ve.Undefined&&t.next!==ve.Undefined){var r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===ve.Undefined&&t.next===ve.Undefined?(this._first=ve.Undefined,this._last=ve.Undefined):t.next===ve.Undefined?(this._last=this._last.prev,this._last.next=ve.Undefined):t.prev===ve.Undefined&&(this._first=this._first.next,this._first.prev=ve.Undefined);this._size-=1},e.prototype.iterator=function(){var t,r=this._first;return{next:function(){return r===ve.Undefined?qe:(t?t.value=r.element:t={done:!1,value:r.element},r=r.next,t)}}},e.prototype.toArray=function(){for(var t=[],r=this._first;r!==ve.Undefined;r=r.next)t.push(r.element);return t},e}(),Qa=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xt;(function(e){e.None=function(){return Pe.None};function t(h){return function(_,d,w){d===void 0&&(d=null);var A=!1,L;return L=h(function(E){if(!A)return L?L.dispose():A=!0,_.call(d,E)},null,w),A&&L.dispose(),L}}e.once=t;function r(h,_){return f(function(d,w,A){return w===void 0&&(w=null),h(function(L){return d.call(w,_(L))},null,A)})}e.map=r;function n(h,_){return f(function(d,w,A){return w===void 0&&(w=null),h(function(L){_(L),d.call(w,L)},null,A)})}e.forEach=n;function i(h,_){return f(function(d,w,A){return w===void 0&&(w=null),h(function(L){return _(L)&&d.call(w,L)},null,A)})}e.filter=i;function a(h){return h}e.signal=a;function s(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];return function(d,w,A){return w===void 0&&(w=null),re.apply(void 0,h.map(function(L){return L(function(E){return d.call(w,E)},null,A)}))}}e.any=s;function l(h,_,d){var w=d;return r(h,function(A){return w=_(w,A),w})}e.reduce=l;function f(h){var _,d=new Ie({onFirstListenerAdd:function(){_=h(d.fire,d)},onLastListenerRemove:function(){_.dispose()}});return d.event}e.snapshot=f;function o(h,_,d,w,A){d===void 0&&(d=100),w===void 0&&(w=!1);var L,E=void 0,x=void 0,y=0,M=new Ie({leakWarningThreshold:A,onFirstListenerAdd:function(){L=h(function(z){y++,E=_(E,z),w&&!x&&(M.fire(E),E=void 0),clearTimeout(x),x=setTimeout(function(){var ue=E;E=void 0,x=void 0,(!w||y>1)&&M.fire(ue),y=0},d)})},onLastListenerRemove:function(){L.dispose()}});return M.event}e.debounce=o;function u(h){var _=new Date().getTime();return r(t(h),function(d){return new Date().getTime()-_})}e.stopwatch=u;function c(h){var _=!0,d;return i(h,function(w){var A=_||w!==d;return _=!1,d=w,A})}e.latch=c;function v(h,_,d){_===void 0&&(_=!1),d===void 0&&(d=[]);var w=d.slice(),A=h(function(x){w?w.push(x):E.fire(x)}),L=function(){w&&w.forEach(function(y){return E.fire(y)}),w=null},E=new Ie({onFirstListenerAdd:function(){A||(A=h(function(y){return E.fire(y)}))},onFirstListenerDidAdd:function(){w&&(_?setTimeout(L):L())},onLastListenerRemove:function(){A&&A.dispose(),A=null}});return E.event}e.buffer=v;var m=function(){function h(_){this.event=_}return h.prototype.map=function(_){return new h(r(this.event,_))},h.prototype.forEach=function(_){return new h(n(this.event,_))},h.prototype.filter=function(_){return new h(i(this.event,_))},h.prototype.reduce=function(_,d){return new h(l(this.event,_,d))},h.prototype.latch=function(){return new h(c(this.event))},h.prototype.debounce=function(_,d,w,A){return d===void 0&&(d=100),w===void 0&&(w=!1),new h(o(this.event,_,d,w,A))},h.prototype.on=function(_,d,w){return this.event(_,d,w)},h.prototype.once=function(_,d,w){return t(this.event)(_,d,w)},h}();function p(h){return new m(h)}e.chain=p;function g(h,_,d){d===void 0&&(d=function(y){return y});var w=function(){for(var y=[],M=0;M<arguments.length;M++)y[M]=arguments[M];return E.fire(d.apply(void 0,y))},A=function(){return h.on(_,w)},L=function(){return h.removeListener(_,w)},E=new Ie({onFirstListenerAdd:A,onLastListenerRemove:L});return E.event}e.fromNodeEventEmitter=g;function N(h,_,d){d===void 0&&(d=function(y){return y});var w=function(){for(var y=[],M=0;M<arguments.length;M++)y[M]=arguments[M];return E.fire(d.apply(void 0,y))},A=function(){return h.addEventListener(_,w)},L=function(){return h.removeEventListener(_,w)},E=new Ie({onFirstListenerAdd:A,onLastListenerRemove:L});return E.event}e.fromDOMEventEmitter=N;function S(h){var _=new Ie,d=!1;return h.then(void 0,function(){return null}).then(function(){d?_.fire(void 0):setTimeout(function(){return _.fire(void 0)},0)}),d=!0,_.event}e.fromPromise=S;function b(h){return new Promise(function(_){return t(h)(_)})}e.toPromise=b})(xt||(xt={}));var yn=-1,Za=function(){function e(t,r){r===void 0&&(r=Math.random().toString(18).slice(2,5)),this.customThreshold=t,this.name=r,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(t){var r=this,n=yn;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),!(n<=0||t<n)){this._stacks||(this._stacks=new Map);var i=new Error().stack.split(`
`).slice(3).join(`
`),a=this._stacks.get(i)||0;if(this._stacks.set(i,a+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;var s,l=0;this._stacks.forEach(function(f,o){(!s||l<f)&&(s=o,l=f)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+t+" listeners already. MOST frequent listener ("+l+"):"),console.warn(s)}return function(){var f=r._stacks.get(i)||0;r._stacks.set(i,f-1)}}},e}(),Ie=function(){function e(t){this._disposed=!1,this._options=t,this._leakageMon=yn>0?new Za(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var r=this;return this._event||(this._event=function(n,i,a){r._listeners||(r._listeners=new sr);var s=r._listeners.isEmpty();s&&r._options&&r._options.onFirstListenerAdd&&r._options.onFirstListenerAdd(r);var l=r._listeners.push(i?[n,i]:n);s&&r._options&&r._options.onFirstListenerDidAdd&&r._options.onFirstListenerDidAdd(r),r._options&&r._options.onListenerDidAdd&&r._options.onListenerDidAdd(r,n,i);var f;r._leakageMon&&(f=r._leakageMon.check(r._listeners.size));var o;return o={dispose:function(){if(f&&f(),o.dispose=e._noop,!r._disposed&&(l(),r._options&&r._options.onLastListenerRemove)){var c=r._listeners&&!r._listeners.isEmpty();c||r._options.onLastListenerRemove(r)}}},a instanceof ge?a.add(o):Array.isArray(a)&&a.push(o),o}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(t){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new sr);for(var r=this._listeners.iterator(),n=r.next();!n.done;n=r.next())this._deliveryQueue.push([n.value,t]);for(;this._deliveryQueue.size>0;){var i=this._deliveryQueue.shift(),a=i[0],s=i[1];try{typeof a=="function"?a.call(void 0,s):a[0].call(a[1],s)}catch(l){V(l)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),mu=function(e){Qa(t,e);function t(r){var n=e.call(this,r)||this;return n._isPaused=0,n._eventQueue=new sr,n._mergeFn=r&&r.merge,n}return t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){var r=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(r))}else for(;!this._isPaused&&this._eventQueue.size!==0;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(r){this._listeners&&(this._isPaused!==0?this._eventQueue.push(r):e.prototype.fire.call(this,r))},t}(Ie),pu=function(){function e(){var t=this;this.hasListeners=!1,this.events=[],this.emitter=new Ie({onFirstListenerAdd:function(){return t.onFirstListenerAdd()},onLastListenerRemove:function(){return t.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(t){var r=this,n={event:t,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){r.hasListeners&&r.unhook(n);var s=r.events.indexOf(n);r.events.splice(s,1)};return Z(Ja(i))},e.prototype.onFirstListenerAdd=function(){var t=this;this.hasListeners=!0,this.events.forEach(function(r){return t.hook(r)})},e.prototype.onLastListenerRemove=function(){var t=this;this.hasListeners=!1,this.events.forEach(function(r){return t.unhook(r)})},e.prototype.hook=function(t){var r=this;t.listener=t.event(function(n){return r.emitter.fire(n)})},e.prototype.unhook=function(t){t.listener&&t.listener.dispose(),t.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}(),gu=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(t){var r=this;return function(n,i,a){return t(function(s){var l=r.buffers[r.buffers.length-1];l?l.push(function(){return n.call(i,s)}):n.call(i,s)},void 0,a)}},e.prototype.bufferEvents=function(t){var r=[];this.buffers.push(r);var n=t();return this.buffers.pop(),r.forEach(function(i){return i()}),n},e}(),du=function(){function e(){var t=this;this.listening=!1,this.inputEvent=xt.None,this.inputEventListener=Pe.None,this.emitter=new Ie({onFirstListenerDidAdd:function(){t.listening=!0,t.inputEventListener=t.inputEvent(t.emitter.fire,t.emitter)},onLastListenerRemove:function(){t.listening=!1,t.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}(),bn=Object.freeze(function(e,t){var r=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(r)}}}),Ct;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Mt?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:bn})})(Ct||(Ct={}));var Mt=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?bn:(this._emitter||(this._emitter=new Ie),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),Xa=function(){function e(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Mt),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Mt&&this._token.cancel():this._token=Ct.Cancelled},e.prototype.dispose=function(t){t===void 0&&(t=!1),t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Mt&&this._token.dispose():this._token=Ct.None},e}(),or=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t},e.prototype.keyCodeToStr=function(t){return this._keyCodeToStr[t]},e.prototype.strToKeyCode=function(t){return this._strToKeyCode[t.toLowerCase()]||0},e}(),ur=new or,fr=new or,lr=new or;(function(){function e(t,r,n,i){n===void 0&&(n=r),i===void 0&&(i=n),ur.define(t,r),fr.define(t,n),lr.define(t,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})();var _n;(function(e){function t(s){return ur.keyCodeToStr(s)}e.toString=t;function r(s){return ur.strToKeyCode(s)}e.fromString=r;function n(s){return fr.keyCodeToStr(s)}e.toUserSettingsUS=n;function i(s){return lr.keyCodeToStr(s)}e.toUserSettingsGeneral=i;function a(s){return fr.strToKeyCode(s)||lr.strToKeyCode(s)}e.fromUserSettings=a})(_n||(_n={}));function Ka(e,t){var r=(t&65535)<<16>>>0;return(e|r)>>>0}function yu(e,t){if(e===0)return null;var r=(e&65535)>>>0,n=(e&4294901760)>>>16;return n!==0?new hr([cr(r,t),cr(n,t)]):new hr([cr(r,t)])}function cr(e,t){var r=!!(e&2048),n=!!(e&256),i=t===2?n:r,a=!!(e&1024),s=!!(e&512),l=t===2?r:n,f=e&255;return new es(i,a,s,l,f)}var es=function(){function e(t,r,n,i,a){this.ctrlKey=t,this.shiftKey=r,this.altKey=n,this.metaKey=i,this.keyCode=a}return e.prototype.equals=function(t){return this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode},e.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},e.prototype.toChord=function(){return new hr([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},e}(),hr=function(){function e(t){if(t.length===0)throw B("parts");this.parts=t}return e.prototype.equals=function(t){if(t===null||this.parts.length!==t.parts.length)return!1;for(var r=0;r<this.parts.length;r++)if(!this.parts[r].equals(t.parts[r]))return!1;return!0},e}(),bu=function(){function e(t,r,n,i,a,s){this.ctrlKey=t,this.shiftKey=r,this.altKey=n,this.metaKey=i,this.keyLabel=a,this.keyAriaLabel=s}return e}(),_u=function(){function e(){}return e}(),ts=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),rs=function(e){ts(t,e);function t(r,n,i,a){var s=e.call(this,r,n,i,a)||this;return s.selectionStartLineNumber=r,s.selectionStartColumn=n,s.positionLineNumber=i,s.positionColumn=a,s}return t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(r){return t.selectionsEqual(this,r)},t.selectionsEqual=function(r,n){return r.selectionStartLineNumber===n.selectionStartLineNumber&&r.selectionStartColumn===n.selectionStartColumn&&r.positionLineNumber===n.positionLineNumber&&r.positionColumn===n.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(r,n){return this.getDirection()===0?new t(this.startLineNumber,this.startColumn,r,n):new t(r,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new at(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(r,n){return this.getDirection()===0?new t(r,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,r,n)},t.fromPositions=function(r,n){return n===void 0&&(n=r),new t(r.lineNumber,r.column,n.lineNumber,n.column)},t.liftSelection=function(r){return new t(r.selectionStartLineNumber,r.selectionStartColumn,r.positionLineNumber,r.positionColumn)},t.selectionsArrEqual=function(r,n){if(r&&!n||!r&&n)return!1;if(!r&&!n)return!0;if(r.length!==n.length)return!1;for(var i=0,a=r.length;i<a;i++)if(!this.selectionsEqual(r[i],n[i]))return!1;return!0},t.isISelection=function(r){return r&&typeof r.selectionStartLineNumber=="number"&&typeof r.selectionStartColumn=="number"&&typeof r.positionLineNumber=="number"&&typeof r.positionColumn=="number"},t.createWithDirection=function(r,n,i,a,s){return s===0?new t(r,n,i,a):new t(i,a,r,n)},t}(st),ns=function(){function e(t,r,n){this.offset=t|0,this.type=r,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),Su=function(){function e(t,r){this.tokens=t,this.endState=r}return e}(),wu=function(){function e(t,r){this.tokens=t,this.endState=r}return e}(),Sn;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Sn||(Sn={}));var wn;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(wn||(wn={}));var Nn;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet"})(Nn||(Nn={}));var An;(function(e){e[e.Deprecated=1]="Deprecated"})(An||(An={}));var Ln;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ln||(Ln={}));var En;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(En||(En={}));var Pn;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Pn||(Pn={}));var kn;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(kn||(kn={}));var Tn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Tn||(Tn={}));var xn;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(xn||(xn={}));var Cn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingOvertype=6]="autoClosingOvertype",e[e.autoClosingQuotes=7]="autoClosingQuotes",e[e.autoIndent=8]="autoIndent",e[e.automaticLayout=9]="automaticLayout",e[e.autoSurround=10]="autoSurround",e[e.codeLens=11]="codeLens",e[e.colorDecorators=12]="colorDecorators",e[e.comments=13]="comments",e[e.contextmenu=14]="contextmenu",e[e.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",e[e.cursorBlinking=16]="cursorBlinking",e[e.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",e[e.cursorStyle=18]="cursorStyle",e[e.cursorSurroundingLines=19]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",e[e.cursorWidth=21]="cursorWidth",e[e.disableLayerHinting=22]="disableLayerHinting",e[e.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",e[e.dragAndDrop=24]="dragAndDrop",e[e.emptySelectionClipboard=25]="emptySelectionClipboard",e[e.extraEditorClassName=26]="extraEditorClassName",e[e.fastScrollSensitivity=27]="fastScrollSensitivity",e[e.find=28]="find",e[e.fixedOverflowWidgets=29]="fixedOverflowWidgets",e[e.folding=30]="folding",e[e.foldingStrategy=31]="foldingStrategy",e[e.foldingHighlight=32]="foldingHighlight",e[e.fontFamily=33]="fontFamily",e[e.fontInfo=34]="fontInfo",e[e.fontLigatures=35]="fontLigatures",e[e.fontSize=36]="fontSize",e[e.fontWeight=37]="fontWeight",e[e.formatOnPaste=38]="formatOnPaste",e[e.formatOnType=39]="formatOnType",e[e.glyphMargin=40]="glyphMargin",e[e.gotoLocation=41]="gotoLocation",e[e.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",e[e.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",e[e.hover=44]="hover",e[e.inDiffEditor=45]="inDiffEditor",e[e.letterSpacing=46]="letterSpacing",e[e.lightbulb=47]="lightbulb",e[e.lineDecorationsWidth=48]="lineDecorationsWidth",e[e.lineHeight=49]="lineHeight",e[e.lineNumbers=50]="lineNumbers",e[e.lineNumbersMinChars=51]="lineNumbersMinChars",e[e.links=52]="links",e[e.matchBrackets=53]="matchBrackets",e[e.minimap=54]="minimap",e[e.mouseStyle=55]="mouseStyle",e[e.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=57]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",e[e.multiCursorModifier=59]="multiCursorModifier",e[e.multiCursorPaste=60]="multiCursorPaste",e[e.occurrencesHighlight=61]="occurrencesHighlight",e[e.overviewRulerBorder=62]="overviewRulerBorder",e[e.overviewRulerLanes=63]="overviewRulerLanes",e[e.parameterHints=64]="parameterHints",e[e.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",e[e.quickSuggestions=66]="quickSuggestions",e[e.quickSuggestionsDelay=67]="quickSuggestionsDelay",e[e.readOnly=68]="readOnly",e[e.renderControlCharacters=69]="renderControlCharacters",e[e.renderIndentGuides=70]="renderIndentGuides",e[e.renderFinalNewline=71]="renderFinalNewline",e[e.renderLineHighlight=72]="renderLineHighlight",e[e.renderValidationDecorations=73]="renderValidationDecorations",e[e.renderWhitespace=74]="renderWhitespace",e[e.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",e[e.roundedSelection=76]="roundedSelection",e[e.rulers=77]="rulers",e[e.scrollbar=78]="scrollbar",e[e.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=80]="scrollBeyondLastLine",e[e.selectionClipboard=81]="selectionClipboard",e[e.selectionHighlight=82]="selectionHighlight",e[e.selectOnLineNumbers=83]="selectOnLineNumbers",e[e.showFoldingControls=84]="showFoldingControls",e[e.showUnused=85]="showUnused",e[e.snippetSuggestions=86]="snippetSuggestions",e[e.smoothScrolling=87]="smoothScrolling",e[e.stopRenderingLineAfter=88]="stopRenderingLineAfter",e[e.suggest=89]="suggest",e[e.suggestFontSize=90]="suggestFontSize",e[e.suggestLineHeight=91]="suggestLineHeight",e[e.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",e[e.suggestSelection=93]="suggestSelection",e[e.tabCompletion=94]="tabCompletion",e[e.useTabStops=95]="useTabStops",e[e.wordSeparators=96]="wordSeparators",e[e.wordWrap=97]="wordWrap",e[e.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=100]="wordWrapColumn",e[e.wordWrapMinified=101]="wordWrapMinified",e[e.wrappingIndent=102]="wrappingIndent",e[e.wrappingStrategy=103]="wrappingStrategy",e[e.editorClassName=104]="editorClassName",e[e.pixelRatio=105]="pixelRatio",e[e.tabFocusMode=106]="tabFocusMode",e[e.layoutInfo=107]="layoutInfo",e[e.wrappingInfo=108]="wrappingInfo"})(Cn||(Cn={}));var Mn;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Mn||(Mn={}));var Fn;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Fn||(Fn={}));var In;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(In||(In={}));var vr;(function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"})(vr||(vr={}));var mr;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(mr||(mr={}));var pr;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(pr||(pr={}));var On;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(On||(On={}));var jn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(jn||(jn={}));var Dn;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Dn||(Dn={}));var Rn;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Rn||(Rn={}));var Un;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Un||(Un={}));var Wn;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Wn||(Wn={}));var Vn;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Vn||(Vn={}));var qn;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(qn||(qn={}));var gr;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(gr||(gr={}));var Bn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Bn||(Bn={}));var $n;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})($n||($n={}));var Hn;(function(e){e[e.Deprecated=1]="Deprecated"})(Hn||(Hn={}));var Yn;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Yn||(Yn={}));var zn;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(zn||(zn={}));var Gn;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Gn||(Gn={}));var Jn;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Jn||(Jn={}));var is=function(){function e(){}return e.chord=function(t,r){return Ka(t,r)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function as(){return{editor:void 0,languages:void 0,CancellationTokenSource:Xa,Emitter:Ie,KeyCode:vr,KeyMod:is,Position:at,Range:st,Selection:rs,SelectionDirection:gr,MarkerSeverity:mr,MarkerTag:pr,Uri:Qt,Token:ns}}var ss=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ut=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{o(n.next(u))}catch(c){s(c)}}function f(u){try{o(n.throw(u))}catch(c){s(c)}}function o(u){u.done?a(u.value):i(u.value).then(l,f)}o((n=n.apply(e,t||[])).next())})},ft=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(o){return function(u){return f([o,u])}}function f(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(u){o=[6,u],i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},os=function(e){ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(r){return this._lines[r-1]},t.prototype.getWordAtPosition=function(r,n){var i=Va(r.column,Ra(n),this._lines[r.lineNumber-1],0);return i?new st(r.lineNumber,i.startColumn,r.lineNumber,i.endColumn):null},t.prototype.createWordIterator=function(r){var n=this,i,a=0,s,l=0,f=[],o=function u(){if(l<f.length){var c=s.substring(f[l].start,f[l].end);return l+=1,i?i.value=c:i={done:!1,value:c},i}else return a>=n._lines.length?qe:(s=n._lines[a],f=n._wordenize(s,r),l=0,a+=1,u())};return{next:o}},t.prototype.getLineWords=function(r,n){for(var i=this._lines[r-1],a=this._wordenize(i,n),s=[],l=0,f=a;l<f.length;l++){var o=f[l];s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1})}return s},t.prototype._wordenize=function(r,n){var i=[],a;for(n.lastIndex=0;(a=n.exec(r))&&a[0].length!==0;)i.push({start:a.index,end:a.index+a[0].length});return i},t.prototype.getValueInRange=function(r){if(r=this._validateRange(r),r.startLineNumber===r.endLineNumber)return this._lines[r.startLineNumber-1].substring(r.startColumn-1,r.endColumn-1);var n=this._eol,i=r.startLineNumber-1,a=r.endLineNumber-1,s=[];s.push(this._lines[i].substring(r.startColumn-1));for(var l=i+1;l<a;l++)s.push(this._lines[l]);return s.push(this._lines[a].substring(0,r.endColumn-1)),s.join(n)},t.prototype.offsetAt=function(r){return r=this._validatePosition(r),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(r.lineNumber-2)+(r.column-1)},t.prototype.positionAt=function(r){r=Math.floor(r),r=Math.max(0,r),this._ensureLineStarts();var n=this._lineStarts.getIndexOf(r),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}},t.prototype._validateRange=function(r){var n=this._validatePosition({lineNumber:r.startLineNumber,column:r.startColumn}),i=this._validatePosition({lineNumber:r.endLineNumber,column:r.endColumn});return n.lineNumber!==r.startLineNumber||n.column!==r.startColumn||i.lineNumber!==r.endLineNumber||i.column!==r.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:r},t.prototype._validatePosition=function(r){if(!at.isIPosition(r))throw new Error("bad position");var n=r.lineNumber,i=r.column,a=!1;if(n<1)n=1,i=1,a=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,a=!0;else{var s=this._lines[n-1].length+1;i<1?(i=1,a=!0):i>s&&(i=s,a=!0)}return a?{lineNumber:n,column:i}:r},t}(Ia),Qn=function(){function e(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(t){return this._models[t]},e.prototype._getModels=function(){var t=this,r=[];return Object.keys(this._models).forEach(function(n){return r.push(t._models[n])}),r},e.prototype.acceptNewModel=function(t){this._models[t.url]=new os(Qt.parse(t.url),t.lines,t.EOL,t.versionId)},e.prototype.acceptModelChanged=function(t,r){if(!!this._models[t]){var n=this._models[t];n.onEvents(r)}},e.prototype.acceptRemovedModel=function(t){!this._models[t]||delete this._models[t]},e.prototype.computeDiff=function(t,r,n,i){return ut(this,void 0,void 0,function(){var a,s,l,f,o,u,c;return ft(this,function(v){return a=this._getModel(t),s=this._getModel(r),!a||!s?[2,null]:(l=a.getLinesContent(),f=s.getLinesContent(),o=new Ca(l,f,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),u=o.computeDiff(),c=u.changes.length>0?!1:this._modelsAreIdentical(a,s),[2,{quitEarly:u.quitEarly,identical:c,changes:u.changes}])})})},e.prototype._modelsAreIdentical=function(t,r){var n=t.getLineCount(),i=r.getLineCount();if(n!==i)return!1;for(var a=1;a<=n;a++){var s=t.getLineContent(a),l=r.getLineContent(a);if(s!==l)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,r){return ut(this,void 0,void 0,function(){var n,i,a,s,l,f,o,u,c,v,m,p,g,N,S,b,h,_;return ft(this,function(d){if(n=this._getModel(t),!n)return[2,r];for(i=[],a=void 0,r=Gr(r,function(w,A){if(w.range&&A.range)return st.compareRangesUsingStarts(w.range,A.range);var L=w.range?0:1,E=A.range?0:1;return L-E}),s=0,l=r;s<l.length;s++)if(f=l[s],o=f.range,u=f.text,c=f.eol,typeof c=="number"&&(a=c),!(st.isEmpty(o)&&!u)&&(v=n.getValueInRange(o),u=u.replace(/\r\n|\n|\r/g,n.eol),v!==u)){if(Math.max(u.length,v.length)>e._diffLimit){i.push({range:o,text:u});continue}for(m=na(v,u,!1),p=n.offsetAt(st.lift(o).getStartPosition()),g=0,N=m;g<N.length;g++)S=N[g],b=n.positionAt(p+S.originalStart),h=n.positionAt(p+S.originalStart+S.originalLength),_={text:u.substr(S.modifiedStart,S.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:h.lineNumber,endColumn:h.column}},n.getValueInRange(_.range)!==_.text&&i.push(_)}return typeof a=="number"&&i.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,i]})})},e.prototype.computeLinks=function(t){return ut(this,void 0,void 0,function(){var r;return ft(this,function(n){return r=this._getModel(t),r?[2,za(r)]:[2,null]})})},e.prototype.textualSuggest=function(t,r,n,i){return ut(this,void 0,void 0,function(){var a,s,l,f,o,u,c,v;return ft(this,function(m){if(a=this._getModel(t),!a)return[2,null];for(s=[],l=new Set,f=new RegExp(n,i),o=a.getWordAtPosition(r,f),o&&l.add(a.getValueInRange(o)),u=a.createWordIterator(f),c=u.next();!c.done&&l.size<=e._suggestionsLimit;c=u.next())v=c.value,!l.has(v)&&(l.add(v),!!isNaN(Number(v))&&s.push(v));return[2,s]})})},e.prototype.computeWordRanges=function(t,r,n,i){return ut(this,void 0,void 0,function(){var a,s,l,f,o,u,c,v,m;return ft(this,function(p){if(a=this._getModel(t),!a)return[2,Object.create(null)];for(s=new RegExp(n,i),l=Object.create(null),f=r.startLineNumber;f<r.endLineNumber;f++)for(o=a.getLineWords(f,s),u=0,c=o;u<c.length;u++)v=c[u],!!isNaN(Number(v.word))&&(m=l[v.word],m||(m=[],l[v.word]=m),m.push({startLineNumber:f,startColumn:v.startColumn,endLineNumber:f,endColumn:v.endColumn}));return[2,l]})})},e.prototype.navigateValueSet=function(t,r,n,i,a){return ut(this,void 0,void 0,function(){var s,l,f,o,u,c;return ft(this,function(v){return s=this._getModel(t),s?(l=new RegExp(i,a),r.startColumn===r.endColumn&&(r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.endColumn+1}),f=s.getValueInRange(r),o=s.getWordAtPosition({lineNumber:r.startLineNumber,column:r.startColumn},l),o?(u=s.getValueInRange(o),c=Ga.INSTANCE.navigateValueSet(r,f,o,u,n),[2,c]):[2,null]):[2,null]})})},e.prototype.loadForeignModule=function(t,r,n){var i=this,a=function(o,u){return i._host.fhr(o,u)},s=Me(n,a),l={host:s,getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(l,r),Promise.resolve(We(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(n){return Promise.reject(n)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();function Nu(e){return new Qn(e,null)}typeof importScripts=="function"&&(ye.a.monaco=as());var dr=!1;function Zn(e){if(!dr){dr=!0;var t=new zr(function(r){self.postMessage(r)},function(r){return new Qn(r,e)});self.onmessage=function(r){t.onmessage(r.data)}}}self.onmessage=function(e){dr||Zn(null)};function Ft(e,t){t===void 0&&(t=!1);var r=e.length,n=0,i="",a=0,s=16,l=0,f=0,o=0,u=0,c=0;function v(h,_){for(var d=0,w=0;d<h||!_;){var A=e.charCodeAt(n);if(A>=48&&A<=57)w=w*16+A-48;else if(A>=65&&A<=70)w=w*16+A-65+10;else if(A>=97&&A<=102)w=w*16+A-97+10;else break;n++,d++}return d<h&&(w=-1),w}function m(h){n=h,i="",a=0,s=16,c=0}function p(){var h=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&lt(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&lt(e.charCodeAt(n)))for(n++;n<e.length&&lt(e.charCodeAt(n));)n++;else return c=3,e.substring(h,n);var _=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&lt(e.charCodeAt(n))){for(n++;n<e.length&&lt(e.charCodeAt(n));)n++;_=n}else c=3;return e.substring(h,_)}function g(){for(var h="",_=n;;){if(n>=r){h+=e.substring(_,n),c=2;break}var d=e.charCodeAt(n);if(d===34){h+=e.substring(_,n),n++;break}if(d===92){if(h+=e.substring(_,n),n++,n>=r){c=2;break}var w=e.charCodeAt(n++);switch(w){case 34:h+='"';break;case 92:h+="\\";break;case 47:h+="/";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=`
`;break;case 114:h+="\r";break;case 116:h+=" ";break;case 117:var A=v(4,!0);A>=0?h+=String.fromCharCode(A):c=4;break;default:c=5}_=n;continue}if(d>=0&&d<=31)if(_t(d)){h+=e.substring(_,n),c=2;break}else c=6;n++}return h}function N(){if(i="",c=0,a=n,f=l,u=o,n>=r)return a=r,s=17;var h=e.charCodeAt(n);if(yr(h)){do n++,i+=String.fromCharCode(h),h=e.charCodeAt(n);while(yr(h));return s=15}if(_t(h))return n++,i+=String.fromCharCode(h),h===13&&e.charCodeAt(n)===10&&(n++,i+=`
`),l++,o=n,s=14;switch(h){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,i=g(),s=10;case 47:var _=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!_t(e.charCodeAt(n));)n++;return i=e.substring(_,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;for(var d=r-1,w=!1;n<d;){var A=e.charCodeAt(n);if(A===42&&e.charCodeAt(n+1)===47){n+=2,w=!0;break}n++,_t(A)&&(A===13&&e.charCodeAt(n)===10&&n++,l++,o=n)}return w||(n++,c=1),i=e.substring(_,n),s=13}return i+=String.fromCharCode(h),n++,s=16;case 45:if(i+=String.fromCharCode(h),n++,n===r||!lt(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=p(),s=11;default:for(;n<r&&S(h);)n++,h=e.charCodeAt(n);if(a!==n){switch(i=e.substring(a,n),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(h),n++,s=16}}function S(h){if(yr(h)||_t(h))return!1;switch(h){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function b(){var h;do h=N();while(h>=12&&h<=15);return h}return{setPosition:m,getPosition:function(){return n},scan:t?b:N,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return a},getTokenLength:function(){return n-a},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return a-u},getTokenError:function(){return c}}}function yr(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 _t(e){return e===10||e===13||e===8232||e===8233}function lt(e){return e>=48&&e<=57}function Xn(e,t,r){var n,i,a,s,l;if(t){for(s=t.offset,l=s+t.length,a=s;a>0&&!It(e,a-1);)a--;for(var f=l;f<e.length&&!It(e,f);)f++;i=e.substring(a,f),n=us(i,r)}else i=e,n=0,a=0,s=0,l=e.length;var o=fs(r,e),u=!1,c=0,v;r.insertSpaces?v=br(" ",r.tabSize||4):v=" ";var m=Ft(i,!1),p=!1;function g(){return o+br(v,n+c)}function N(){var y=m.scan();for(u=!1;y===15||y===14;)u=u||y===14,y=m.scan();return p=y===16||m.getTokenError()!==0,y}var S=[];function b(y,M,W){!p&&M<l&&W>s&&e.substring(M,W)!==y&&S.push({offset:M,length:W-M,content:y})}var h=N();if(h!==17){var _=m.getTokenOffset()+a,d=br(v,n);b(d,a,_)}for(;h!==17;){for(var w=m.getTokenOffset()+m.getTokenLength()+a,A=N(),L="";!u&&(A===12||A===13);){var E=m.getTokenOffset()+a;b(" ",w,E),w=m.getTokenOffset()+m.getTokenLength()+a,L=A===12?g():"",A=N()}if(A===2)h!==1&&(c--,L=g());else if(A===4)h!==3&&(c--,L=g());else{switch(h){case 3:case 1:c++,L=g();break;case 5:case 12:L=g();break;case 13:u?L=g():L=" ";break;case 6:L=" ";break;case 10:if(A===6){L="";break}case 7:case 8:case 9:case 11:case 2:case 4:A===12||A===13?L=" ":A!==5&&A!==17&&(p=!0);break;case 16:p=!0;break}u&&(A===12||A===13)&&(L=g())}var x=m.getTokenOffset()+a;b(L,w,x),h=A}return S}function br(e,t){for(var r="",n=0;n<t;n++)r+=e;return r}function us(e,t){for(var r=0,n=0,i=t.tabSize||4;r<e.length;){var a=e.charAt(r);if(a===" ")n++;else if(a===" ")n+=i;else break;r++}return Math.floor(n/i)}function fs(e,t){for(var r=0;r<t.length;r++){var n=t.charAt(r);if(n==="\r")return r+1<t.length&&t.charAt(r+1)===`
`?`\r
`:"\r";if(n===`
`)return`
`}return e&&e.eol||`
`}function It(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var St;(function(e){e.DEFAULT={allowTrailingComma:!1}})(St||(St={}));function ls(e,t){var r=[],n=new Object,i=void 0,a={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function l(f,o,u,c){a.value=f,a.offset=o,a.length=u,a.type=c,a.colonOffset=void 0,i=a}try{Ot(e,{onObjectBegin:function(o,u){if(t<=o)throw n;i=void 0,s=t>o,r.push("")},onObjectProperty:function(o,u,c){if(t<u||(l(o,u,c,"property"),r[r.length-1]=o,t<=u+c))throw n},onObjectEnd:function(o,u){if(t<=o)throw n;i=void 0,r.pop()},onArrayBegin:function(o,u){if(t<=o)throw n;i=void 0,r.push(0)},onArrayEnd:function(o,u){if(t<=o)throw n;i=void 0,r.pop()},onLiteralValue:function(o,u,c){if(t<u||(l(o,u,c,ri(o)),t<=u+c))throw n},onSeparator:function(o,u,c){if(t<=u)throw n;if(o===":"&&i&&i.type==="property")i.colonOffset=u,s=!1,i=void 0;else if(o===","){var v=r[r.length-1];typeof v=="number"?r[r.length-1]=v+1:(s=!0,r[r.length-1]=""),i=void 0}}})}catch(f){if(f!==n)throw f}return{path:r,previousNode:i,isAtPropertyKey:s,matches:function(o){for(var u=0,c=0;u<o.length&&c<r.length;c++)if(o[u]===r[c]||o[u]==="*")u++;else if(o[u]!=="**")return!1;return u===o.length}}}function cs(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=St.DEFAULT);var n=null,i=[],a=[];function s(f){Array.isArray(i)?i.push(f):n!==null&&(i[n]=f)}var l={onObjectBegin:function(){var o={};s(o),a.push(i),i=o,n=null},onObjectProperty:function(o){n=o},onObjectEnd:function(){i=a.pop()},onArrayBegin:function(){var o=[];s(o),a.push(i),i=o,n=null},onArrayEnd:function(){i=a.pop()},onLiteralValue:s,onError:function(o,u,c){t.push({error:o,offset:u,length:c})}};return Ot(e,l,r),i[0]}function Kn(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=St.DEFAULT);var n={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(f){n.type==="property"&&(n.length=f-n.offset,n=n.parent)}function a(f){return n.children.push(f),f}var s={onObjectBegin:function(o){n=a({type:"object",offset:o,length:-1,parent:n,children:[]})},onObjectProperty:function(o,u,c){n=a({type:"property",offset:u,length:-1,parent:n,children:[]}),n.children.push({type:"string",value:o,offset:u,length:c,parent:n})},onObjectEnd:function(o,u){n.length=o+u-n.offset,n=n.parent,i(o+u)},onArrayBegin:function(o,u){n=a({type:"array",offset:o,length:-1,parent:n,children:[]})},onArrayEnd:function(o,u){n.length=o+u-n.offset,n=n.parent,i(o+u)},onLiteralValue:function(o,u,c){a({type:ri(o),offset:u,length:c,parent:n,value:o}),i(u+c)},onSeparator:function(o,u,c){n.type==="property"&&(o===":"?n.colonOffset=u:o===","&&i(u))},onError:function(o,u,c){t.push({error:o,offset:u,length:c})}};Ot(e,s,r);var l=n.children[0];return l&&delete l.parent,l}function _r(e,t){if(!!e){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];if(typeof a=="string"){if(r.type!=="object"||!Array.isArray(r.children))return;for(var s=!1,l=0,f=r.children;l<f.length;l++){var o=f[l];if(Array.isArray(o.children)&&o.children[0].value===a){r=o.children[1],s=!0;break}}if(!s)return}else{var u=a;if(r.type!=="array"||u<0||!Array.isArray(r.children)||u>=r.children.length)return;r=r.children[u]}}return r}}function ei(e){if(!e.parent||!e.parent.children)return[];var t=ei(e.parent);if(e.parent.type==="property"){var r=e.parent.children[0].value;t.push(r)}else if(e.parent.type==="array"){var n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function Sr(e){switch(e.type){case"array":return e.children.map(Sr);case"object":for(var t=Object.create(null),r=0,n=e.children;r<n.length;r++){var i=n[r],a=i.children[1];a&&(t[i.children[0].value]=Sr(a))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function hs(e,t,r){return r===void 0&&(r=!1),t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}function ti(e,t,r){if(r===void 0&&(r=!1),hs(e,t,r)){var n=e.children;if(Array.isArray(n))for(var i=0;i<n.length&&n[i].offset<=t;i++){var a=ti(n[i],t,r);if(a)return a}return e}}function Ot(e,t,r){r===void 0&&(r=St.DEFAULT);var n=Ft(e,!1);function i(E){return E?function(){return E(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}function a(E){return E?function(x){return E(x,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),l=a(t.onObjectProperty),f=i(t.onObjectEnd),o=i(t.onArrayBegin),u=i(t.onArrayEnd),c=a(t.onLiteralValue),v=a(t.onSeparator),m=i(t.onComment),p=a(t.onError),g=r&&r.disallowComments,N=r&&r.allowTrailingComma;function S(){for(;;){var E=n.scan();switch(n.getTokenError()){case 4:b(14);break;case 5:b(15);break;case 3:b(13);break;case 1:g||b(11);break;case 2:b(12);break;case 6:b(16);break}switch(E){case 12:case 13:g?b(10):m();break;case 16:b(1);break;case 15:case 14:break;default:return E}}}function b(E,x,y){if(x===void 0&&(x=[]),y===void 0&&(y=[]),p(E),x.length+y.length>0)for(var M=n.getToken();M!==17;){if(x.indexOf(M)!==-1){S();break}else if(y.indexOf(M)!==-1)break;M=S()}}function h(E){var x=n.getTokenValue();return E?c(x):l(x),S(),!0}function _(){switch(n.getToken()){case 11:var E=0;try{E=JSON.parse(n.getTokenValue()),typeof E!="number"&&(b(2),E=0)}catch(x){b(2)}c(E);break;case 7:c(null);break;case 8:c(!0);break;case 9:c(!1);break;default:return!1}return S(),!0}function d(){return n.getToken()!==10?(b(3,[],[2,5]),!1):(h(!1),n.getToken()===6?(v(":"),S(),L()||b(4,[],[2,5])):b(5,[],[2,5]),!0)}function w(){s(),S();for(var E=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(E||b(4,[],[]),v(","),S(),n.getToken()===2&&N)break}else E&&b(6,[],[]);d()||b(4,[],[2,5]),E=!0}return f(),n.getToken()!==2?b(7,[2],[]):S(),!0}function A(){o(),S();for(var E=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(E||b(4,[],[]),v(","),S(),n.getToken()===4&&N)break}else E&&b(6,[],[]);L()||b(4,[],[4,5]),E=!0}return u(),n.getToken()!==4?b(8,[4],[]):S(),!0}function L(){switch(n.getToken()){case 3:return A();case 1:return w();case 10:return h(!0);default:return _()}}return S(),n.getToken()===17?r.allowEmptyContent?!0:(b(4,[],[]),!1):L()?(n.getToken()!==17&&b(9,[],[]),!0):(b(4,[],[]),!1)}function vs(e,t){var r=Ft(e),n=[],i,a=0,s;do switch(s=r.getPosition(),i=r.scan(),i){case 12:case 13:case 17:a!==s&&n.push(e.substring(a,s)),t!==void 0&&n.push(r.getTokenValue().replace(/[^\r\n]/g,t)),a=r.getPosition();break}while(i!==17);return n.join("")}function ri(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function Au(e,t,r){return ni(e,t,void 0,r)}function ni(e,t,r,n,i){for(var a,s=t.slice(),l=[],f=Kn(e,l),o=void 0,u=void 0;s.length>0&&(u=s.pop(),o=_r(f,s),o===void 0&&r!==void 0);)typeof u=="string"?r=(a={},a[u]=r,a):r=[r];if(o)if(o.type==="object"&&typeof u=="string"&&Array.isArray(o.children)){var c=_r(o,[u]);if(c!==void 0)if(r===void 0){if(!c.parent)throw new Error("Malformed AST");var v=o.children.indexOf(c.parent),m=void 0,p=c.parent.offset+c.parent.length;if(v>0){var g=o.children[v-1];m=g.offset+g.length}else if(m=o.offset+1,o.children.length>1){var N=o.children[1];p=N.offset}return ct(e,{offset:m,length:p-m,content:""},n)}else return ct(e,{offset:c.offset,length:c.length,content:JSON.stringify(r)},n);else{if(r===void 0)return[];var S=JSON.stringify(u)+": "+JSON.stringify(r),b=i?i(o.children.map(function(E){return E.children[0].value})):o.children.length,h=void 0;if(b>0){var g=o.children[b-1];h={offset:g.offset+g.length,length:0,content:","+S}}else o.children.length===0?h={offset:o.offset+1,length:0,content:S}:h={offset:o.offset+1,length:0,content:S+","};return ct(e,h,n)}}else if(o.type==="array"&&typeof u=="number"&&Array.isArray(o.children)){var _=u;if(_===-1){var S=""+JSON.stringify(r),h=void 0;if(o.children.length===0)h={offset:o.offset+1,length:0,content:S};else{var g=o.children[o.children.length-1];h={offset:g.offset+g.length,length:0,content:","+S}}return ct(e,h,n)}else if(r===void 0&&o.children.length>=0){var d=u,w=o.children[d],h=void 0;if(o.children.length===1)h={offset:o.offset+1,length:o.length-2,content:""};else if(o.children.length-1===d){var g=o.children[d-1],A=g.offset+g.length,L=o.offset+o.length;h={offset:A,length:L-2-A,content:""}}else h={offset:w.offset,length:o.children[d+1].offset-w.offset,content:""};return ct(e,h,n)}else throw new Error("Array modification not supported yet")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+o.type);else{if(r===void 0)throw new Error("Can not delete in empty document");return ct(e,{offset:f?f.offset:0,length:f?f.length:0,content:JSON.stringify(r)},n)}}function ct(e,t,r){var n=wr(e,t),i=t.offset,a=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!It(n,i-1);)i--;for(;a<n.length&&!It(n,a);)a++}for(var s=Xn(n,{offset:i,length:a-i},r),l=s.length-1;l>=0;l--){var f=s[l];n=wr(n,f),i=Math.min(i,f.offset),a=Math.max(a,f.offset+f.length),a+=f.content.length-f.length}var o=e.length-(n.length-a)-i;return[{offset:i,length:o,content:n.substring(i,a)}]}function wr(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function Lu(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var ht=Ft,Eu=ls,ms=cs,Pu=Kn,ku=_r,ps=ti,gs=ei,ds=Sr,Tu=Ot,xu=vs;function Cu(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ys(e,t,r){return Xn(e,t,r)}function Mu(e,t,r,n){return ni(e,t,r,n.formattingOptions,n.getInsertionIndex)}function Fu(e,t){for(var r=t.length-1;r>=0;r--)e=wr(e,t[r]);return e}function wt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!wt(e[r],t[r]))return!1}else{var i=[];for(n in e)i.push(n);i.sort();var a=[];for(n in t)a.push(n);if(a.sort(),!wt(i,a))return!1;for(r=0;r<i.length;r++)if(!wt(e[i[r]],t[i[r]]))return!1}return!0}function Le(e){return typeof e=="number"}function Be(e){return typeof e!="undefined"}function De(e){return typeof e=="boolean"}function bs(e){return typeof e=="string"}var Oe;(function(e){function t(n,i){return{line:n,character:i}}e.create=t;function r(n){var i=n;return P.objectLiteral(i)&&P.number(i.line)&&P.number(i.character)}e.is=r})(Oe||(Oe={}));var oe;(function(e){function t(n,i,a,s){if(P.number(n)&&P.number(i)&&P.number(a)&&P.number(s))return{start:Oe.create(n,i),end:Oe.create(a,s)};if(Oe.is(n)&&Oe.is(i))return{start:n,end:i};throw new Error("Range#create called with invalid arguments["+n+", "+i+", "+a+", "+s+"]")}e.create=t;function r(n){var i=n;return P.objectLiteral(i)&&Oe.is(i.start)&&Oe.is(i.end)}e.is=r})(oe||(oe={}));var Nt;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){var i=n;return P.defined(i)&&oe.is(i.range)&&(P.string(i.uri)||P.undefined(i.uri))}e.is=r})(Nt||(Nt={}));var ii;(function(e){function t(n,i,a,s){return{targetUri:n,targetRange:i,targetSelectionRange:a,originSelectionRange:s}}e.create=t;function r(n){var i=n;return P.defined(i)&&oe.is(i.targetRange)&&P.string(i.targetUri)&&(oe.is(i.targetSelectionRange)||P.undefined(i.targetSelectionRange))&&(oe.is(i.originSelectionRange)||P.undefined(i.originSelectionRange))}e.is=r})(ii||(ii={}));var Nr;(function(e){function t(n,i,a,s){return{red:n,green:i,blue:a,alpha:s}}e.create=t;function r(n){var i=n;return P.number(i.red)&&P.number(i.green)&&P.number(i.blue)&&P.number(i.alpha)}e.is=r})(Nr||(Nr={}));var ai;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){var i=n;return oe.is(i.range)&&Nr.is(i.color)}e.is=r})(ai||(ai={}));var si;(function(e){function t(n,i,a){return{label:n,textEdit:i,additionalTextEdits:a}}e.create=t;function r(n){var i=n;return P.string(i.label)&&(P.undefined(i.textEdit)||Re.is(i))&&(P.undefined(i.additionalTextEdits)||P.typedArray(i.additionalTextEdits,Re.is))}e.is=r})(si||(si={}));var At;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(At||(At={}));var oi;(function(e){function t(n,i,a,s,l){var f={startLine:n,endLine:i};return P.defined(a)&&(f.startCharacter=a),P.defined(s)&&(f.endCharacter=s),P.defined(l)&&(f.kind=l),f}e.create=t;function r(n){var i=n;return P.number(i.startLine)&&P.number(i.startLine)&&(P.undefined(i.startCharacter)||P.number(i.startCharacter))&&(P.undefined(i.endCharacter)||P.number(i.endCharacter))&&(P.undefined(i.kind)||P.string(i.kind))}e.is=r})(oi||(oi={}));var Ar;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){var i=n;return P.defined(i)&&Nt.is(i.location)&&P.string(i.message)}e.is=r})(Ar||(Ar={}));var Q;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Q||(Q={}));var ui;(function(e){e.Unnecessary=1,e.Deprecated=2})(ui||(ui={}));var $e;(function(e){function t(n,i,a,s,l,f){var o={range:n,message:i};return P.defined(a)&&(o.severity=a),P.defined(s)&&(o.code=s),P.defined(l)&&(o.source=l),P.defined(f)&&(o.relatedInformation=f),o}e.create=t;function r(n){var i=n;return P.defined(i)&&oe.is(i.range)&&P.string(i.message)&&(P.number(i.severity)||P.undefined(i.severity))&&(P.number(i.code)||P.string(i.code)||P.undefined(i.code))&&(P.string(i.source)||P.undefined(i.source))&&(P.undefined(i.relatedInformation)||P.typedArray(i.relatedInformation,Ar.is))}e.is=r})($e||($e={}));var Lt;(function(e){function t(n,i){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var l={title:n,command:i};return P.defined(a)&&a.length>0&&(l.arguments=a),l}e.create=t;function r(n){var i=n;return P.defined(i)&&P.string(i.title)&&P.string(i.command)}e.is=r})(Lt||(Lt={}));var Re;(function(e){function t(a,s){return{range:a,newText:s}}e.replace=t;function r(a,s){return{range:{start:a,end:a},newText:s}}e.insert=r;function n(a){return{range:a,newText:""}}e.del=n;function i(a){var s=a;return P.objectLiteral(s)&&P.string(s.newText)&&oe.is(s.range)}e.is=i})(Re||(Re={}));var jt;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return P.defined(i)&&Vt.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(jt||(jt={}));var Dt;(function(e){function t(n,i){var a={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),a}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&P.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||P.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||P.boolean(i.options.ignoreIfExists)))}e.is=r})(Dt||(Dt={}));var Rt;(function(e){function t(n,i,a){var s={kind:"rename",oldUri:n,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),s}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&P.string(i.oldUri)&&P.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||P.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||P.boolean(i.options.ignoreIfExists)))}e.is=r})(Rt||(Rt={}));var Ut;(function(e){function t(n,i){var a={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),a}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&P.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||P.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||P.boolean(i.options.ignoreIfNotExists)))}e.is=r})(Ut||(Ut={}));var Lr;(function(e){function t(r){var n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(i){return P.string(i.kind)?Dt.is(i)||Rt.is(i)||Ut.is(i):jt.is(i)}))}e.is=t})(Lr||(Lr={}));var Wt=function(){function e(t){this.edits=t}return e.prototype.insert=function(t,r){this.edits.push(Re.insert(t,r))},e.prototype.replace=function(t,r){this.edits.push(Re.replace(t,r))},e.prototype.delete=function(t){this.edits.push(Re.del(t))},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),Iu=function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t&&(this._workspaceEdit=t,t.documentChanges?t.documentChanges.forEach(function(n){if(jt.is(n)){var i=new Wt(n.edits);r._textEditChanges[n.textDocument.uri]=i}}):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Wt(t.changes[n]);r._textEditChanges[n]=i}))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(t){if(Vt.is(t)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r=t,n=this._textEditChanges[r.uri];if(!n){var i=[],a={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(a),n=new Wt(i),this._textEditChanges[r.uri]=n}return n}else{if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[t];if(!n){var i=[];this._workspaceEdit.changes[t]=i,n=new Wt(i),this._textEditChanges[t]=n}return n}},e.prototype.createFile=function(t,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Dt.create(t,r))},e.prototype.renameFile=function(t,r,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Rt.create(t,r,n))},e.prototype.deleteFile=function(t,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ut.create(t,r))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}(),fi;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return P.defined(i)&&P.string(i.uri)}e.is=r})(fi||(fi={}));var Vt;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return P.defined(i)&&P.string(i.uri)&&(i.version===null||P.number(i.version))}e.is=r})(Vt||(Vt={}));var li;(function(e){function t(n,i,a,s){return{uri:n,languageId:i,version:a,text:s}}e.create=t;function r(n){var i=n;return P.defined(i)&&P.string(i.uri)&&P.string(i.languageId)&&P.number(i.version)&&P.string(i.text)}e.is=r})(li||(li={}));var He;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(He||(He={})),function(e){function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t}(He||(He={}));var Er;(function(e){function t(r){var n=r;return P.objectLiteral(r)&&He.is(n.kind)&&P.string(n.value)}e.is=t})(Er||(Er={}));var Ee;(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})(Ee||(Ee={}));var de;(function(e){e.PlainText=1,e.Snippet=2})(de||(de={}));var ci;(function(e){e.Deprecated=1})(ci||(ci={}));var Pr;(function(e){function t(r){return{label:r}}e.create=t})(Pr||(Pr={}));var hi;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(hi||(hi={}));var qt;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return P.string(i)||P.objectLiteral(i)&&P.string(i.language)&&P.string(i.value)}e.is=r})(qt||(qt={}));var vi;(function(e){function t(r){var n=r;return!!n&&P.objectLiteral(n)&&(Er.is(n.contents)||qt.is(n.contents)||P.typedArray(n.contents,qt.is))&&(r.range===void 0||oe.is(r.range))}e.is=t})(vi||(vi={}));var mi;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(mi||(mi={}));var pi;(function(e){function t(r,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s={label:r};return P.defined(n)&&(s.documentation=n),P.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(pi||(pi={}));var gi;(function(e){e.Text=1,e.Read=2,e.Write=3})(gi||(gi={}));var di;(function(e){function t(r,n){var i={range:r};return P.number(n)&&(i.kind=n),i}e.create=t})(di||(di={}));var Ue;(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})(Ue||(Ue={}));var yi;(function(e){e.Deprecated=1})(yi||(yi={}));var bi;(function(e){function t(r,n,i,a,s){var l={name:r,kind:n,location:{uri:a,range:i}};return s&&(l.containerName=s),l}e.create=t})(bi||(bi={}));var _i;(function(e){function t(n,i,a,s,l,f){var o={name:n,detail:i,kind:a,range:s,selectionRange:l};return f!==void 0&&(o.children=f),o}e.create=t;function r(n){var i=n;return i&&P.string(i.name)&&P.number(i.kind)&&oe.is(i.range)&&oe.is(i.selectionRange)&&(i.detail===void 0||P.string(i.detail))&&(i.deprecated===void 0||P.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))}e.is=r})(_i||(_i={}));var Si;(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"})(Si||(Si={}));var wi;(function(e){function t(n,i){var a={diagnostics:n};return i!=null&&(a.only=i),a}e.create=t;function r(n){var i=n;return P.defined(i)&&P.typedArray(i.diagnostics,$e.is)&&(i.only===void 0||P.typedArray(i.only,P.string))}e.is=r})(wi||(wi={}));var Ni;(function(e){function t(n,i,a){var s={title:n};return Lt.is(i)?s.command=i:s.edit=i,a!==void 0&&(s.kind=a),s}e.create=t;function r(n){var i=n;return i&&P.string(i.title)&&(i.diagnostics===void 0||P.typedArray(i.diagnostics,$e.is))&&(i.kind===void 0||P.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Lt.is(i.command))&&(i.isPreferred===void 0||P.boolean(i.isPreferred))&&(i.edit===void 0||Lr.is(i.edit))}e.is=r})(Ni||(Ni={}));var Ai;(function(e){function t(n,i){var a={range:n};return P.defined(i)&&(a.data=i),a}e.create=t;function r(n){var i=n;return P.defined(i)&&oe.is(i.range)&&(P.undefined(i.command)||Lt.is(i.command))}e.is=r})(Ai||(Ai={}));var Li;(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){var i=n;return P.defined(i)&&P.number(i.tabSize)&&P.boolean(i.insertSpaces)}e.is=r})(Li||(Li={}));var Ei;(function(e){function t(n,i,a){return{range:n,target:i,data:a}}e.create=t;function r(n){var i=n;return P.defined(i)&&oe.is(i.range)&&(P.undefined(i.target)||P.string(i.target))}e.is=r})(Ei||(Ei={}));var Bt;(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){var i=n;return i!==void 0&&oe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(Bt||(Bt={}));var Ou=[`
`,`\r
`,"\r"],Pi;(function(e){function t(a,s,l,f){return new _s(a,s,l,f)}e.create=t;function r(a){var s=a;return!!(P.defined(s)&&P.string(s.uri)&&(P.undefined(s.languageId)||P.string(s.languageId))&&P.number(s.lineCount)&&P.func(s.getText)&&P.func(s.positionAt)&&P.func(s.offsetAt))}e.is=r;function n(a,s){for(var l=a.getText(),f=i(s,function(p,g){var N=p.range.start.line-g.range.start.line;return N===0?p.range.start.character-g.range.start.character:N}),o=l.length,u=f.length-1;u>=0;u--){var c=f[u],v=a.offsetAt(c.range.start),m=a.offsetAt(c.range.end);if(m<=o)l=l.substring(0,v)+c.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");o=v}return l}e.applyEdits=n;function i(a,s){if(a.length<=1)return a;var l=a.length/2|0,f=a.slice(0,l),o=a.slice(l);i(f,s),i(o,s);for(var u=0,c=0,v=0;u<f.length&&c<o.length;){var m=s(f[u],o[c]);m<=0?a[v++]=f[u++]:a[v++]=o[c++]}for(;u<f.length;)a[v++]=f[u++];for(;c<o.length;)a[v++]=o[c++];return a}})(Pi||(Pi={}));var _s=function(){function e(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content},e.prototype.update=function(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],r=this._content,n=!0,i=0;i<r.length;i++){n&&(t.push(i),n=!1);var a=r.charAt(i);n=a==="\r"||a===`
`,a==="\r"&&i+1<r.length&&r.charAt(i+1)===`
`&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Oe.create(0,t);for(;n<i;){var a=Math.floor((n+i)/2);r[a]>t?i=a:n=a+1}var s=n-1;return Oe.create(s,t-r[s])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}(),P;(function(e){var t=Object.prototype.toString;function r(u){return typeof u!="undefined"}e.defined=r;function n(u){return typeof u=="undefined"}e.undefined=n;function i(u){return u===!0||u===!1}e.boolean=i;function a(u){return t.call(u)==="[object String]"}e.string=a;function s(u){return t.call(u)==="[object Number]"}e.number=s;function l(u){return t.call(u)==="[object Function]"}e.func=l;function f(u){return u!==null&&typeof u=="object"}e.objectLiteral=f;function o(u,c){return Array.isArray(u)&&u.every(c)}e.typedArray=o})(P||(P={}));var ki=function(){function e(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content},e.prototype.update=function(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];if(e.isIncremental(a)){var s=xi(a.range),l=this.offsetAt(s.start),f=this.offsetAt(s.end);this._content=this._content.substring(0,l)+a.text+this._content.substring(f,this._content.length);var o=Math.max(s.start.line,0),u=Math.max(s.end.line,0),c=this._lineOffsets,v=Ti(a.text,!1,l);if(u-o===v.length)for(var m=0,p=v.length;m<p;m++)c[m+o+1]=v[m];else v.length<1e4?c.splice.apply(c,[o+1,u-o].concat(v)):this._lineOffsets=c=c.slice(0,o+1).concat(v,c.slice(u+1));var g=a.text.length-(f-l);if(g!==0)for(var m=o+1+v.length,p=c.length;m<p;m++)c[m]=c[m]+g}else if(e.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=r},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ti(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return{line:0,character:t};for(;n<i;){var a=Math.floor((n+i)/2);r[a]>t?i=a:n=a+1}var s=n-1;return{line:s,character:t-r[s]}},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e.isIncremental=function(t){var r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")},e.isFull=function(t){var r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0},e}(),kr;(function(e){function t(i,a,s,l){return new ki(i,a,s,l)}e.create=t;function r(i,a,s){if(i instanceof ki)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,a){for(var s=i.getText(),l=Tr(a.map(Ss),function(m,p){var g=m.range.start.line-p.range.start.line;return g===0?m.range.start.character-p.range.start.character:g}),f=s.length,o=l.length-1;o>=0;o--){var u=l[o],c=i.offsetAt(u.range.start),v=i.offsetAt(u.range.end);if(v<=f)s=s.substring(0,c)+u.newText+s.substring(v,s.length);else throw new Error("Overlapping edit");f=c}return s}e.applyEdits=n})(kr||(kr={}));function Tr(e,t){if(e.length<=1)return e;var r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Tr(n,t),Tr(i,t);for(var a=0,s=0,l=0;a<n.length&&s<i.length;){var f=t(n[a],i[s]);f<=0?e[l++]=n[a++]:e[l++]=i[s++]}for(;a<n.length;)e[l++]=n[a++];for(;s<i.length;)e[l++]=i[s++];return e}function Ti(e,t,r){r===void 0&&(r=0);for(var n=t?[r]:[],i=0;i<e.length;i++){var a=e.charCodeAt(i);(a===13||a===10)&&(a===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}function xi(e){var t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Ss(e){var t=xi(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ne;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(ne||(ne={}));var Ci;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[He.Markdown,He.PlainText],commitCharactersSupport:!0}}}}})(Ci||(Ci={}));function ws(e,t){var r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,function(n,i){var a=i[0];return typeof t[a]!="undefined"?t[a]:n}),r}function Ns(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return ws(t,r)}function vt(e){return Ns}function ju(e){return vt}var Ke=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(r,n)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),D=vt(),As={"color-hex":{errorMessage:D("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:D("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:D("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:D("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:D("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},et=function(){function e(t,r,n){this.offset=r,this.length=n,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),Ls=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="null",i.value=null,i}return t}(et),Mi=function(e){Ke(t,e);function t(r,n,i){var a=e.call(this,r,i)||this;return a.type="boolean",a.value=n,a}return t}(et),Es=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),t}(et),Ps=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(et),Fi=function(e){Ke(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="string",a.value="",a}return t}(et),ks=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="property",i.colonOffset=-1,i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),t}(et),Ts=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),t}(et);function Se(e){return De(e)?e?{}:{not:{}}:e}var Ii;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Ii||(Ii={}));var xs=function(){function e(t,r){t===void 0&&(t=-1),r===void 0&&(r=null),this.focusOffset=t,this.exclude=r,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){var r;(r=this.schemas).push.apply(r,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||Oi(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),xr=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),we=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];this.merge(i)}},e.prototype.merge=function(t){this.problems=this.problems.concat(t.problems)},e.prototype.mergeEnumValues=function(t){if(!this.enumValueMatch&&!t.enumValueMatch&&this.enumValues&&t.enumValues){this.enumValues=this.enumValues.concat(t.enumValues);for(var r=0,n=this.problems;r<n.length;r++){var i=n[r];i.code===ne.EnumValueMismatch&&(i.message=D("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(a){return JSON.stringify(a)}).join(", ")))}}},e.prototype.mergePropertyMatch=function(t){this.merge(t),this.propertiesMatches++,(t.enumValueMatch||!t.hasProblems()&&t.propertiesMatches)&&this.propertiesValueMatches++,t.enumValueMatch&&t.enumValues&&t.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(t){var r=this.hasProblems();return r!==t.hasProblems()?r?-1:1:this.enumValueMatch!==t.enumValueMatch?t.enumValueMatch?-1:1:this.primaryValueMatches!==t.primaryValueMatches?this.primaryValueMatches-t.primaryValueMatches:this.propertiesValueMatches!==t.propertiesValueMatches?this.propertiesValueMatches-t.propertiesValueMatches:this.propertiesMatches-t.propertiesMatches},e}();function Cs(e,t){return t===void 0&&(t=[]),new ji(e,t,[])}function Ge(e){return ds(e)}function Cr(e){return gs(e)}function Oi(e,t,r){return r===void 0&&(r=!1),t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}var ji=function(){function e(t,r,n){r===void 0&&(r=[]),n===void 0&&(n=[]),this.root=t,this.syntaxErrors=r,this.comments=n}return e.prototype.getNodeFromOffset=function(t,r){if(r===void 0&&(r=!1),this.root)return ps(this.root,t,r)},e.prototype.visit=function(t){if(this.root){var r=function n(i){var a=t(i),s=i.children;if(Array.isArray(s))for(var l=0;l<s.length&&a;l++)a=n(s[l]);return a};r(this.root)}},e.prototype.validate=function(t,r){if(this.root&&r){var n=new we;return be(this.root,r,n,xr.instance),n.problems.map(function(i){var a=oe.create(t.positionAt(i.location.offset),t.positionAt(i.location.offset+i.location.length));return $e.create(a,i.message,i.severity,i.code)})}return null},e.prototype.getMatchingSchemas=function(t,r,n){r===void 0&&(r=-1),n===void 0&&(n=null);var i=new xs(r,n);return this.root&&t&&be(this.root,t,new we,i),i.schemas},e}();function be(e,t,r,n){if(!e||!n.include(e))return;switch(e.type){case"object":f(e,t,r,n);break;case"array":l(e,t,r,n);break;case"string":s(e,t,r,n);break;case"number":a(e,t,r,n);break;case"property":return be(e.valueNode,t,r,n)}i(),n.add({node:e,schema:t});function i(){function o(M){return e.type===M||M==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type)?t.type.some(o)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Q.Warning,message:t.errorMessage||D("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(o(t.type)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Q.Warning,message:t.errorMessage||D("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var u=0,c=t.allOf;u<c.length;u++){var v=c[u];be(e,Se(v),r,n)}var m=Se(t.not);if(m){var p=new we,g=n.newSub();be(e,m,p,g),p.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:Q.Warning,message:D("notSchemaWarning","Matches a schema that is not allowed.")});for(var N=0,S=g.schemas;N<S.length;N++){var b=S[N];b.inverted=!b.inverted,n.add(b)}}var h=function(W,z){for(var ue=[],fe=null,Ne=0,Te=W;Ne<Te.length;Ne++){var zt=Te[Ne],Ze=Se(zt),xe=new we,Ye=n.newSub();if(be(e,Ze,xe,Ye),xe.hasProblems()||ue.push(Ze),!fe)fe={schema:Ze,validationResult:xe,matchingSchemas:Ye};else if(!z&&!xe.hasProblems()&&!fe.validationResult.hasProblems())fe.matchingSchemas.merge(Ye),fe.validationResult.propertiesMatches+=xe.propertiesMatches,fe.validationResult.propertiesValueMatches+=xe.propertiesValueMatches;else{var Pt=xe.compare(fe.validationResult);Pt>0?fe={schema:Ze,validationResult:xe,matchingSchemas:Ye}:Pt===0&&(fe.matchingSchemas.merge(Ye),fe.validationResult.mergeEnumValues(xe))}}return ue.length>1&&z&&r.problems.push({location:{offset:e.offset,length:1},severity:Q.Warning,message:D("oneOfWarning","Matches multiple schemas when only one must validate.")}),fe!==null&&(r.merge(fe.validationResult),r.propertiesMatches+=fe.validationResult.propertiesMatches,r.propertiesValueMatches+=fe.validationResult.propertiesValueMatches,n.merge(fe.matchingSchemas)),ue.length};Array.isArray(t.anyOf)&&h(t.anyOf,!1),Array.isArray(t.oneOf)&&h(t.oneOf,!0);var _=function(W){var z=new we,ue=n.newSub();be(e,Se(W),z,ue),r.merge(z),r.propertiesMatches+=z.propertiesMatches,r.propertiesValueMatches+=z.propertiesValueMatches,n.merge(ue)},d=function(W,z,ue){var fe=Se(W),Ne=new we,Te=n.newSub();be(e,fe,Ne,Te),n.merge(Te),Ne.hasProblems()?ue&&_(ue):z&&_(z)},w=Se(t.if);if(w&&d(w,Se(t.then),Se(t.else)),Array.isArray(t.enum)){for(var A=Ge(e),L=!1,E=0,x=t.enum;E<x.length;E++){var y=x[E];if(wt(A,y)){L=!0;break}}r.enumValues=t.enum,r.enumValueMatch=L,L||r.problems.push({location:{offset:e.offset,length:e.length},severity:Q.Warning,code:ne.EnumValueMismatch,message:t.errorMessage||D("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(function(M){return JSON.stringify(M)}).join(", "))})}if(Be(t.const)){var A=Ge(e);wt(A,t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:Q.Warning,code:ne.EnumValueMismatch,message:t.errorMessage||D("constWarning","Value must be {0}.",JSON.stringify(t.const))}),r.enumValueMatch=!1),r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Q.Warning,message:t.deprecationMessage})}function a(o,u,c,v){var m=o.value;Le(u.multipleOf)&&m%u.multipleOf!=0&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("multipleOfWarning","Value is not divisible by {0}.",u.multipleOf)});function p(_,d){if(Le(d))return d;if(De(d)&&d)return _}function g(_,d){if(!De(d)||!d)return _}var N=p(u.minimum,u.exclusiveMinimum);Le(N)&&m<=N&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",N)});var S=p(u.maximum,u.exclusiveMaximum);Le(S)&&m>=S&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",S)});var b=g(u.minimum,u.exclusiveMinimum);Le(b)&&m<b&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("minimumWarning","Value is below the minimum of {0}.",b)});var h=g(u.maximum,u.exclusiveMaximum);Le(h)&&m>h&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("maximumWarning","Value is above the maximum of {0}.",h)})}function s(o,u,c,v){if(Le(u.minLength)&&o.value.length<u.minLength&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("minLengthWarning","String is shorter than the minimum length of {0}.",u.minLength)}),Le(u.maxLength)&&o.value.length>u.maxLength&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("maxLengthWarning","String is longer than the maximum length of {0}.",u.maxLength)}),bs(u.pattern)){var m=new RegExp(u.pattern);m.test(o.value)||c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:u.patternErrorMessage||u.errorMessage||D("patternWarning",'String does not match the pattern of "{0}".',u.pattern)})}if(u.format)switch(u.format){case"uri":case"uri-reference":{var p=void 0;if(!o.value)p=D("uriEmpty","URI expected.");else{var g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(o.value);g?!g[2]&&u.format==="uri"&&(p=D("uriSchemeMissing","URI with a scheme is expected.")):p=D("uriMissing","URI is expected.")}p&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:u.patternErrorMessage||u.errorMessage||D("uriFormatWarning","String is not a URI: {0}",p)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var N=As[u.format];(!o.value||!N.pattern.exec(o.value))&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:u.patternErrorMessage||u.errorMessage||N.errorMessage});default:}}function l(o,u,c,v){if(Array.isArray(u.items)){for(var m=u.items,p=0;p<m.length;p++){var g=m[p],N=Se(g),S=new we,b=o.items[p];b?(be(b,N,S,v),c.mergePropertyMatch(S)):o.items.length>=m.length&&c.propertiesValueMatches++}if(o.items.length>m.length)if(typeof u.additionalItems=="object")for(var h=m.length;h<o.items.length;h++){var S=new we;be(o.items[h],u.additionalItems,S,v),c.mergePropertyMatch(S)}else u.additionalItems===!1&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",m.length)})}else{var _=Se(u.items);if(_)for(var d=0,w=o.items;d<w.length;d++){var b=w[d],S=new we;be(b,_,S,v),c.mergePropertyMatch(S)}}var A=Se(u.contains);if(A){var L=o.items.some(function(y){var M=new we;return be(y,A,M,xr.instance),!M.hasProblems()});L||c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:u.errorMessage||D("requiredItemMissingWarning","Array does not contain required item.")})}if(Le(u.minItems)&&o.items.length<u.minItems&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("minItemsWarning","Array has too few items. Expected {0} or more.",u.minItems)}),Le(u.maxItems)&&o.items.length>u.maxItems&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("maxItemsWarning","Array has too many items. Expected {0} or fewer.",u.maxItems)}),u.uniqueItems===!0){var E=Ge(o),x=E.some(function(y,M){return M!==E.lastIndexOf(y)});x&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("uniqueItemsWarning","Array has duplicate items.")})}}function f(o,u,c,v){for(var m=Object.create(null),p=[],g=0,N=o.properties;g<N.length;g++){var S=N[g],b=S.keyNode.value;m[b]=S.valueNode,p.push(b)}if(Array.isArray(u.required))for(var h=0,_=u.required;h<_.length;h++){var d=_[h];if(!m[d]){var w=o.parent&&o.parent.type==="property"&&o.parent.keyNode,A=w?{offset:w.offset,length:w.length}:{offset:o.offset,length:1};c.problems.push({location:A,severity:Q.Warning,message:D("MissingRequiredPropWarning",'Missing property "{0}".',d)})}}var L=function(Qi){for(var Br=p.indexOf(Qi);Br>=0;)p.splice(Br,1),Br=p.indexOf(Qi)};if(u.properties)for(var E=0,x=Object.keys(u.properties);E<x.length;E++){var d=x[E];L(d);var y=u.properties[d],M=m[d];if(M)if(De(y))if(y)c.propertiesMatches++,c.propertiesValueMatches++;else{var S=M.parent;c.problems.push({location:{offset:S.keyNode.offset,length:S.keyNode.length},severity:Q.Warning,message:u.errorMessage||D("DisallowedExtraPropWarning","Property {0} is not allowed.",d)})}else{var W=new we;be(M,y,W,v),c.mergePropertyMatch(W)}}if(u.patternProperties)for(var z=0,ue=Object.keys(u.patternProperties);z<ue.length;z++)for(var fe=ue[z],Ne=new RegExp(fe),Te=0,zt=p.slice(0);Te<zt.length;Te++){var d=zt[Te];if(Ne.test(d)){L(d);var M=m[d];if(M){var y=u.patternProperties[fe];if(De(y))if(y)c.propertiesMatches++,c.propertiesValueMatches++;else{var S=M.parent;c.problems.push({location:{offset:S.keyNode.offset,length:S.keyNode.length},severity:Q.Warning,message:u.errorMessage||D("DisallowedExtraPropWarning","Property {0} is not allowed.",d)})}else{var W=new we;be(M,y,W,v),c.mergePropertyMatch(W)}}}}if(typeof u.additionalProperties=="object")for(var Ze=0,xe=p;Ze<xe.length;Ze++){var d=xe[Ze],M=m[d];if(M){var W=new we;be(M,u.additionalProperties,W,v),c.mergePropertyMatch(W)}}else if(u.additionalProperties===!1&&p.length>0)for(var Ye=0,Pt=p;Ye<Pt.length;Ye++){var d=Pt[Ye],M=m[d];if(M){var S=M.parent;c.problems.push({location:{offset:S.keyNode.offset,length:S.keyNode.length},severity:Q.Warning,message:u.errorMessage||D("DisallowedExtraPropWarning","Property {0} is not allowed.",d)})}}if(Le(u.maxProperties)&&o.properties.length>u.maxProperties&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("MaxPropWarning","Object has more properties than limit of {0}.",u.maxProperties)}),Le(u.minProperties)&&o.properties.length<u.minProperties&&c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("MinPropWarning","Object has fewer properties than the required number of {0}",u.minProperties)}),u.dependencies)for(var Ur=0,Hi=Object.keys(u.dependencies);Ur<Hi.length;Ur++){var b=Hi[Ur],no=m[b];if(no){var Wr=u.dependencies[b];if(Array.isArray(Wr))for(var Vr=0,Yi=Wr;Vr<Yi.length;Vr++){var zi=Yi[Vr];m[zi]?c.propertiesValueMatches++:c.problems.push({location:{offset:o.offset,length:o.length},severity:Q.Warning,message:D("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",zi,b)})}else{var y=Se(Wr);if(y){var W=new we;be(o,y,W,v),c.mergePropertyMatch(W)}}}}var Gi=Se(u.propertyNames);if(Gi)for(var qr=0,Ji=o.properties;qr<Ji.length;qr++){var io=Ji[qr],b=io.keyNode;b&&be(b,Gi,c,xr.instance)}}}function Ms(e,t){var r=[],n=-1,i=e.getText(),a=ht(i,!1),s=t&&t.collectComments?[]:void 0;function l(){for(;;){var w=a.scan();switch(c(),w){case 12:case 13:Array.isArray(s)&&s.push(oe.create(e.positionAt(a.getTokenOffset()),e.positionAt(a.getTokenOffset()+a.getTokenLength())));break;case 15:case 14:break;default:return w}}}function f(w){return a.getToken()===w?(l(),!0):!1}function o(w,A,L,E,x){if(x===void 0&&(x=Q.Error),r.length===0||L!==n){var y=oe.create(e.positionAt(L),e.positionAt(E));r.push($e.create(y,w,x,A,e.languageId)),n=L}}function u(w,A,L,E,x){L===void 0&&(L=null),E===void 0&&(E=[]),x===void 0&&(x=[]);var y=a.getTokenOffset(),M=a.getTokenOffset()+a.getTokenLength();if(y===M&&y>0){for(y--;y>0&&/\s/.test(i.charAt(y));)y--;M=y+1}if(o(w,A,y,M),L&&v(L,!1),E.length+x.length>0)for(var W=a.getToken();W!==17;){if(E.indexOf(W)!==-1){l();break}else if(x.indexOf(W)!==-1)break;W=l()}return L}function c(){switch(a.getTokenError()){case 4:return u(D("InvalidUnicode","Invalid unicode sequence in string."),ne.InvalidUnicode),!0;case 5:return u(D("InvalidEscapeCharacter","Invalid escape character in string."),ne.InvalidEscapeCharacter),!0;case 3:return u(D("UnexpectedEndOfNumber","Unexpected end of number."),ne.UnexpectedEndOfNumber),!0;case 1:return u(D("UnexpectedEndOfComment","Unexpected end of comment."),ne.UnexpectedEndOfComment),!0;case 2:return u(D("UnexpectedEndOfString","Unexpected end of string."),ne.UnexpectedEndOfString),!0;case 6:return u(D("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),ne.InvalidCharacter),!0}return!1}function v(w,A){return w.length=a.getTokenOffset()+a.getTokenLength()-w.offset,A&&l(),w}function m(w){if(a.getToken()!==3)return null;var A=new Es(w,a.getTokenOffset());l();for(var L=0,E=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){E||u(D("ValueExpected","Value expected"),ne.ValueExpected);var x=a.getTokenOffset();if(l(),a.getToken()===4){E&&o(D("TrailingComma","Trailing comma"),ne.TrailingComma,x,x+1);continue}}else E&&u(D("ExpectedComma","Expected comma"),ne.CommaExpected);var y=h(A,L++);y?A.items.push(y):u(D("PropertyExpected","Value expected"),ne.ValueExpected,null,[],[4,5]),E=!0}return a.getToken()!==4?u(D("ExpectedCloseBracket","Expected comma or closing bracket"),ne.CommaOrCloseBacketExpected,A):v(A,!0)}function p(w,A){var L=new ks(w,a.getTokenOffset()),E=N(L);if(!E)if(a.getToken()===16){u(D("DoubleQuotesExpected","Property keys must be doublequoted"),ne.Undefined);var x=new Fi(L,a.getTokenOffset(),a.getTokenLength());x.value=a.getTokenValue(),E=x,l()}else return null;L.keyNode=E;var y=A[E.value];if(y?(o(D("DuplicateKeyWarning","Duplicate object key"),ne.DuplicateKey,L.keyNode.offset,L.keyNode.offset+L.keyNode.length,Q.Warning),typeof y=="object"&&o(D("DuplicateKeyWarning","Duplicate object key"),ne.DuplicateKey,y.keyNode.offset,y.keyNode.offset+y.keyNode.length,Q.Warning),A[E.value]=!0):A[E.value]=L,a.getToken()===6)L.colonOffset=a.getTokenOffset(),l();else if(u(D("ColonExpected","Colon expected"),ne.ColonExpected),a.getToken()===10&&e.positionAt(E.offset+E.length).line<e.positionAt(a.getTokenOffset()).line)return L.length=E.length,L;var M=h(L,E.value);return M?(L.valueNode=M,L.length=M.offset+M.length-L.offset,L):u(D("ValueExpected","Value expected"),ne.ValueExpected,L,[],[2,5])}function g(w){if(a.getToken()!==1)return null;var A=new Ts(w,a.getTokenOffset()),L=Object.create(null);l();for(var E=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){E||u(D("PropertyExpected","Property expected"),ne.PropertyExpected);var x=a.getTokenOffset();if(l(),a.getToken()===2){E&&o(D("TrailingComma","Trailing comma"),ne.TrailingComma,x,x+1);continue}}else E&&u(D("ExpectedComma","Expected comma"),ne.CommaExpected);var y=p(A,L);y?A.properties.push(y):u(D("PropertyExpected","Property expected"),ne.PropertyExpected,null,[],[2,5]),E=!0}return a.getToken()!==2?u(D("ExpectedCloseBrace","Expected comma or closing brace"),ne.CommaOrCloseBraceExpected,A):v(A,!0)}function N(w){if(a.getToken()!==10)return null;var A=new Fi(w,a.getTokenOffset());return A.value=a.getTokenValue(),v(A,!0)}function S(w){if(a.getToken()!==11)return null;var A=new Ps(w,a.getTokenOffset());if(a.getTokenError()===0){var L=a.getTokenValue();try{var E=JSON.parse(L);if(!Le(E))return u(D("InvalidNumberFormat","Invalid number format."),ne.Undefined,A);A.value=E}catch(x){return u(D("InvalidNumberFormat","Invalid number format."),ne.Undefined,A)}A.isInteger=L.indexOf(".")===-1}return v(A,!0)}function b(w){var A;switch(a.getToken()){case 7:return v(new Ls(w,a.getTokenOffset()),!0);case 8:return v(new Mi(w,!0,a.getTokenOffset()),!0);case 9:return v(new Mi(w,!1,a.getTokenOffset()),!0);default:return null}}function h(w,A){return m(w)||g(w)||N(w)||S(w)||b(w)}var _=null,d=l();return d!==17&&(_=h(null,null),_?a.getToken()!==17&&u(D("End of file expected","End of file expected."),ne.Undefined):u(D("Invalid symbol","Expected a JSON object, array or literal."),ne.Undefined)),new ji(_,r,s)}function Mr(e,t,r){if(e!==null&&typeof e=="object"){var n=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var i=`[
`,a=0;a<e.length;a++)i+=n+Mr(e[a],n,r),a<e.length-1&&(i+=","),i+=`
`;return i+=t+"]",i}else{var s=Object.keys(e);if(s.length===0)return"{}";for(var i=`{
`,a=0;a<s.length;a++){var l=s[a];i+=n+JSON.stringify(l)+": "+Mr(e[l],n,r),a<s.length-1&&(i+=","),i+=`
`}return i+=t+"}",i}}return r(e)}function Fs(e,t){if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}function $t(e,t){var r=e.length-t.length;return r>0?e.lastIndexOf(t)===r:r===0?e===t:!1}function Is(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Du(e,t){for(var r="";t>0;)(t&1)==1&&(r+=e),e+=e,t=t>>>1;return r}var Fr=vt(),Os=[",","}","]"],js=[":"],Ds=function(){function e(t,r,n,i){r===void 0&&(r=[]),n===void 0&&(n=Promise),i===void 0&&(i={}),this.schemaService=t,this.contributions=r,this.promiseConstructor=n,this.clientCapabilities=i,this.templateVarIdCounter=0}return e.prototype.doResolve=function(t){for(var r=this.contributions.length-1;r>=0;r--)if(this.contributions[r].resolveCompletion){var n=this.contributions[r].resolveCompletion(t);if(n)return n}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,r,n){var i=this,a={items:[],isIncomplete:!1},s=t.getText(),l=t.offsetAt(r),f=n.getNodeFromOffset(l,!0);if(this.isInComment(t,f?f.offset:0,l))return Promise.resolve(a);if(f&&l===f.offset+f.length&&l>0){var o=s[l-1];(f.type==="object"&&o==="}"||f.type==="array"&&o==="]")&&(f=f.parent)}var u=this.getCurrentWord(t,l),c=null;if(f&&(f.type==="string"||f.type==="number"||f.type==="boolean"||f.type==="null"))c=oe.create(t.positionAt(f.offset),t.positionAt(f.offset+f.length));else{var v=l-u.length;v>0&&s[v-1]==='"'&&v--,c=oe.create(t.positionAt(v),r)}var m=!1,p={},g={add:function(S){var b=S.label,h=p[b];if(h)h.documentation||(h.documentation=S.documentation);else{if(b=b.replace(/[\n]/g,"\u21B5"),b.length>60){var _=b.substr(0,57).trim()+"...";p[_]||(b=_)}c&&(S.textEdit=Re.replace(c,S.insertText)),m&&(S.commitCharacters=S.kind===Ee.Property?js:Os),S.label=b,p[b]=S,a.items.push(S)}},setAsIncomplete:function(){a.isIncomplete=!0},error:function(S){console.error(S)},log:function(S){console.log(S)},getNumberOfProposals:function(){return a.items.length}};return this.schemaService.getSchemaForResource(t.uri,n).then(function(N){var S=[],b=!0,h="",_=null;if(f&&f.type==="string"){var d=f.parent;d&&d.type==="property"&&d.keyNode===f&&(b=!d.valueNode,_=d,h=s.substr(f.offset+1,f.length-2),d&&(f=d.parent))}if(f&&f.type==="object"){if(f.offset===l)return a;var w=f.properties;w.forEach(function(x){(!_||_!==x)&&(p[x.keyNode.value]=Pr.create("__"))});var A="";b&&(A=i.evaluateSeparatorAfter(t,t.offsetAt(c.end))),N?i.getPropertyCompletions(N,n,f,b,A,g):i.getSchemaLessPropertyCompletions(n,f,h,g);var L=Cr(f);i.contributions.forEach(function(x){var y=x.collectPropertyCompletions(t.uri,L,u,b,A==="",g);y&&S.push(y)}),!N&&u.length>0&&s.charAt(l-u.length-1)!=='"'&&(g.add({kind:Ee.Property,label:i.getLabelForValue(u),insertText:i.getInsertTextForProperty(u,null,!1,A),insertTextFormat:de.Snippet,documentation:""}),g.setAsIncomplete())}var E={};return N?i.getValueCompletions(N,n,f,l,t,g,E):i.getSchemaLessValueCompletions(n,f,l,t,g),i.contributions.length>0&&i.getContributedValueCompletions(n,f,l,t,g,S),i.promiseConstructor.all(S).then(function(){if(g.getNumberOfProposals()===0){var x=l;f&&(f.type==="string"||f.type==="number"||f.type==="boolean"||f.type==="null")&&(x=f.offset+f.length);var y=i.evaluateSeparatorAfter(t,x);i.addFillerValueCompletions(E,y,g)}return a})})},e.prototype.getPropertyCompletions=function(t,r,n,i,a,s){var l=this,f=r.getMatchingSchemas(t.schema,n.offset);f.forEach(function(o){if(o.node===n&&!o.inverted){var u=o.schema.properties;u&&Object.keys(u).forEach(function(c){var v=u[c];if(typeof v=="object"&&!v.deprecationMessage&&!v.doNotSuggest){var m={kind:Ee.Property,label:c,insertText:l.getInsertTextForProperty(c,v,i,a),insertTextFormat:de.Snippet,filterText:l.getFilterTextForValue(c),documentation:l.fromMarkup(v.markdownDescription)||v.description||""};$t(m.insertText,"$1"+a)&&(m.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(m)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(t,r,n,i){var a=this,s=function(o){o.properties.forEach(function(u){var c=u.keyNode.value;i.add({kind:Ee.Property,label:c,insertText:a.getInsertTextForValue(c,""),insertTextFormat:de.Snippet,filterText:a.getFilterTextForValue(c),documentation:""})})};if(r.parent)if(r.parent.type==="property"){var l=r.parent.keyNode.value;t.visit(function(f){return f.type==="property"&&f!==r.parent&&f.keyNode.value===l&&f.valueNode&&f.valueNode.type==="object"&&s(f.valueNode),!0})}else r.parent.type==="array"&&r.parent.items.forEach(function(f){f.type==="object"&&f!==r&&s(f)});else r.type==="object"&&i.add({kind:Ee.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:de.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(t,r,n,i,a){var s=this,l=n;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(l=r.offset+r.length,r=r.parent),!r){a.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:de.Snippet,documentation:""}),a.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:de.Snippet,documentation:""});return}var f=this.evaluateSeparatorAfter(i,l),o=function(p){Oi(p.parent,n,!0)||a.add({kind:s.getSuggestionKind(p.type),label:s.getLabelTextForMatchingNode(p,i),insertText:s.getInsertTextForMatchingNode(p,i,f),insertTextFormat:de.Snippet,documentation:""}),p.type==="boolean"&&s.addBooleanValueCompletion(!p.value,f,a)};if(r.type==="property"&&n>r.colonOffset){var u=r.valueNode;if(u&&(n>u.offset+u.length||u.type==="object"||u.type==="array"))return;var c=r.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===c&&m.valueNode&&o(m.valueNode),!0}),c==="$schema"&&r.parent&&!r.parent.parent&&this.addDollarSchemaCompletions(f,a)}if(r.type==="array")if(r.parent&&r.parent.type==="property"){var v=r.parent.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===v&&m.valueNode&&m.valueNode.type==="array"&&m.valueNode.items.forEach(o),!0})}else r.items.forEach(o)},e.prototype.getValueCompletions=function(t,r,n,i,a,s,l){var f=this,o=i,u=null,c=null;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(o=n.offset+n.length,c=n,n=n.parent),!n){this.addSchemaValueCompletions(t.schema,"",s,l);return}if(n.type==="property"&&i>n.colonOffset){var v=n.valueNode;if(v&&i>v.offset+v.length)return;u=n.keyNode.value,n=n.parent}if(n&&(u!==null||n.type==="array")){var m=this.evaluateSeparatorAfter(a,o),p=r.getMatchingSchemas(t.schema,n.offset,c);p.forEach(function(g){if(g.node===n&&!g.inverted&&g.schema){if(n.type==="array"&&g.schema.items)if(Array.isArray(g.schema.items)){var N=f.findItemAtOffset(n,a,i);N<g.schema.items.length&&f.addSchemaValueCompletions(g.schema.items[N],m,s,l)}else f.addSchemaValueCompletions(g.schema.items,m,s,l);if(g.schema.properties){var S=g.schema.properties[u];S&&f.addSchemaValueCompletions(S,m,s,l)}}}),u==="$schema"&&!n.parent&&this.addDollarSchemaCompletions(m,s),l.boolean&&(this.addBooleanValueCompletion(!0,m,s),this.addBooleanValueCompletion(!1,m,s)),l.null&&this.addNullValueCompletion(m,s)}},e.prototype.getContributedValueCompletions=function(t,r,n,i,a,s){if(!r)this.contributions.forEach(function(u){var c=u.collectDefaultCompletions(i.uri,a);c&&s.push(c)});else if((r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(r=r.parent),r.type==="property"&&n>r.colonOffset){var l=r.keyNode.value,f=r.valueNode;if(!f||n<=f.offset+f.length){var o=Cr(r.parent);this.contributions.forEach(function(u){var c=u.collectValueCompletions(i.uri,o,l,a);c&&s.push(c)})}}},e.prototype.addSchemaValueCompletions=function(t,r,n,i){var a=this;typeof t=="object"&&(this.addEnumValueCompletions(t,r,n),this.addDefaultValueCompletions(t,r,n),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(s){return a.addSchemaValueCompletions(s,r,n,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(s){return a.addSchemaValueCompletions(s,r,n,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(s){return a.addSchemaValueCompletions(s,r,n,i)}))},e.prototype.addDefaultValueCompletions=function(t,r,n,i){var a=this;i===void 0&&(i=0);var s=!1;if(Be(t.default)){for(var l=t.type,f=t.default,o=i;o>0;o--)f=[f],l="array";n.add({kind:this.getSuggestionKind(l),label:this.getLabelForValue(f),insertText:this.getInsertTextForValue(f,r),insertTextFormat:de.Snippet,detail:Fr("json.suggest.default","Default value")}),s=!0}Array.isArray(t.examples)&&t.examples.forEach(function(u){for(var c=t.type,v=u,m=i;m>0;m--)v=[v],c="array";n.add({kind:a.getSuggestionKind(c),label:a.getLabelForValue(v),insertText:a.getInsertTextForValue(v,r),insertTextFormat:de.Snippet}),s=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(u){var c=t.type,v=u.body,m=u.label,p,g;if(Be(v)){for(var N=t.type,S=i;S>0;S--)v=[v],N="array";p=a.getInsertTextForSnippetValue(v,r),g=a.getFilterTextForSnippetValue(v),m=m||a.getLabelForSnippetValue(v)}else if(typeof u.bodyText=="string"){for(var b="",h="",_="",S=i;S>0;S--)b=b+_+`[
`,h=h+`
`+_+"]",_+=" ",c="array";p=b+_+u.bodyText.split(`
`).join(`
`+_)+h+r,m=m||p,g=p.replace(/[\n]/g,"")}n.add({kind:a.getSuggestionKind(c),label:m,documentation:a.fromMarkup(u.markdownDescription)||u.description,insertText:p,insertTextFormat:de.Snippet,filterText:g}),s=!0}),!s&&typeof t.items=="object"&&!Array.isArray(t.items)&&this.addDefaultValueCompletions(t.items,r,n,i+1)},e.prototype.addEnumValueCompletions=function(t,r,n){if(Be(t.const)&&n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,r),insertTextFormat:de.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,a=t.enum.length;i<a;i++){var s=t.enum[i],l=this.fromMarkup(t.markdownDescription)||t.description;t.markdownEnumDescriptions&&i<t.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?l=this.fromMarkup(t.markdownEnumDescriptions[i]):t.enumDescriptions&&i<t.enumDescriptions.length&&(l=t.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,r),insertTextFormat:de.Snippet,documentation:l})}},e.prototype.collectTypes=function(t,r){if(!(Array.isArray(t.enum)||Be(t.const))){var n=t.type;Array.isArray(n)?n.forEach(function(i){return r[i]=!0}):r[n]=!0}},e.prototype.addFillerValueCompletions=function(t,r,n){t.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},r),insertTextFormat:de.Snippet,detail:Fr("defaults.object","New object"),documentation:""}),t.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],r),insertTextFormat:de.Snippet,detail:Fr("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(t,r,n){n.add({kind:this.getSuggestionKind("boolean"),label:t?"true":"false",insertText:this.getInsertTextForValue(t,r),insertTextFormat:de.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(t,r){r.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+t,insertTextFormat:de.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(t,r){var n=this,i=this.schemaService.getRegisteredSchemaIds(function(a){return a==="http"||a==="https"});i.forEach(function(a){return r.add({kind:Ee.Module,label:n.getLabelForValue(a),filterText:n.getFilterTextForValue(a),insertText:n.getInsertTextForValue(a,t),insertTextFormat:de.Snippet,documentation:""})})},e.prototype.getLabelForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForSnippetValue=function(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(t){var r=JSON.stringify(t);return r.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(t){return t.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(t,r){var n=JSON.stringify(t,null," ");return n==="{}"?"{$1}"+r:n==="[]"?"[$1]"+r:this.getInsertTextForPlainText(n+r)},e.prototype.getInsertTextForSnippetValue=function(t,r){var n=function(a){return typeof a=="string"&&a[0]==="^"?a.substr(1):JSON.stringify(a)};return Mr(t,"",n)+r},e.prototype.getInsertTextForGuessedValue=function(t,r){switch(typeof t){case"object":return t===null?"${1:null}"+r:this.getInsertTextForValue(t,r);case"string":var n=JSON.stringify(t);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+r;case"number":case"boolean":return"${1:"+JSON.stringify(t)+"}"+r}return this.getInsertTextForValue(t,r)},e.prototype.getSuggestionKind=function(t){if(Array.isArray(t)){var r=t;t=r.length>0?r[0]:null}if(!t)return Ee.Value;switch(t){case"string":return Ee.Value;case"object":return Ee.Module;case"property":return Ee.Property;default:return Ee.Value}},e.prototype.getLabelTextForMatchingNode=function(t,r){switch(t.type){case"array":return"[]";case"object":return"{}";default:var n=r.getText().substr(t.offset,t.length);return n}},e.prototype.getInsertTextForMatchingNode=function(t,r,n){switch(t.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var i=r.getText().substr(t.offset,t.length)+n;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,r,n,i){var a=this.getInsertTextForValue(t,"");if(!n)return a;var s=a+": ",l,f=0;if(r){if(Array.isArray(r.defaultSnippets)){if(r.defaultSnippets.length===1){var o=r.defaultSnippets[0].body;Be(o)&&(l=this.getInsertTextForSnippetValue(o,""))}f+=r.defaultSnippets.length}if(r.enum&&(!l&&r.enum.length===1&&(l=this.getInsertTextForGuessedValue(r.enum[0],"")),f+=r.enum.length),Be(r.default)&&(l||(l=this.getInsertTextForGuessedValue(r.default,"")),f++),Array.isArray(r.examples)&&r.examples.length&&(l||(l=this.getInsertTextForGuessedValue(r.examples[0],"")),f+=r.examples.length),f===0){var u=Array.isArray(r.type)?r.type[0]:r.type;switch(u||(r.properties?u="object":r.items&&(u="array")),u){case"boolean":l="$1";break;case"string":l='"$1"';break;case"object":l="{$1}";break;case"array":l="[$1]";break;case"number":case"integer":l="${1:0}";break;case"null":l="${1:null}";break;default:return a}}}return(!l||f>1)&&(l="$1"),s+l+i},e.prototype.getCurrentWord=function(t,r){for(var n=r-1,i=t.getText();n>=0&&`
\r\v":{[,]}`.indexOf(i.charAt(n))===-1;)n--;return i.substring(n+1,r)},e.prototype.evaluateSeparatorAfter=function(t,r){var n=ht(t.getText(),!0);n.setPosition(r);var i=n.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,r,n){for(var i=ht(r.getText(),!0),a=t.items,s=a.length-1;s>=0;s--){var l=a[s];if(n>l.offset+l.length){i.setPosition(l.offset+l.length);var f=i.scan();return f===5&&n>=i.getTokenOffset()+i.getTokenLength()?s+1:s}else if(n>=l.offset)return s}return 0},e.prototype.isInComment=function(t,r,n){var i=ht(t.getText(),!1);i.setPosition(r);for(var a=i.scan();a!==17&&i.getTokenOffset()+i.getTokenLength()<n;)a=i.scan();return(a===12||a===13)&&i.getTokenOffset()<=n},e.prototype.fromMarkup=function(t){if(t&&this.doesSupportMarkdown())return{kind:He.Markdown,value:t}},e.prototype.doesSupportMarkdown=function(){if(!Be(this.supportsMarkdown)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=t&&t.completionItem&&Array.isArray(t.completionItem.documentationFormat)&&t.completionItem.documentationFormat.indexOf(He.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Be(this.supportsCommitCharacters)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=t&&t.completionItem&&!!t.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),Rs=function(){function e(t,r,n){r===void 0&&(r=[]),this.schemaService=t,this.contributions=r,this.promise=n||Promise}return e.prototype.doHover=function(t,r,n){var i=t.offsetAt(r),a=n.getNodeFromOffset(i);if(!a||(a.type==="object"||a.type==="array")&&i>a.offset+1&&i<a.offset+a.length-1)return this.promise.resolve(null);var s=a;if(a.type==="string"){var l=a.parent;if(l&&l.type==="property"&&l.keyNode===a&&(a=l.valueNode,!a))return this.promise.resolve(null)}for(var f=oe.create(t.positionAt(s.offset),t.positionAt(s.offset+s.length)),o=function(g){var N={contents:g,range:f};return N},u=Cr(a),c=this.contributions.length-1;c>=0;c--){var v=this.contributions[c],m=v.getInfoContribution(t.uri,u);if(m)return m.then(function(p){return o(p)})}return this.schemaService.getSchemaForResource(t.uri,n).then(function(p){if(p){var g=n.getMatchingSchemas(p.schema,a.offset),N=null,S=null,b=null,h=null;g.every(function(d){if(d.node===a&&!d.inverted&&d.schema&&(N=N||d.schema.title,S=S||d.schema.markdownDescription||Ir(d.schema.description),d.schema.enum)){var w=d.schema.enum.indexOf(Ge(a));d.schema.markdownEnumDescriptions?b=d.schema.markdownEnumDescriptions[w]:d.schema.enumDescriptions&&(b=Ir(d.schema.enumDescriptions[w])),b&&(h=d.schema.enum[w],typeof h!="string"&&(h=JSON.stringify(h)))}return!0});var _="";return N&&(_=Ir(N)),S&&(_.length>0&&(_+=`
`),_+=S),b&&(_.length>0&&(_+=`
`),_+="`"+Us(h)+"`: "+b),o([_])}return null})},e}();function Ir(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
$3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Us(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Or=X("xiP/"),Je=vt(),Ws=function(){function e(t){try{this.patternRegExp=new RegExp(Is(t)+"$")}catch(r){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(t){this.schemas.push(t)},e.prototype.matchesPattern=function(t){return this.patternRegExp&&this.patternRegExp.test(t)},e.prototype.getSchemas=function(){return this.schemas},e}(),Vs=function(){function e(t,r,n){this.service=t,this.url=r,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new mt(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(r){return t.service.resolveSchemaContent(r,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),mt=function(){function e(t,r){r===void 0&&(r=[]),this.schema=t,this.errors=r}return e}(),Di=function(){function e(t,r){r===void 0&&(r=[]),this.schema=t,this.errors=r}return e.prototype.getSection=function(t){return Se(this.getSectionRecursive(t,this.schema))},e.prototype.getSectionRecursive=function(t,r){if(!r||typeof r=="boolean"||t.length===0)return r;var n=t.shift();if(r.properties&&typeof r.properties[n])return this.getSectionRecursive(t,r.properties[n]);if(r.patternProperties)for(var i=0,a=Object.keys(r.patternProperties);i<a.length;i++){var s=a[i],l=new RegExp(s);if(l.test(n))return this.getSectionRecursive(t,r.patternProperties[s])}else{if(typeof r.additionalProperties=="object")return this.getSectionRecursive(t,r.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(r.items)){var f=parseInt(n,10);if(!isNaN(f)&&r.items[f])return this.getSectionRecursive(t,r.items[f])}else if(r.items)return this.getSectionRecursive(t,r.items)}}return null},e}(),qs=function(){function e(t,r,n){this.contextService=r,this.requestService=t,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(r){var n=Or.a.parse(r).scheme;return n!=="schemaservice"&&(!t||t(n))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var r=this,n=!1;t=this.normalizeId(t);for(var i=[t],a=Object.keys(this.schemasById).map(function(o){return r.schemasById[o]});i.length;)for(var s=i.pop(),l=0;l<a.length;l++){var f=a[l];f&&(f.url===s||f.dependencies[s])&&(f.url!==s&&i.push(f.url),f.clearSchema(),a[l]=void 0,n=!0)}return n},e.prototype.normalizeId=function(t){try{return Or.a.parse(t).toString()}catch(r){return t}},e.prototype.setSchemaContributions=function(t){if(t.schemas){var r=t.schemas;for(var n in r){var i=this.normalizeId(n);this.contributionSchemas[i]=this.addSchemaHandle(i,r[n])}}if(t.schemaAssociations){var a=t.schemaAssociations;for(var s in a){var l=a[s];this.contributionAssociations[s]=l;for(var f=this.getOrAddFilePatternAssociation(s),o=0,u=l;o<u.length;o++){var c=u[o],n=this.normalizeId(c);f.addSchema(n)}}}},e.prototype.addSchemaHandle=function(t,r){var n=new Vs(this,t,r);return this.schemasById[t]=n,n},e.prototype.getOrAddSchemaHandle=function(t,r){return this.schemasById[t]||this.addSchemaHandle(t,r)},e.prototype.getOrAddFilePatternAssociation=function(t){var r=this.filePatternAssociationById[t];return r||(r=new Ws(t),this.filePatternAssociationById[t]=r,this.filePatternAssociations.push(r)),r},e.prototype.registerExternalSchema=function(t,r,n){r===void 0&&(r=null);var i=this.normalizeId(t);if(this.registeredSchemasIds[i]=!0,r)for(var a=0,s=r;a<s.length;a++){var l=s[a];this.getOrAddFilePatternAssociation(l).addSchema(i)}return n?this.addSchemaHandle(i,n):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var r in this.contributionAssociations)for(var n=this.getOrAddFilePatternAssociation(r),i=0,a=this.contributionAssociations[r];i<a.length;i++){var s=a[i],t=this.normalizeId(s);n.addSchema(t)}},e.prototype.getResolvedSchema=function(t){var r=this.normalizeId(t),n=this.schemasById[r];return n?n.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(t){if(!this.requestService){var r=Je("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Ht(t));return this.promise.resolve(new mt({},[r]))}return this.requestService(t).then(function(n){if(!n){var i=Je("json.schema.nocontent","Unable to load schema from '{0}': No content.",Ht(t));return new mt({},[i])}var a={},s=[];a=ms(n,s);var l=s.length?[Je("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Ht(t),s[0].offset)]:[];return new mt(a,l)},function(n){var i=n.toString(),a=n.toString().split("Error: ");return a.length>1&&(i=a[1]),$t(i,".")&&(i=i.substr(0,i.length-1)),new mt({},[Je("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Ht(t),i)])})},e.prototype.resolveSchemaContent=function(t,r,n){var i=this,a=t.errors.slice(0),s=t.schema;if(s.$schema){var l=this.normalizeId(s.$schema);if(l==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Di({},[Je("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));l==="https://json-schema.org/draft/2019-09/schema"&&t.errors.push(Je("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var f=this.contextService,o=function(p,g){if(!g)return p;var N=p;return g[0]==="/"&&(g=g.substr(1)),g.split("/").some(function(S){return N=N[S],!N}),N},u=function(p,g,N,S){var b=o(g,S);if(b)for(var h in b)b.hasOwnProperty(h)&&!p.hasOwnProperty(h)&&(p[h]=b[h]);else a.push(Je("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",S,N))},c=function(p,g,N,S,b){f&&!/^\w+:\/\/.*/.test(g)&&(g=f.resolveRelativePath(g,S)),g=i.normalizeId(g);var h=i.getOrAddSchemaHandle(g);return h.getUnresolvedSchema().then(function(_){if(b[g]=!0,_.errors.length){var d=N?g+"#"+N:g;a.push(Je("json.schema.problemloadingref","Problems loading reference '{0}': {1}",d,_.errors[0]))}return u(p,_.schema,g,N),v(p,_.schema,g,h.dependencies)})},v=function(p,g,N,S){if(!p||typeof p!="object")return Promise.resolve(null);for(var b=[p],h=[],_=[],d=function(){for(var y=[],M=0;M<arguments.length;M++)y[M]=arguments[M];for(var W=0,z=y;W<z.length;W++){var ue=z[W];typeof ue=="object"&&b.push(ue)}},w=function(){for(var y=[],M=0;M<arguments.length;M++)y[M]=arguments[M];for(var W=0,z=y;W<z.length;W++){var ue=z[W];if(typeof ue=="object")for(var fe in ue){var Ne=ue[fe];typeof Ne=="object"&&b.push(Ne)}}},A=function(){for(var y=[],M=0;M<arguments.length;M++)y[M]=arguments[M];for(var W=0,z=y;W<z.length;W++){var ue=z[W];if(Array.isArray(ue))for(var fe=0,Ne=ue;fe<Ne.length;fe++){var Te=Ne[fe];typeof Te=="object"&&b.push(Te)}}},L=function(y){for(var M=[];y.$ref;){var W=y.$ref,z=W.split("#",2);if(delete y.$ref,z[0].length>0){_.push(c(y,z[0],z[1],N,S));return}else M.indexOf(W)===-1&&(u(y,g,N,z[1]),M.push(W))}d(y.items,y.additionalProperties,y.not,y.contains,y.propertyNames,y.if,y.then,y.else),w(y.definitions,y.properties,y.patternProperties,y.dependencies),A(y.anyOf,y.allOf,y.oneOf,y.items)};b.length;){var E=b.pop();h.indexOf(E)>=0||(h.push(E),L(E))}return i.promise.all(_)};return v(s,s,r,n).then(function(m){return new Di(s,a)})},e.prototype.getSchemaForResource=function(t,r){if(r&&r.root&&r.root.type==="object"){var n=r.root.properties.filter(function(p){return p.keyNode.value==="$schema"&&p.valueNode&&p.valueNode.type==="string"});if(n.length>0){var i=Ge(n[0].valueNode);if(i&&Fs(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,t)),i){var a=this.normalizeId(i);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}for(var s=Object.create(null),l=[],f=0,o=this.filePatternAssociations;f<o.length;f++){var u=o[f];if(u.matchesPattern(t))for(var c=0,v=u.getSchemas();c<v.length;c++){var m=v[c];s[m]||(l.push(m),s[m]=!0)}}return l.length>0?this.createCombinedSchema(t,l).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(t,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:r.map(function(a){return{$ref:a}})};return this.addSchemaHandle(n,i)},e}();function Ht(e){try{var t=Or.a.parse(e);if(t.scheme==="file")return t.fsPath}catch(r){}return e}var Bs=vt(),$s=function(){function e(t,r){this.jsonSchemaService=t,this.promise=r,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate,this.commentSeverity=t.allowComments?void 0:Q.Error)},e.prototype.doValidation=function(t,r,n,i){var a=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],l={},f=function(v){var m=v.range.start.line+" "+v.range.start.character+" "+v.message;l[m]||(l[m]=!0,s.push(v))},o=function(v){var m=n?Wi(n.trailingCommas):Q.Error,p=n?Wi(n.comments):a.commentSeverity;if(v){if(v.errors.length&&r.root){var g=r.root,N=g.type==="object"?g.properties[0]:null;if(N&&N.keyNode.value==="$schema"){var S=N.valueNode||N,b=oe.create(t.positionAt(S.offset),t.positionAt(S.offset+S.length));f($e.create(b,v.errors[0],Q.Warning,ne.SchemaResolveError))}else{var b=oe.create(t.positionAt(g.offset),t.positionAt(g.offset+1));f($e.create(b,v.errors[0],Q.Warning,ne.SchemaResolveError))}}else{var h=r.validate(t,v.schema);h&&h.forEach(f)}Ri(v.schema)&&(p=void 0),Ui(v.schema)&&(m=void 0)}for(var _=0,d=r.syntaxErrors;_<d.length;_++){var w=d[_];if(w.code===ne.TrailingComma){if(typeof m!="number")continue;w.severity=m}f(w)}if(typeof p=="number"){var A=Bs("InvalidCommentToken","Comments are not permitted in JSON.");r.comments.forEach(function(L){f($e.create(L,A,p,ne.CommentNotPermitted))})}return s};if(i){var u=i.id||"schemaservice://untitled/"+Hs++;return this.jsonSchemaService.resolveSchemaContent(new mt(i),u,{}).then(function(c){return o(c)})}return this.jsonSchemaService.getSchemaForResource(t.uri,r).then(function(c){return o(c)})},e}(),Hs=0;function Ri(e){if(e&&typeof e=="object"){if(De(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,r=e.allOf;t<r.length;t++){var n=r[t],i=Ri(n);if(De(i))return i}}}function Ui(e){if(e&&typeof e=="object"){if(De(e.allowTrailingCommas))return e.allowTrailingCommas;if(De(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var t=0,r=e.allOf;t<r.length;t++){var n=r[t],i=Ui(n);if(De(i))return i}}}function Wi(e){switch(e){case"error":return Q.Error;case"warning":return Q.Warning;case"ignore":return}}var Vi=48,Ys=57,zs=65,Yt=97,Gs=102;function me(e){return e<Vi?0:e<=Ys?e-Vi:(e<Yt&&(e+=Yt-zs),e>=Yt&&e<=Gs?e-Yt+10:0)}function Js(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:me(e.charCodeAt(1))*17/255,green:me(e.charCodeAt(2))*17/255,blue:me(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:me(e.charCodeAt(1))*17/255,green:me(e.charCodeAt(2))*17/255,blue:me(e.charCodeAt(3))*17/255,alpha:me(e.charCodeAt(4))*17/255};case 7:return{red:(me(e.charCodeAt(1))*16+me(e.charCodeAt(2)))/255,green:(me(e.charCodeAt(3))*16+me(e.charCodeAt(4)))/255,blue:(me(e.charCodeAt(5))*16+me(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(me(e.charCodeAt(1))*16+me(e.charCodeAt(2)))/255,green:(me(e.charCodeAt(3))*16+me(e.charCodeAt(4)))/255,blue:(me(e.charCodeAt(5))*16+me(e.charCodeAt(6)))/255,alpha:(me(e.charCodeAt(7))*16+me(e.charCodeAt(8)))/255}}return null}function Ru(e,t,r,n){return n===void 0&&(n=1),{red:e/255,green:t/255,blue:r/255,alpha:n}}var Qs=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var a=r.root;if(!a)return null;var s=n.resultLimit,l=t.uri;if((l==="vscode://defaultsettings/keybindings.json"||$t(l.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var f=[],o=0,u=a.items;o<u.length;o++){var c=u[o];if(c.type==="object")for(var v=0,m=c.properties;v<m.length;v++){var p=m[v];if(p.keyNode.value==="key"&&p.valueNode){var g=Nt.create(t.uri,Qe(t,c));if(f.push({name:Ge(p.valueNode),kind:Ue.Function,location:g}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(l),f}}}return f}for(var N=[{node:a,containerName:""}],S=0,b=!1,h=[],_=function(A,L){A.type==="array"?A.items.forEach(function(E){E&&N.push({node:E,containerName:L})}):A.type==="object"&&A.properties.forEach(function(E){var x=E.valueNode;if(x)if(s>0){s--;var y=Nt.create(t.uri,Qe(t,E)),M=L?L+"."+E.keyNode.value:E.keyNode.value;h.push({name:i.getKeyLabel(E),kind:i.getSymbolKind(x.type),location:y,containerName:L}),N.push({node:x,containerName:M})}else b=!0})};S<N.length;){var d=N[S++];_(d.node,d.containerName)}return b&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(l),h},e.prototype.findDocumentSymbols2=function(t,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var a=r.root;if(!a)return null;var s=n.resultLimit,l=t.uri;if((l==="vscode://defaultsettings/keybindings.json"||$t(l.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var f=[],o=0,u=a.items;o<u.length;o++){var c=u[o];if(c.type==="object")for(var v=0,m=c.properties;v<m.length;v++){var p=m[v];if(p.keyNode.value==="key"&&p.valueNode){var g=Qe(t,c),N=Qe(t,p.keyNode);if(f.push({name:Ge(p.valueNode),kind:Ue.Function,range:g,selectionRange:N}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(l),f}}}return f}for(var S=[],b=[{node:a,result:S}],h=0,_=!1,d=function(L,E){L.type==="array"?L.items.forEach(function(x,y){if(x)if(s>0){s--;var M=Qe(t,x),W=M,z=String(y),ue={name:z,kind:i.getSymbolKind(x.type),range:M,selectionRange:W,children:[]};E.push(ue),b.push({result:ue.children,node:x})}else _=!0}):L.type==="object"&&L.properties.forEach(function(x){var y=x.valueNode;if(y)if(s>0){s--;var M=Qe(t,x),W=Qe(t,x.keyNode),z={name:i.getKeyLabel(x),kind:i.getSymbolKind(y.type),range:M,selectionRange:W,children:[]};E.push(z),b.push({result:z.children,node:y})}else _=!0})};h<b.length;){var w=b[h++];d(w.node,w.result)}return _&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(l),S},e.prototype.getSymbolKind=function(t){switch(t){case"object":return Ue.Module;case"string":return Ue.String;case"number":return Ue.Number;case"array":return Ue.Array;case"boolean":return Ue.Boolean;default:return Ue.Variable}},e.prototype.getKeyLabel=function(t){var r=t.keyNode.value;return r&&(r=r.replace(/[\n]/g,"\u21B5")),r&&r.trim()?r:'"'+r+'"'},e.prototype.findDocumentColors=function(t,r,n){return this.schemaService.getSchemaForResource(t.uri,r).then(function(i){var a=[];if(i)for(var s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE,l=r.getMatchingSchemas(i.schema),f={},o=0,u=l;o<u.length;o++){var c=u[o];if(!c.inverted&&c.schema&&(c.schema.format==="color"||c.schema.format==="color-hex")&&c.node&&c.node.type==="string"){var v=String(c.node.offset);if(!f[v]){var m=Js(Ge(c.node));if(m){var p=Qe(t,c.node);a.push({color:m,range:p})}if(f[v]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(t.uri),a}}}return a})},e.prototype.getColorPresentations=function(t,r,n,i){var a=[],s=Math.round(n.red*255),l=Math.round(n.green*255),f=Math.round(n.blue*255);function o(c){var v=c.toString(16);return v.length!==2?"0"+v:v}var u;return n.alpha===1?u="#"+o(s)+o(l)+o(f):u="#"+o(s)+o(l)+o(f)+o(Math.round(n.alpha*255)),a.push({label:u,textEdit:Re.replace(i,JSON.stringify(u))}),a},e}();function Qe(e,t){return oe.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Y=vt(),jr={schemaAssociations:{},schemas:{"http://json-schema.org/draft-04/schema#":{title:Y("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:Y("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},Zs={id:Y("schema.json.id","A unique identifier for the schema."),$schema:Y("schema.json.$schema","The schema to verify this document against."),title:Y("schema.json.title","A descriptive title of the element."),description:Y("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Y("schema.json.default","A default value. Used by suggestions."),multipleOf:Y("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Y("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Y("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Y("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Y("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Y("schema.json.maxLength","The maximum length of a string."),minLength:Y("schema.json.minLength","The minimum length of a string."),pattern:Y("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Y("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:Y("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:Y("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Y("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Y("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Y("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Y("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Y("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Y("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:Y("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Y("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Y("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Y("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:Y("schema.json.enum","The set of literal values that are valid."),type:Y("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:Y("schema.json.format","Describes the format expected for the value."),allOf:Y("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Y("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Y("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Y("schema.json.not","A schema which must not match."),$id:Y("schema.json.$id","A unique identifier for the schema."),$ref:Y("schema.json.$ref","Reference a definition hosted on any location."),$comment:Y("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Y("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Y("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Y("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Y("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:Y("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Y("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Y("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Y("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Y("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Y("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var Xs in jr.schemas){var Dr=jr.schemas[Xs];for(var Et in Dr.properties){var Rr=Dr.properties[Et];Rr===!0&&(Rr=Dr.properties[Et]={});var qi=Zs[Et];qi?Rr.description=qi:console.log(Et+": localize('schema.json."+Et+`', "")`)}}function Ks(e,t){var r=[],n=[],i=[],a=-1,s=ht(e.getText(),!1),l=s.scan();function f(x){r.push(x),n.push(i.length)}for(;l!==17;){switch(l){case 1:case 3:{var o=e.positionAt(s.getTokenOffset()).line,u={startLine:o,endLine:o,kind:l===1?"object":"array"};i.push(u);break}case 2:case 4:{var c=l===2?"object":"array";if(i.length>0&&i[i.length-1].kind===c){var u=i.pop(),v=e.positionAt(s.getTokenOffset()).line;u&&v>u.startLine+1&&a!==u.startLine&&(u.endLine=v-1,f(u),a=u.startLine)}break}case 13:{var o=e.positionAt(s.getTokenOffset()).line,m=e.positionAt(s.getTokenOffset()+s.getTokenLength()).line;s.getTokenError()===1&&o+1<e.lineCount?s.setPosition(e.offsetAt(Oe.create(o+1,0))):o<m&&(f({startLine:o,endLine:m,kind:At.Comment}),a=o);break}case 12:{var p=e.getText().substr(s.getTokenOffset(),s.getTokenLength()),g=p.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(g){var v=e.positionAt(s.getTokenOffset()).line;if(g[1]){var u={startLine:v,endLine:v,kind:At.Region};i.push(u)}else{for(var N=i.length-1;N>=0&&i[N].kind!==At.Region;)N--;if(N>=0){var u=i[N];i.length=N,v>u.startLine&&a!==u.startLine&&(u.endLine=v,f(u),a=u.startLine)}}}break}}l=s.scan()}var S=t&&t.rangeLimit;if(typeof S!="number"||r.length<=S)return r;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var b=[],h=0,_=n;h<_.length;h++){var d=_[h];d<30&&(b[d]=(b[d]||0)+1)}for(var w=0,A=0,N=0;N<b.length;N++){var L=b[N];if(L){if(L+w>S){A=N;break}w+=L}}for(var E=[],N=0;N<r.length;N++){var d=n[N];typeof d=="number"&&(d<A||d===A&&w++<S)&&E.push(r[N])}return E}function eo(e,t,r){function n(l){for(var f=e.offsetAt(l),o=r.getNodeFromOffset(f,!0),u=[];o;){switch(o.type){case"string":case"object":case"array":var c=o.offset+1,v=o.offset+o.length-1;c<v&&f>=c&&f<=v&&u.push(i(c,v)),u.push(i(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":u.push(i(o.offset,o.offset+o.length));break}if(o.type==="property"||o.parent&&o.parent.type==="array"){var m=s(o.offset+o.length,5);m!==-1&&u.push(i(o.offset,m))}o=o.parent}for(var p=void 0,g=u.length-1;g>=0;g--)p=Bt.create(u[g],p);return p||(p=Bt.create(oe.create(l,l))),p}function i(l,f){return oe.create(e.positionAt(l),e.positionAt(f))}var a=ht(e.getText(),!0);function s(l,f){a.setPosition(l);var o=a.scan();return o===f?a.getTokenOffset()+a.getTokenLength():-1}return t.map(n)}function to(e){var t=e.promiseConstructor||Promise,r=new qs(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(jr);var n=new Ds(r,e.contributions,t,e.clientCapabilities),i=new Rs(r,e.contributions,t),a=new Qs(r),s=new $s(r,t);return{configure:function(f){r.clearExternalSchemas(),f.schemas&&f.schemas.forEach(function(o){r.registerExternalSchema(o.uri,o.fileMatch,o.schema)}),s.configure(f)},resetSchema:function(f){return r.onResourceChange(f)},doValidation:s.doValidation.bind(s),parseJSONDocument:function(f){return Ms(f,{collectComments:!0})},newJSONDocument:function(f,o){return Cs(f,o)},doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:a.findDocumentSymbols.bind(a),findDocumentSymbols2:a.findDocumentSymbols2.bind(a),findColorSymbols:function(f,o){return a.findDocumentColors(f,o).then(function(u){return u.map(function(c){return c.range})})},findDocumentColors:a.findDocumentColors.bind(a),getColorPresentations:a.getColorPresentations.bind(a),doHover:i.doHover.bind(i),getFoldingRanges:Ks,getSelectionRanges:eo,format:function(f,o,u){var c=void 0;if(o){var v=f.offsetAt(o.start),m=f.offsetAt(o.end)-v;c={offset:v,length:m}}var p={tabSize:u?u.tabSize:4,insertSpaces:u?u.insertSpaces:!0,eol:`
`};return ys(f.getText(),c,p).map(function(g){return Re.replace(oe.create(f.positionAt(g.offset),f.positionAt(g.offset+g.length)),g.content)})}}}var Bi;typeof fetch!="undefined"&&(Bi=function(t){return fetch(t).then(function(r){return r.text()})});var ro=function(){function e(t){this.wrapped=new Promise(t)}return e.prototype.then=function(t,r){var n=this.wrapped;return n.then(t,r)},e.prototype.getWrapped=function(){return this.wrapped},e.resolve=function(t){return Promise.resolve(t)},e.reject=function(t){return Promise.reject(t)},e.all=function(t){return Promise.all(t)},e}(),$i=function(){function e(t,r){this._ctx=t,this._languageSettings=r.languageSettings,this._languageId=r.languageId,this._languageService=to({schemaRequestService:r.enableSchemaRequest&&Bi,promiseConstructor:ro}),this._languageService.configure(this._languageSettings)}return e.prototype.doValidation=function(t){var r=this._getTextDocument(t);if(r){var n=this._languageService.parseJSONDocument(r);return this._languageService.doValidation(r,n)}return Promise.resolve([])},e.prototype.doComplete=function(t,r){var n=this._getTextDocument(t),i=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,r,i)},e.prototype.doResolve=function(t){return this._languageService.doResolve(t)},e.prototype.doHover=function(t,r){var n=this._getTextDocument(t),i=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,r,i)},e.prototype.format=function(t,r,n){var i=this._getTextDocument(t),a=this._languageService.format(i,r,n);return Promise.resolve(a)},e.prototype.resetSchema=function(t){return Promise.resolve(this._languageService.resetSchema(t))},e.prototype.findDocumentSymbols=function(t){var r=this._getTextDocument(t),n=this._languageService.parseJSONDocument(r),i=this._languageService.findDocumentSymbols(r,n);return Promise.resolve(i)},e.prototype.findDocumentColors=function(t){var r=this._getTextDocument(t),n=this._languageService.parseJSONDocument(r),i=this._languageService.findDocumentColors(r,n);return Promise.resolve(i)},e.prototype.getColorPresentations=function(t,r,n){var i=this._getTextDocument(t),a=this._languageService.parseJSONDocument(i),s=this._languageService.getColorPresentations(i,a,r,n);return Promise.resolve(s)},e.prototype.getFoldingRanges=function(t,r){var n=this._getTextDocument(t),i=this._languageService.getFoldingRanges(n,r);return Promise.resolve(i)},e.prototype.getSelectionRanges=function(t,r){var n=this._getTextDocument(t),i=this._languageService.parseJSONDocument(n),a=this._languageService.getSelectionRanges(n,r,i);return Promise.resolve(a)},e.prototype._getTextDocument=function(t){for(var r=this._ctx.getMirrorModels(),n=0,i=r;n<i.length;n++){var a=i[n];if(a.uri.toString()===t)return kr.create(t,this._languageId,a.version,a.getValue())}return null},e}();function Uu(e,t){return new $i(e,t)}self.onmessage=function(){Zn(function(e,t){return new $i(e,t)})}},IyRk:function(je,q){(function(X){je.exports=function(){var O={873:function(ce){var k;k=function(){return this}();try{k=k||new Function("return this")()}catch(U){typeof window=="object"&&(k=window)}ce.exports=k}},G={};function V(ae){if(G[ae])return G[ae].exports;var ce=G[ae]={exports:{}},k=!0;try{O[ae](ce,ce.exports,V),k=!1}finally{k&&delete G[ae]}return ce.exports}return V.ab=X+"/",V(873)}()}).call(this,"/")},MNsG:function(je,q,X){"use strict";(function(O,G){X.d(q,"c",function(){return ge}),X.d(q,"b",function(){return ye}),X.d(q,"a",function(){return ke});var V="en",ae=!1,ce=!1,k=!1,U=!1,$=!1,B=!1,ie=void 0,le=V,pe=void 0,te=void 0,F=typeof O!="undefined"&&typeof O.versions!="undefined"&&typeof O.versions.electron!="undefined"&&O.type==="renderer";if(typeof navigator=="object"&&!F)te=navigator.userAgent,ae=te.indexOf("Windows")>=0,ce=te.indexOf("Macintosh")>=0,B=te.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,k=te.indexOf("Linux")>=0,$=!0,ie=navigator.language,le=ie;else if(typeof O=="object"){ae=O.platform==="win32",ce=O.platform==="darwin",k=O.platform==="linux",ie=V,le=V;var R=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(R)try{var J=JSON.parse(R),re=J.availableLanguages["*"];ie=J.locale,le=re||V,pe=J._translationsConfigFile}catch(C){}U=!0}var Z=0;ce?Z=1:ae?Z=3:k&&(Z=2);var ge=ae,Pe=ce,Xe=k,Ce=U,ye=$,_e=B,pt=typeof self=="object"?self:typeof G=="object"?G:{},ke=pt,gt=function(){if(ke.setImmediate)return ke.setImmediate.bind(ke);if(typeof ke.postMessage=="function"&&!ke.importScripts){var T=[];ke.addEventListener("message",function(ee){if(ee.data&&ee.data.vscodeSetImmediateId)for(var H=0,K=T.length;H<K;H++){var tt=T[H];if(tt.id===ee.data.vscodeSetImmediateId){T.splice(H,1),tt.callback();return}}});var I=0;return function(ee){var H=++I;T.push({id:H,callback:ee}),ke.postMessage({vscodeSetImmediateId:H},"*")}}if(typeof O!="undefined"&&typeof O.nextTick=="function")return O.nextTick.bind(O);var j=Promise.resolve();return function(ee){return j.then(ee)}}(),dt=ce?2:ae?1:3}).call(this,X("Q2Ig"),X("IyRk"))},Q2Ig:function(je,q,X){q.nextTick=function(G){var V=Array.prototype.slice.call(arguments);V.shift(),setTimeout(function(){G.apply(null,V)},0)},q.platform=q.arch=q.execPath=q.title="browser",q.pid=1,q.browser=!0,q.env={},q.argv=[],q.binding=function(O){throw new Error("No such module. (Possibly not yet loaded)")},function(){var O="/",G;q.cwd=function(){return O},q.chdir=function(V){G||(G=X("33yf")),O=G.resolve(V,O)}}(),q.exit=q.kill=q.umask=q.dlopen=q.uptime=q.memoryUsage=q.uvCounters=function(){},q.features={}},URDS:function(je,q,X){(function(O){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(G,V){V()})(this,function(){"use strict";function G(F){var R=this.constructor;return this.then(function(J){return R.resolve(F()).then(function(){return J})},function(J){return R.resolve(F()).then(function(){return R.reject(J)})})}var V=setTimeout;function ae(){}function ce(F,R){return function(){F.apply(R,arguments)}}function k(F){if(!(this instanceof k))throw new TypeError("Promises must be constructed via new");if(typeof F!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],pe(F,this)}function U(F,R){for(;F._state===3;)F=F._value;if(F._state===0){F._deferreds.push(R);return}F._handled=!0,k._immediateFn(function(){var J=F._state===1?R.onFulfilled:R.onRejected;if(J===null){(F._state===1?$:B)(R.promise,F._value);return}var re;try{re=J(F._value)}catch(Z){B(R.promise,Z);return}$(R.promise,re)})}function $(F,R){try{if(R===F)throw new TypeError("A promise cannot be resolved with itself.");if(R&&(typeof R=="object"||typeof R=="function")){var J=R.then;if(R instanceof k){F._state=3,F._value=R,ie(F);return}else if(typeof J=="function"){pe(ce(J,R),F);return}}F._state=1,F._value=R,ie(F)}catch(re){B(F,re)}}function B(F,R){F._state=2,F._value=R,ie(F)}function ie(F){F._state===2&&F._deferreds.length===0&&k._immediateFn(function(){F._handled||k._unhandledRejectionFn(F._value)});for(var R=0,J=F._deferreds.length;R<J;R++)U(F,F._deferreds[R]);F._deferreds=null}function le(F,R,J){this.onFulfilled=typeof F=="function"?F:null,this.onRejected=typeof R=="function"?R:null,this.promise=J}function pe(F,R){var J=!1;try{F(function(re){J||(J=!0,$(R,re))},function(re){J||(J=!0,B(R,re))})}catch(re){if(J)return;J=!0,B(R,re)}}k.prototype.catch=function(F){return this.then(null,F)},k.prototype.then=function(F,R){var J=new this.constructor(ae);return U(this,new le(F,R,J)),J},k.prototype.finally=G,k.all=function(F){return new k(function(R,J){if(!F||typeof F.length=="undefined")throw new TypeError("Promise.all accepts an array");var re=Array.prototype.slice.call(F);if(re.length===0)return R([]);var Z=re.length;function ge(Xe,Ce){try{if(Ce&&(typeof Ce=="object"||typeof Ce=="function")){var ye=Ce.then;if(typeof ye=="function"){ye.call(Ce,function(_e){ge(Xe,_e)},J);return}}re[Xe]=Ce,--Z==0&&R(re)}catch(_e){J(_e)}}for(var Pe=0;Pe<re.length;Pe++)ge(Pe,re[Pe])})},k.resolve=function(F){return F&&typeof F=="object"&&F.constructor===k?F:new k(function(R){R(F)})},k.reject=function(F){return new k(function(R,J){J(F)})},k.race=function(F){return new k(function(R,J){for(var re=0,Z=F.length;re<Z;re++)F[re].then(R,J)})},k._immediateFn=typeof setImmediate=="function"&&function(F){setImmediate(F)}||function(F){V(F,0)},k._unhandledRejectionFn=function(R){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",R)};var te=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof O!="undefined")return O;throw new Error("unable to locate global object")}();"Promise"in te?te.Promise.prototype.finally||(te.Promise.prototype.finally=G):te.Promise=k})}).call(this,X("IyRk"))},"xiP/":function(je,q,X){"use strict";(function(O){X.d(q,"a",function(){return Xe});var G=function(){var C=function(I,j){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,H){ee.__proto__=H}||function(ee,H){for(var K in H)H.hasOwnProperty(K)&&(ee[K]=H[K])},C(I,j)};return function(T,I){C(T,I);function j(){this.constructor=T}T.prototype=I===null?Object.create(I):(j.prototype=I.prototype,new j)}}(),V,ae;if(typeof O=="object")ae=O.platform==="win32";else if(typeof navigator=="object"){var ce=navigator.userAgent;ae=ce.indexOf("Windows")>=0}function k(C){return 55296<=C&&C<=56319}function U(C){return 56320<=C&&C<=57343}function $(C){return C>=97&&C<=102}function B(C){return C>=97&&C<=122}function ie(C){return C>=65&&C<=90}function le(C){return B(C)||ie(C)}var pe=/^\w[\w\d+.-]*$/,te=/^\//,F=/^\/\//;function R(C,T){if(!C.scheme&&T)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+C.authority+'", path: "'+C.path+'", query: "'+C.query+'", fragment: "'+C.fragment+'"}');if(C.scheme&&!pe.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!te.test(C.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(F.test(C.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function J(C,T){return!C&&!T?"file":C}function re(C,T){switch(C){case"https":case"http":case"file":T?T[0]!==ge&&(T=ge+T):T=ge;break}return T}var Z="",ge="/",Pe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Xe=function(){function C(T,I,j,ee,H,K){K===void 0&&(K=!1),typeof T=="object"?(this.scheme=T.scheme||Z,this.authority=T.authority||Z,this.path=T.path||Z,this.query=T.query||Z,this.fragment=T.fragment||Z):(this.scheme=J(T,K),this.authority=I||Z,this.path=re(this.scheme,j||Z),this.query=ee||Z,this.fragment=H||Z,R(this,K))}return C.isUri=function(T){return T instanceof C?!0:T?typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="function"&&typeof T.with=="function"&&typeof T.toString=="function":!1},Object.defineProperty(C.prototype,"fsPath",{get:function(){return gt(this)},enumerable:!0,configurable:!0}),C.prototype.with=function(T){if(!T)return this;var I=T.scheme,j=T.authority,ee=T.path,H=T.query,K=T.fragment;return I===void 0?I=this.scheme:I===null&&(I=Z),j===void 0?j=this.authority:j===null&&(j=Z),ee===void 0?ee=this.path:ee===null&&(ee=Z),H===void 0?H=this.query:H===null&&(H=Z),K===void 0?K=this.fragment:K===null&&(K=Z),I===this.scheme&&j===this.authority&&ee===this.path&&H===this.query&&K===this.fragment?this:new ye(I,j,ee,H,K)},C.parse=function(T,I){I===void 0&&(I=!1);var j=Pe.exec(T);return j?new ye(j[2]||Z,decodeURIComponent(j[4]||Z),decodeURIComponent(j[5]||Z),decodeURIComponent(j[7]||Z),decodeURIComponent(j[9]||Z),I):new ye(Z,Z,Z,Z,Z)},C.file=function(T){var I=Z;if(ae&&(T=T.replace(/\\/g,ge)),T[0]===ge&&T[1]===ge){var j=T.indexOf(ge,2);j===-1?(I=T.substring(2),T=ge):(I=T.substring(2,j),T=T.substring(j)||ge)}return new ye("file",I,T,Z,Z)},C.from=function(T){return new ye(T.scheme,T.authority,T.path,T.query,T.fragment)},C.prototype.toString=function(T){return T===void 0&&(T=!1),dt(this,T)},C.prototype.toJSON=function(){return this},C.revive=function(T){if(T){if(T instanceof C)return T;var I=new ye(T);return I._formatted=T.external,I._fsPath=T._sep===Ce?T.fsPath:null,I}else return T},C}(),Ce=ae?1:void 0,ye=function(C){G(T,C);function T(){var I=C!==null&&C.apply(this,arguments)||this;return I._formatted=null,I._fsPath=null,I}return Object.defineProperty(T.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=gt(this)),this._fsPath},enumerable:!0,configurable:!0}),T.prototype.toString=function(I){return I===void 0&&(I=!1),I?dt(this,!0):(this._formatted||(this._formatted=dt(this,!1)),this._formatted)},T.prototype.toJSON=function(){var I={$mid:1};return this._fsPath&&(I.fsPath=this._fsPath,I._sep=Ce),this._formatted&&(I.external=this._formatted),this.path&&(I.path=this.path),this.scheme&&(I.scheme=this.scheme),this.authority&&(I.authority=this.authority),this.query&&(I.query=this.query),this.fragment&&(I.fragment=this.fragment),I},T}(Xe),_e=(V={},V[58]="%3A",V[47]="%2F",V[63]="%3F",V[35]="%23",V[91]="%5B",V[93]="%5D",V[64]="%40",V[33]="%21",V[36]="%24",V[38]="%26",V[39]="%27",V[40]="%28",V[41]="%29",V[42]="%2A",V[43]="%2B",V[44]="%2C",V[59]="%3B",V[61]="%3D",V[32]="%20",V);function pt(C,T){for(var I=void 0,j=-1,ee=0;ee<C.length;ee++){var H=C.charCodeAt(ee);if(H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===45||H===46||H===95||H===126||T&&H===47)j!==-1&&(I+=encodeURIComponent(C.substring(j,ee)),j=-1),I!==void 0&&(I+=C.charAt(ee));else{I===void 0&&(I=C.substr(0,ee));var K=_e[H];K!==void 0?(j!==-1&&(I+=encodeURIComponent(C.substring(j,ee)),j=-1),I+=K):j===-1&&(j=ee)}}return j!==-1&&(I+=encodeURIComponent(C.substring(j))),I!==void 0?I:C}function ke(C){for(var T=void 0,I=0;I<C.length;I++){var j=C.charCodeAt(I);j===35||j===63?(T===void 0&&(T=C.substr(0,I)),T+=_e[j]):T!==void 0&&(T+=C[I])}return T!==void 0?T:C}function gt(C){var T;return C.authority&&C.path.length>1&&C.scheme==="file"?T="//"+C.authority+C.path:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?T=C.path[1].toLowerCase()+C.path.substr(2):T=C.path,ae&&(T=T.replace(/\//g,"\\")),T}function dt(C,T){var I=T?ke:pt,j="",ee=C.scheme,H=C.authority,K=C.path,tt=C.query,yt=C.fragment;if(ee&&(j+=ee,j+=":"),(H||ee==="file")&&(j+=ge,j+=ge),H){var Ae=H.indexOf("@");if(Ae!==-1){var We=H.substr(0,Ae);H=H.substr(Ae+1),Ae=We.indexOf(":"),Ae===-1?j+=I(We,!1):(j+=I(We.substr(0,Ae),!1),j+=":",j+=I(We.substr(Ae+1),!1)),j+="@"}H=H.toLowerCase(),Ae=H.indexOf(":"),Ae===-1?j+=I(H,!1):(j+=I(H.substr(0,Ae),!1),j+=H.substr(Ae))}if(K){if(K.length>=3&&K.charCodeAt(0)===47&&K.charCodeAt(2)===58){var Me=K.charCodeAt(1);Me>=65&&Me<=90&&(K="/"+String.fromCharCode(Me+32)+":"+K.substr(3))}else if(K.length>=2&&K.charCodeAt(1)===58){var Me=K.charCodeAt(0);Me>=65&&Me<=90&&(K=String.fromCharCode(Me+32)+":"+K.substr(2))}j+=I(K,!0)}return tt&&(j+="?",j+=I(tt,!1)),yt&&(j+="#",j+=T?yt:pt(yt,!1)),j}}).call(this,X("Q2Ig"))}});