(function(De){var W={};function z(j){if(W[j])return W[j].exports;var Q=W[j]={i:j,l:!1,exports:{}};return De[j].call(Q.exports,Q,Q.exports,z),Q.l=!0,Q.exports}return z.m=De,z.c=W,z.d=function(j,Q,G){z.o(j,Q)||Object.defineProperty(j,Q,{enumerable:!0,get:G})},z.r=function(j){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},z.t=function(j,Q){if(Q&1&&(j=z(j)),Q&8)return j;if(Q&4&&typeof j=="object"&&j&&j.__esModule)return j;var G=Object.create(null);if(z.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:j}),Q&2&&typeof j!="string")for(var fe in j)z.d(G,fe,function(be){return j[be]}.bind(null,fe));return G},z.n=function(j){var Q=j&&j.__esModule?function(){return j.default}:function(){return j};return z.d(Q,"a",Q),Q},z.o=function(j,Q){return Object.prototype.hasOwnProperty.call(j,Q)},z.p="/react/build/",z(z.s="8Z8O")})({"33yf":function(De,W,z){(function(j){function Q(x,R){for(var q=0,V=x.length-1;V>=0;V--){var ie=x[V];ie==="."?x.splice(V,1):ie===".."?(x.splice(V,1),q++):q&&(x.splice(V,1),q--)}if(R)for(;q--;q)x.unshift("..");return x}W.resolve=function(){for(var x="",R=!1,q=arguments.length-1;q>=-1&&!R;q--){var V=q>=0?arguments[q]:j.cwd();if(typeof V!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!V)continue;x=V+"/"+x,R=V.charAt(0)==="/"}return x=Q(fe(x.split("/"),function(ie){return!!ie}),!R).join("/"),(R?"/":"")+x||"."},W.normalize=function(x){var R=W.isAbsolute(x),q=be(x,-1)==="/";return x=Q(fe(x.split("/"),function(V){return!!V}),!R).join("/"),!x&&!R&&(x="."),x&&q&&(x+="/"),(R?"/":"")+x},W.isAbsolute=function(x){return x.charAt(0)==="/"},W.join=function(){var x=Array.prototype.slice.call(arguments,0);return W.normalize(fe(x,function(R,q){if(typeof R!="string")throw new TypeError("Arguments to path.join must be strings");return R}).join("/"))},W.relative=function(x,R){x=W.resolve(x).substr(1),R=W.resolve(R).substr(1);function q(U){for(var J=0;J=0&&!(U[re]!=="");re--);return J>re?[]:U.slice(J,re-J+1)}for(var V=q(x.split("/")),ie=q(R.split("/")),le=Math.min(V.length,ie.length),me=le,te=0;te=1;--le)if(R=x.charCodeAt(le),R===47){if(!ie){V=le;break}}else ie=!1;return V===-1?q?"/":".":q&&V===1?"/":x.slice(0,V)};function G(x){typeof x!="string"&&(x=x+"");var R=0,q=-1,V=!0,ie;for(ie=x.length-1;ie>=0;--ie)if(x.charCodeAt(ie)===47){if(!V){R=ie+1;break}}else q===-1&&(V=!1,q=ie+1);return q===-1?"":x.slice(R,q)}W.basename=function(x,R){var q=G(x);return R&&q.substr(-1*R.length)===R&&(q=q.substr(0,q.length-R.length)),q},W.extname=function(x){typeof x!="string"&&(x=x+"");for(var R=-1,q=0,V=-1,ie=!0,le=0,me=x.length-1;me>=0;--me){var te=x.charCodeAt(me);if(te===47){if(!ie){q=me+1;break}continue}V===-1&&(ie=!1,V=me+1),te===46?R===-1?R=me:le!==1&&(le=1):R!==-1&&(le=-1)}return R===-1||V===-1||le===0||le===1&&R===V-1&&R===q+1?"":x.slice(R,V)};function fe(x,R){if(x.filter)return x.filter(R);for(var q=[],V=0;V0)i=o-1;else return o}return-(n+1)}function ps(e,t){var r=0,n=e.length;if(n===0)return 0;for(;rn?e[l]=o[f++]:f>i?e[l]=o[a++]:t(o[f],o[a])<0?e[l]=o[f++]:e[l]=o[a++]}function Jt(e,t,r,n,i){if(n<=r)return;var o=r+(n-r)/2|0;if(Jt(e,t,r,o,i),Jt(e,t,o+1,n,i),t(e[o],e[o+1])<=0)return;Xi(e,t,r,o,n,i)}function gs(e,t){for(var r=[],n=void 0,i=0,o=Jr(e.slice(0),t);i0}function ws(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 _s(e){var t=new Set;return e.filter(function(r){return t.has(r)?!1:(t.add(r),!0)})}function Ts(e){var t=[];return e.forEach(function(r){return t.push(r)}),t}function Ki(e,t){for(var r=0;r0?e[0]:t}function Ss(e){var t;return(t=[]).concat.apply(t,e)}function Ls(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;it;i--)n.push(i);return n}function Es(e,t,r){var n=e.slice(0,t),i=e.slice(t);return n.concat(r,i)}function ks(e,t){var r=e.indexOf(t);r>-1&&(e.splice(r,1),e.unshift(t))}function Ns(e,t){var r=e.indexOf(t);r>-1&&(e.splice(r,1),e.push(t))}function xs(e,t){for(var r=0;r0||this.m_modifiedCount>0)&&this.m_changes.push(new Ye(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),o=i[0],a=i[1],f=i[2],l=e._getElements(r),s=l[0],u=l[1],c=l[2];this._hasStrings=f&&c,this._originalStringElements=o,this._originalElementsOrHash=a,this._modifiedStringElements=s,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,o=r.length;i=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){var a=void 0;return n<=i?(rt.Assert(t===r+1,"originalStart should only be one more than originalEnd"),a=[new Ye(t,0,n,i-n+1)]):t<=r?(rt.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[new Ye(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"),a=[]),a}var f=[0],l=[0],s=this.ComputeRecursionPoint(t,r,n,i,f,l,o),u=f[0],c=l[0];if(s!==null)return s;if(!o[0]){var d=this.ComputeDiffRecursive(t,u,n,c,o),m=[];return o[0]?m=[new Ye(u+1,r-(u+1)+1,c+1,i-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,r,c+1,i,o),this.ConcatenateChanges(d,m)}return[new Ye(t,r-t+1,n,i-n+1)]},e.prototype.WALKTRACE=function(t,r,n,i,o,a,f,l,s,u,c,d,m,p,g,C,_,b){var h=null,w=null,v=new Zr,T=r,A=n,S=m[0]-C[0]-i,L=-1073741824,N=this.m_forwardHistory.length-1;do{var y=S+t;y===T||y=0&&(s=this.m_forwardHistory[N],t=s[0],T=1,A=s.length-1)}while(--N>=-1);if(h=v.getReverseChanges(),b[0]){var M=m[0]+1,B=C[0]+1;if(h!==null&&h.length>0){var Y=h[h.length-1];M=Math.max(M,Y.getOriginalEnd()),B=Math.max(B,Y.getModifiedEnd())}w=[new Ye(M,d-M+1,B,g-B+1)]}else{v=new Zr,T=a,A=f,S=m[0]-C[0]-l,L=1073741824,N=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var y=S+o;y===T||y=u[y+1]?(c=u[y+1]-1,p=c-S-l,c>L&&v.MarkNextChange(),L=c+1,v.AddOriginalElement(c+1,p+1),S=y+1-o):(c=u[y-1],p=c-S-l,c>L&&v.MarkNextChange(),L=c,v.AddModifiedElement(c+1,p+1),S=y-1-o),N>=0&&(u=this.m_reverseHistory[N],o=u[0],T=1,A=u.length-1)}while(--N>=-1);w=v.getChanges()}return this.ConcatenateChanges(h,w)},e.prototype.ComputeRecursionPoint=function(t,r,n,i,o,a,f){var l=0,s=0,u=0,c=0,d=0,m=0;t--,n--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var p=r-t+(i-n),g=p+1,C=new Int32Array(g),_=new Int32Array(g),b=i-n,h=r-t,w=t-n,v=r-i,T=h-b,A=T%2===0;C[b]=t,_[h]=r,f[0]=!1;for(var S=1;S<=p/2+1;S++){var L=0,N=0;u=this.ClipDiagonalBound(b-S,S,b,g),c=this.ClipDiagonalBound(b+S,S,b,g);for(var y=u;y<=c;y+=2){y===u||yL+N&&(L=l,N=s),!A&&Math.abs(y-h)<=S-1&&l>=_[y])return o[0]=l,a[0]=s,M<=_[y]&&1447>0&&S<=1447+1?this.WALKTRACE(b,u,c,w,h,d,m,v,C,_,l,r,o,s,i,a,A,f):null}var B=(L-t+(N-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(L,B))return f[0]=!0,o[0]=L,a[0]=N,B>0&&1447>0&&S<=1447+1?this.WALKTRACE(b,u,c,w,h,d,m,v,C,_,l,r,o,s,i,a,A,f):(t++,n++,[new Ye(t,r-t+1,n,i-n+1)]);d=this.ClipDiagonalBound(h-S,S,h,g),m=this.ClipDiagonalBound(h+S,S,h,g);for(var y=d;y<=m;y+=2){y===d||y=_[y+1]?l=_[y+1]-1:l=_[y-1],s=l-(y-h)-v;for(var M=l;l>t&&s>n&&this.ElementsAreEqual(l,s);)l--,s--;if(_[y]=l,A&&Math.abs(y-b)<=S&&l<=C[y])return o[0]=l,a[0]=s,M>=C[y]&&1447>0&&S<=1447+1?this.WALKTRACE(b,u,c,w,h,d,m,v,C,_,l,r,o,s,i,a,A,f):null}if(S<=1447){var Y=new Int32Array(c-u+2);Y[0]=b-u+1,nt.Copy2(C,u,Y,1,c-u+1),this.m_forwardHistory.push(Y),Y=new Int32Array(m-d+2),Y[0]=h-d+1,nt.Copy2(_,d,Y,1,m-d+1),this.m_reverseHistory.push(Y)}}return this.WALKTRACE(b,u,c,w,h,d,m,v,C,_,l,r,o,s,i,a,A,f)},e.prototype.PrettifyChanges=function(t){for(var r=0;r0,f=n.modifiedLength>0;n.originalStart+n.originalLength=0;r--){var n=t[r],i=0,o=0;if(r>0){var s=t[r-1];s.originalLength>0&&(i=s.originalStart+s.originalLength),s.modifiedLength>0&&(o=s.modifiedStart+s.modifiedLength)}for(var a=n.originalLength>0,f=n.modifiedLength>0,u=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var m=n.originalStart-d,p=n.modifiedStart-d;if(mc&&(c=g,u=d)}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 o=this._OriginalRegionIsBoundary(t,r)?1:0,a=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+a},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,o=t.originalLength,a=t.modifiedStart,f=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(o=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(f=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new Ye(i,o,a,f),!0}else return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(t,r,n,i){if(t>=0&&t=g?Ve:{done:!1,value:m[p++]}}}}e.fromArray=i;function o(m){return{next:function(){var g=m.next();return g.done?Ve:{done:!1,value:g.value}}}}e.fromNativeIterator=o;function a(m){return m?Array.isArray(m)?e.fromArray(m):m:e.empty()}e.from=a;function f(m,p){return{next:function(){var C=m.next();return C.done?Ve:{done:!1,value:p(C.value)}}}}e.map=f;function l(m,p){return{next:function(){for(;;){var C=m.next();if(C.done)return Ve;if(p(C.value))return{done:!1,value:C.value}}}}}e.filter=l;function s(m,p){for(var g=m.next();!g.done;g=m.next())p(g.value)}e.forEach=s;function u(m,p){p===void 0&&(p=Number.POSITIVE_INFINITY);var g=[];if(p===0)return g;for(var C=0,_=m.next();!_.done&&!(g.push(_.value),++C>=p);_=m.next());return g}e.collect=u;function c(){for(var m=[],p=0;p=m.length)return Ve;var _=m[g],b=_.next();return b.done?(g++,this.next()):b}}}e.concat=c;function d(m){return new oo(m)}e.chain=d})(kt||(kt={}));var oo=function(){function e(t){this.it=t}return e.prototype.next=function(){return this.it.next()},e}();function Ms(e){return Array.isArray(e)?kt.fromArray(e):e||kt.empty()}var ao=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}(),Fs=function(e){io(t,e);function t(r,n,i,o){return n===void 0&&(n=0),i===void 0&&(i=r.length),o===void 0&&(o=n-1),e.call(this,r,n,i,o)||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}(ao),Os=function(){function e(t,r){this.iterator=t,this.fn=r}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}(),so=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a])},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)}}(),ce,uo=/^\w[\w\d+.-]*$/,lo=/^\//,fo=/^\/\//;function co(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&&!uo.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!lo.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(fo.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 ho(e,t){return!e&&!t?"file":e}function mo(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Fe&&(t=Fe+t):t=Fe;break}return t}var oe="",Fe="/",po=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Qt=function(){function e(t,r,n,i,o,a){a===void 0&&(a=!1),typeof t=="object"?(this.scheme=t.scheme||oe,this.authority=t.authority||oe,this.path=t.path||oe,this.query=t.query||oe,this.fragment=t.fragment||oe):(this.scheme=ho(t,a),this.authority=r||oe,this.path=mo(this.scheme,n||oe),this.query=i||oe,this.fragment=o||oe,co(this,a))}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,o=t.query,a=t.fragment;return r===void 0?r=this.scheme:r===null&&(r=oe),n===void 0?n=this.authority:n===null&&(n=oe),i===void 0?i=this.path:i===null&&(i=oe),o===void 0?o=this.query:o===null&&(o=oe),a===void 0?a=this.fragment:a===null&&(a=oe),r===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&a===this.fragment?this:new it(r,n,i,o,a)},e.parse=function(t,r){r===void 0&&(r=!1);var n=po.exec(t);return n?new it(n[2]||oe,Nt(n[4]||oe),Nt(n[5]||oe),Nt(n[7]||oe),Nt(n[9]||oe),r):new it(oe,oe,oe,oe,oe)},e.file=function(t){var r=oe;if(ve.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,oe,oe)},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=ve.c?1:void 0,it=function(e){so(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=(ce={},ce[58]="%3A",ce[47]="%2F",ce[63]="%3F",ce[35]="%23",ce[91]="%5B",ce[93]="%5D",ce[64]="%40",ce[33]="%21",ce[36]="%24",ce[38]="%26",ce[39]="%27",ce[40]="%28",ce[41]="%29",ce[42]="%2A",ce[43]="%2B",ce[44]="%2C",ce[59]="%3B",ce[61]="%3D",ce[32]="%20",ce);function tn(e,t){for(var r=void 0,n=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===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 a=en[o];a!==void 0?(n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=a):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(e.substring(n))),r!==void 0?r:e}function go(e){for(var t=void 0,r=0;r1&&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,ve.c&&(t=t.replace(/\//g,"\\")),t}function Zt(e,t){var r=t?go:tn,n="",i=e.scheme,o=e.authority,a=e.path,f=e.query,l=e.fragment;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=Fe,n+=Fe),o){var s=o.indexOf("@");if(s!==-1){var u=o.substr(0,s);o=o.substr(s+1),s=u.indexOf(":"),s===-1?n+=r(u,!1):(n+=r(u.substr(0,s),!1),n+=":",n+=r(u.substr(s+1),!1)),n+="@"}o=o.toLowerCase(),s=o.indexOf(":"),s===-1?n+=r(o,!1):(n+=r(o.substr(0,s),!1),n+=o.substr(s))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){var c=a.charCodeAt(1);c>=65&&c<=90&&(a="/"+String.fromCharCode(c+32)+":"+a.substr(3))}else if(a.length>=2&&a.charCodeAt(1)===58){var c=a.charCodeAt(0);c>=65&&c<=90&&(a=String.fromCharCode(c+32)+":"+a.substr(2))}n+=r(a,!0)}return f&&(n+="?",n+=r(f,!1)),l&&(n+="#",n+=t?l:tn(l,!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 on=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Nt(e){return e.match(on)?e.replace(on,function(t){return nn(t)}):e}var ot=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.lineNumbern||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.lineNumbert.endLineNumber||r.lineNumber===t.startLineNumber&&r.columnt.endColumn)},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(t,r){return r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumnt.endColumn)},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(t,r){return r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn)?!1:!(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,o,a;return r.startLineNumbert.endLineNumber?(o=r.endLineNumber,a=r.endColumn):r.endLineNumber===t.endLineNumber?(o=r.endLineNumber,a=Math.max(r.endColumn,t.endColumn)):(o=t.endLineNumber,a=t.endColumn),new e(n,i,o,a)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,r){var n=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,a=t.endColumn,f=r.startLineNumber,l=r.startColumn,s=r.endLineNumber,u=r.endColumn;return ns?(o=s,a=u):o===s&&(a=Math.min(a,u)),n>o||n===o&&i>a?null:new e(n,i,o,a)},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 ot(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new ot(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.endLineNumbert.startLineNumber},e}();function Ps(e){return!e||typeof e!="string"?!0:e.trim().length===0}function Ds(e,t,r){r===void 0&&(r="0");for(var n=""+e,i=[n],o=n.length;o=t.length?n:t[o]})}function Us(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}})}function yo(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Rs(e,t){t===void 0&&(t=" ");var r=bo(e,t);return wo(r,t)}function bo(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 wo(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,o=-1;!(o=e.lastIndexOf(t,i-1),o===-1||o+r!==i);){if(o===0)return"";i=o}return e.substring(0,i)}function Bs(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Ws(e,t){if(e.length0?e.indexOf(t,r)===r:r===0?e===t:!1}function qs(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("Cannot create regex from empty string");t||(e=yo(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 Hs(e){if(e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$")return!1;var t=e.exec("");return!!(t&&e.lastIndex===0)}function Gs(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function _o(e){for(var t=0,r=e.length;t=0;r--){var n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function Co(e,t){return et?1:0}function Ys(e,t){for(var r=Math.min(e.length,t.length),n=0;nt.length?1:0}function Xt(e){return e>=97&&e<=122}function Kt(e){return e>=65&&e<=90}function an(e){return Xt(e)||Kt(e)}function Js(e,t){return e.length===t.length&&sn(e,t)}function sn(e,t,r){r===void 0&&(r=e.length);for(var n=0;ne.length?!1:sn(e,t,r)}function Qs(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r1){var n=e.charCodeAt(t-2);if(un(n))return(n-55296<<10)+(r-56320)+65536}return r}function Xs(e,t){var r=er.getInstance(),n=t,i=e.length,o=fn(e,i,t);t+=o>=65536?2:1;for(var a=r.getGraphemeBreakType(o);t=65536?2:1,a=l}return t-n}function Ks(e,t){var r=er.getInstance(),n=t,i=cn(e,t);t-=i>=65536?2:1;for(var o=r.getGraphemeBreakType(i);t>0;){var a=cn(e,t),f=r.getGraphemeBreakType(a);if(hn(f,o))break;t-=a>=65536?2:1,o=f}return n-t}var Ao=/(?:[\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 Ao.test(e)}var So=/(?:[\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 So.test(e)}var Lo=/^[\t\n\r\x20-\x7E]*$/;function ru(e){return Lo.test(e)}function nu(e){for(var t=0,r=e.length;t=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 ou=String.fromCharCode(65279);function au(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function su(e){return btoa(encodeURIComponent(e))}function uu(e,t){for(var r="",n=0;nr[3*i+1])i=2*i+1;else return r[3*i+2];return 0},e._INSTANCE=null,e}();function ko(){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 No=3;function dn(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,o=t.length;i0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&o()){var m=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),p=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1),g=dn(m,p,o,!0).changes;f&&(g=Io(g)),d=[];for(var C=0,_=g.length;C<_;C++)d.push(tr.createFromDiffChange(g[C],m,p))}return new e(l,s,u,c,d)},e}(),Mo=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=dn(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),r=t.changes,n=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],o=0,a=r.length;o1&&_>1;){var b=p.charCodeAt(C-2),h=g.charCodeAt(_-2);if(b!==h)break;C--,_--}(C>1||_>1)&&this._pushTrimWhitespaceCharChange(f,l+1,1,C,s+1,1,_)}{for(var w=ir(p,1),v=ir(g,1),T=p.length+1,A=g.length+1;w255?255:e|0}function st(e){return e<0?0:e>4294967295?4294967295:e|0}var Fo=function(){function e(t,r){this.index=t,this.remainder=r}return e}(),Oo=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=st(t);var n=this.values,i=this.prefixSum,o=r.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+o),this.values.set(r,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(t,r){return t=st(t),r=st(r),this.values[t]===r?!1:(this.values[t]=r,t-1=n.length)return!1;var o=n.length-t;return r>=o&&(r=o),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=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=st(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,o=0,a=0;r<=n;)if(i=r+(n-r)/2|0,o=this.prefixSum[i],a=o-this.values[i],t=o)r=i+1;else break;return new Fo(i,t-a)},e}(),Po=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/?";function jo(e){e===void 0&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",r=0,n=Do;r=0)continue;t+="\\"+i}return t+="\\s]+)",new RegExp(t,"g")}var Uo=jo();function Ro(e){var t=Uo;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 Bo(e,t,r,n){var i=e-1-n,o=r.lastIndexOf(" ",i-1)+1;t.lastIndex=o;for(var a;a=t.exec(r);){var f=a.index||0;if(f<=i&&t.lastIndex>=i)return{word:a[0],startColumn:n+1+f,endColumn:n+1+t.lastIndex}}return null}function Wo(e,t,r,n){var i=e-1-n;t.lastIndex=0;for(var o;o=t.exec(r);){var a=o.index||0;if(a>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:n+1+a,endColumn:n+1+t.lastIndex}}return null}function Vo(e,t,r,n){t.lastIndex=0;var i=t.exec(r);if(!i)return null;var o=i[0].indexOf(" ")>=0?Wo(e,t,r,n):Bo(e,t,r,n);return t.lastIndex=0,o}var vn=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 vn(0)}return e.prototype.add=function(t){this._actual.set(t,1)},e.prototype.has=function(t){return this._actual.get(t)===1},e}(),qo=function(){function e(t,r,n){for(var i=new Uint8Array(t*r),o=0,a=t*r;or&&(r=l),f>n&&(n=f),s>n&&(n=s)}r++,n++;for(var u=new qo(n,r,0),i=0,o=t.length;i=this._maxCharCode?0:this._states.get(t,r)},e}(),or=null;function Go(){return or===null&&(or=new Ho([[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]])),or}var bt=null;function $o(){if(bt===null){bt=new vn(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;ti);if(i>0){var s=r.charCodeAt(i-1),u=r.charCodeAt(a);(s===40&&u===41||s===91&&u===93||s===123&&u===125)&&a--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:a+2},url:r.substring(i,a+1)}},e.computeLinks=function(t,r){r===void 0&&(r=Go());for(var n=$o(),i=[],o=1,a=t.getLineCount();o<=a;o++){for(var f=t.getLineContent(o),l=f.length,s=0,u=0,c=0,d=1,m=!1,p=!1,g=!1;s=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null},e.INSTANCE=new e,e}(),du=z("URDS");function Qo(e){var t=this,r=!1,n;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var he=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),ar=function(){function e(){this._first=he.Undefined,this._last=he.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===he.Undefined},e.prototype.clear=function(){this._first=he.Undefined,this._last=he.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 he(t);if(this._first===he.Undefined)this._first=i,this._last=i;else if(r){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;var f=!1;return function(){f||(f=!0,n._remove(i))}},e.prototype.shift=function(){if(this._first===he.Undefined)return;var t=this._first.element;return this._remove(this._first),t},e.prototype.pop=function(){if(this._last===he.Undefined)return;var t=this._last.element;return this._remove(this._last),t},e.prototype._remove=function(t){if(t.prev!==he.Undefined&&t.next!==he.Undefined){var r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===he.Undefined&&t.next===he.Undefined?(this._first=he.Undefined,this._last=he.Undefined):t.next===he.Undefined?(this._last=this._last.prev,this._last.next=he.Undefined):t.prev===he.Undefined&&(this._first=this._first.next,this._first.prev=he.Undefined);this._size-=1},e.prototype.iterator=function(){var t,r=this._first;return{next:function(){return r===he.Undefined?Ve:(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!==he.Undefined;r=r.next)t.push(r.element);return t},e}(),Zo=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a])},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 Ee.None};function t(h){return function(w,v,T){v===void 0&&(v=null);var A=!1,S;return S=h(function(L){return A?void 0:(S?S.dispose():A=!0,w.call(v,L))},null,T),A&&S.dispose(),S}}e.once=t;function r(h,w){return l(function(v,T,A){return T===void 0&&(T=null),h(function(S){return v.call(T,w(S))},null,A)})}e.map=r;function n(h,w){return l(function(v,T,A){return T===void 0&&(T=null),h(function(S){w(S),v.call(T,S)},null,A)})}e.forEach=n;function i(h,w){return l(function(v,T,A){return T===void 0&&(T=null),h(function(S){return w(S)&&v.call(T,S)},null,A)})}e.filter=i;function o(h){return h}e.signal=o;function a(){for(var h=[],w=0;w1)&&M.fire(se),y=0},v)})},onLastListenerRemove:function(){S.dispose()}});return M.event}e.debounce=s;function u(h){var w=new Date().getTime();return r(t(h),function(v){return new Date().getTime()-w})}e.stopwatch=u;function c(h){var w=!0,v;return i(h,function(T){var A=w||T!==v;return w=!1,v=T,A})}e.latch=c;function d(h,w,v){w===void 0&&(w=!1),v===void 0&&(v=[]);var T=v.slice(),A=h(function(N){T?T.push(N):L.fire(N)}),S=function(){T&&T.forEach(function(y){return L.fire(y)}),T=null},L=new Oe({onFirstListenerAdd:function(){A||(A=h(function(y){return L.fire(y)}))},onFirstListenerDidAdd:function(){T&&(w?setTimeout(S):S())},onLastListenerRemove:function(){A&&A.dispose(),A=null}});return L.event}e.buffer=d;var m=function(){function h(w){this.event=w}return h.prototype.map=function(w){return new h(r(this.event,w))},h.prototype.forEach=function(w){return new h(n(this.event,w))},h.prototype.filter=function(w){return new h(i(this.event,w))},h.prototype.reduce=function(w,v){return new h(f(this.event,w,v))},h.prototype.latch=function(){return new h(c(this.event))},h.prototype.debounce=function(w,v,T,A){return v===void 0&&(v=100),T===void 0&&(T=!1),new h(s(this.event,w,v,T,A))},h.prototype.on=function(w,v,T){return this.event(w,v,T)},h.prototype.once=function(w,v,T){return t(this.event)(w,v,T)},h}();function p(h){return new m(h)}e.chain=p;function g(h,w,v){v===void 0&&(v=function(y){return y});var T=function(){for(var y=[],M=0;M0?new Xo(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,o){r._listeners||(r._listeners=new ar);var a=r._listeners.isEmpty();a&&r._options&&r._options.onFirstListenerAdd&&r._options.onFirstListenerAdd(r);var f=r._listeners.push(i?[n,i]:n);a&&r._options&&r._options.onFirstListenerDidAdd&&r._options.onFirstListenerDidAdd(r),r._options&&r._options.onListenerDidAdd&&r._options.onListenerDidAdd(r,n,i);var l;r._leakageMon&&(l=r._leakageMon.check(r._listeners.size));var s;return s={dispose:function(){if(l&&l(),s.dispose=e._noop,!r._disposed&&(f(),r._options&&r._options.onLastListenerRemove)){var c=r._listeners&&!r._listeners.isEmpty();c||r._options.onLastListenerRemove(r)}}},o instanceof pe?o.add(s):Array.isArray(o)&&o.push(s),s}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(t){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ar);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(),o=i[0],a=i[1];try{typeof o=="function"?o.call(void 0,a):o[0].call(o[1],a)}catch(f){G(f)}}}},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){Zo(t,e);function t(r){var n=e.call(this,r)||this;return n._isPaused=0,n._eventQueue=new ar,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}(Oe),pu=function(){function e(){var t=this;this.hasListeners=!1,this.events=[],this.emitter=new Oe({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 a=r.events.indexOf(n);r.events.splice(a,1)};return X(Qo(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,o){return t(function(a){var f=r.buffers[r.buffers.length-1];f?f.push(function(){return n.call(i,a)}):n.call(i,a)},void 0,o)}},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}(),vu=function(){function e(){var t=this;this.listening=!1,this.inputEvent=xt.None,this.inputEventListener=Ee.None,this.emitter=new Oe({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)}}}),It;(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})})(It||(It={}));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 Oe),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),Ko=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=It.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=It.None},e}(),sr=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 sr,lr=new sr,fr=new sr;(function(){function e(t,r,n,i){n===void 0&&(n=r),i===void 0&&(i=n),ur.define(t,r),lr.define(t,n),fr.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 wn;(function(e){function t(a){return ur.keyCodeToStr(a)}e.toString=t;function r(a){return ur.strToKeyCode(a)}e.fromString=r;function n(a){return lr.keyCodeToStr(a)}e.toUserSettingsUS=n;function i(a){return fr.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function o(a){return lr.strToKeyCode(a)||fr.strToKeyCode(a)}e.fromUserSettings=o})(wn||(wn={}));function ea(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,o=!!(e&1024),a=!!(e&512),f=t===2?r:n,l=e&255;return new ta(i,o,a,f,l)}var ta=function(){function e(t,r,n,i,o){this.ctrlKey=t,this.shiftKey=r,this.altKey=n,this.metaKey=i,this.keyCode=o}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 V("parts");this.parts=t}return e.prototype.equals=function(t){if(t===null)return!1;if(this.parts.length!==t.parts.length)return!1;for(var r=0;r "+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 ot(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,o=r.length;i0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=n._lines.length?Ve:(a=n._lines[o],l=n._wordenize(a,r),f=0,o+=1,u())};return{next:s}},t.prototype.getLineWords=function(r,n){for(var i=this._lines[r-1],o=this._wordenize(i,n),a=[],f=0,l=o;fthis._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,o=!0;else{var a=this._lines[n-1].length+1;i<1?(i=1,o=!0):i>a&&(i=a,o=!0)}return o?{lineNumber:n,column:i}:r},t}(Po),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 ua(Qt.parse(t.url),t.lines,t.EOL,t.versionId)},e.prototype.acceptModelChanged=function(t,r){if(!this._models[t])return;var n=this._models[t];n.onEvents(r)},e.prototype.acceptRemovedModel=function(t){if(!this._models[t])return;delete this._models[t]},e.prototype.computeDiff=function(t,r,n,i){return ut(this,void 0,void 0,function(){var o,a,f,l,s,u,c;return lt(this,function(d){return o=this._getModel(t),a=this._getModel(r),!o||!a?[2,null]:(f=o.getLinesContent(),l=a.getLinesContent(),s=new Mo(f,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),u=s.computeDiff(),c=u.changes.length>0?!1:this._modelsAreIdentical(o,a),[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 o=1;o<=n;o++){var a=t.getLineContent(o),f=r.getLineContent(o);if(a!==f)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,r){return ut(this,void 0,void 0,function(){var n,i,o,a,f,l,s,u,c,d,m,p,g,C,_,b,h,w;return lt(this,function(v){if(n=this._getModel(t),!n)return[2,r];for(i=[],o=void 0,r=Jr(r,function(T,A){if(T.range&&A.range)return at.compareRangesUsingStarts(T.range,A.range);var S=T.range?0:1,L=A.range?0:1;return S-L}),a=0,f=r;ae._diffLimit){i.push({range:s,text:u});continue}for(m=no(d,u,!1),p=n.offsetAt(at.lift(s).getStartPosition()),g=0,C=m;g=48&&A<=57)T=T*16+A-48;else if(A>=65&&A<=70)T=T*16+A-65+10;else if(A>=97&&A<=102)T=T*16+A-97+10;else break;n++,v++}return v=r){h+=e.substring(w,n),c=2;break}var v=e.charCodeAt(n);if(v===34){h+=e.substring(w,n),n++;break}if(v===92){if(h+=e.substring(w,n),n++,n>=r){c=2;break}var T=e.charCodeAt(n++);switch(T){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=d(4,!0);A>=0?h+=String.fromCharCode(A):c=4;break;default:c=5}w=n;continue}if(v>=0&&v<=31)if(wt(v)){h+=e.substring(w,n),c=2;break}else c=6;n++}return h}function C(){if(i="",c=0,o=n,l=f,u=s,n>=r)return o=r,a=17;var h=e.charCodeAt(n);if(yr(h)){do n++,i+=String.fromCharCode(h),h=e.charCodeAt(n);while(yr(h));return a=15}if(wt(h))return n++,i+=String.fromCharCode(h),h===13&&e.charCodeAt(n)===10&&(n++,i+=` `),f++,s=n,a=14;switch(h){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=g(),a=10;case 47:var w=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&h<=15);return h}return{setPosition:m,getPosition:function(){return n},scan:t?b:C,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-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 wt(e){return e===10||e===13||e===8232||e===8233}function ft(e){return e>=48&&e<=57}function Xn(e,t,r){var n,i,o,a,f;if(t){for(a=t.offset,f=a+t.length,o=a;o>0&&!Ot(e,o-1);)o--;for(var l=f;la&&e.substring(M,B)!==y&&_.push({offset:M,length:B-M,content:y})}var h=C();if(h!==17){var w=m.getTokenOffset()+o,v=br(d,n);b(v,o,w)}for(;h!==17;){for(var T=m.getTokenOffset()+m.getTokenLength()+o,A=C(),S="";!u&&(A===12||A===13);){var L=m.getTokenOffset()+o;b(" ",T,L),T=m.getTokenOffset()+m.getTokenLength()+o,S=A===12?g():"",A=C()}if(A===2)h!==1&&(c--,S=g());else if(A===4)h!==3&&(c--,S=g());else{switch(h){case 3:case 1:c++,S=g();break;case 5:case 12:S=g();break;case 13:u?S=g():S=" ";break;case 6:S=" ";break;case 10:if(A===6){S="";break}case 7:case 8:case 9:case 11:case 2:case 4:A===12||A===13?S=" ":A!==5&&A!==17&&(p=!0);break;case 16:p=!0;break}u&&(A===12||A===13)&&(S=g())}var N=m.getTokenOffset()+o;b(S,T,N),h=A}return _}function br(e,t){for(var r="",n=0;ns,r.push("")},onObjectProperty:function(s,u,c){if(t=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 _r(e){switch(e.type){case"array":return e.children.map(_r);case"object":for(var t=Object.create(null),r=0,n=e.children;r=e.offset&&t0)for(var M=n.getToken();M!==17;){if(N.indexOf(M)!==-1){_();break}else if(y.indexOf(M)!==-1)break;M=_()}}function h(L){var N=n.getTokenValue();return L?c(N):f(N),_(),!0}function w(){switch(n.getToken()){case 11:var L=0;try{L=JSON.parse(n.getTokenValue()),typeof L!="number"&&(b(2),L=0)}catch(N){b(2)}c(L);break;case 7:c(null);break;case 8:c(!0);break;case 9:c(!1);break;default:return!1}return _(),!0}function v(){return n.getToken()!==10?(b(3,[],[2,5]),!1):(h(!1),n.getToken()===6?(d(":"),_(),S()||b(4,[],[2,5])):b(5,[],[2,5]),!0)}function T(){a(),_();for(var L=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(L||b(4,[],[]),d(","),_(),n.getToken()===2&&C)break}else L&&b(6,[],[]);v()||b(4,[],[2,5]),L=!0}return l(),n.getToken()!==2?b(7,[2],[]):_(),!0}function A(){s(),_();for(var L=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(L||b(4,[],[]),d(","),_(),n.getToken()===4&&C)break}else L&&b(6,[],[]);S()||b(4,[],[4,5]),L=!0}return u(),n.getToken()!==4?b(8,[4],[]):_(),!0}function S(){switch(n.getToken()){case 3:return A();case 1:return T();case 10:return h(!0);default:return w()}}return _(),n.getToken()===17?r.allowEmptyContent?!0:(b(4,[],[]),!1):S()?(n.getToken()!==17&&b(9,[],[]),!0):(b(4,[],[]),!1)}function ma(e,t){var r=Ft(e),n=[],i,o=0,a;do{a=r.getPosition(),i=r.scan();switch(i){case 12:case 13:case 17:o!==a&&n.push(e.substring(o,a)),t!==void 0&&n.push(r.getTokenValue().replace(/[^\r\n]/g,t)),o=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 o,a=t.slice(),f=[],l=Kn(e,f),s=void 0,u=void 0;a.length>0&&(u=a.pop(),s=wr(l,a),s===void 0&&r!==void 0);)typeof u=="string"?r=(o={},o[u]=r,o):r=[r];if(s)if(s.type==="object"&&typeof u=="string"&&Array.isArray(s.children)){var c=wr(s,[u]);if(c!==void 0)if(r===void 0){if(!c.parent)throw new Error("Malformed AST");var d=s.children.indexOf(c.parent),m=void 0,p=c.parent.offset+c.parent.length;if(d>0){var g=s.children[d-1];m=g.offset+g.length}else if(m=s.offset+1,s.children.length>1){var C=s.children[1];p=C.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 _=JSON.stringify(u)+": "+JSON.stringify(r),b=i?i(s.children.map(function(L){return L.children[0].value})):s.children.length,h=void 0;if(b>0){var g=s.children[b-1];h={offset:g.offset+g.length,length:0,content:","+_}}else s.children.length===0?h={offset:s.offset+1,length:0,content:_}:h={offset:s.offset+1,length:0,content:_+","};return ct(e,h,n)}}else if(s.type==="array"&&typeof u=="number"&&Array.isArray(s.children)){var w=u;if(w===-1){var _=""+JSON.stringify(r),h=void 0;if(s.children.length===0)h={offset:s.offset+1,length:0,content:_};else{var g=s.children[s.children.length-1];h={offset:g.offset+g.length,length:0,content:","+_}}return ct(e,h,n)}else if(r===void 0&&s.children.length>=0){var v=u,T=s.children[v],h=void 0;if(s.children.length===1)h={offset:s.offset+1,length:s.length-2,content:""};else if(s.children.length-1===v){var g=s.children[v-1],A=g.offset+g.length,S=s.offset+s.length;h={offset:A,length:S-2-A,content:""}}else h={offset:T.offset,length:s.children[v+1].offset-T.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 "+s.type);else{if(r===void 0)throw new Error("Can not delete in empty document");return ct(e,{offset:l?l.offset:0,length:l?l.length:0,content:JSON.stringify(r)},n)}}function ct(e,t,r){var n=Tr(e,t),i=t.offset,o=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!Ot(n,i-1);)i--;for(;o=0;f--){var l=a[f];n=Tr(n,l),i=Math.min(i,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var s=e.length-(n.length-o)-i;return[{offset:i,length:s,content:n.substring(i,o)}]}function Tr(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function Su(e,t){return`\r `.indexOf(e.charAt(t))!==-1}var ht=Ft,Lu=ca,pa=ha,Eu=Kn,ku=wr,ga=ti,va=ei,ya=_r,Nu=Pt,xu=ma;function Iu(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""}function ba(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=Tr(e,t[r]);return e}function Tt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0)return!1;if(typeof e!==typeof t)return!1;if(typeof e!="object")return!1;if(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;r0&&(f.arguments=o),f}e.create=t;function r(n){var i=n;return E.defined(i)&&E.string(i.title)&&E.string(i.command)}e.is=r})(St||(St={}));var Ue;(function(e){function t(o,a){return{range:o,newText:a}}e.replace=t;function r(o,a){return{range:{start:o,end:o},newText:a}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){var a=o;return E.objectLiteral(a)&&E.string(a.newText)&&ae.is(a.range)}e.is=i})(Ue||(Ue={}));var Dt;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return E.defined(i)&&Wt.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(Dt||(Dt={}));var jt;(function(e){function t(n,i){var o={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),o}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&E.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))}e.is=r})(jt||(jt={}));var Ut;(function(e){function t(n,i,o){var a={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),a}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&E.string(i.oldUri)&&E.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))}e.is=r})(Ut||(Ut={}));var Rt;(function(e){function t(n,i){var o={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),o}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&E.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||E.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||E.boolean(i.options.ignoreIfNotExists)))}e.is=r})(Rt||(Rt={}));var Sr;(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 E.string(i.kind)?jt.is(i)||Ut.is(i)||Rt.is(i):Dt.is(i)}))}e.is=t})(Sr||(Sr={}));var Bt=function(){function e(t){this.edits=t}return e.prototype.insert=function(t,r){this.edits.push(Ue.insert(t,r))},e.prototype.replace=function(t,r){this.edits.push(Ue.replace(t,r))},e.prototype.delete=function(t){this.edits.push(Ue.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}(),Ou=function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t&&(this._workspaceEdit=t,t.documentChanges?t.documentChanges.forEach(function(n){if(Dt.is(n)){var i=new Bt(n.edits);r._textEditChanges[n.textDocument.uri]=i}}):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Bt(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(Wt.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=[],o={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(o),n=new Bt(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 Bt(i),this._textEditChanges[t]=n}return n}},e.prototype.createFile=function(t,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(jt.create(t,r))},e.prototype.renameFile=function(t,r,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ut.create(t,r,n))},e.prototype.deleteFile=function(t,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Rt.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}(),li;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return E.defined(i)&&E.string(i.uri)}e.is=r})(li||(li={}));var Wt;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return E.defined(i)&&E.string(i.uri)&&(i.version===null||E.number(i.version))}e.is=r})(Wt||(Wt={}));var fi;(function(e){function t(n,i,o,a){return{uri:n,languageId:i,version:o,text:a}}e.create=t;function r(n){var i=n;return E.defined(i)&&E.string(i.uri)&&E.string(i.languageId)&&E.number(i.version)&&E.string(i.text)}e.is=r})(fi||(fi={}));var Ge;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Ge||(Ge={})),function(e){function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t}(Ge||(Ge={}));var Lr;(function(e){function t(r){var n=r;return E.objectLiteral(r)&&Ge.is(n.kind)&&E.string(n.value)}e.is=t})(Lr||(Lr={}));var Le;(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})(Le||(Le={}));var ge;(function(e){e.PlainText=1,e.Snippet=2})(ge||(ge={}));var ci;(function(e){e.Deprecated=1})(ci||(ci={}));var Er;(function(e){function t(r){return{label:r}}e.create=t})(Er||(Er={}));var hi;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(hi||(hi={}));var Vt;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return E.string(i)||E.objectLiteral(i)&&E.string(i.language)&&E.string(i.value)}e.is=r})(Vt||(Vt={}));var di;(function(e){function t(r){var n=r;return!!n&&E.objectLiteral(n)&&(Lr.is(n.contents)||Vt.is(n.contents)||E.typedArray(n.contents,Vt.is))&&(r.range===void 0||ae.is(r.range))}e.is=t})(di||(di={}));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=[],o=2;o=0;u--){var c=l[u],d=o.offsetAt(c.range.start),m=o.offsetAt(c.range.end);if(m<=s)f=f.substring(0,d)+c.newText+f.substring(m,f.length);else throw new Error("Overlapping edit");s=d}return f}e.applyEdits=n;function i(o,a){if(o.length<=1)return o;var f=o.length/2|0,l=o.slice(0,f),s=o.slice(f);i(l,a),i(s,a);for(var u=0,c=0,d=0;u0&&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 Pe.create(0,t);for(;nt?i=o:n=o+1}var a=n-1;return Pe.create(a,t-r[a])},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+1t?i=o:n=o+1}var a=n-1;return{line:a,character:t-r[a]}},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=0;s--){var u=f[s],c=i.offsetAt(u.range.start),d=i.offsetAt(u.range.end);if(d<=l)a=a.substring(0,c)+u.newText+a.substring(d,a.length);else throw new Error("Overlapping edit");l=c}return a}e.applyEdits=n})(kr||(kr={}));function Nr(e,t){if(e.length<=1)return e;var r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Nr(n,t),Nr(i,t);for(var o=0,a=0,f=0;or.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Ta(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 Ii;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Ge.Markdown,Ge.PlainText],commitCharactersSupport:!0}}}}})(Ii||(Ii={}));function Ca(e,t){var r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,function(n,i){var o=i[0];return typeof t[o]!="undefined"?t[o]:n}),r}function Aa(e,t){for(var r=[],n=2;n()\[\]\\.,;:\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}(),La=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 o=e.call(this,r,i)||this;return o.type="boolean",o.value=n,o}return t}(et),Ea=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),ka=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 o=e.call(this,r,n,i)||this;return o.type="string",o.value="",o}return t}(et),Na=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),xa=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 _e(e){return je(e)?e?{}:{not:{}}:e}var Oi;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Oi||(Oi={}));var Ia=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||Pi(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}(),Te=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=e.offset&&t0?ue={schema:Ze,validationResult:xe,matchingSchemas:$e}:Et===0&&(ue.matchingSchemas.merge($e),ue.validationResult.mergeEnumValues(xe))}}return se.length>1&&Y&&r.problems.push({location:{offset:e.offset,length:1},severity:Z.Warning,message:D("oneOfWarning","Matches multiple schemas when only one must validate.")}),ue!==null&&(r.merge(ue.validationResult),r.propertiesMatches+=ue.validationResult.propertiesMatches,r.propertiesValueMatches+=ue.validationResult.propertiesValueMatches,n.merge(ue.matchingSchemas)),se.length};Array.isArray(t.anyOf)&&h(t.anyOf,!1),Array.isArray(t.oneOf)&&h(t.oneOf,!0);var w=function(B){var Y=new Te,se=n.newSub();ye(e,_e(B),Y,se),r.merge(Y),r.propertiesMatches+=Y.propertiesMatches,r.propertiesValueMatches+=Y.propertiesValueMatches,n.merge(se)},v=function(B,Y,se){var ue=_e(B),Ce=new Te,Ne=n.newSub();ye(e,ue,Ce,Ne),n.merge(Ne),Ce.hasProblems()?se&&w(se):Y&&w(Y)},T=_e(t.if);if(T&&v(T,_e(t.then),_e(t.else)),Array.isArray(t.enum)){for(var A=Je(e),S=!1,L=0,N=t.enum;L=_&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",_)});var b=g(u.minimum,u.exclusiveMinimum);Se(b)&&mh&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("maximumWarning","Value is above the maximum of {0}.",h)})}function a(s,u,c,d){if(Se(u.minLength)&&s.value.lengthu.maxLength&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("maxLengthWarning","String is longer than the maximum length of {0}.",u.maxLength)}),wa(u.pattern)){var m=new RegExp(u.pattern);m.test(s.value)||c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.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(!s.value)p=D("uriEmpty","URI expected.");else{var g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(s.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:s.offset,length:s.length},severity:Z.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 C=Sa[u.format];(!s.value||!C.pattern.exec(s.value))&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:u.patternErrorMessage||u.errorMessage||C.errorMessage});default:}}function f(s,u,c,d){if(Array.isArray(u.items)){for(var m=u.items,p=0;p=m.length&&c.propertiesValueMatches++}if(s.items.length>m.length)if(typeof u.additionalItems=="object")for(var h=m.length;hu.maxItems&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("maxItemsWarning","Array has too many items. Expected {0} or fewer.",u.maxItems)}),u.uniqueItems===!0){var L=Je(s),N=L.some(function(y,M){return M!==L.lastIndexOf(y)});N&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("uniqueItemsWarning","Array has duplicate items.")})}}function l(s,u,c,d){for(var m=Object.create(null),p=[],g=0,C=s.properties;g=0;)p.splice(qr,1),qr=p.indexOf(Qi)};if(u.properties)for(var L=0,N=Object.keys(u.properties);L0)for(var $e=0,Et=p;$eu.maxProperties&&c.problems.push({location:{offset:s.offset,length:s.length},severity:Z.Warning,message:D("MaxPropWarning","Object has more properties than limit of {0}.",u.maxProperties)})),Se(u.minProperties)&&(s.properties.length0){for(y--;y>0&&/\s/.test(i.charAt(y));)y--;M=y+1}if(s(T,A,y,M),S&&d(S,!1),L.length+N.length>0)for(var B=o.getToken();B!==17;){if(L.indexOf(B)!==-1){f();break}else if(N.indexOf(B)!==-1)break;B=f()}return S}function c(){switch(o.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 d(T,A){return T.length=o.getTokenOffset()+o.getTokenLength()-T.offset,A&&f(),T}function m(T){if(o.getToken()!==3)return null;var A=new Ea(T,o.getTokenOffset());f();for(var S=0,L=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){L||u(D("ValueExpected","Value expected"),ne.ValueExpected);var N=o.getTokenOffset();if(f(),o.getToken()===4){L&&s(D("TrailingComma","Trailing comma"),ne.TrailingComma,N,N+1);continue}}else L&&u(D("ExpectedComma","Expected comma"),ne.CommaExpected);var y=h(A,S++);y?A.items.push(y):u(D("PropertyExpected","Value expected"),ne.ValueExpected,null,[],[4,5]),L=!0}return o.getToken()!==4?u(D("ExpectedCloseBracket","Expected comma or closing bracket"),ne.CommaOrCloseBacketExpected,A):d(A,!0)}function p(T,A){var S=new Na(T,o.getTokenOffset()),L=C(S);if(!L)if(o.getToken()===16){u(D("DoubleQuotesExpected","Property keys must be doublequoted"),ne.Undefined);var N=new Fi(S,o.getTokenOffset(),o.getTokenLength());N.value=o.getTokenValue(),L=N,f()}else return null;S.keyNode=L;var y=A[L.value];if(y?(s(D("DuplicateKeyWarning","Duplicate object key"),ne.DuplicateKey,S.keyNode.offset,S.keyNode.offset+S.keyNode.length,Z.Warning),typeof y=="object"&&s(D("DuplicateKeyWarning","Duplicate object key"),ne.DuplicateKey,y.keyNode.offset,y.keyNode.offset+y.keyNode.length,Z.Warning),A[L.value]=!0):A[L.value]=S,o.getToken()===6)S.colonOffset=o.getTokenOffset(),f();else if(u(D("ColonExpected","Colon expected"),ne.ColonExpected),o.getToken()===10&&e.positionAt(L.offset+L.length).line0?e.lastIndexOf(t)===r:r===0?e===t:!1}function Pa(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ju(e,t){for(var r="";t>0;)(t&1)===1&&(r+=e),e+=e,t=t>>>1;return r}var Fr=dt(),Da=[",","}","]"],ja=[":"],Ua=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,o={items:[],isIncomplete:!1},a=t.getText(),f=t.offsetAt(r),l=n.getNodeFromOffset(f,!0);if(this.isInComment(t,l?l.offset:0,f))return Promise.resolve(o);if(l&&f===l.offset+l.length&&f>0){var s=a[f-1];(l.type==="object"&&s==="}"||l.type==="array"&&s==="]")&&(l=l.parent)}var u=this.getCurrentWord(t,f),c=null;if(l&&(l.type==="string"||l.type==="number"||l.type==="boolean"||l.type==="null"))c=ae.create(t.positionAt(l.offset),t.positionAt(l.offset+l.length));else{var d=f-u.length;d>0&&a[d-1]==='"'&&d--,c=ae.create(t.positionAt(d),r)}var m=!1,p={},g={add:function(_){var b=_.label,h=p[b];if(h)h.documentation||(h.documentation=_.documentation);else{if(b=b.replace(/[\n]/g,"\u21B5"),b.length>60){var w=b.substr(0,57).trim()+"...";p[w]||(b=w)}c&&(_.textEdit=Ue.replace(c,_.insertText)),m&&(_.commitCharacters=_.kind===Le.Property?ja:Da),_.label=b,p[b]=_,o.items.push(_)}},setAsIncomplete:function(){o.isIncomplete=!0},error:function(_){console.error(_)},log:function(_){console.log(_)},getNumberOfProposals:function(){return o.items.length}};return this.schemaService.getSchemaForResource(t.uri,n).then(function(C){var _=[],b=!0,h="",w=null;if(l&&l.type==="string"){var v=l.parent;v&&v.type==="property"&&v.keyNode===l&&(b=!v.valueNode,w=v,h=a.substr(l.offset+1,l.length-2),v&&(l=v.parent))}if(l&&l.type==="object"){if(l.offset===f)return o;var T=l.properties;T.forEach(function(N){(!w||w!==N)&&(p[N.keyNode.value]=Er.create("__"))});var A="";b&&(A=i.evaluateSeparatorAfter(t,t.offsetAt(c.end))),C?i.getPropertyCompletions(C,n,l,b,A,g):i.getSchemaLessPropertyCompletions(n,l,h,g);var S=Ir(l);i.contributions.forEach(function(N){var y=N.collectPropertyCompletions(t.uri,S,u,b,A==="",g);y&&_.push(y)}),!C&&u.length>0&&a.charAt(f-u.length-1)!=='"'&&(g.add({kind:Le.Property,label:i.getLabelForValue(u),insertText:i.getInsertTextForProperty(u,null,!1,A),insertTextFormat:ge.Snippet,documentation:""}),g.setAsIncomplete())}var L={};return C?i.getValueCompletions(C,n,l,f,t,g,L):i.getSchemaLessValueCompletions(n,l,f,t,g),i.contributions.length>0&&i.getContributedValueCompletions(n,l,f,t,g,_),i.promiseConstructor.all(_).then(function(){if(g.getNumberOfProposals()===0){var N=f;l&&(l.type==="string"||l.type==="number"||l.type==="boolean"||l.type==="null")&&(N=l.offset+l.length);var y=i.evaluateSeparatorAfter(t,N);i.addFillerValueCompletions(L,y,g)}return o})})},e.prototype.getPropertyCompletions=function(t,r,n,i,o,a){var f=this,l=r.getMatchingSchemas(t.schema,n.offset);l.forEach(function(s){if(s.node===n&&!s.inverted){var u=s.schema.properties;u&&Object.keys(u).forEach(function(c){var d=u[c];if(typeof d=="object"&&!d.deprecationMessage&&!d.doNotSuggest){var m={kind:Le.Property,label:c,insertText:f.getInsertTextForProperty(c,d,i,o),insertTextFormat:ge.Snippet,filterText:f.getFilterTextForValue(c),documentation:f.fromMarkup(d.markdownDescription)||d.description||""};Ht(m.insertText,"$1"+o)&&(m.command={title:"Suggest",command:"editor.action.triggerSuggest"}),a.add(m)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(t,r,n,i){var o=this,a=function(s){s.properties.forEach(function(u){var c=u.keyNode.value;i.add({kind:Le.Property,label:c,insertText:o.getInsertTextForValue(c,""),insertTextFormat:ge.Snippet,filterText:o.getFilterTextForValue(c),documentation:""})})};if(r.parent)if(r.parent.type==="property"){var f=r.parent.keyNode.value;t.visit(function(l){return l.type==="property"&&l!==r.parent&&l.keyNode.value===f&&l.valueNode&&l.valueNode.type==="object"&&a(l.valueNode),!0})}else r.parent.type==="array"&&r.parent.items.forEach(function(l){l.type==="object"&&l!==r&&a(l)});else r.type==="object"&&i.add({kind:Le.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:ge.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(t,r,n,i,o){var a=this,f=n;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(f=r.offset+r.length,r=r.parent),!r){o.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ge.Snippet,documentation:""}),o.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ge.Snippet,documentation:""});return}var l=this.evaluateSeparatorAfter(i,f),s=function(p){Pi(p.parent,n,!0)||o.add({kind:a.getSuggestionKind(p.type),label:a.getLabelTextForMatchingNode(p,i),insertText:a.getInsertTextForMatchingNode(p,i,l),insertTextFormat:ge.Snippet,documentation:""}),p.type==="boolean"&&a.addBooleanValueCompletion(!p.value,l,o)};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&&s(m.valueNode),!0}),c==="$schema"&&r.parent&&!r.parent.parent&&this.addDollarSchemaCompletions(l,o)}if(r.type==="array")if(r.parent&&r.parent.type==="property"){var d=r.parent.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===d&&m.valueNode&&m.valueNode.type==="array"&&m.valueNode.items.forEach(s),!0})}else r.items.forEach(s)},e.prototype.getValueCompletions=function(t,r,n,i,o,a,f){var l=this,s=i,u=null,c=null;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(s=n.offset+n.length,c=n,n=n.parent),!n){this.addSchemaValueCompletions(t.schema,"",a,f);return}if(n.type==="property"&&i>n.colonOffset){var d=n.valueNode;if(d&&i>d.offset+d.length)return;u=n.keyNode.value,n=n.parent}if(n&&(u!==null||n.type==="array")){var m=this.evaluateSeparatorAfter(o,s),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 C=l.findItemAtOffset(n,o,i);Cr.colonOffset){var f=r.keyNode.value,l=r.valueNode;if(!l||n<=l.offset+l.length){var s=Ir(r.parent);this.contributions.forEach(function(u){var c=u.collectValueCompletions(i.uri,s,f,o);c&&a.push(c)})}}},e.prototype.addSchemaValueCompletions=function(t,r,n,i){var o=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(a){return o.addSchemaValueCompletions(a,r,n,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(a){return o.addSchemaValueCompletions(a,r,n,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(a){return o.addSchemaValueCompletions(a,r,n,i)}))},e.prototype.addDefaultValueCompletions=function(t,r,n,i){var o=this;i===void 0&&(i=0);var a=!1;if(qe(t.default)){for(var f=t.type,l=t.default,s=i;s>0;s--)l=[l],f="array";n.add({kind:this.getSuggestionKind(f),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,r),insertTextFormat:ge.Snippet,detail:Fr("json.suggest.default","Default value")}),a=!0}Array.isArray(t.examples)&&t.examples.forEach(function(u){for(var c=t.type,d=u,m=i;m>0;m--)d=[d],c="array";n.add({kind:o.getSuggestionKind(c),label:o.getLabelForValue(d),insertText:o.getInsertTextForValue(d,r),insertTextFormat:ge.Snippet}),a=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(u){var c=t.type,d=u.body,m=u.label,p,g;if(qe(d)){for(var C=t.type,_=i;_>0;_--)d=[d],C="array";p=o.getInsertTextForSnippetValue(d,r),g=o.getFilterTextForSnippetValue(d),m=m||o.getLabelForSnippetValue(d)}else if(typeof u.bodyText=="string"){for(var b="",h="",w="",_=i;_>0;_--)b=b+w+`[ `,h=h+` `+w+"]",w+=" ",c="array";p=b+w+u.bodyText.split(` `).join(` `+w)+h+r,m=m||p,g=p.replace(/[\n]/g,"")}n.add({kind:o.getSuggestionKind(c),label:m,documentation:o.fromMarkup(u.markdownDescription)||u.description,insertText:p,insertTextFormat:ge.Snippet,filterText:g}),a=!0}),!a&&typeof t.items=="object"&&!Array.isArray(t.items)&&this.addDefaultValueCompletions(t.items,r,n,i+1)},e.prototype.addEnumValueCompletions=function(t,r,n){if(qe(t.const)&&n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,r),insertTextFormat:ge.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,o=t.enum.length;i0?r[0]:null}if(!t)return Le.Value;switch(t){case"string":return Le.Value;case"object":return Le.Module;case"property":return Le.Property;default:return Le.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 o=this.getInsertTextForValue(t,"");if(!n)return o;var a=o+": ",f,l=0;if(r){if(Array.isArray(r.defaultSnippets)){if(r.defaultSnippets.length===1){var s=r.defaultSnippets[0].body;qe(s)&&(f=this.getInsertTextForSnippetValue(s,""))}l+=r.defaultSnippets.length}if(r.enum&&(!f&&r.enum.length===1&&(f=this.getInsertTextForGuessedValue(r.enum[0],"")),l+=r.enum.length),qe(r.default)&&(f||(f=this.getInsertTextForGuessedValue(r.default,"")),l++),Array.isArray(r.examples)&&r.examples.length&&(f||(f=this.getInsertTextForGuessedValue(r.examples[0],"")),l+=r.examples.length),l===0){var u=Array.isArray(r.type)?r.type[0]:r.type;u||(r.properties?u="object":r.items&&(u="array"));switch(u){case"boolean":f="$1";break;case"string":f='"$1"';break;case"object":f="{$1}";break;case"array":f="[$1]";break;case"number":case"integer":f="${1:0}";break;case"null":f="${1:null}";break;default:return o}}}return(!f||l>1)&&(f="$1"),a+f+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),o=t.items,a=o.length-1;a>=0;a--){var f=o[a];if(n>f.offset+f.length){i.setPosition(f.offset+f.length);var l=i.scan();return l===5&&n>=i.getTokenOffset()+i.getTokenLength()?a+1:a}else if(n>=f.offset)return a}return 0},e.prototype.isInComment=function(t,r,n){var i=ht(t.getText(),!1);i.setPosition(r);for(var o=i.scan();o!==17&&i.getTokenOffset()+i.getTokenLength()o.offset+1&&i=0;c--){var d=this.contributions[c],m=d.getInfoContribution(t.uri,u);if(m)return m.then(function(p){return s(p)})}return this.schemaService.getSchemaForResource(t.uri,n).then(function(p){if(p){var g=n.getMatchingSchemas(p.schema,o.offset),C=null,_=null,b=null,h=null;g.every(function(v){if(v.node===o&&!v.inverted&&v.schema&&(C=C||v.schema.title,_=_||v.schema.markdownDescription||Or(v.schema.description),v.schema.enum)){var T=v.schema.enum.indexOf(Je(o));v.schema.markdownEnumDescriptions?b=v.schema.markdownEnumDescriptions[T]:v.schema.enumDescriptions&&(b=Or(v.schema.enumDescriptions[T])),b&&(h=v.schema.enum[T],typeof h!="string"&&(h=JSON.stringify(h)))}return!0});var w="";return C&&(w=Or(C)),_&&(w.length>0&&(w+=` `),w+=_),b&&(w.length>0&&(w+=` `),w+="`"+Ba(h)+"`: "+b),s([w])}return null})},e}();function Or(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1 $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}return}function Ba(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Pr=z("xiP/"),ze=dt(),Wa=function(){function e(t){try{this.patternRegExp=new RegExp(Pa(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}(),Va=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}(),ji=function(){function e(t,r){r===void 0&&(r=[]),this.schema=t,this.errors=r}return e.prototype.getSection=function(t){return _e(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,o=Object.keys(r.patternProperties);i0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var r=this,n=!1;t=this.normalizeId(t);for(var i=[t],o=Object.keys(this.schemasById).map(function(s){return r.schemasById[s]});i.length;)for(var a=i.pop(),f=0;f1&&(i=o[1]),Ht(i,".")&&(i=i.substr(0,i.length-1)),new mt({},[ze("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Gt(t),i)])})},e.prototype.resolveSchemaContent=function(t,r,n){var i=this,o=t.errors.slice(0),a=t.schema;if(a.$schema){var f=this.normalizeId(a.$schema);if(f==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new ji({},[ze("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));f==="https://json-schema.org/draft/2019-09/schema"&&t.errors.push(ze("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var l=this.contextService,s=function(p,g){if(!g)return p;var C=p;return g[0]==="/"&&(g=g.substr(1)),g.split("/").some(function(_){return C=C[_],!C}),C},u=function(p,g,C,_){var b=s(g,_);if(b)for(var h in b)b.hasOwnProperty(h)&&!p.hasOwnProperty(h)&&(p[h]=b[h]);else o.push(ze("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",_,C))},c=function(p,g,C,_,b){l&&!/^\w+:\/\/.*/.test(g)&&(g=l.resolveRelativePath(g,_)),g=i.normalizeId(g);var h=i.getOrAddSchemaHandle(g);return h.getUnresolvedSchema().then(function(w){if(b[g]=!0,w.errors.length){var v=C?g+"#"+C:g;o.push(ze("json.schema.problemloadingref","Problems loading reference '{0}': {1}",v,w.errors[0]))}return u(p,w.schema,g,C),d(p,w.schema,g,h.dependencies)})},d=function(p,g,C,_){if(!p||typeof p!="object")return Promise.resolve(null);for(var b=[p],h=[],w=[],v=function(){for(var y=[],M=0;M0){w.push(c(y,Y[0],Y[1],C,_));return}else M.indexOf(B)===-1&&(u(y,g,C,Y[1]),M.push(B))}v(y.items,y.additionalProperties,y.not,y.contains,y.propertyNames,y.if,y.then,y.else),T(y.definitions,y.properties,y.patternProperties,y.dependencies),A(y.anyOf,y.allOf,y.oneOf,y.items)};b.length;){var L=b.pop();if(h.indexOf(L)>=0)continue;h.push(L),S(L)}return i.promise.all(w)};return d(a,a,r,n).then(function(m){return new ji(a,o)})},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=Je(n[0].valueNode);if(i&&Oa(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,t)),i){var o=this.normalizeId(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}for(var a=Object.create(null),f=[],l=0,s=this.filePatternAssociations;l0?this.createCombinedSchema(t,f).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(o){return{$ref:o}})};return this.addSchemaHandle(n,i)},e}();function Gt(e){try{var t=Pr.a.parse(e);if(t.scheme==="file")return t.fsPath}catch(r){}return e}var Ha=dt(),Ga=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:Z.Error)},e.prototype.doValidation=function(t,r,n,i){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],f={},l=function(d){var m=d.range.start.line+" "+d.range.start.character+" "+d.message;f[m]||(f[m]=!0,a.push(d))},s=function(d){var m=n?Bi(n.trailingCommas):Z.Error,p=n?Bi(n.comments):o.commentSeverity;if(d){if(d.errors.length&&r.root){var g=r.root,C=g.type==="object"?g.properties[0]:null;if(C&&C.keyNode.value==="$schema"){var _=C.valueNode||C,b=ae.create(t.positionAt(_.offset),t.positionAt(_.offset+_.length));l(He.create(b,d.errors[0],Z.Warning,ne.SchemaResolveError))}else{var b=ae.create(t.positionAt(g.offset),t.positionAt(g.offset+1));l(He.create(b,d.errors[0],Z.Warning,ne.SchemaResolveError))}}else{var h=r.validate(t,d.schema);h&&h.forEach(l)}Ui(d.schema)&&(p=void 0),Ri(d.schema)&&(m=void 0)}for(var w=0,v=r.syntaxErrors;w=$t&&e<=za?e-$t+10:0)}function Qa(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:de(e.charCodeAt(4))*17/255};case 7:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:(de(e.charCodeAt(7))*16+de(e.charCodeAt(8)))/255}}return null}function Uu(e,t,r,n){return n===void 0&&(n=1),{red:e/255,green:t/255,blue:r/255,alpha:n}}var Za=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 o=r.root;if(!o)return null;var a=n.resultLimit,f=t.uri;if((f==="vscode://defaultsettings/keybindings.json"||Ht(f.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],s=0,u=o.items;s0){a--;var y=Ct.create(t.uri,Qe(t,L)),M=S?S+"."+L.keyNode.value:L.keyNode.value;h.push({name:i.getKeyLabel(L),kind:i.getSymbolKind(N.type),location:y,containerName:S}),C.push({node:N,containerName:M})}else b=!0})};_0){a--;var M=Qe(t,N),B=M,Y=String(y),se={name:Y,kind:i.getSymbolKind(N.type),range:M,selectionRange:B,children:[]};L.push(se),b.push({result:se.children,node:N})}else w=!0}):S.type==="object"&&S.properties.forEach(function(N){var y=N.valueNode;if(y)if(a>0){a--;var M=Qe(t,N),B=Qe(t,N.keyNode),Y={name:i.getKeyLabel(N),kind:i.getSymbolKind(y.type),range:M,selectionRange:B,children:[]};L.push(Y),b.push({result:Y.children,node:y})}else w=!0})};h0&&i[i.length-1].kind===c){var u=i.pop(),d=e.positionAt(a.getTokenOffset()).line;u&&d>u.startLine+1&&o!==u.startLine&&(u.endLine=d-1,l(u),o=u.startLine)}break}case 13:{var s=e.positionAt(a.getTokenOffset()).line,m=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&s+1=0&&i[C].kind!==At.Region;)C--;if(C>=0){var u=i[C];i.length=C,d>u.startLine&&o!==u.startLine&&(u.endLine=d,l(u),o=u.startLine)}}}break}}f=a.scan()}var _=t&&t.rangeLimit;if(typeof _!="number"||r.length<=_)return r;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var b=[],h=0,w=n;h_){A=C;break}T+=S}}for(var L=[],C=0;C=c&&l<=d&&u.push(i(c,d)),u.push(i(s.offset,s.offset+s.length));break;case"number":case"boolean":case"null":case"property":u.push(i(s.offset,s.offset+s.length));break}if(s.type==="property"||s.parent&&s.parent.type==="array"){var m=a(s.offset+s.length,5);m!==-1&&u.push(i(s.offset,m))}s=s.parent}for(var p=void 0,g=u.length-1;g>=0;g--)p=qt.create(u[g],p);return p||(p=qt.create(ae.create(f,f))),p}function i(f,l){return ae.create(e.positionAt(f),e.positionAt(l))}var o=ht(e.getText(),!0);function a(f,l){o.setPosition(f);var s=o.scan();return s===l?o.getTokenOffset()+o.getTokenLength():-1}return t.map(n)}function rs(e){var t=e.promiseConstructor||Promise,r=new qa(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(Dr);var n=new Ua(r,e.contributions,t,e.clientCapabilities),i=new Ra(r,e.contributions,t),o=new Za(r),a=new Ga(r,t);return{configure:function(l){r.clearExternalSchemas(),l.schemas&&l.schemas.forEach(function(s){r.registerExternalSchema(s.uri,s.fileMatch,s.schema)}),a.configure(l)},resetSchema:function(l){return r.onResourceChange(l)},doValidation:a.doValidation.bind(a),parseJSONDocument:function(l){return Fa(l,{collectComments:!0})},newJSONDocument:function(l,s){return Ma(l,s)},doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findColorSymbols:function(l,s){return o.findDocumentColors(l,s).then(function(u){return u.map(function(c){return c.range})})},findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:es,getSelectionRanges:ts,format:function(l,s,u){var c=void 0;if(s){var d=l.offsetAt(s.start),m=l.offsetAt(s.end)-d;c={offset:d,length:m}}var p={tabSize:u?u.tabSize:4,insertSpaces:u?u.insertSpaces:!0,eol:` `};return ba(l.getText(),c,p).map(function(g){return Ue.replace(ae.create(l.positionAt(g.offset),l.positionAt(g.offset+g.length)),g.content)})}}}var qi;typeof fetch!="undefined"&&(qi=function(t){return fetch(t).then(function(r){return r.text()})});var ns=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}(),Hi=function(){function e(t,r){this._ctx=t,this._languageSettings=r.languageSettings,this._languageId=r.languageId,this._languageService=rs({schemaRequestService:r.enableSchemaRequest&&qi,promiseConstructor:ns}),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),o=this._languageService.format(i,r,n);return Promise.resolve(o)},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),o=this._languageService.parseJSONDocument(i),a=this._languageService.getColorPresentations(i,o,r,n);return Promise.resolve(a)},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),o=this._languageService.getSelectionRanges(n,r,i);return Promise.resolve(o)},e.prototype._getTextDocument=function(t){for(var r=this._ctx.getMirrorModels(),n=0,i=r;n=0,be=te.indexOf("Macintosh")>=0,V=te.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,x=te.indexOf("Linux")>=0,q=!0,ie=navigator.language,le=ie;else if(typeof j=="object"){fe=j.platform==="win32",be=j.platform==="darwin",x=j.platform==="linux",ie=G,le=G;var U=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(U)try{var J=JSON.parse(U),re=J.availableLanguages["*"];ie=J.locale,le=re||G,me=J._translationsConfigFile}catch(I){}R=!0}var X=0;be?X=1:fe?X=3:x&&(X=2);var pe=fe,Ee=be,Xe=x,Ie=R,ve=q,we=V,pt=typeof self=="object"?self:typeof Q=="object"?Q:{},ke=pt,gt=function(){if(ke.setImmediate)return ke.setImmediate.bind(ke);if(typeof ke.postMessage=="function"&&!ke.importScripts){var k=[];ke.addEventListener("message",function(ee){if(ee.data&&ee.data.vscodeSetImmediateId)for(var H=0,K=k.length;H=0}function x(I){return 55296<=I&&I<=56319}function R(I){return 56320<=I&&I<=57343}function q(I){return I>=97&&I<=102}function V(I){return I>=97&&I<=122}function ie(I){return I>=65&&I<=90}function le(I){return V(I)||ie(I)}var me=/^\w[\w\d+.-]*$/,te=/^\//,F=/^\/\//;function U(I,k){if(!I.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+I.authority+'", path: "'+I.path+'", query: "'+I.query+'", fragment: "'+I.fragment+'"}');if(I.scheme&&!me.test(I.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(I.path){if(I.authority){if(!te.test(I.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(I.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(I,k){return!I&&!k?"file":I}function re(I,k){switch(I){case"https":case"http":case"file":k?k[0]!==pe&&(k=pe+k):k=pe;break}return k}var X="",pe="/",Ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Xe=function(){function I(k,O,P,ee,H,K){K===void 0&&(K=!1),typeof k=="object"?(this.scheme=k.scheme||X,this.authority=k.authority||X,this.path=k.path||X,this.query=k.query||X,this.fragment=k.fragment||X):(this.scheme=J(k,K),this.authority=O||X,this.path=re(this.scheme,P||X),this.query=ee||X,this.fragment=H||X,U(this,K))}return I.isUri=function(k){return k instanceof I?!0:k?typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="function"&&typeof k.with=="function"&&typeof k.toString=="function":!1},Object.defineProperty(I.prototype,"fsPath",{get:function(){return gt(this)},enumerable:!0,configurable:!0}),I.prototype.with=function(k){if(!k)return this;var O=k.scheme,P=k.authority,ee=k.path,H=k.query,K=k.fragment;return O===void 0?O=this.scheme:O===null&&(O=X),P===void 0?P=this.authority:P===null&&(P=X),ee===void 0?ee=this.path:ee===null&&(ee=X),H===void 0?H=this.query:H===null&&(H=X),K===void 0?K=this.fragment:K===null&&(K=X),O===this.scheme&&P===this.authority&&ee===this.path&&H===this.query&&K===this.fragment?this:new ve(O,P,ee,H,K)},I.parse=function(k,O){O===void 0&&(O=!1);var P=Ee.exec(k);return P?new ve(P[2]||X,decodeURIComponent(P[4]||X),decodeURIComponent(P[5]||X),decodeURIComponent(P[7]||X),decodeURIComponent(P[9]||X),O):new ve(X,X,X,X,X)},I.file=function(k){var O=X;if(fe&&(k=k.replace(/\\/g,pe)),k[0]===pe&&k[1]===pe){var P=k.indexOf(pe,2);P===-1?(O=k.substring(2),k=pe):(O=k.substring(2,P),k=k.substring(P)||pe)}return new ve("file",O,k,X,X)},I.from=function(k){return new ve(k.scheme,k.authority,k.path,k.query,k.fragment)},I.prototype.toString=function(k){return k===void 0&&(k=!1),vt(this,k)},I.prototype.toJSON=function(){return this},I.revive=function(k){if(k){if(k instanceof I)return k;var O=new ve(k);return O._formatted=k.external,O._fsPath=k._sep===Ie?k.fsPath:null,O}else return k},I}(),Ie=fe?1:void 0,ve=function(I){Q(k,I);function k(){var O=I!==null&&I.apply(this,arguments)||this;return O._formatted=null,O._fsPath=null,O}return Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=gt(this)),this._fsPath},enumerable:!0,configurable:!0}),k.prototype.toString=function(O){return O===void 0&&(O=!1),O?vt(this,!0):(this._formatted||(this._formatted=vt(this,!1)),this._formatted)},k.prototype.toJSON=function(){var O={$mid:1};return this._fsPath&&(O.fsPath=this._fsPath,O._sep=Ie),this._formatted&&(O.external=this._formatted),this.path&&(O.path=this.path),this.scheme&&(O.scheme=this.scheme),this.authority&&(O.authority=this.authority),this.query&&(O.query=this.query),this.fragment&&(O.fragment=this.fragment),O},k}(Xe),we=(G={},G[58]="%3A",G[47]="%2F",G[63]="%3F",G[35]="%23",G[91]="%5B",G[93]="%5D",G[64]="%40",G[33]="%21",G[36]="%24",G[38]="%26",G[39]="%27",G[40]="%28",G[41]="%29",G[42]="%2A",G[43]="%2B",G[44]="%2C",G[59]="%3B",G[61]="%3D",G[32]="%20",G);function pt(I,k){for(var O=void 0,P=-1,ee=0;ee=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===45||H===46||H===95||H===126||k&&H===47)P!==-1&&(O+=encodeURIComponent(I.substring(P,ee)),P=-1),O!==void 0&&(O+=I.charAt(ee));else{O===void 0&&(O=I.substr(0,ee));var K=we[H];K!==void 0?(P!==-1&&(O+=encodeURIComponent(I.substring(P,ee)),P=-1),O+=K):P===-1&&(P=ee)}}return P!==-1&&(O+=encodeURIComponent(I.substring(P))),O!==void 0?O:I}function ke(I){for(var k=void 0,O=0;O1&&I.scheme==="file"?k="//"+I.authority+I.path:I.path.charCodeAt(0)===47&&(I.path.charCodeAt(1)>=65&&I.path.charCodeAt(1)<=90||I.path.charCodeAt(1)>=97&&I.path.charCodeAt(1)<=122)&&I.path.charCodeAt(2)===58?k=I.path[1].toLowerCase()+I.path.substr(2):k=I.path,fe&&(k=k.replace(/\//g,"\\")),k}function vt(I,k){var O=k?ke:pt,P="",ee=I.scheme,H=I.authority,K=I.path,tt=I.query,yt=I.fragment;if(ee&&(P+=ee,P+=":"),(H||ee==="file")&&(P+=pe,P+=pe),H){var Ae=H.indexOf("@");if(Ae!==-1){var Be=H.substr(0,Ae);H=H.substr(Ae+1),Ae=Be.indexOf(":"),Ae===-1?P+=O(Be,!1):(P+=O(Be.substr(0,Ae),!1),P+=":",P+=O(Be.substr(Ae+1),!1)),P+="@"}H=H.toLowerCase(),Ae=H.indexOf(":"),Ae===-1?P+=O(H,!1):(P+=O(H.substr(0,Ae),!1),P+=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))}P+=O(K,!0)}return tt&&(P+="?",P+=O(tt,!1)),yt&&(P+="#",P+=k?yt:pt(yt,!1)),P}}).call(this,z("Q2Ig"))},yLpj:function(De,W){var z;z=function(){return this}();try{z=z||new Function("return this")()}catch(j){typeof window=="object"&&(z=window)}De.exports=z}});