=b[g+1]?b[g+1]-1:b[g-1])-(g-w)-C,f=u;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(b[g]=u,L&&Math.abs(g-_)<=a&&u<=v[g])return o[0]=u,r[0]=l,f>=v[g]&&a<=1448?this.WALKTRACE(_,c,d,M,w,h,p,C,v,b,u,t,o,l,i,r,L,s):null}if(a<=1447){var x=new Array(d-c+2);x[0]=_-c+1,pl.Copy(v,c,x,1,d-c+1),this.m_forwardHistory.push(x),(x=new Array(p-h+2))[0]=w-h+1,pl.Copy(b,h,x,1,p-h+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(_,c,d,M,w,h,p,C,v,b,u,t,o,l,i,r,L,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t ');var f=lc(g,o);o.appendASCIIString("");var m=null;return rp&&r.isBasicASCII&&s.useMonospaceOptimizations&&0===f.containsForeignElements&&r.content.length<300&&g.lineTokens.getCount()<100&&(m=new cp(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping)),m||(m=pp(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping,f.containsRTL,f.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),cp=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new Xh(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),dp=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new Xh(i,o-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new Xh(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=Kh.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=ac.getPartIndex(i),r=ac.getCharIndex(i),s=Kh.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new Xh(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=ac.getPartIndex(i),r=ac.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),a=ac.getPartIndex(s),u=ac.getCharIndex(s);return Kh.readHorizontalRanges(this._getReadingTarget(),o,r,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){var r=this._readPixelOffset(n,i);if(-1!==r){var s=o[o.length-1];s.left1&&Ss(e.charCodeAt(u-2))&&u--,l>1&&Ss(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;o=i.consumeLowerThan(d,o,n),0===i.count&&(o=d),i.insert(h,c)}return i.consumeLowerThan(1073741824,o,n),n},e}(),rc=function(e,t){this.endIndex=e,this.type=t},sc=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d,h,p,g){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?2:"boundary"===h?1:0,this.renderControlCharacters=p,this.fontLigatures=g}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&tc.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},e}(),ac=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){this._data[e]=(t<<16|n<<0)>>>0,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;for(var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;r+1>>1,u=this._data[a];if(u===o)return a;u>o?s=a:r=a}if(r===s)return r;var l=this._data[r],c=this._data[s];if(l===o)return r;if(c===o)return s;var d=e.getPartIndex(l);return i-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-i?r:s},e}(),uc=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function lc(e,t){if(0===e.lineContent.length){var n=0,i="\xa0";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r')}return t.appendASCIIString(i),new uc(new ac(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,r=e.lineContent,s=e.len,a=e.isOverflowing,u=e.parts,l=e.tabSize,c=e.containsRTL,d=e.spaceWidth,h=e.renderWhitespace,p=e.renderControlCharacters,g=new ac(s+1,u.length),f=0,m=0,y=0,v=0,b=0;t.appendASCIIString("");for(var _=0,w=u.length;_=n){i[o++]=new rc(n,u);break}i[o++]=new rc(a,u)}}return i}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(r=function(e,t,n,i,o,r,s,a){var u,l=[],c=0,d=0,h=i[d].type,p=i[d].endIndex,g=i.length,f=fs(e);-1===f?(f=t,u=t):u=ys(e);for(var m=0,y=0;y"),o=u.endState}return i.join("")}(e,t,n)}function bc(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;on?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),Rm(o,!0)):(Rm(o,!0),o.right===Um||zm(o.right)||(r+=o.delta,o=o.right))}Rm(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,s=o.length;rn)&&1!==i&&(2===i||t)}function Xm(e,t,n,i,o){var r=function(e){return(48&e.metadata)>>>4}(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,p=e.end,g=!1;t<=d&&p<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,g=!0);var f=o?1:u>0?2:0;!h&&Qm(d,s,t,f)&&(h=!0),!g&&Qm(p,a,t,f)&&(g=!0),c>0&&!o&&(f=u>l?2:0,!h&&Qm(d,s,t+c,f)&&(h=!0),!g&&Qm(p,a,t+c,f)&&(g=!0)),f=o?1:0,!h&&Qm(d,s,n,f)&&(e.start=t+l,h=!0),!g&&Qm(p,a,n,f)&&(e.end=t+l,g=!0);var m=l-u;h||(e.start=Math.max(0,d+m),h=!0),g||(e.end=Math.max(0,p+m),g=!0),e.start>e.end&&(e.end=e.start)}function Jm(e,t){if(e.root===Um)return t.parent=Um,t.left=Um,t.right=Um,Pm(t,0),e.root=t,e.root;!function(e,t){for(var n,i,o=0,r=e.root,s=t.start,a=t.end;;)if(((n=s)===(i=r.start+o)?a-(r.end+o):n-i)<0){if(r.left===Um){t.start-=o,t.end-=o,t.maxEnd-=o,r.left=t;break}r=r.left}else{if(r.right===Um){t.start-=o+r.delta,t.end-=o+r.delta,t.maxEnd-=o+r.delta,r.right=t;break}o+=r.delta,r=r.right}t.parent=r,t.left=Um,t.right=Um,Pm(t,1)}(e,t),iy(t.parent);for(var n=t;n!==e.root&&1===Om(n.parent);){var i;n.parent===n.parent.parent.left?1===Om(i=n.parent.parent.right)?(Pm(n.parent,0),Pm(i,0),Pm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&$m(e,n=n.parent),Pm(n.parent,0),Pm(n.parent.parent,1),ey(e,n.parent.parent)):1===Om(i=n.parent.parent.left)?(Pm(n.parent,0),Pm(i,0),Pm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&ey(e,n=n.parent),Pm(n.parent,0),Pm(n.parent.parent,1),$m(e,n.parent.parent))}return Pm(e.root,0),t}function Km(e,t){var n,i;if(t.left===Um?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Um?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==Um;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Pm(n,0),t.detach(),qm(),ny(n),void(e.root.parent=Um);var o,r=1===Om(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(n.parent=i.parent===t?i:i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Pm(i,Om(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Um&&(i.left.parent=i),i.right!==Um&&(i.right.parent=i)),t.detach(),r)return iy(n.parent),i!==t&&(iy(i),iy(i.parent)),void qm();for(iy(n),iy(n.parent),i!==t&&(iy(i),iy(i.parent));n!==e.root&&0===Om(n);)n===n.parent.left?(1===Om(o=n.parent.right)&&(Pm(o,0),Pm(n.parent,1),$m(e,n.parent),o=n.parent.right),0===Om(o.left)&&0===Om(o.right)?(Pm(o,1),n=n.parent):(0===Om(o.right)&&(Pm(o.left,0),Pm(o,1),ey(e,o),o=n.parent.right),Pm(o,Om(n.parent)),Pm(n.parent,0),Pm(o.right,0),$m(e,n.parent),n=e.root)):(1===Om(o=n.parent.left)&&(Pm(o,0),Pm(n.parent,1),ey(e,n.parent),o=n.parent.left),0===Om(o.left)&&0===Om(o.right)?(Pm(o,1),n=n.parent):(0===Om(o.left)&&(Pm(o.right,0),Pm(o,1),$m(e,o),o=n.parent.left),Pm(o,Om(n.parent)),Pm(n.parent,0),Pm(o.left,0),ey(e,n.parent),n=e.root));Pm(n,0),qm()}function qm(){Um.parent=Um,Um.delta=0,Um.start=0,Um.end=0}function $m(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Um&&(n.left.parent=t),n.parent=t.parent,t.parent===Um?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,ny(t),ny(n)}function ey(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Um&&(n.right.parent=t),n.parent=t.parent,t.parent===Um?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,ny(t),ny(n)}function ty(e){var t=e.end;if(e.left!==Um){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==Um){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function ny(e){e.maxEnd=ty(e)}function iy(e){for(;e!==Um;){var t=ty(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}var oy=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==ry)return sy(this.right);for(var e=this;e.parent!==ry&&e.parent.left!==e;)e=e.parent;return e.parent===ry?ry:e.parent},e.prototype.prev=function(){if(this.left!==ry)return ay(this.left);for(var e=this;e.parent!==ry&&e.parent.right!==e;)e=e.parent;return e.parent===ry?ry:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),ry=new oy(null,0);function sy(e){for(;e.left!==ry;)e=e.left;return e}function ay(e){for(;e.right!==ry;)e=e.right;return e}function uy(e){return e===ry?0:e.size_left+e.piece.length+uy(e.right)}function ly(e){return e===ry?0:e.lf_left+e.piece.lineFeedCnt+ly(e.right)}function cy(){ry.parent=ry}function dy(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==ry&&(n.left.parent=t),n.parent=t.parent,t.parent===ry?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function hy(e,t){var n=t.left;t.left=n.right,n.right!==ry&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===ry?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function py(e,t){var n,i;if(n=t.left===ry?(i=t).right:t.right===ry?(i=t).left:(i=sy(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),cy(),void(e.root.parent=ry);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,my(e,n)):(n.parent=i.parent===t?i:i.parent,my(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==ry&&(i.left.parent=i),i.right!==ry&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,my(e,i)),t.detach(),n.parent.left===n){var r=uy(n),s=ly(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,fy(e,n.parent,a,u)}}if(my(e,n.parent),o)cy();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,dy(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,hy(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,dy(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,hy(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,dy(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,hy(e,n.parent),n=e.root));n.color=0,cy()}}function gy(e,t){for(my(e,t);t!==e.root&&1===t.parent.color;){var n;t.parent===t.parent.parent.left?1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&dy(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,hy(e,t.parent.parent)):1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&hy(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,dy(e,t.parent.parent))}e.root.color=0}function fy(e,t,n,i){for(;t!==e.root&&t!==ry;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function my(e,t){var n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=uy((t=t.parent).left)-t.size_left,i=ly(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}ry.parent=ry,ry.left=ry,ry.right=ry,ry.color=0;var yy=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);var l,c,d,h=ul.getBracketsSupport(n.getLanguageId(--o));if(h&&!Yu(n.getStandardTokenType(o))&&(s=Math.max(n.getStartOffset(o),e.column-1-h.maxBracketLength),(l=il.findPrevBracketInToken(h.reversedRegex,t,i,s,a))&&l.startColumn<=e.column&&e.column<=l.endColumn&&(c=(c=i.substring(l.startColumn-1,l.endColumn-1)).toLowerCase(),d=this._matchFoundBracket(l,h.textIsBracket[c],h.textIsOpenBracket[c]))))return d}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var i;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i]}else if(i=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,i];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=a-1,c=-1;for(r===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),g=s.getEndOffset(l);if(-1===c&&(c=g),d===n&&!Yu(h))for(;;){var f=il.findPrevBracketInToken(i,r,u,p,c);if(!f)break;var m=u.substring(f.startColumn-1,f.endColumn-1);if((m=m.toLowerCase())===e.open?o++:m===e.close&&o--,0===o)return f;c=f.startColumn-1}c=-1}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();r<=s;r++){var a=this._getLineTokens(r),u=a.getCount(),l=this._buffer.getLineContent(r),c=0,d=0;for(r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);co)throw new Error("Illegal value for lineNumber");for(var r=ul.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l)for(l=-1,c=-1,t=e;t1?new Pi(n-1,e.getLineMaxColumn(n-1)):t;for(var o=e.getLineContent(n),r=t.column-1;r>1;r--){var s=o.charCodeAt(r-2),a=o.charCodeAt(r-1);if(95!==s&&95===a)return new Pi(n,r);if(vs(s)&&bs(a))return new Pi(n,r);if(bs(s)&&bs(a)&&r+1=a.start+1&&(a=e._findNextWordOnLine(t,n,new Pi(r,a.end+1))),s=a?a.start+1:n.getLineMaxColumn(r)),new Pi(r,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return nt?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(Zh),Tb=(n("MlKm"),function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Object(s.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;ot&&(x=t-S);var D=(C=x-S)+L;C>v+1?(0!==b&&u.fillRect(N,y,I,v-y),y=C,v=D):D>v&&(v=D)}u.fillRect(N,y,I,v-y)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(Zh),qb=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),$b=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color