@jetcrab/pi-desk 1.1.5 → 1.1.8-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/README.zh-CN.md +4 -4
- package/docs/README.md +8 -0
- package/docs/doc_asset/client-overview.webp +0 -0
- package/docs/doc_asset/multi-window.webp +0 -0
- package/docs/{pi-desk/plugins.md → plugins.md} +108 -1
- package/package.json +2 -2
- package/src/client/l2_biz/project-preview/l2-project-preview-dialog.tsx +3 -0
- package/src/client/l2_biz/workbench/file-workspace/l2-file-workspace-view.tsx +8 -0
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-viewport.ts +81 -7
- package/src/client/l2_biz/workbench/l2-workbench-chat-view.tsx +2 -1
- package/src/client/l3_modules/project-files/l3-project-document-git.ts +82 -0
- package/src/client/l3_modules/project-files/l3-project-document-view.tsx +102 -5
- package/src/client/l3_modules/project-files/l3-project-file-browser.tsx +2 -6
- package/src/client/l3_modules/project-files/l3-project-file-runtime.ts +83 -1
- package/src/client/l3_modules/project-files/l3-project-file-tabs.tsx +24 -2
- package/src/client/l3_modules/project-files/l3-project-git-model.ts +32 -0
- package/src/client/l4_foundation/ui/code/l4-code-diff.tsx +25 -5
- package/src/client/l4_foundation/ui/code/l4-code-line-changes.ts +49 -0
- package/src/client/l4_foundation/ui/code/l4-code-line-changes.worker.ts +10 -0
- package/src/client/l4_foundation/ui/code/l4-code-line-markers.module.css +60 -0
- package/src/client/l4_foundation/ui/code/l4-code-line-markers.ts +156 -0
- package/src/client/l4_foundation/ui/code/l4-code-preview.tsx +61 -5
- package/src/client/l4_foundation/ui/code/l4-monaco-lines-diff.d.ts +21 -0
- package/src/client/l4_foundation/ui/shadcn/hover-card.tsx +28 -2
- package/src/common/l3_modules/project-files/l3-project-files-locale-messages.ts +16 -0
- package/src/server/l4_foundation/pidesk/l4-pidesk-runtime.ts +1 -1
- package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
- package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/prerender-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +5 -4
- package/temp/build/pi-desk/release/.next/required-server-files.js +3 -3
- package/temp/build/pi-desk/release/.next/required-server-files.json +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/page.js +6 -6
- package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/20842.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/25406.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/{9248.js → 354.js} +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/35985.js +6 -6
- package/temp/build/pi-desk/release/.next/server/chunks/45671.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/47757.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/56284.js +62 -0
- package/temp/build/pi-desk/release/.next/server/chunks/73691.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/82499.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/94296.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/pi-desk-line-changes.js +1 -0
- package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
- package/temp/build/pi-desk/release/.next/server/server-reference-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/server/webpack-runtime.js +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/28739.540a4f24a8eaa3fd.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/31087-333cae396a52f232.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/3814-35cfab0ce3aa7c41.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/38459.9a9b6f4f3ec3ff50.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/45992-a39a014497ec4dd1.js +13 -0
- package/temp/build/pi-desk/release/.next/static/chunks/53291.ab6ef49016107124.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{54206.82a63ab971911eda.js → 54206.ffb8c581c6661ae2.js} +2 -2
- package/temp/build/pi-desk/release/.next/static/chunks/5598.f34dce2a9de0d0e3.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/70669.8b4231a8675499e0.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/95287.34b860abf26f64a5.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-586f6f88483051a7.js +3 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{page-c6c68b33156be10a.js → page-0f2cf68a4666420b.js} +4 -4
- package/temp/build/pi-desk/release/.next/static/chunks/pi-desk-line-changes.49f8d59c256621d6.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-26261285e181235a.js +1 -0
- package/temp/build/pi-desk/release/.next/static/css/{f6a76a493aae9ae3.css → adb1d4e48dd43c0a.css} +1 -1
- package/temp/build/pi-desk/release/.next/trace-build +1 -1
- package/docs/pi-desk/README.md +0 -47
- package/temp/build/pi-desk/release/.next/server/chunks/6656.js +0 -1
- package/temp/build/pi-desk/release/.next/server/chunks/89236.js +0 -62
- package/temp/build/pi-desk/release/.next/static/chunks/19991.02fcb7c8ca3b1fe4.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/26285.54b8bcbf7a198c84.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/52354-6461358c522130be.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/74132-876f256c7a6101af.js +0 -13
- package/temp/build/pi-desk/release/.next/static/chunks/79615.7d68b269d93fcb93.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-4faf3a52d219296d.js +0 -3
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-7bfbf627379fb4c1.js +0 -1
- /package/docs/{pi-desk/commands.md → commands.md} +0 -0
- /package/docs/{pi-desk/examples → examples}/local-application/browser/application.js +0 -0
- /package/docs/{pi-desk/examples → examples}/local-application/browser/entry.js +0 -0
- /package/docs/{pi-desk/examples → examples}/local-application/package.json +0 -0
- /package/docs/{pi-desk/examples → examples}/local-application/pi-desk.ts +0 -0
- /package/temp/build/pi-desk/release/.next/static/{1LdtGYUckBhYZy0R-6yG0 → -pemk30NXpiExEU5tjb1t}/_buildManifest.js +0 -0
- /package/temp/build/pi-desk/release/.next/static/{1LdtGYUckBhYZy0R-6yG0 → -pemk30NXpiExEU5tjb1t}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54206],{833:()=>{},1080:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>b,Kl:()=>c,Ob:()=>u,Ou:()=>m,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>f,dv:()=>d,wp:()=>C});var n=i(3809),s=i(35362),r=i(91016),o=i(56558),a=i(83367);i(45837),i(96141),i(4529),i(72880),i(77384),i(25523),i(3463),i(8324),i(3330),i(30020);var l=i(19829);(0,a.x1)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)(153,"The border color for text that got moved in the diff editor.")),(0,a.x1)("diffEditor.moveActive.border","#FFA500",(0,o.kg)(154,"The active border color for text that got moved in the diff editor.")),(0,a.x1)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)(155,"The color of the shadow around unchanged region widgets."));let h=(0,l.pU)("diff-insert",n.W.add,(0,o.kg)(156,"Line decoration for inserts in the diff editor.")),d=(0,l.pU)("diff-remove",n.W.remove,(0,o.kg)(157,"Line decoration for removals in the diff editor.")),c=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+s.L.asClassName(h),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+s.L.asClassName(d),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),f=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),m=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),C=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},1105:(e,t,i)=>{"use strict";i.d(t,{G:()=>m,r:()=>w});var n=i(44578),s=i(95628),r=i(81900),o=i(6819);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,s){let r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,n),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,s)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);let t=[],i=0,n=e[0];for(let s=1,r=e.length;s<r;s++){let r=e[s];n.left+n.width+.9>=r.left?n.width=Math.max(n.width,r.left+r.width-n.left):(t[i++]=n,n=r)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;let n=[];for(let s=0,r=e.length;s<r;s++){let r=e[s];n[s]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,n,s,r){let o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(n=Math.min(o,Math.max(0,n)))&&i===s&&0===i&&!e.children[t].firstChild){let i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==n&&n>0&&0===s&&(n--,s=0x40000000);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=0x40000000),!l&&0===s&&n>0&&(l=e.children[n-1].firstChild,s=0x40000000)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),s=Math.min(l.textContent.length,Math.max(0,s));let h=this._readClientRects(a,i,l,s,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,r.clientRectDeltaLeft,r.clientRectScale)}}var l=i(62946),h=i(58786),d=i(71284),c=i(3907),u=i(66684),g=i(62780);let p=!!r.ib||!r.j9&&!n.gm&&!n.nr,f=!0;class m{static{this.CLASS_NAME="view-line"}constructor(e,t){this._viewGpuContext=e,this._options=t,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,s.Z)(e);else throw Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(!!(0,d.Bb)(this._options.themeType)||this._renderedViewLine?.input.renderWhitespace===2)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(this._options.useGpu&&this._viewGpuContext?.canRender(this._options,n,e))return this._renderedViewLine?.domNode?.domNode.remove(),this._renderedViewLine=null,!1;if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;let r=n.getViewLineRenderingData(e),o=this._options,a=l.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn),v="off"===o.experimentalWhitespaceRendering?o.renderWhitespace:"none",b=!r.hasVariableFonts,w=null;if((0,d.Bb)(o.themeType)||"selection"===v)for(let t of n.selections){if(t.endLineNumber<e||t.startLineNumber>e)continue;let i=t.startLineNumber===e?t.startColumn:r.minColumn,n=t.endLineNumber===e?t.endColumn:r.maxColumn;i<n&&((0,d.Bb)(o.themeType)&&a.push(new l.d(i,n,"inline-selected-text",0)),"selection"===v&&(w||(w=[]),w.push(new u.L(i-1,n-1))))}let y=new h.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,v,o.renderControlCharacters,o.fontLigatures!==c.Bc.OFF,w,r.textDirection,o.verticalScrollbarSize);if(this._renderedViewLine&&this._renderedViewLine.input.equals(y))return!1;s.appendString("<div "),r.textDirection===g.z4.RTL?s.appendString('dir="rtl" '):r.containsRTL&&s.appendString('dir="ltr" '),s.appendString('style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString("px;line-height:"),s.appendString(String(i)),r.textDirection===g.z4.RTL&&(s.appendString("px;padding-right:"),s.appendString(String(o.verticalScrollbarSize))),s.appendString('px;" class="'),s.appendString(m.CLASS_NAME),s.appendString('">');let S=(0,h.UW)(y,s);s.appendString("</div>");let x=null;return b&&f&&p&&r.isBasicASCII&&y.isLTR&&o.useMonospaceOptimizations&&0===S.containsForeignElements&&(x=new _(this._renderedViewLine?this._renderedViewLine.domNode:null,y,S.characterMapping)),x||(x=C(this._renderedViewLine?this._renderedViewLine.domNode:null,y,S.characterMapping,S.containsForeignElements)),this._renderedViewLine=x,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i),this._renderedViewLine.domNode.setLineHeight(i))}isRenderedRTL(){return!!this._renderedViewLine&&this._renderedViewLine.input.textDirection===g.z4.RTL}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof _}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof _?this._renderedViewLine.monospaceAssumptionsAreValid():f}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof _&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));let s=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==s&&t>s+1&&i>s+1)return new o.pj(!0,[new o.IO(this.getWidth(n),0)]);-1!==s&&t>s+1&&(t=s+1),-1!==s&&i>s+1&&(i=s+1);let r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}resetCachedWidth(){this._renderedViewLine?.resetCachedWidth()}}class _{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e<n;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){let e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return -1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}resetCachedWidth(){this._cachedWidth=-1}monospaceAssumptionsAreValid(){return this.domNode?(this.input.lineContent.length<300&&Math.abs(this.getWidth(null)-this.domNode.domNode.firstChild.offsetWidth)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),f=!1),f):f}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,0)}getVisibleRangesForRange(e,t,i,n){let s=this._getColumnPixelOffset(e,t,n),r=this._getColumnPixelOffset(e,i,n);return[new o.IO(s,r-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){let e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}let n=Math.floor((t-1)/300)-1,s=(n+1)*300+1,r=-1;if(this._keyColumnPixelOffsetCache&&-1===(r=this._keyColumnPixelOffsetCache[n])&&(r=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=r),-1===r){let e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}let o=this._characterMapping.getHorizontalOffset(s),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return -1;let n=this._characterMapping.getDomPosition(t),s=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return s&&0!==s.length?s[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v{constructor(e,t,i,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,t.isLTR){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return -1!==this._cachedWidth}resetCachedWidth(){if(this._cachedWidth=-1,null!==this._pixelOffsetCache)for(let e=0,t=this._pixelOffsetCache.length;e<t;e++)this._pixelOffsetCache[e]=-1}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){let s=this._readPixelOffset(this.domNode,e,t,n);if(-1===s)return null;let r=this._readPixelOffset(this.domNode,e,i,n);return -1===r?null:[new o.IO(s,r-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i!==n)return this._readRawVisibleRangesForRange(e,i,n,s);{let n=this._readPixelOffset(e,t,i,s);return -1===n?null:[new o.IO(n,0)]}}_readPixelOffset(e,t,i,n){if(this.input.isLTR&&0===this._characterMapping.length){if(0===this._containsForeignElements||2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);let t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){let s=this._pixelOffsetCache[i];if(-1!==s)return s;let r=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){let t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(this.input.isLTR&&i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);let s=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!r||0===r.length)return -1;let o=r[0].left;if(this.input.isBasicASCII){let e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(1>=Math.abs(t-o))return t}return o}_readRawVisibleRangesForRange(e,t,i,n){if(this.input.isLTR&&1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(n))];let s=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,r.partIndex,r.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class b extends v{_readVisibleRangesForRange(e,t,i,n,s){let r=super._readVisibleRangesForRange(e,t,i,n,s);if(!r||0===r.length||i===n||1===i&&n===this._characterMapping.length)return r;if(this.input.isLTR){let i=this._readPixelOffset(e,t,n,s);if(-1!==i){let e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}let C=n.Tc?function(e,t,i,n){return new b(e,t,i,n)}:function(e,t,i,n){return new v(e,t,i,n)};function w(e,t,i){let n=t.textContent.length,s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new h.wZ(s,i),n)}},1174:(e,t,i)=>{"use strict";i.d(t,{IR:()=>d,KW:()=>_});var n=i(69320),s=i(84229),r=i(38661),o=i(81900),a=i(13091);let l="default",h=!1;function d(e){o.HZ&&(h||(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class c{constructor(e,t,i,n,s){this.vsWorker=e,this.req=t,this.channel=i,this.method=n,this.args=s,this.type=0}}class u{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class g{constructor(e,t,i,n,s){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=n,this.arg=s,this.type=2}}class p{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class f{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class m{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,i){let n=String(++this._lastSentReq);return new Promise((s,r)=>{this._pendingReplies[n]={resolve:s,reject:r},this._send(new c(this._workerId,n,e,t,i))})}listen(e,t,i){let n=null,r=new s.vl({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new g(this._workerId,n,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new f(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId)&&this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(i,n)=>("string"!=typeof n||i[n]||(b(n)?i[n]=t=>this.listen(e,n,t):v(n)?i[n]=this.listen(e,n,void 0):36===n.charCodeAt(0)&&(i[n]=async(...i)=>(await t?.(),this.sendMessage(e,n,i)))),i[n])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){let t=Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,i=t}t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new u(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=(0,n.cU)(e.detail)),this._send(new u(this._workerId,t,void 0,(0,n.cU)(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new p(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){let t=this._pendingEmitters.get(e.req);void 0===t?console.warn("Got event for unknown req"):t.fire(e.event)}_handleUnsubscribeEventMessage(e){let t=this._pendingEvents.get(e.req);void 0===t?console.warn("Got unsubscribe for unknown req"):(t.dispose(),this._pendingEvents.delete(e.req))}_send(e){let t=[];if(0===e.type)for(let i=0;i<e.args.length;i++){let n=e.args[i];n instanceof ArrayBuffer&&t.push(n)}else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class _ extends r.jG{constructor(e){super(),this._localChannels=new Map,this._worker=this._register(e),this._register(this._worker.onMessage(e=>{this._protocol.handleMessage(e)})),this._register(this._worker.onError(e=>{d(e),(0,n.dz)(e)})),this._protocol=new m({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId()),this._onModuleLoaded=this._protocol.sendMessage(l,"$initialize",[this._worker.getId()]).then(()=>{}),this.proxy=this._protocol.createProxyToRemoteChannel(l,async()=>{await this._onModuleLoaded}),this._onModuleLoaded.catch(e=>{this._onError("Worker failed to load ",e)})}_handleMessage(e,t,i){let n=this._localChannels.get(e);if(!n)return Promise.reject(Error(`Missing channel ${e} on main thread`));let s=n[t];if("function"!=typeof s)return Promise.reject(Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s.apply(n,i))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,i){let n=this._localChannels.get(e);if(!n)throw Error(`Missing channel ${e} on main thread`);if(b(t)){let s=n[t];if("function"!=typeof s)throw Error(`Missing dynamic event ${t} on main thread channel ${e}.`);let r=s.call(n,i);if("function"!=typeof r)throw Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(v(t)){let i=n[t];if("function"!=typeof i)throw Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&(0,a.Wv)(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&(0,a.Wv)(e.charCodeAt(9))}},1365:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(49903).then(i.bind(i,49903))})},1542:()=>{},1928:(e,t,i)=>{"use strict";i.d(t,{i:()=>p,s:()=>f});var n=i(7646),s=i(22088),r=i(37267),o=i(20322),a=i(3809),l=i(35362),h=i(84229),d=i(38661);i(25948);var c=i(56558),u=i(80451);let g="--vscode-toolbar-action-min-width";class p extends d.jG{get onDidChangeDropdownVisibility(){return this._onDidChangeDropdownVisibility.event}constructor(e,t,i={orientation:0}){if(super(),this.container=e,this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.originalPrimaryActions=[],this.originalSecondaryActions=[],this.hiddenActions=[],this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,u.bW)()),this.options=i,this.toggleMenuAction=this._register(new f(()=>this.toggleMenuActionViewItem?.show(),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new s.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{if(e.id===f.ID)return this.toggleMenuActionViewItem=new r.d(e,{getActions:()=>this.toggleMenuAction.menuActions},t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??a.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){let t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof o.YH){let i=new r.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}})),this.options.responsiveBehavior?.enabled){this.element.classList.toggle("responsive",!0),this.element.classList.toggle("responsive-all","all"===this.options.responsiveBehavior.kind),this.element.classList.toggle("responsive-last","last"===this.options.responsiveBehavior.kind),this.element.style.setProperty(g,`${this.getConfiguredActionMinWidth()}px`);const e=new ResizeObserver(()=>{this.updateActions(this.getAvailableWidth())});e.observe(this.options.responsiveBehavior?.observedElement??this.element),this._store.add((0,d.s)(()=>e.disconnect()))}}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}set context(e){for(let t of(this.actionBar.context=e,this.toggleMenuActionViewItem?.setActionContext(e),this.submenuActionViewItems))t.setActionContext(e)}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}getItemWidth(e){return this.actionBar.getWidth(e)}getItemsLength(){return this.actionBar.length()}setActions(e,t){this.clear(),this.originalPrimaryActions=e?e.slice(0):[],this.originalSecondaryActions=t?t.slice(0):[];let i=e?e.slice(0):[];if(this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.length>0&&this.options.trailingSeparator&&i.push(new o.wv),i.forEach(e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}),this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),this.options.responsiveBehavior?.enabled){if(this.hiddenActions.length=0,this.options.responsiveBehavior?.minItems!==void 0){let e=this.options.responsiveBehavior.minItems,t=this.originalPrimaryActions.slice(0,e).reduce((e,t)=>e+this.getActionMinWidth(t),0),i=0;(this.originalSecondaryActions.length>0||e<this.originalPrimaryActions.length)&&(i=24),this.container.style.minWidth=`${t+i}px`,this.element.style.minWidth=`${t+i}px`}else{let e=this.originalPrimaryActions.length>0?this.getActionMinWidth(this.originalPrimaryActions[0]):24;this.container.style.minWidth=`${e}px`,this.element.style.minWidth=`${e}px`}this.updateActions(this.getAvailableWidth())}}getKeybindingLabel(e){let t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}getConfiguredActionMinWidth(e){return e?.id===f.ID?20:this.options.responsiveBehavior?.getActionMinWidth?.(e??this.toggleMenuAction)??this.options.responsiveBehavior?.actionMinWidth??20}getActionMinWidth(e){return this.getConfiguredActionMinWidth(e)+4}getAvailableWidth(){return this.options.responsiveBehavior?.getAvailableWidth?this.options.responsiveBehavior.getAvailableWidth():this.element.getBoundingClientRect().width}applyResponsiveActionMinWidths(){if(!this.options.responsiveBehavior?.enabled)return;if("last"===this.options.responsiveBehavior.kind){let e=this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-2:this.actionBar.length()-1,t=e>=0?this.actionBar.getAction(e):void 0,i=`${this.getConfiguredActionMinWidth(t)}px`;this.element.style.getPropertyValue(g)!==i&&this.element.style.setProperty(g,i);return}let e=this.actionBar.getContainer().firstElementChild;if((0,n.sb)(e))for(let t=0;t<e.children.length;t++){let i=e.children.item(t);if(!(0,n.sb)(i))continue;let s=this.actionBar.getAction(t),r=`${this.getConfiguredActionMinWidth(s)}px`;i.style.minWidth!==r&&(i.style.minWidth=r)}}updateActions(e){if(this.actionBar.isEmpty())return;this.applyResponsiveActionMinWidths();let t=parseInt(this.element.style.minWidth);e=Math.max(e,Number.isNaN(t)?0:t);let i=e=>{if(this.options.responsiveBehavior?.kind==="last"){let t=this.actionBar.hasAction(this.toggleMenuAction),i=t?this.actionBar.length()-1:this.actionBar.length();if(0===i)return 24*!!t;let n=0;for(let e=0;e<i-1;e++)n+=this.actionBar.getWidth(e)+4;let s=this.actionBar.getAction(i-1);return n+=e?this.actionBar.getWidth(i-1):this.getActionMinWidth(s),n+=24*!!t}{let t=0;for(let i=0;i<this.actionBar.length();i++)t+=e?this.actionBar.getWidth(i):this.getActionMinWidth(this.actionBar.getAction(i));return t}},n=i(!1);if(n<=e&&0===this.hiddenActions.length)return;if(n>e){if(this.options.responsiveBehavior?.minItems!==void 0&&(this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-1:this.actionBar.length())<=this.options.responsiveBehavior.minItems)return;for(;i(!1)>e&&this.actionBar.length()>0;){let e=this.originalPrimaryActions.length-this.hiddenActions.length-1;if(e<0)break;let t=this.originalPrimaryActions[e],i=Math.min(this.getActionMinWidth(t),this.getItemWidth(e));this.hiddenActions.unshift({action:t,size:i}),this.actionBar.pull(e),0===this.originalSecondaryActions.length&&1===this.hiddenActions.length&&(this.actionBar.push(this.toggleMenuAction,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(this.toggleMenuAction)}),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths()}}else for(;this.hiddenActions.length>0;){let t=this.hiddenActions.shift();if(i(!0)+t.size>e){this.hiddenActions.unshift(t);break}this.actionBar.push(t.action,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(t.action),index:this.originalPrimaryActions.length-this.hiddenActions.length-1}),0===this.originalSecondaryActions.length&&0===this.hiddenActions.length&&(this.toggleMenuAction.menuActions=[],this.actionBar.pull(this.actionBar.length()-1),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths()}let s=this.hiddenActions.map(e=>e.action);if(this.originalSecondaryActions.length>0||s.length>0){let e=this.originalSecondaryActions.slice(0);this.toggleMenuAction.menuActions=o.wv.join(s,e)}this.updateOverflowClassName(),this.applyResponsiveActionMinWidths()}updateOverflowClassName(){this.actionBar.domNode.classList.toggle("has-overflow",this.actionBar.hasAction(this.toggleMenuAction))}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),this.element.remove(),super.dispose()}}class f extends o.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||(0,c.kg)(19,"More Actions..."),super(f.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}},2253:()=>{},2276:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});let n={enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}},2371:(e,t,i)=>{"use strict";let n,s,r;i.d(t,{Su:()=>c,b7:()=>d,fe:()=>u});var o=i(13091),a=i(81900),l=i(88537);function h(){return n||(n=new TextDecoder("UTF-16LE")),n}function d(){return r||(r=(0,a.cm)()?h():(s||(s=new TextDecoder("UTF-16BE")),s)),r}function c(e,t,i){let n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){let n=[],s=0;for(let r=0;r<i;r++){let i=(0,l.$l)(e,t);t+=2,n[s++]=String.fromCharCode(i)}return n.join("")}(e,t,i):h().decode(n)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return d().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||(0,o.pc)(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},2474:(e,t,i)=>{"use strict";i.d(t,{Y:()=>a});var n=i(26961),s=i(38168),r=i(23435),o=i(85704);function a(e,t=o.j.ofCaller()){return"string"==typeof e?new l(e,void 0,t):new l(void 0,e,t)}class l extends r.ZK{get debugName(){return new s.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t,i){super(i),this._debugName=e,this._owner=t}trigger(e,t){if(!e)return void(0,n.Rn)(e=>{this.trigger(e,t)},()=>`Trigger signal ${this.debugName}`);for(let i of this._observers)e.updateObserver(i,this),i.handleChange(this,t)}get(){}}},2507:()=>{},3330:(e,t,i)=>{"use strict";i.d(t,{Al:()=>m,EL:()=>l,HJ:()=>h,NB:()=>c,c7:()=>f,er:()=>d,iw:()=>u,nH:()=>p});var n=i(56558),s=i(18734),r=i(83367),o=i(4529),a=i(77384);let l=(0,r.x1)("quickInput.background",o.Cg,(0,n.kg)(2078,"Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),h=(0,r.x1)("quickInput.foreground",o.Fi,(0,n.kg)(2079,"Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d=(0,r.x1)("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},(0,n.kg)(2080,"Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),c=(0,r.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(2081,"Quick picker color for grouping labels.")),u=(0,r.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(2082,"Quick picker color for grouping borders.")),g=(0,r.x1)("quickInput.list.focusBackground",null,"",void 0,(0,n.kg)(2083,"Please use quickInputList.focusBackground instead")),p=(0,r.x1)("quickInputList.focusForeground",a.GV,(0,n.kg)(2084,"Quick picker foreground color for the focused item.")),f=(0,r.x1)("quickInputList.focusIconForeground",a.fE,(0,n.kg)(2085,"Quick picker icon foreground color for the focused item.")),m=(0,r.x1)("quickInputList.focusBackground",{dark:(0,r.yL)(g,a.Rj),light:(0,r.yL)(g,a.Rj),hcDark:null,hcLight:null},(0,n.kg)(2086,"Quick picker background color for the focused item."));(0,r.x1)("quickInputList.focusHighlightForeground",a.eM,(0,n.kg)(2087,"Quick picker foreground color of the match highlights on the focused item."))},3463:(e,t,i)=>{"use strict";i.d(t,{Aj:()=>l,IL:()=>p,K1:()=>f,Ko:()=>c,Xp:()=>h,uM:()=>u,yL:()=>g,yr:()=>d});var n=i(56558),s=i(18734),r=i(83367),o=i(4529),a=i(8324);let l=(0,r.x1)("minimap.findMatchHighlight",o.Ub,(0,n.kg)(2051,"Minimap marker color for find matches."),!0),h=(0,r.x1)("minimap.selectionOccurrenceHighlight",o.Qw,(0,n.kg)(2052,"Minimap marker color for repeating editor selections."),!0),d=(0,r.x1)("minimap.selectionHighlight",o.se,(0,n.kg)(2053,"Minimap marker color for the editor selection."),!0),c=(0,r.x1)("minimap.infoHighlight",{dark:o.pO,light:o.pO,hcDark:o.II,hcLight:o.II},(0,n.kg)(2054,"Minimap marker color for infos.")),u=(0,r.x1)("minimap.warningHighlight",{dark:o.Hn,light:o.Hn,hcDark:o.St,hcLight:o.St},(0,n.kg)(2055,"Minimap marker color for warnings.")),g=(0,r.x1)("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(2056,"Minimap marker color for errors.")),p=(0,r.x1)("minimap.background",null,(0,n.kg)(2057,"Minimap background color.")),f=(0,r.x1)("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),(0,n.kg)(2058,'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));(0,r.x1)("minimapSlider.background",(0,r.JO)(a.gn,.5),(0,n.kg)(2059,"Minimap slider background color.")),(0,r.x1)("minimapSlider.hoverBackground",(0,r.JO)(a.cI,.5),(0,n.kg)(2060,"Minimap slider background color when hovering.")),(0,r.x1)("minimapSlider.activeBackground",(0,r.JO)(a.mh,.5),(0,n.kg)(2061,"Minimap slider background color when clicked on."))},3489:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});let n=(0,i(93360).u1)("ILanguageFeaturesService")},3644:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var n=i(38661),s=i(84229),r=i(7646);class o extends n.jG{constructor(e,t){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null,t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()},i=!1,n=!1,s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),()=>{n=!1,s()})}};this._resizeObserver=new ResizeObserver(t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},3815:(e,t,i)=>{"use strict";i.d(t,{GP:()=>a,LM:()=>r,Uv:()=>h,nt:()=>o,qL:()=>l});var n=i(12549),s=i(13091);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class o{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,i,n,s,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,n,s,r,o,a,h,d,c,u){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,s),this.tokens=o,this.inlineDecorations=a,this.tabSize=h,this.startVisibleColumn=d,this.textDirection=c,this.hasVariableFonts=u}static isBasicASCII(e,t){return!t||(0,s.aC)(e)}static containsRTL(e,t,i){return!t&&!!i&&(0,s.E_)(e)}}class h{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:+(e.color>t.color):e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&(0,n.aI)(e.data,t.data)}static equalsArr(e,t){return(0,n.aI)(e,t,h.equals)}}},4345:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var n=i(7646),s=i(69737),r=i(87540),o=i(80849),a=i(38661);class l extends a.jG{onclick(e,t){this._register((0,n.ko)(e,n.Bx.CLICK,i=>t(new r.P((0,n.zk)(e),i))))}onmousedown(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_DOWN,i=>t(new r.P((0,n.zk)(e),i))))}onmouseover(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_OVER,i=>t(new r.P((0,n.zk)(e),i))))}onmouseleave(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_LEAVE,i=>t(new r.P((0,n.zk)(e),i))))}onkeydown(e,t){this._register((0,n.ko)(e,n.Bx.KEY_DOWN,e=>t(new s.Z(e))))}onkeyup(e,t){this._register((0,n.ko)(e,n.Bx.KEY_UP,e=>t(new s.Z(e))))}oninput(e,t){this._register((0,n.ko)(e,n.Bx.INPUT,t))}onblur(e,t){this._register((0,n.ko)(e,n.Bx.BLUR,t))}onfocus(e,t){this._register((0,n.ko)(e,n.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},4448:()=>{},4473:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=(0,i(93360).u1)("markerDecorationsService")},4529:(e,t,i)=>{"use strict";i.d(t,{$B:()=>W,By:()=>h,Cg:()=>d,DS:()=>H,EC:()=>D,EY:()=>A,Fi:()=>c,GN:()=>F,Gj:()=>P,Hn:()=>f,II:()=>v,JP:()=>en,Qw:()=>S,Rb:()=>g,S5:()=>E,St:()=>m,Ub:()=>k,Yt:()=>l,ZE:()=>O,bN:()=>es,et:()=>K,f3:()=>x,f9:()=>V,fA:()=>ee,i6:()=>b,ld:()=>B,mc:()=>U,oZ:()=>I,p8:()=>L,pO:()=>_,rm:()=>w,sA:()=>G,sI:()=>u,se:()=>C,t:()=>y,tY:()=>ei,vV:()=>$,wh:()=>p,z5:()=>et});var n=i(56558),s=i(18734),r=i(83367),o=i(45837),a=i(8324);let l=(0,r.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},(0,n.kg)(1865,"Editor background color.")),h=(0,r.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:o.CU},(0,n.kg)(1866,"Editor default foreground color."));(0,r.x1)("editorStickyScroll.background",l,(0,n.kg)(1867,"Background color of sticky scroll in the editor")),(0,r.x1)("editorStickyScrollGutter.background",l,(0,n.kg)(1868,"Background color of the gutter part of sticky scroll in the editor")),(0,r.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},(0,n.kg)(1869,"Background color of sticky scroll on hover in the editor")),(0,r.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1870,"Border color of sticky scroll in the editor")),(0,r.x1)("editorStickyScroll.shadow",a.bX,(0,n.kg)(1871," Shadow color of sticky scroll in the editor"));let d=(0,r.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},(0,n.kg)(1872,"Background color of editor widgets, such as find/replace.")),c=(0,r.x1)("editorWidget.foreground",o.CU,(0,n.kg)(1873,"Foreground color of editor widgets, such as find/replace.")),u=(0,r.x1)("editorWidget.border",{dark:(0,r.JO)(c,.2),light:(0,r.JO)(c,.2),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1874,"Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));(0,r.x1)("editorWidget.resizeBorder",null,(0,n.kg)(1875,"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,r.x1)("editorError.background",null,(0,n.kg)(1876,"Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let g=(0,r.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},(0,n.kg)(1877,"Foreground color of error squigglies in the editor."));(0,r.x1)("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},(0,n.kg)(1878,"If set, color of double underlines for errors in the editor."));let p=(0,r.x1)("editorWarning.background",null,(0,n.kg)(1879,"Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),f=(0,r.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},(0,n.kg)(1880,"Foreground color of warning squigglies in the editor.")),m=(0,r.x1)("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},(0,n.kg)(1881,"If set, color of double underlines for warnings in the editor."));(0,r.x1)("editorInfo.background",null,(0,n.kg)(1882,"Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let _=(0,r.x1)("editorInfo.foreground",{dark:"#59a4f9",light:"#0063d3",hcDark:"#59a4f9",hcLight:"#0063d3"},(0,n.kg)(1883,"Foreground color of info squigglies in the editor.")),v=(0,r.x1)("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#59a4f9").transparent(.8),hcLight:"#292929"},(0,n.kg)(1884,"If set, color of double underlines for infos in the editor.")),b=(0,r.x1)("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},(0,n.kg)(1885,"Foreground color of hint squigglies in the editor."));(0,r.x1)("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},(0,n.kg)(1886,"If set, color of double underlines for hints in the editor.")),(0,r.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},(0,n.kg)(1887,"Color of active links."));let C=(0,r.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},(0,n.kg)(1888,"Color of the editor selection.")),w=(0,r.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},(0,n.kg)(1889,"Color of the selected text for high contrast.")),y=(0,r.x1)("editor.inactiveSelectionBackground",{light:(0,r.JO)(C,.5),dark:(0,r.JO)(C,.5),hcDark:(0,r.JO)(C,.7),hcLight:(0,r.JO)(C,.5)},(0,n.kg)(1890,"Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),S=(0,r.x1)("editor.selectionHighlightBackground",{light:(0,r.oG)(C,l,.3,.6),dark:(0,r.oG)(C,l,.3,.6),hcDark:null,hcLight:null},(0,n.kg)(1891,"Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1892,"Border color for regions with the same content as the selection.")),(0,r.x1)("editor.compositionBorder",{light:"#000000",dark:"#ffffff",hcLight:"#000000",hcDark:"#ffffff"},(0,n.kg)(1893,"The border color for an IME composition.")),(0,r.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},(0,n.kg)(1894,"Color of the current search match."));let x=(0,r.x1)("editor.findMatchForeground",null,(0,n.kg)(1895,"Text color of the current search match.")),k=(0,r.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},(0,n.kg)(1896,"Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,r.x1)("editor.findMatchHighlightForeground",null,(0,n.kg)(1897,"Foreground color of the other search matches."),!0);(0,r.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},(0,n.kg)(1898,"Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1899,"Border color of the current search match."));let D=(0,r.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1900,"Border color of the other search matches.")),E=(0,r.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,r.JO)(o.bu,.4),hcLight:(0,r.JO)(o.bu,.4)},(0,n.kg)(1901,"Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},(0,n.kg)(1902,"Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);let N=(0,r.x1)("editorHoverWidget.background",d,(0,n.kg)(1903,"Background color of the editor hover."));(0,r.x1)("editorHoverWidget.foreground",c,(0,n.kg)(1904,"Foreground color of the editor hover."));let I=(0,r.x1)("editorHoverWidget.border",u,(0,n.kg)(1905,"Border color of the editor hover."));(0,r.x1)("editorHoverWidget.statusBarBackground",{dark:(0,r.a)(N,.2),light:(0,r.e$)(N,.05),hcDark:d,hcLight:d},(0,n.kg)(1906,"Background color of the editor hover status bar."));let T=(0,r.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},(0,n.kg)(1907,"Foreground color of inline hints")),M=(0,r.x1)("editorInlayHint.background",{dark:(0,r.JO)(a.WM,.1),light:(0,r.JO)(a.WM,.1),hcDark:(0,r.JO)(s.Q1.white,.1),hcLight:(0,r.JO)(a.WM,.1)},(0,n.kg)(1908,"Background color of inline hints"));(0,r.x1)("editorInlayHint.typeForeground",T,(0,n.kg)(1909,"Foreground color of inline hints for types")),(0,r.x1)("editorInlayHint.typeBackground",M,(0,n.kg)(1910,"Background color of inline hints for types")),(0,r.x1)("editorInlayHint.parameterForeground",T,(0,n.kg)(1911,"Foreground color of inline hints for parameters")),(0,r.x1)("editorInlayHint.parameterBackground",M,(0,n.kg)(1912,"Background color of inline hints for parameters"));let R=(0,r.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},(0,n.kg)(1913,"The color used for the lightbulb actions icon."));(0,r.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)(1914,"The color used for the lightbulb auto fix actions icon.")),(0,r.x1)("editorLightBulbAi.foreground",R,(0,n.kg)(1915,"The color used for the lightbulb AI icon.")),(0,r.x1)("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},(0,n.kg)(1916,"Highlight background color of a snippet tabstop.")),(0,r.x1)("editor.snippetTabstopHighlightBorder",null,(0,n.kg)(1917,"Highlight border color of a snippet tabstop.")),(0,r.x1)("editor.snippetFinalTabstopHighlightBackground",null,(0,n.kg)(1918,"Highlight background color of the final tabstop of a snippet.")),(0,r.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},(0,n.kg)(1919,"Highlight border color of the final tabstop of a snippet."));let A=new s.Q1(new s.bU(155,185,85,.2)),O=new s.Q1(new s.bU(255,0,0,.2)),P=(0,r.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},(0,n.kg)(1920,"Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),F=(0,r.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},(0,n.kg)(1921,"Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("diffEditor.insertedLineBackground",{dark:A,light:A,hcDark:null,hcLight:null},(0,n.kg)(1922,"Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("diffEditor.removedLineBackground",{dark:O,light:O,hcDark:null,hcLight:null},(0,n.kg)(1923,"Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("diffEditorGutter.insertedLineBackground",null,(0,n.kg)(1924,"Background color for the margin where lines got inserted.")),(0,r.x1)("diffEditorGutter.removedLineBackground",null,(0,n.kg)(1925,"Background color for the margin where lines got removed."));let B=(0,r.x1)("diffEditorOverview.insertedForeground",null,(0,n.kg)(1926,"Diff overview ruler foreground for inserted content.")),W=(0,r.x1)("diffEditorOverview.removedForeground",null,(0,n.kg)(1927,"Diff overview ruler foreground for removed content."));(0,r.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},(0,n.kg)(1928,"Outline color for the text that got inserted.")),(0,r.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},(0,n.kg)(1929,"Outline color for text that got removed.")),(0,r.x1)("diffEditor.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1930,"Border color between the two text editors.")),(0,r.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},(0,n.kg)(1931,"Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,r.x1)("diffEditor.unchangedRegionBackground","sideBar.background",(0,n.kg)(1932,"The background color of unchanged blocks in the diff editor.")),(0,r.x1)("diffEditor.unchangedRegionForeground","foreground",(0,n.kg)(1933,"The foreground color of unchanged blocks in the diff editor.")),(0,r.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},(0,n.kg)(1934,"The background color of unchanged code in the diff editor."));let V=(0,r.x1)("widget.shadow",{dark:(0,r.JO)(s.Q1.black,.36),light:(0,r.JO)(s.Q1.black,.16),hcDark:null,hcLight:null},(0,n.kg)(1935,"Shadow color of widgets such as find/replace inside the editor.")),H=(0,r.x1)("widget.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1936,"Border color of widgets such as find/replace inside the editor.")),z=(0,r.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},(0,n.kg)(1937,"Toolbar background when hovering over actions using the mouse"));(0,r.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1938,"Toolbar outline when hovering over actions using the mouse")),(0,r.x1)("toolbar.activeBackground",{dark:(0,r.a)(z,.1),light:(0,r.e$)(z,.1),hcDark:null,hcLight:null},(0,n.kg)(1939,"Toolbar background when holding the mouse over actions"));let U=(0,r.x1)("breadcrumb.foreground",(0,r.JO)(o.CU,.8),(0,n.kg)(1940,"Color of focused breadcrumb items.")),$=(0,r.x1)("breadcrumb.background",l,(0,n.kg)(1941,"Background color of breadcrumb items.")),K=(0,r.x1)("breadcrumb.focusForeground",{light:(0,r.e$)(o.CU,.2),dark:(0,r.a)(o.CU,.1),hcDark:(0,r.a)(o.CU,.1),hcLight:(0,r.a)(o.CU,.1)},(0,n.kg)(1942,"Color of focused breadcrumb items.")),G=(0,r.x1)("breadcrumb.activeSelectionForeground",{light:(0,r.e$)(o.CU,.2),dark:(0,r.a)(o.CU,.1),hcDark:(0,r.a)(o.CU,.1),hcLight:(0,r.a)(o.CU,.1)},(0,n.kg)(1943,"Color of selected breadcrumb items."));(0,r.x1)("breadcrumbPicker.background",d,(0,n.kg)(1944,"Background color of breadcrumb item picker."));let j=s.Q1.fromHex("#40C8AE").transparent(.5),q=s.Q1.fromHex("#40A6FF").transparent(.5),Q=s.Q1.fromHex("#606060").transparent(.4),Y=(0,r.x1)("merge.currentHeaderBackground",{dark:j,light:j,hcDark:null,hcLight:null},(0,n.kg)(1945,"Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.currentContentBackground",(0,r.JO)(Y,.4),(0,n.kg)(1946,"Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let Z=(0,r.x1)("merge.incomingHeaderBackground",{dark:q,light:q,hcDark:null,hcLight:null},(0,n.kg)(1947,"Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.incomingContentBackground",(0,r.JO)(Z,.4),(0,n.kg)(1948,"Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let X=(0,r.x1)("merge.commonHeaderBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},(0,n.kg)(1949,"Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.commonContentBackground",(0,r.JO)(X,.4),(0,n.kg)(1950,"Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let J=(0,r.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},(0,n.kg)(1951,"Border color on headers and the splitter in inline merge-conflicts."));(0,r.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,r.JO)(Y,1),light:(0,r.JO)(Y,1),hcDark:J,hcLight:J},(0,n.kg)(1952,"Current overview ruler foreground for inline merge-conflicts.")),(0,r.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,r.JO)(Z,1),light:(0,r.JO)(Z,1),hcDark:J,hcLight:J},(0,n.kg)(1953,"Incoming overview ruler foreground for inline merge-conflicts.")),(0,r.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,r.JO)(X,1),light:(0,r.JO)(X,1),hcDark:J,hcLight:J},(0,n.kg)(1954,"Common ancestor overview ruler foreground for inline merge-conflicts."));let ee=(0,r.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},(0,n.kg)(1955,"Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),et=(0,r.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",(0,n.kg)(1956,"Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ei=(0,r.x1)("problemsErrorIcon.foreground",g,(0,n.kg)(1957,"The color used for the problems error icon.")),en=(0,r.x1)("problemsWarningIcon.foreground",f,(0,n.kg)(1958,"The color used for the problems warning icon.")),es=(0,r.x1)("problemsInfoIcon.foreground",_,(0,n.kg)(1959,"The color used for the problems info icon."))},4722:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,jN:()=>a,nu:()=>o});var n=i(93360),s=i(34247),r=i(27044);let o=(0,n.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(l.is(e))return l.lift(e);if(h.is(e))return h.lift(e);throw Error("Unsupported edit")})}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&s.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class h extends a{static is(e){return e instanceof h||(0,r.Gv)(e)&&(!!e.newResource||!!e.oldResource)}static lift(e){return e instanceof h?e:new h(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},4757:()=>{},4872:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var n=i(7646),s=i(19923),r=i(80451),o=i(87108),a=i(38661),l=i(48633);i(14908);var h=i(56558);let d=n.$;class c extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=(0,n.BC)(e,d(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,s.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}set(e,t){this.didEverRender&&this.keybinding===e&&c.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let t=1;t<e.length;t++)(0,n.BC)(this.domNode,d("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[t],this.matches?this.matches.chordPart:null);let t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){(0,n.w_)(this.domNode),this.keyElements.clear()}renderChord(e,t,i){let n=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!i?.ctrlKey,n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!i?.shiftKey,n.separator),t.altKey&&this.renderKey(e,n.altKey,!!i?.altKey,n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!i?.metaKey,n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!i?.keyCode,"")}renderKey(e,t,i,s){(0,n.BC)(e,this.createKeyElement(t,i?".highlight":"")),s&&(0,n.BC)(e,d("span.monaco-keybinding-key-separator",void 0,s))}renderUnbound(e){(0,n.BC)(e,this.createKeyElement((0,h.kg)(15,"Unbound")))}createKeyElement(e,t=""){let i=d("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.aI)(e.firstPart,t.firstPart)&&(0,l.aI)(e.chordPart,t.chordPart)}}},4917:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var n,s=i(27044);!function(e){function t(e){return!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e??i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(let n of e)if(t(n,i++))return!0;return!1},e.every=function(e,t){let i=0;for(let n of e)if(!t(n,i++))return!1;return!0},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.flatMap=function*(e,t){let i=0;for(let n of e)yield*t(n,i++)},e.concat=function*(...e){for(let t of e)(0,s.xZ)(t)?yield*t:yield t},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.length=function(e){let t=0;for(let i of e)t++;return t},e.slice=function*(e,t,i=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=1/0){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){let t=[];for await(let i of e)t.push(i);return t},e.asyncToArrayFlat=async function(e){let t=[];for await(let i of e)t=t.concat(i);return t}}(n||(n={}))},5228:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(12865).then(i.bind(i,12865))})},5320:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>m,QB:()=>g,Qx:()=>w,VL:()=>C,Vh:()=>l,Vp:()=>a,eu:()=>c,l4:()=>d,o0:()=>b,pW:()=>p,qe:()=>h,rR:()=>y,sS:()=>u,vr:()=>v,wP:()=>f,zG:()=>_});var n=i(13091),s=i(8998),r=i(89600);function o(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}let a=0;function l(e){return 0===e}function h(e,t){return 0x4000000*e+t}function d(e){let t=Math.floor(e/0x4000000);return new r.W(t,e-0x4000000*t)}function c(e){return Math.floor(e/0x4000000)}function u(e){return e}function g(e,t){let i=e+t;return t>=0x4000000&&(i-=e%0x4000000),i}function p(e,t){return e.reduce((e,i)=>g(e,t(i)),a)}function f(e,t){return e===t}function m(e,t){if(t-e<=0)return a;let i=Math.floor(e/0x4000000),n=Math.floor(t/0x4000000),s=t-0x4000000*n;return i===n?h(0,s-(e-0x4000000*i)):h(n-i,s)}function _(e,t){return e<t}function v(e,t){return e<=t}function b(e,t){return e>=t}function C(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){let i=Math.floor(e/0x4000000),n=Math.floor(t/0x4000000);return new s.Q(i+1,e-0x4000000*i+1,n+1,t-0x4000000*n+1)}function y(e){let t=(0,n.uz)(e);return h(t.length-1,t[t.length-1].length)}},5324:(e,t,i)=>{"use strict";i.d(t,{t:()=>n});let n={RESOURCES:"ResourceURLs",TEXT:i(78423).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},6325:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(9743).then(i.bind(i,9743))})},6819:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>s,pj:()=>h,qN:()=>l});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getLineHeightForLineNumber(e){return this._viewLayout.getLineHeightForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class s extends n{constructor(e,t,i,n){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i,this._viewLinesGpu=n}linesVisibleRangesForRange(e,t){let i=this._viewLines.linesVisibleRangesForRange(e,t);if(!this._viewLinesGpu)return i;let n=this._viewLinesGpu.linesVisibleRangesForRange(e,t);return i?n?i.concat(n).sort((e,t)=>e.lineNumber-t.lineNumber):i:n}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)??this._viewLinesGpu?.visibleRangeForPosition(e)??null}}class r{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class o{static from(e){let t=Array(e.length);for(let i=0,n=e.length;i<n;i++){let n=e[i];t[i]=new o(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class h{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},6911:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(38168),s=i(78882);i(84229),i(38661);var r=i(12811),o=i(26961),a=i(19759),l=i(23435);class h extends l.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i,n){super(n),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(let e of this._deltas)for(let t of((0,a.t)()?.handleObservableUpdated(this,{change:e,didChange:!0,oldValue:"(unknown)",newValue:this._value,hadValue:!0}),this._observers))t.handleChange(this,e);this._deltas.length=0}else for(let e of((0,a.t)()?.handleObservableUpdated(this,{change:void 0,didChange:!0,oldValue:"(unknown)",newValue:this._value,hadValue:!0}),this._observers))e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(let e of this._observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter)for(let e of(this._update(),[...this._observers]))e.endUpdate(this)}addObserver(e){let t=!this._observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){let t=this._observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){let n;if(!(void 0===i&&this._equalityComparator(this._value,e))){t||(t=n=new o.XL(()=>{},()=>`Setting ${this.debugName}`));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(let e of this._observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}var d=i(85704);function c(e,t,i=d.j.ofCaller()){return e.lazy?new h(new n.nA(e.owner,e.debugName,void 0),t,e.equalsFn??s.nx,i):new r.Lj(new n.nA(e.owner,e.debugName,void 0),t,e.equalsFn??s.nx,i)}},7055:(e,t,i)=>{"use strict";let n,s;i.d(t,{Ez:()=>_,SJ:()=>l,dy:()=>v,fV:()=>f,ny:()=>a,v$:()=>p,zl:()=>C});var r,o,a,l,h=i(69320),d=i(81900),c=i(13091),u=i(34247),g=i(15928);function p(e,t){return u.r.isUri(e)?(0,c.Q_)(e.scheme,t):(0,c.ns)(e,t+":")}function f(e,...t){return t.some(t=>p(e,t))}(r=a||(a={})).inMemory="inmemory",r.vscode="vscode",r.internal="private",r.walkThrough="walkThrough",r.walkThroughSnippet="walkThroughSnippet",r.http="http",r.https="https",r.file="file",r.mailto="mailto",r.untitled="untitled",r.data="data",r.command="command",r.vscodeRemote="vscode-remote",r.vscodeRemoteResource="vscode-remote-resource",r.vscodeManagedRemoteResource="vscode-managed-remote-resource",r.vscodeUserData="vscode-userdata",r.vscodeCustomEditor="vscode-custom-editor",r.vscodeNotebookCell="vscode-notebook-cell",r.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",r.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",r.vscodeNotebookCellOutput="vscode-notebook-cell-output",r.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",r.vscodeNotebookMetadata="vscode-notebook-metadata",r.vscodeInteractiveInput="vscode-interactive-input",r.vscodeSettings="vscode-settings",r.vscodeWorkspaceTrust="vscode-workspace-trust",r.vscodeTerminal="vscode-terminal",r.vscodeImageCarousel="vscode-image-carousel",r.vscodeChatCodeBlock="vscode-chat-code-block",r.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",r.vscodeChatEditor="vscode-chat-editor",r.vscodeChatInput="chatSessionInput",r.vscodeLocalChatSession="vscode-chat-session",r.webviewPanel="webview-panel",r.vscodeWebview="vscode-webview",r.vscodeBrowser="vscode-browser",r.extension="extension",r.vscodeFileResource="vscode-file",r.tmp="tmp",r.vsls="vsls",r.vscodeSourceControl="vscode-scm",r.commentsInput="comment",r.codeSetting="code-setting",r.outputChannel="output",r.accessibleView="accessible-view",r.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",r.chatEditingModel="chat-editing-text-model",r.copilotPr="copilot-pr";class m{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return g.SA.join(this._serverRootPath,a.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return(0,h.M_)(t),e}let t=e.authority,i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);let n=this._ports[t],s=this._connectionTokens[t],r=`path=${encodeURIComponent(e.path)}`;return"string"==typeof s&&(r+=`&tkn=${encodeURIComponent(s)}`),u.r.from({scheme:d.HZ?this._preferredWebSchema:a.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}let _=new m,v="vs/../../node_modules";class b{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){let t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===a.vscodeRemote?_.rewrite(e):e.scheme===a.file&&(d.ib||d.lg===`${a.vscodeFileResource}://${b.FALLBACK_AUTHORITY}`)?e.with({scheme:a.vscodeFileResource,authority:e.authority||b.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e){if(u.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){let t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return u.r.joinPath(u.r.parse(t,!0),e);let i=(0,g.fj)(t,e);return u.r.file(i)}throw Error("Cannot determine URI for module id!")}}let C=new b;(o=l||(l={})).CoopAndCoep=Object.freeze((n=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]])).get("3")),s="vscode-coi",o.getHeadersFromQuery=function(e){let t;"string"==typeof e?t=new URL(e).searchParams:e instanceof URL?t=e.searchParams:u.r.isUri(e)&&(t=new URL(e.toString(!0)).searchParams);let i=t?.get(s);if(i)return n.get(i)},o.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;let n=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(s,n):e[s]=n}},7646:(e,t,i)=>{"use strict";let n,s,r,o,a,l,h,d,c,u,g;i.d(t,{$:()=>eF,BC:()=>eM,BK:()=>ei,Be:()=>Q,Bx:()=>ex,Cl:()=>ec,Di:()=>e$,Er:()=>ey,FK:()=>ev,Fv:()=>W,H4:()=>eo,Hs:()=>eR,Iv:()=>F,J$:()=>G,L9:()=>Z,Ln:()=>eA,OK:()=>ea,Oq:()=>n,PG:()=>s,Pl:()=>eT,Q2:()=>O,QX:()=>el,Tr:()=>es,U3:()=>q,WU:()=>eW,X7:()=>ep,XD:()=>eh,YE:()=>M,ZF:()=>P,_9:()=>K,a:()=>em,bo:()=>eB,bq:()=>eg,cL:()=>et,fg:()=>ee,fs:()=>eL,fz:()=>e_,h:()=>ej,i0:()=>eU,jD:()=>eV,jG:()=>eu,jh:()=>ez,ko:()=>U,kx:()=>eS,mU:()=>en,nR:()=>ef,nY:()=>eC,pN:()=>eK,q3:()=>B,sb:()=>eb,sd:()=>ek,sl:()=>R,tG:()=>X,un:()=>$,vT:()=>eH,w5:()=>eI,w_:()=>H,wk:()=>eE,xZ:()=>ew,xb:()=>j,y6:()=>er,yD:()=>eQ,zK:()=>eD,zk:()=>T}),i(44578);var p,f,m,_=i(57746),v=i(69737),b=i(87540),C=i(74789),w=i(69320),y=i(84229),S=i(38661),x=i(7055),k=i(81900),L=i(68435),D=i(7974);i(55098);var E=i(83384),N=i(90967),I=i(12811);let{getWindow:T,getDocument:M,getWindows:R,getWindowsCount:A,getWindowId:O,getWindowById:P,onDidRegisterWindow:F,onWillUnregisterWindow:B,onDidUnregisterWindow:W}=(r=new Map,(0,D.y)(D.G,1),o={window:D.G,disposables:new S.Cm},r.set(D.G.vscodeWindowId,o),a=new y.vl,l=new y.vl,h=new y.vl,{onDidRegisterWindow:a.event,onWillUnregisterWindow:h.event,onDidUnregisterWindow:l.event,registerWindow(e){if(r.has(e.vscodeWindowId))return S.jG.None;let t=new S.Cm,i={window:e,disposables:t.add(new S.Cm)};return r.set(e.vscodeWindowId,i),t.add((0,S.s)(()=>{r.delete(e.vscodeWindowId),l.fire(e)})),t.add(U(e,ex.BEFORE_UNLOAD,()=>{h.fire(e)})),a.fire(i),t},getWindows:()=>r.values(),getWindowsCount:()=>r.size,getWindowId:e=>e.vscodeWindowId,hasWindow:e=>r.has(e),getWindowById:function(e,t){return("number"==typeof e?r.get(e):void 0)??(t?o:void 0)},getWindow:e=>e?.ownerDocument?.defaultView?e.ownerDocument.defaultView.window:e?.view?e.view.window:D.G,getDocument:e=>T(e).document}),V=new Set;function H(e){for(;e.firstChild;)e.firstChild.remove()}class z{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function U(e,t,i,n){return new z(e,t,i,n)}let $=function(e,t,i,n){var s;let r=i;return"click"===t||"mousedown"===t||"contextmenu"===t?(s=T(e),r=function(e){return i(new b.P(s,e))}):("keydown"===t||"keypress"===t||"keyup"===t)&&(r=function(e){return i(new v.Z(e))}),U(e,t,r,n)};function K(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_DOWN:ex.MOUSE_DOWN,t,i)}function G(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_MOVE:ex.MOUSE_MOVE,t,i)}function j(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_UP:ex.MOUSE_UP,t,i)}function q(e,t,i){return(0,C.b7)(e,t,i)}C.A0;class Q extends C.vb{constructor(e){super(),this.defaultTarget=e&&T(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class Y{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,w.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function Z(e){return T(e).getComputedStyle(e,null)}function X(e,t,i){let n=T(e),s=n.document;if(e!==s.body)return new ee(e.clientWidth,e.clientHeight);if(k.un&&n?.visualViewport)return new ee(n.visualViewport.width,n.visualViewport.height);if(n?.innerWidth&&n.innerHeight)return new ee(n.innerWidth,n.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new ee(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new ee(s.documentElement.clientWidth,s.documentElement.clientHeight);throw Error("Unable to figure out browser width and height")}d=new Map,c=new Map,u=new Map,g=new Map,s=(e,t,i=0)=>{let n=O(e),s=new Y(t,i),r=d.get(n);return r||(r=[],d.set(n,r)),r.push(s),u.get(n)||(u.set(n,!0),e.requestAnimationFrame(()=>(e=>{u.set(e,!1);let t=d.get(e)??[];for(c.set(e,t),d.set(e,[]),g.set(e,!0);t.length>0;)t.sort(Y.sort),t.shift().execute();g.set(e,!1)})(n))),s},n=(e,t,i)=>{let n=O(e);if(!g.get(n))return s(e,t,i);{let e=new Y(t,i),s=c.get(n);return s||(s=[],c.set(n,s)),s.push(e),e}};class J{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t){let i=Z(e),n=i?i.getPropertyValue(t):"0";return J.convertToPixels(e,n)}static getBorderLeftWidth(e){return J.getDimension(e,"border-left-width")}static getBorderRightWidth(e){return J.getDimension(e,"border-right-width")}static getBorderTopWidth(e){return J.getDimension(e,"border-top-width")}static getBorderBottomWidth(e){return J.getDimension(e,"border-bottom-width")}static getPaddingLeft(e){return J.getDimension(e,"padding-left")}static getPaddingRight(e){return J.getDimension(e,"padding-right")}static getPaddingTop(e){return J.getDimension(e,"padding-top")}static getPaddingBottom(e){return J.getDimension(e,"padding-bottom")}static getMarginLeft(e){return J.getDimension(e,"margin-left")}static getMarginTop(e){return J.getDimension(e,"margin-top")}static getMarginRight(e){return J.getDimension(e,"margin-right")}static getMarginBottom(e){return J.getDimension(e,"margin-bottom")}}class ee{static{this.None=new ee(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new ee(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof ee?e:new ee(e.width,e.height)}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height}}function et(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;let s=ed(e)?null:Z(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=J.getBorderLeftWidth(e),i+=J.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function ei(e){let t=e.getBoundingClientRect(),i=T(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function en(e){let t=e,i=1;do{let e=Z(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function es(e){let t=J.getMarginLeft(e)+J.getMarginRight(e);return e.offsetWidth+t}function er(e){let t=J.getBorderLeftWidth(e)+J.getBorderRightWidth(e),i=J.getPaddingLeft(e)+J.getPaddingRight(e);return e.offsetWidth-t-i}function eo(e){let t=J.getBorderTopWidth(e)+J.getBorderBottomWidth(e),i=J.getPaddingTop(e)+J.getPaddingBottom(e);return e.offsetHeight-t-i}function ea(e){let t=J.getMarginTop(e)+J.getMarginBottom(e);return e.offsetHeight+t}function el(e,t){return!!t?.contains(e)}function eh(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break}else if(e===i)break}e=e.parentNode}return null}(e,t,i)}function ed(e){return e&&!!e.host&&!!e.mode}function ec(e){return!!eu(e)}function eu(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return ed(e)?e:null}function eg(){let e=em().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ep(e){return eg()===e}function ef(e){return el(eg(),e)}function em(){if(1>=A())return D.G.document;let e=Array.from(R()).map(({window:e})=>e.document).find(e=>e.hasFocus());if(e)return e;let t=function(){for(let e of V){let t=e();if(t.hasFocus&&t.window)return t.window}}();return t?t.document:D.G.document}function e_(){let e=em();return e.defaultView?.window??D.G}let ev=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));let s=(0,L.tW)(i),r=n.get(s);if(r)r.users+=1;else{let o=new y.vl,a=new MutationObserver(e=>o.fire(e));a.observe(e,i);let l=r={users:1,observer:a,onDidMutate:o.event};t.add((0,S.s)(()=>{l.users-=1,0===l.users&&(o.dispose(),a.disconnect(),n?.delete(s),n?.size===0&&this.mutationObservers.delete(e))})),n.set(s,r)}return r.onDidMutate}};function eb(e){return e instanceof HTMLElement||e instanceof T(e).HTMLElement}function eC(e){return e instanceof HTMLAnchorElement||e instanceof T(e).HTMLAnchorElement}function ew(e){return e instanceof SVGElement||e instanceof T(e).SVGElement}function ey(e){return e instanceof MouseEvent||e instanceof T(e).MouseEvent}function eS(e){return e instanceof KeyboardEvent||e instanceof T(e).KeyboardEvent}let ex={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",RESIZE:"resize",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function ek(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation)}let eL={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function eD(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function eE(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class eN extends S.jG{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(!eb(e))return el(e.document.activeElement,e.document);{let t=eu(e);return el(t?t.activeElement:e.ownerDocument.activeElement,e)}}constructor(e){super(),this._onDidFocus=this._register(new y.vl),this._onDidBlur=this._register(new y.vl);let t=eN.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(eb(e)?T(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{eN.hasFocusWithin(e)!==t&&(t?s():n())},this._register(U(e,ex.FOCUS,n,!0)),this._register(U(e,ex.BLUR,s,!0)),eb(e)&&(this._register(U(e,ex.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(e,ex.FOCUS_OUT,()=>this._refreshStateHandler())))}}function eI(e){return new eN(e)}function eT(e,t){return e.after(t),t}function eM(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function eR(e,t){return e.insertBefore(t,e.firstChild),t}function eA(e,...t){e.textContent="",eM(e,...t)}let eO=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function eP(e,t,i,...n){let s,r=eO.exec(t);if(!r)throw Error("Bad use of emmet");let o=r[1]||"div";return s=e!==f.HTML?document.createElementNS(e,o):document.createElement(o),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))}),s.append(...n),s}function eF(e,t,...i){return eP(f.HTML,e,t,...i)}function eB(e,...t){e?eW(...t):eV(...t)}function eW(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function eV(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function eH(e,t){return Math.max(1,Math.floor(e.devicePixelRatio*t))/e.devicePixelRatio}function ez(e){D.G.open(e,"_blank","noopener")}function eU(e,t){let i=()=>{t(),n=s(e,i)},n=s(e,i);return(0,S.s)(()=>n.dispose())}(p=f||(f={})).HTML="http://www.w3.org/1999/xhtml",p.SVG="http://www.w3.org/2000/svg",eF.SVG=function(e,t,...i){return eP(f.SVG,e,t,...i)},x.Ez.setPreferredWebSchema(/^https:/.test(D.G.location.href)?"https":"http");class e$ extends y.vl{constructor(){super(),this._subscriptions=new S.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(y.Jh.runAndSubscribe(F,({window:e,disposables:t})=>this.registerListeners(e,t),{window:D.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(U(e,"keydown",e=>{if(e.defaultPrevented)return;let t=new v.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(U(e,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(U(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(U(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return e$.instance||(e$.instance=new e$),e$.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class eK extends S.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,ex.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(U(this.element,ex.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(U(this.element,ex.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(U(this.element,ex.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(U(this.element,ex.DRAG_LEAVE,e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(U(this.element,ex.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(U(this.element,ex.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}}let eG=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function ej(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);let s=eG.exec(e);if(!s||!s.groups)throw Error("Bad use of h");let r=s.groups.tag||"div",o=document.createElement(r);s.groups.id&&(o.id=s.groups.id);let a=[];if(s.groups.class)for(let e of s.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(o.className=a.join(" "));let l={};if(s.groups.name&&(l[s.groups.name]=o),n)for(let e of n)eb(e)?o.appendChild(e):"string"==typeof e?o.append(e):"root"in e&&(Object.assign(l,e),o.appendChild(e.root));for(let[e,t]of Object.entries(i))if("className"===e)continue;else if("style"===e)for(let[e,i]of Object.entries(t))o.style.setProperty(eq(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?o.tabIndex=t:o.setAttribute(eq(e),t.toString());return l.root=o,l}function eq(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function eQ(e){return"input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase()||eb(e)&&!!e.editContext}var eY=m||(m={});function eZ(e){return(t,i,n)=>{let s=i.class;delete i.class;let r=i.ref;delete i.ref;let o=i.obsRef;return delete i.obsRef,new e5(t,r,o,e,s,i,n)}}function eX(e,t){let i=eZ(t);return(t,n)=>i(e,t,n)}eY.div=eX("div"),eY.elem=eZ(void 0),eY.svg=eX("svg","http://www.w3.org/2000/svg"),eY.svgElem=eZ("http://www.w3.org/2000/svg"),eY.ref=function(){let e,t=function(t){e=t};return Object.defineProperty(t,"element",{get(){if(!e)throw new w.D7("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return e}}),t};class eJ{constructor(e,t,i,n,s,r,o){for(const[o,a]of(this._deriveds=[],this._isHovered=void 0,this._didMouseMoveDuringHover=void 0,this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push((0,E.un)(e=>{i(this),e.store.add({dispose:()=>{i(null)}})})),s&&(!function e(t){return!!(0,N.AT)(t)||!!Array.isArray(t)&&t.some(t=>e(t))}(s)?e0(this._element,e1(s,void 0)):this._deriveds.push((0,E.un)(this,e=>{e0(this._element,e1(s,e))}))),Object.entries(r)))if("style"===o)for(const[e,t]of Object.entries(a)){const i=eq(e);(0,N.AT)(t)?this._deriveds.push((0,E.C)({owner:this,debugName:()=>`set.style.${i}`},e=>{this._element.style.setProperty(i,e2(t.read(e)))})):this._element.style.setProperty(i,e2(t))}else"tabIndex"===o?(0,N.AT)(a)?this._deriveds.push((0,E.un)(this,e=>{this._element.tabIndex=a.read(e)})):this._element.tabIndex=a:o.startsWith("on")?this._element[o]=a:(0,N.AT)(a)?this._deriveds.push((0,E.C)({owner:this,debugName:()=>`set.${o}`},e=>{e3(this._element,o,a.read(e))})):e3(this._element,o,a);if(o){const e=(0,E.un)(this,e=>{this._element.replaceChildren(...function e(t,i){return(0,N.AT)(i)?e(t,i.read(t)):Array.isArray(i)?i.flatMap(i=>e(t,i)):i instanceof eJ?(t&&i.readEffect(t),[i._element]):i?[i]:[]}(e,o))});this._deriveds.push(e),!function e(t){return!!(0,N.AT)(t)||!!Array.isArray(t)&&t.some(t=>e(t))}(o)&&e.get()}}readEffect(e){for(let t of this._deriveds)t.read(e)}keepUpdated(e){return(0,E.un)(e=>{this.readEffect(e)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){let e=new S.Cm;return this.keepUpdated(e),new e4(this._element,e)}get isHovered(){if(!this._isHovered){let e=(0,I.FY)("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=(0,I.FY)("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",t=>{e=!0}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0)}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}}function e0(e,t){ew(e)?e.setAttribute("class",t):e.className=t}function e1(e,t){let i="";return!function e(t,i,n){if((0,N.AT)(t))return void n(t.read(i));if(Array.isArray(t)){for(let s of t)e(s,i,n);return}n(t)}(e,t,e=>{e&&(0===i.length?i=e:i+=" "+e)}),i}function e2(e){return"number"==typeof e?e+"px":e}class e4{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}}class e5 extends eJ{get element(){return this._element}}function e3(e,t,i){null==i?e.removeAttribute(eq(t)):e.setAttribute(eq(t),String(i))}class e8 extends HTMLElement{disconnectedCallback(){this.onDidDisconnect?.()}connectedCallback(){this.onDidConnect?.()}}customElements.get("connection-observer")||customElements.define("connection-observer",e8)},7693:()=>{},7974:(e,t,i)=>{"use strict";function n(e,t){"number"!=typeof e.vscodeWindowId&&Object.defineProperty(e,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>s,y:()=>n});let s=window},8252:()=>{},8324:(e,t,i)=>{"use strict";i.d(t,{BT:()=>g,WM:()=>a,bX:()=>h,cI:()=>c,gn:()=>d,mh:()=>u,zR:()=>l});var n=i(56558),s=i(18734),r=i(83367),o=i(45837);(0,r.x1)("sash.hoverBorder",o.tA,(0,n.kg)(2062,"Border color of active sashes."));let a=(0,r.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},(0,n.kg)(2063,"Badge background color. Badges are small information labels, e.g. for search results count.")),l=(0,r.x1)("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},(0,n.kg)(2064,"Badge foreground color. Badges are small information labels, e.g. for search results count."));(0,r.x1)("activityWarningBadge.foreground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:s.Q1.white},(0,n.kg)(2065,"Foreground color of the warning activity badge")),(0,r.x1)("activityWarningBadge.background",{dark:"#B27C00",light:"#B27C00",hcDark:null,hcLight:"#B27C00"},(0,n.kg)(2066,"Background color of the warning activity badge")),(0,r.x1)("activityErrorBadge.foreground",{dark:s.Q1.black.lighten(.2),light:s.Q1.white,hcDark:null,hcLight:s.Q1.black.lighten(.2)},(0,n.kg)(2067,"Foreground color of the error activity badge")),(0,r.x1)("activityErrorBadge.background",{dark:"#F14C4C",light:"#E51400",hcDark:null,hcLight:"#F14C4C"},(0,n.kg)(2068,"Background color of the error activity badge"));let h=(0,r.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},(0,n.kg)(2069,"Scrollbar shadow to indicate that the view is scrolled.")),d=(0,r.x1)("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:(0,r.JO)(o.b1,.6),hcLight:(0,r.JO)(o.b1,.4)},(0,n.kg)(2070,"Scrollbar slider background color.")),c=(0,r.x1)("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:(0,r.JO)(o.b1,.8),hcLight:(0,r.JO)(o.b1,.8)},(0,n.kg)(2071,"Scrollbar slider background color when hovering.")),u=(0,r.x1)("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2072,"Scrollbar slider background color when clicked on."));(0,r.x1)("scrollbar.background",null,(0,n.kg)(2073,"Scrollbar track background color."));let g=(0,r.x1)("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2074,"Background color of the progress bar that can show for long running operations."));(0,r.x1)("chart.line",{dark:"#236B8E",light:"#236B8E",hcDark:"#236B8E",hcLight:"#236B8E"},(0,n.kg)(2075,"Line color for the chart.")),(0,r.x1)("chart.axis",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2076,"Axis color for the chart.")),(0,r.x1)("chart.guide",{dark:s.Q1.fromHex("#BFBFBF").transparent(.2),light:s.Q1.fromHex("#000000").transparent(.2),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2077,"Guide line for the chart."))},8461:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var n=i(13091),s=i(54326);function r(e,t,i){let r=(0,n.HG)(e);return -1===r&&(r=e.length),function(e,t,i){let n=0;for(let i=0;i<e.length;i++)" "===e.charAt(i)?n=s.A.nextIndentTabStop(n,t):n++;let r="";if(!i){let e=Math.floor(n/t);n%=t;for(let t=0;t<e;t++)r+=" "}for(let e=0;e<n;e++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},8805:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var n=i(51791);let s=[];function r(e,t,i){t instanceof n.d||(t=new n.d(t,[],!!i)),s.push([e,t])}function o(){return s}},9060:(e,t,i)=>{"use strict";i(90991)},9348:(e,t,i)=>{"use strict";let n,s,r;i.r(t),i.d(t,{CancellationTokenSource:()=>dH,Emitter:()=>dz,KeyCode:()=>dU,KeyMod:()=>d$,MarkerSeverity:()=>dQ,MarkerTag:()=>dY,Position:()=>dK,Range:()=>dG,Selection:()=>dj,SelectionDirection:()=>dq,Token:()=>dX,Uri:()=>dZ,editor:()=>dJ,languages:()=>d0});var o,a,l,h,d,c,u,g,p,f,m,_,v,b,C,w,y,S,x,k,L,D,E,N,I,T,M,R,A,O,P,F,B,W,V,H,z,U,$,K,G,j,q,Q,Y=i(3907),Z=i(60288),X=i(7974),J=i(38661),ee=i(13091),et=i(34247);i(44608);var ei=i(99259),en=i(31601),es=i(49806),er=i(16290);class eo extends er.Z{constructor(e,t,i){super(i.worker,i.keepIdleModels||!1,e,t),this._foreignModuleHost=i.host||null,this._foreignProxy=this._getProxy().then(e=>new Proxy({},{get(t,i,n){if("then"!==i){if("string"!=typeof i)throw Error("Not supported");return(...t)=>e.$fmr(i,t)}}}))}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}getProxy(){return this._foreignProxy}withSyncedResources(e){return this.workerWithSyncedResources(e).then(e=>this.getProxy())}}var ea=i(93488),el=i(34567),eh=i(81403),ed=i(49222),ec=i(60481),eu=i(55034),eg=i(72643),ep=i(62780),ef=i(23121),em=i(60704),e_=i(14050),ev=i(75790),eb=i(58786),eC=i(3815);function ew(e){return"string"==typeof e}function ey(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function eS(e){return e.replace(/[&<>'"_]/g,"-")}function ex(e,t){return Error(`${e.languageId}: ${t}`)}function ek(e,t,i,n,s){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,o,a,l,h,d,c,u,g){return a?"$":l?ey(e,i):h&&h<n.length?ey(e,n[h]):c&&e&&"string"==typeof e[c]?e[c]:(null===r&&(r=s.split(".")).unshift(s),d&&d<r.length)?ey(e,r[d]):""})}function eL(e,t){let i=t;for(;i&&i.length>0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var eD=i(50330);class eE{static{this._INSTANCE=new eE(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new eN(e,t);let i=eN.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new eN(e,t),this._entries[i]=n),n}}class eN{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return eN._equals(this,e)}push(e){return eE.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return eE.create(this.parent,e)}}class eI{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new eI(this.languageId,this.state)}}class eT{static{this._INSTANCE=new eT(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new eM(e,t);let i=eN.getStackElementId(e),n=this._entries[i];return n||(n=new eM(e,null),this._entries[i]=n),n}}class eM{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:eT.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof eM&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class eR{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new ed.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,r=i.state,o=ed.dG.get(s);if(!o)return this.enterLanguage(s),this.emit(n,""),r;let a=o.tokenize(e,t,r);if(0!==n)for(let e of a.tokens)this._tokens.push(new ed.ou(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new ed.$M(this._tokens,e)}}class eA{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,s=t.length,r=null!==i?i.length:0;if(0===n&&0===s&&0===r)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===r)return e;let o=new Uint32Array(n+s+r);null!==e&&o.set(e);for(let e=0;e<s;e++)o[n+e]=t[e];return null!==i&&o.set(i,n+s),o}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,r=i.state,o=ed.dG.get(s);if(!o)return this.enterLanguage(s),this.emit(n,""),r;let a=o.tokenizeEncoded(e,t,r);if(0!==n)for(let e=0,t=a.tokens.length;e<t;e+=2)a.tokens[e]+=n;return this._prependTokens=eA._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new ed.rY(eA._merge(this._prependTokens,this._tokens,null),[],e)}}let eO=L=class extends J.jG{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(ed.dG.onDidChange(e=>{if(r)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){let n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(r=!0,ed.dG.handleChange([this._languageId]),r=!1)})),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let e=[];for(let t in this._embeddedLanguages){let i=ed.dG.get(t);if(i){if(i instanceof L){let t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}continue}ed.dG.isResolved(t)||e.push(ed.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)}}getInitialState(){let e=eE.create(null,this._lexer.start);return eT.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,eg.$H)(this._languageId,i);let n=new eR,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,eg.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new eA(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=eL(this._lexer,t.stack.state)))throw ex(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(let r of i){if(ew(r.action)||!("@pop"===r.action.nextEmbedded||r.action.hasEmbeddedEndInCases))continue;s=!0;let i=r.resolveRegex(t.stack.state),o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}let a=e.search(i);-1!==a&&(0===a||!r.matchOnlyAtLineStart)&&(-1===n||a<n)&&(n=a)}if(!s)throw ex(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,s){let r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){let r=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return eT.create(i.stack,new eI(i.embeddedLanguageData.languageId,r))}let o=e.substring(0,r);o.length>0&&s.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,n);let a=e.substring(r);return this._myTokenize(a,t,i,n+r,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);let r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length,l=i.embeddedLanguageData,h=i.stack,d=0,c=null,u=!0;for(;u||d<a;){let i=d,f=h.depth,m=c?c.groups.length:0,_=h.state,v=null,b=null,C=null,w=null,y=null;if(c){v=c.matches;let e=c.groups.shift();b=e.matched,C=e.action,w=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&d>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&!(e=eL(this._lexer,_)))throw ex(this._lexer,"tokenizer state is not defined: "+_);let t=o.substr(d);for(let i of e)if((0===d||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)))){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(d<a&&(b=(v=[o.charAt(d)])[0]),C=this._lexer.defaultToken),null===b)break;for(d+=b.length;!Array.isArray(C)&&!ew(C)&&C.test;)C=C.test(b,v,_,d===a);let S=null;if("string"==typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){var g,p;if(S=C.tokenSubst?ek(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw ex(this._lexer,"cannot pop embedded language if not inside one");l=null}else if(l)throw ex(this._lexer,"cannot enter embedded language from within an embedded language");else y=ek(this._lexer,C.nextEmbedded,b,v,_);if(C.goBack&&(d=Math.max(0,d-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=ek(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),eL(this._lexer,e))h=h.switchTo(e);else throw ex(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(w))}else if(C.transform&&"function"==typeof C.transform)throw ex(this._lexer,"action.transform not supported");else if(C.next)if("@push"===C.next)if(h.depth>=this._lexer.maxStack)throw ex(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");else h=h.push(_);else if("@pop"===C.next)if(h.depth<=1)throw ex(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));else h=h.pop();else if("@popall"===C.next)h=h.popall();else{let e=ek(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),eL(this._lexer,e))h=h.push(e);else throw ex(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w))}C.log&&"string"==typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+ek(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw ex(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));let x=i=>{let r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(!(d<a))return eT.create(h,o);{let i=e.substr(d);return this._nestedTokenize(i,t,eT.create(h,o),n+d,s)}};if(Array.isArray(S)){if(c&&c.groups.length>0)throw ex(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(v.length!==S.length+1)throw ex(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw ex(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));c={rule:w,matches:v,groups:[]};for(let e=0;e<S.length;e++)c.groups[e]={action:S[e],matched:v[e+1]};d-=b.length;continue}{if("@rematch"===S&&(d-=b.length,b="",v=null,S="",null!==y))return x(y);if(0===b.length)if(0===a||f!==h.depth||_!==h.state||(c?c.groups.length:0)!==m)continue;else throw ex(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w));let e=null;if(ew(S)&&0===S.indexOf("@brackets")){let t=S.substr(9),i=function(e,t){if(!t)return null;for(let i of(t=ey(e,t),e.brackets))if(i.open===t)return{token:i.token,bracketType:1};else if(i.close===t)return{token:i.token,bracketType:-1};return null}(this._lexer,b);if(!i)throw ex(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=eS(i.token+t)}else e=eS(""===S?"":S+this._lexer.tokenPostfix);i<r&&s.emit(i+n,e)}if(null!==y)return x(y)}return eT.create(h,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new eI(e,eg.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),ed.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=ed.dG.get(e);return t?new eI(e,t.getInitialState()):new eI(e,eg.r3)}};eO=L=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(o=eD.pG,function(e,t){o(e,t,4)})],eO);let eP=(0,e_.H)("standaloneColorizer",{createHTML:e=>e});class eF{static colorizeElement(e,t,i,n){let s=(n=n||{}).theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();let o=t.getLanguageIdByMimeType(r)||r;e.setTheme(s);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+s,this.colorize(t,a||"",o,n).then(e=>{i.innerHTML=eP?.createHTML(e)??e},e=>console.error(e))}static async colorize(e,t,i,n){var s,r,o,a;let l=e.languageIdCodec,h=4;n&&"number"==typeof n.tabSize&&(h=n.tabSize),(0,ee.LU)(t)&&(t=t.substr(1));let d=(0,ee.uz)(t);if(!e.isRegisteredLanguageId(i))return eB(d,h,l);let c=await ed.dG.getOrCreate(i);return c?(s=d,r=h,o=c,a=l,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let s=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){let a=e[o],l=i.tokenizeEncoded(a,!0,r);ev.f7.convertToEndOffset(l.tokens,a.length);let h=new ev.f7(l.tokens,a,n),d=eC.qL.isBasicASCII(a,!0),c=eC.qL.containsRTL(a,d,!0),u=(0,eb.Md)(new eb.zL(!1,!0,a,!1,d,c,0,h.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(s=s.concat(u.html)).push("<br/>"),r=l.endState}return s.join("")}(s,r,o,a);if(o instanceof eO){let e=o.getLoadStatus();if(!1===e.loaded)return void e.promise.then(i,t)}e(n)};i()})):eB(d,h,l)}static colorizeLine(e,t,i,n,s=4){let r=eC.qL.isBasicASCII(e,t),o=eC.qL.containsRTL(e,r,i);return(0,eb.Md)(new eb.zL(!1,!0,e,!1,r,o,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null,null,0)).html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function eB(e,t,i){let n=[],s=new Uint32Array(2);s[0]=0,s[1]=0x2008000;for(let r=0,o=e.length;r<o;r++){let o=e[r];s[0]=o.length;let a=new ev.f7(s,o,i),l=eC.qL.isBasicASCII(o,!0),h=eC.qL.containsRTL(o,l,!0),d=(0,eb.Md)(new eb.zL(!1,!0,o,!1,l,h,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(n=n.concat(d.html)).push("<br/>")}return n.join("")}var eW=i(26128),eV=i(82280),eH=i(45540),ez=i(8805),eU=i(63667),e$=i(83367),eK=i(45837);i(96141);var eG=i(4529);i(72880),i(77384),i(25523);var ej=i(3463);i(8324);var eq=i(3330);i(30020);var eQ=i(71491),eY=i(86275),eZ=i(93360);i(21649);var eX=i(84229),eJ=i(7646),e0=i(11928),e1=i(69737),e2=i(88604);i(4448);var e4=i(56558);let e5=eJ.$;class e3 extends J.jG{constructor(e){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.classList.toggle("fade-in",!!e),this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new e2.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class e8 extends J.jG{static render(e,t,i){return new e8(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=(0,eJ.BC)(e,e5("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=(0,eJ.BC)(this.actionContainer,e5("a.action")),this.action.setAttribute("role","button"),t.iconClass&&(0,eJ.BC)(this.action,e5("span.icon")).classList.add(...t.iconClass.split(" ")),this.actionRenderedLabel=i?`${t.label} (${i})`:t.label,(0,eJ.BC)(this.action,e5("span")).textContent=this.actionRenderedLabel,this._store.add(new e9(this.actionContainer,t.run)),this._store.add(new e7(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}class e9 extends J.jG{constructor(e,t){super(),this._register((0,eJ.ko)(e,eJ.Bx.CLICK,i=>{i.stopPropagation(),i.preventDefault(),t(e)}))}}class e7 extends J.jG{constructor(e,t,i){super(),this._register((0,eJ.ko)(e,eJ.Bx.KEY_DOWN,n=>{let s=new e1.Z(n);i.some(e=>s.equals(e))&&(n.stopPropagation(),n.preventDefault(),t(e))}))}}var e6=i(4345),te=i(91422),tt=i(37199),ti=i(81900),tn=i(64006),ts=i(74789),tr=i(27044),to=function(e,t){return function(i,n){t(i,n,e)}};let ta=eJ.$,tl=class extends e6.x{get _targetWindow(){return(0,eJ.zk)(this._target.targetElements[0])}get _targetDocumentElement(){return(0,eJ.zk)(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return+(2!==this._hoverPosition)}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}addMouseTrackingElement(e){return this._lockMouseTracker.addElement(e)}constructor(e,t,i,n,s){let r;if(super(),this._keybindingService=t,this._configurationService=i,this._markdownRenderer=n,this._accessibilityService=s,this._messageListeners=new J.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._maxHeightRatioRelativeToWindow=.5,this._onDispose=this._register(new eX.vl),this._onRequestLayout=this._register(new eX.vl),this._linkHandler=e.linkHandler,this._target="targetElements"in e.target?e.target:new td(e.target),e.style)switch(e.style){case 1:e.appearance??={},e.appearance.compact??=!0,e.appearance.showPointer??=!0;break;case 2:e.appearance??={},e.appearance.compact??=!0}this._hoverPointer=e.appearance?.showPointer?ta("div.workbench-hover-pointer"):void 0,this._hover=this._register(new e3(!e.appearance?.skipFadeInAnimation)),this._hover.containerDomNode.classList.add("workbench-hover"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),this._hoverPointer&&this._hover.containerDomNode.classList.add("with-pointer"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0);const o=e.appearance?.maxHeightRatio;void 0!==o&&o>0&&o<=1&&(this._maxHeightRatioRelativeToWindow=o),this._hoverPosition=e.position?.hoverPosition===void 0?3:(0,tr.Et)(e.position.hoverPosition)?e.position.hoverPosition:2,this.onmousedown(this._hover.containerDomNode,e=>e.stopPropagation()),this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.dispose()}),this._register((0,eJ.ko)(this._targetWindow,"blur",()=>this.dispose()));const a=ta("div.hover-row.markdown-hover"),l=ta("div.hover-contents");if("string"==typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if((0,eJ.sb)(e.content)){l.appendChild(e.content),l.classList.add("html-hover-contents");const t=new ResizeObserver(()=>{this.layout(),this._onRequestLayout.fire()});t.observe(l),this._register((0,J.s)(()=>t.disconnect()))}else{const t=e.content,{element:i}=this._register(this._markdownRenderer.render(t,{actionHandler:this._linkHandler,asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}}));l.appendChild(i)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=ta("div.hover-row.status-bar"),i=ta("div.actions");e.actions.forEach(e=>{let t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;this._register(e8.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n))}),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}if(this._hoverContainer=ta("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),r=(!e.actions||!(e.actions.length>0))&&(e.persistence?.hideOnHover===void 0?"string"==typeof e.content||(0,tt.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=ta("div.hover-row.status-bar"),t=ta("div.info");t.textContent=(0,e4.kg)(1761,"Hold {0} key to mouse over",ti.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const h=[...this._target.targetElements];r||h.push(this._hoverContainer);const d=this._mouseTracker=this._register(new th(h));if(this._register(d.onMouseOut(()=>{this._isLocked||this.dispose()})),r){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new th(e)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=d}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;let e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){let i=(0,eJ.Hs)(this._hoverContainer,ta("div")),n=(0,eJ.BC)(this._hoverContainer,ta("div"));i.tabIndex=0,n.tabIndex=0,this._register((0,eJ.ko)(n,"focus",t=>{e.focus(),t.preventDefault()})),this._register((0,eJ.ko)(i,"focus",e=>{t.focus(),e.preventDefault()}))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){let i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE&&"number"==typeof i.tabIndex&&i.tabIndex>=0)return i;let n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t,i;e.appendChild(this._hoverContainer);let n=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(t=!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel(),t&&i?(0,e4.kg)(7,"Inspect this in the accessible view with {0}.",i):t?(0,e4.kg)(8,"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):"");n&&(0,eW.h5)(n),this.layout(),this.addFocusTrap()}layout(){this._mouseTracker?.suppressPendingMouseOut(),this._lockMouseTracker!==this._mouseTracker&&this._lockMouseTracker?.suppressPendingMouseOut(),this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";let{top:e,right:t,bottom:i,left:n}=this._target.targetElements.map(e=>{let t,i;return t=(0,eJ.mU)(e),{top:(i=e.getBoundingClientRect()).top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})[0],s=t-n,r=i-e,o={top:e,right:t,bottom:i,left:n,width:s,height:r,center:{x:n+s/2,y:e+r/2}};if(this.adjustHorizontalHoverPosition(o),this.adjustVerticalHoverPosition(o),this.adjustHoverMaxHeight(o),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:o.left+=3,o.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:o.left-=3,o.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:o.top+=3,o.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:o.top-=3,o.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}o.center.x=o.left+s/2,o.center.y=o.top+r/2}this.computeXCordinate(o),this.computeYCordinate(o),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(o)),this._hover.onContentsChanged()}computeXCordinate(e){let t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;let t=3*!!this._hoverPointer;if(this._forcePosition){let i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-e.right-i}px`:0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=`${e.left-i}px`);return}1===this._hoverPosition?this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t&&(e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2):0===this._hoverPosition&&(e.left<this._hover.containerDomNode.clientWidth+t&&(this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;let t=3*!!this._hoverPointer;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.offsetHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight*this._maxHeightRatioRelativeToWindow;if(this._forcePosition){let i=3*!!this._hoverPointer+2;3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){let e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");let t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=`${e.center.y-(this._y-t)-3}px`:this._hoverPointer.style.top=`${Math.round(t/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");let t=Math.round(this._hover.containerDomNode.clientWidth/2)-3,i=this._x+t;(i<e.left||i>e.right)&&(t=e.center.x-this._x-3),this._hoverPointer.style.left=`${t}px`}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._target.dispose?.(),this._hoverContainer.remove(),this._messageListeners.dispose(),super.dispose()),this._isDisposed=!0}};tl=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([to(1,e0.b),to(2,eD.pG),to(3,te.TN),to(4,tn.j)],tl);class th extends e6.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e,t=200){for(const i of(super(),this._elements=e,this._eventDebounceDelay=t,this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer=this._register(new J.HE),this._onMouseOut=this._register(new eX.vl),this._elements))this.onmouseover(i,()=>this._onTargetMouseOver()),this.onmouseleave(i,()=>this._onTargetMouseLeave())}_onTargetMouseOver(){this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer.clear()}_onTargetMouseLeave(){this._isMouseIn=!1,this._mouseTimer.value=new ts.pc(()=>this._fireIfMouseOutside(),this._eventDebounceDelay)}_fireIfMouseOutside(){this._isMouseIn||this._suppressNextMouseOut||this._onMouseOut.fire()}suppressPendingMouseOut(){this._isMouseIn||(this._suppressNextMouseOut=!0)}addElement(e){if(this._elements.includes(e))return J.jG.None;this._elements.push(e);let t=new J.Cm;return t.add((0,eJ.ko)(e,eJ.Bx.MOUSE_OVER,()=>this._onTargetMouseOver())),t.add((0,eJ.ko)(e,eJ.Bx.MOUSE_LEAVE,()=>this._onTargetMouseLeave())),t.add((0,J.s)(()=>{let t=this._elements.indexOf(e);t>=0&&this._elements.splice(t,1)})),t}}class td{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var tc=i(93252),tu=i(16454);function tg(e){return"object"==typeof e&&"markdown"in e&&"markdownNotSupportedFallback"in e}var tp=i(87408);class tf{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){let n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){if((0,tr.Kg)(e)||(0,eJ.sb)(e)||void 0===e)n=e;else{let s;this._cancellationTokenSource=new tp.Qi;let r=this._cancellationTokenSource.token;if((s=tg(e)?(0,tr.Tn)(e.markdown)?e.markdown(r).then(t=>t??e.markdownNotSupportedFallback):e.markdown??e.markdownNotSupportedFallback:e.element(r))instanceof Promise?(this._hoverWidget||this.show((0,e4.kg)(1762,"Loading..."),t,i),n=await s):n=s,this.isDisposed||r.isCancellationRequested)return}this.show(n,t,i)}}show(e,t,i){let n=this._hoverWidget;if(this.hasContent(e)){let s={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(s,t)}n?.dispose()}hasContent(e){return!!e&&(!(0,tt.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var tm=i(42512),t_=i(16654),tv=i(82461),tb=function(e,t){return function(i,n){t(i,n,e)}};let tC=class extends J.jG{get _currentHover(){return this._hoverStack.at(-1)?.hover}get _currentHoverOptions(){return this._hoverStack.at(-1)?.options}_getContainingHoverIndex(e){let t=(0,eJ.sb)(e)?[e]:e.targetElements;for(let e=this._hoverStack.length-1;e>=0;e--)for(let i of t)if((0,eJ.QX)(i,this._hoverStack[e].hover.domNode))return e;return -1}constructor(e,t,i,n,s,r){super(),this._instantiationService=e,this._configurationService=t,this._keybindingService=n,this._layoutService=s,this._accessibilityService=r,this._hoverStack=[],this._currentDelayedHoverWasShown=!1,this._delayedHovers=new Map,this._managedHovers=new Map,this._register(i.onDidShowContextMenu(()=>this.hideHover())),this._register(t_.f.registerCommandAndKeybindingRule({id:"workbench.action.showHover",weight:0,primary:(0,tm.m5)(2089,2087),handler:()=>{this._showAndFocusHoverForActiveElement()}}))}showInstantHover(e,t,i,n){let s=this._createHover(e,i);if(s)return this._showHover(s,e,t),s.hover}showDelayedHover(e,t){if(void 0===e.id&&(e.id=ty(e.content)),!this._currentDelayedHover||this._currentDelayedHoverWasShown){if(this._currentHover?.isLocked&&0>this._getContainingHoverIndex(e.target))return;if(tw(this._currentHoverOptions)===tw(e))return this._currentHover;if(this._currentHover&&!this._currentHover.isDisposed&&void 0!==this._currentDelayedHoverGroupId&&this._currentDelayedHoverGroupId===t?.groupId)return this.showInstantHover({...e,appearance:{...e.appearance,skipFadeInAnimation:!0}})}else if(this._currentDelayedHover&&tw(this._currentHoverOptions)===tw(e))return this._currentDelayedHover;let i=this._createHover(e,void 0);if(!i){this._currentDelayedHover=void 0,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=void 0;return}this._currentDelayedHover=i.hover,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=t?.groupId;let n=t?.reducedDelay?this._configurationService.getValue("workbench.hover.reducedDelay"):this._configurationService.getValue("workbench.hover.delay");return(0,ts.wR)(n).then(()=>{i.hover&&!i.hover.isDisposed&&(this._currentDelayedHoverWasShown=!0,this._showHover(i,e))}),i.hover}setupDelayedHover(e,t,i){return this._setupDelayedHover(e,i=>{let n={..."function"==typeof t?t():t,target:e};return 2===n.style&&i&&(n.target=tL(e,i)),n},i)}setupDelayedHoverAtMouse(e,t,i){return this._setupDelayedHover(e,i=>({..."function"==typeof t?t():t,target:i?tL(e,i):e}),i)}_setupDelayedHover(e,t,i){let n=new J.Cm;return n.add((0,eJ.ko)(e,eJ.Bx.MOUSE_OVER,e=>{this.showDelayedHover(t(e),{groupId:i?.groupId,reducedDelay:i?.reducedDelay})})),i?.setupKeyboardEvents&&n.add((0,eJ.ko)(e,eJ.Bx.KEY_DOWN,e=>{let i=new e1.Z(e);(i.equals(10)||i.equals(3))&&this.showInstantHover(t(),!0)})),this._delayedHovers.set(e,{show:e=>{this.showInstantHover(t(),e)}}),n.add((0,J.s)(()=>this._delayedHovers.delete(e))),n}_createHover(e,t){let i;if(this._currentDelayedHover?.dispose(),this._currentDelayedHover=void 0,""===e.content)return;if(void 0===e.id&&(e.id=ty(e.content)),this._getContainingHoverIndex(e.target)>=0){if(this._hoverStack.length>=3)return}else if(this._currentHover?.isLocked||tw(this._currentHoverOptions)===tw(e))return;this._lastHoverOptions=e;let n=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),s=(0,eJ.bq)();!t&&n&&s&&!s.classList.contains("monaco-hover")&&(i=s);let r=new J.Cm,o=this._instantiationService.createInstance(tl,e);if(e.persistence?.sticky&&(o.isLocked=!0),e.position?.hoverPosition&&!(0,tr.Et)(e.position.hoverPosition)&&(e.target={targetElements:(0,eJ.sb)(e.target)?[e.target]:e.target.targetElements,x:e.position.hoverPosition.x+10}),o.onDispose(()=>{let e=this._hoverStack.findIndex(e=>e.hover===o);if(e>=0){let t=this._hoverStack[e];for((0,eJ.nR)(o.domNode)&&t.lastFocusedElementBeforeOpen&&t.lastFocusedElementBeforeOpen.focus();this._hoverStack.length>e+1;){let e=this._hoverStack.pop();e.contextView.dispose(),e.hover.dispose()}this._hoverStack.splice(e,1),t.contextView.dispose()}r.dispose()},void 0,r),!e.container){let t=(0,eJ.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,eJ.zk)(t))}if(r.add((0,eJ.ko)((0,eJ.zk)(e.container).document,eJ.Bx.MOUSE_DOWN,e=>{(0,eJ.QX)(e.target,o.domNode)||this._hideHoverAndDescendants(o)})),!e.persistence?.sticky){if("targetElements"in e.target)for(let t of e.target.targetElements)r.add((0,eJ.ko)(t,eJ.Bx.CLICK,()=>this._hideHoverAndDescendants(o)));else r.add((0,eJ.ko)(e.target,eJ.Bx.CLICK,()=>this._hideHoverAndDescendants(o)));let t=(0,eJ.bq)();if(t){let i=(0,eJ.zk)(t).document;r.add((0,eJ.ko)(t,eJ.Bx.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),r.add((0,eJ.ko)(i,eJ.Bx.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),r.add((0,eJ.ko)(t,eJ.Bx.KEY_UP,e=>this._keyUp(e,o))),r.add((0,eJ.ko)(i,eJ.Bx.KEY_UP,e=>this._keyUp(e,o)))}}if("IntersectionObserver"in X.G){let t=new IntersectionObserver(e=>this._intersectionChange(e,o),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,J.s)(()=>t.disconnect()))}return{hover:o,lastFocusedElementBeforeOpen:i,store:r}}_showHover(e,t,i){let{hover:n,lastFocusedElementBeforeOpen:s,store:r}=e,o=this._getContainingHoverIndex(t.target),a=o>=0;if(a){for(let e=this._hoverStack.length-1;e>o;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=o+1}else this._hideAllHovers();if(a)for(let e=0;e<=o;e++)r.add(this._hoverStack[e].hover.addMouseTrackingElement(n.domNode));let l=t.container??this._layoutService.getContainer((0,eJ.zk)((0,eJ.sb)(t.target)?t.target:t.target.targetElements[0])),h=new tc.vx(l,1);this._hoverStack.push({hover:n,options:t,contextView:h,lastFocusedElementBeforeOpen:s});let d=new tx(n,i,this._hoverStack.length);if(h.show(d),r.add(n.onRequestLayout(()=>h.layout())),i||t.persistence?.sticky){let e=(0,eJ.zk)(l);r.add((0,eJ.ko)(e,eJ.Bx.RESIZE,()=>h.layout()))}if(t.onDidHide){let e=t.onDidHide;r.add((0,J.s)(()=>e()))}t.onDidShow?.()}_hideHoverAndDescendants(e){let t=this._hoverStack.findIndex(t=>t.hover===e);if(!(t<0)){for(let e=this._hoverStack.length-1;e>=t;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=t}}_hideAllHovers(){for(let e=this._hoverStack.length-1;e>=0;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=0}hideHover(e){0===this._hoverStack.length||!e&&this._currentHover?.isLocked||this.doHideHover()}doHideHover(){let e=this._hoverStack.length;this._hoverStack[e-1]?.hover.dispose(),this._hoverStack.length=e-1}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showInstantHover(this._lastHoverOptions,!0,!0)}_showAndFocusHoverForActiveElement(){let e=(0,eJ.bq)();for(;e;){let t=this._delayedHovers.get(e)??this._managedHovers.get(e);if(t)return void t.show(!0);e=e.parentElement}}_keyDown(e,t,i){if("Alt"===e.key){for(let e of this._hoverStack)e.hover.isLocked=!0;return}let n=new e1.Z(e);if(!this._keybindingService.resolveKeyboardEvent(n).getSingleModifierDispatchChords().some(e=>!!e)&&0===this._keybindingService.softDispatch(n,n.target).kind&&i&&(!this._currentHoverOptions?.trapFocus||"Tab"!==e.key)){let e=this._hoverStack.find(e=>e.hover===t);this._hideHoverAndDescendants(t),e?.lastFocusedElementBeforeOpen?.focus()}}_keyUp(e,t){if("Alt"===e.key){for(let e of this._hoverStack)e.options.persistence?.sticky||(e.hover.isLocked=!1);if(!this._hoverStack.some(e=>e.hover.isMouseIn)){let e=this._hoverStack[this._hoverStack.length-1];this._hideAllHovers(),e?.lastFocusedElementBeforeOpen?.focus()}}}setupManagedHover(e,t,i,n){let s,r;if(e.showNativeHover){var o=t,a=i;function l(e){e?o.setAttribute("title",e):o.removeAttribute("title")}return l(tS(a)),{update:e=>l(tS(e)),show:()=>{},hide:()=>{},dispose:()=>l(void 0)}}t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),t.title="");let h=(t,i)=>{let n=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(s?.dispose(),s=void 0),n&&(e.onDidHideHover?.(),r=void 0)},d=(s,o,a,l)=>new ts.pc(async()=>{(!r||r.isDisposed)&&(r=new tf(e,a||t,s>0),await r.update("function"==typeof i?i():i,o,{...n,trapFocus:l}))},s),c=new J.Cm,u=!1;c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_DOWN,()=>{u=!0,h(!0,!0)},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_UP,()=>{u=!1},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_LEAVE,e=>{u=!1,h(!1,e.fromElement===t)},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_OVER,n=>{if(s)return;let r=new J.Cm,o={targetElements:[t],dispose:()=>{}};(void 0===e.placement||"mouse"===e.placement)&&r.add((0,eJ.ko)(t,eJ.Bx.MOUSE_MOVE,e=>{o.x=e.x+10,tk(e,t)||h(!0,!0)},!0)),s=r,tk(n,t)&&r.add(d("function"==typeof e.delay?e.delay(i):e.delay,!1,o))},!0)),(0,eJ.yD)(t)||c.add((0,eJ.ko)(t,eJ.Bx.FOCUS,n=>{if(u||s||(r?.isDisposed&&(r=void 0),(0,eJ.sb)(n.relatedTarget)&&n.relatedTarget.closest(".monaco-hover")||!n.relatedTarget||!tk(n,t)))return;let o=new J.Cm;o.add((0,eJ.ko)(t,eJ.Bx.BLUR,()=>h(!0,!0),!0)),o.add(d("function"==typeof e.delay?e.delay(i):e.delay,!1,{targetElements:[t],dispose:()=>{}})),s=o},!0));let g={show:e=>{h(!1,!0),d(0,e,void 0,e)},hide:()=>{h(!0,!0)},update:async(e,t)=>{i=e,await r?.update(i,void 0,t)},dispose:()=>{this._managedHovers.delete(t),c.dispose(),h(!0,!0)}};return this._managedHovers.set(t,g),g}showManagedHover(e){let t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach(e=>e.dispose()),super.dispose()}};function tw(e){if(void 0!==e)return e?.id??e}function ty(e){if(!(0,eJ.sb)(e))return"string"==typeof e?e.toString():e.value}function tS(e){let t="function"==typeof e?e():e;return(0,tr.Kg)(t)?(0,tv.pS)(t):tg(t)?t.markdownNotSupportedFallback:void 0}tC=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tb(0,eZ._Y),tb(1,eD.pG),tb(2,eY.Z),tb(3,e0.b),tb(4,tu.x),tb(5,tn.j)],tC);class tx{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1,i=1){this._hover=e,this._focus=t,this.layer=i}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function tk(e,t){return(0,eJ.sb)(e.target)&&function(e,t){for(t=t??(0,eJ.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(e.target,t)===t}function tL(e,t){return{targetElements:[e],x:t.x+10}}(0,ez.v)(eQ.TN,tC,1),(0,eU.zy)((e,t)=>{let i=e.getColor(eG.oZ);i&&(t.addRule(`.monaco-hover.workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-hover.workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))});var tD=i(69320),tE=i(7055),tN=i(35004);let tI=(0,eZ.u1)("dialogService");var tT=i(28400),tM=i(40775),tR=function(e,t){return function(i,n){t(i,n,e)}};function tA(e){return e.scheme===tE.ny.file?e.fsPath:e.path}let tO=0;class tP{constructor(e,t,i,n,s,r,o){this.id=++tO,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tF{constructor(e,t){this.resourceLabel=e,this.reason=t}}class tB{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push((0,e4.kg)(2099,"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push((0,e4.kg)(2100,"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class tW{constructor(e,t,i,n,s,r,o){this.id=++tO,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new tB),this.removedResources.has(t)||this.removedResources.set(t,new tF(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new tB),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tF(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tV{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new tM.To(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,n=0,s=-1;for(let r=0,o=this._past.length;r<o;r++,n++){let o=this._past[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=r),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let s=this._future.length-1;s>=0;s--,n++){let o=this._future[s];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,r=s),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}-1!==s&&(this._past=this._past.slice(0,s)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class tH{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let tz=new tV("","");tz.locked=!0;let tU=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=tM.I_.None,i=tM.Ym.None){if(0===e.type){let n=tA(e.resource),s=this.getUriComparisonKey(e.resource);this._pushElement(new tP(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let n=new Set,s=[],r=[];for(let t of e.resources){let e=tA(t),i=this.getUriComparisonKey(t);n.has(i)||(n.add(i),s.push(e),r.push(i))}1===s.length?this._pushElement(new tP(e,s[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new tW(e,s,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i,n=e.resourceLabels[t],s=e.strResources[t];this._editStacks.has(s)?i=this._editStacks.get(s):(i=new tV(n,s),this._editStacks.set(s,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let e of i){let t=tA(e.resource),i=this.getUriComparisonKey(e.resource),s=new tP(e,t,i,0,0,0,0);n.set(s.strResource,s)}for(let i of e.strResources)t&&t.has(i)||this._editStacks.get(i).splitPastWorkspaceElement(e,n)}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let e of i){let t=tA(e.resource),i=this.getUriComparisonKey(e.resource),s=new tP(e,t,i,0,0,0,0);n.set(s.strResource,s)}for(let i of e.strResources)t&&t.has(i)||this._editStacks.get(i).splitFutureWorkspaceElement(e,n)}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let n=this.getUriComparisonKey(e);this._editStacks.has(n)&&this._editStacks.get(n).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new tM.To(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestPastElement();r&&r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,tD.dz)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){let r,o=this._acquireLocks(i);try{r=t()}catch(t){return o(),n.dispose(),this._onError(t,e)}return r?r.then(()=>(o(),n.dispose(),s()),t=>(o(),n.dispose(),this._onError(t,e))):(o(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if(void 0===e.actual.prepareUndoRedo)return J.jG.None;let t=e.actual.prepareUndoRedo();return void 0===t?J.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(J.jG.None);let i=e.actual.prepareUndoRedo();return i?(0,J.Xm)(i)?t(i):i.then(e=>t(e)):t(J.jG.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||tz);return new tH(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new t$(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new t$}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,(0,e4.kg)(2101,"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,(0,e4.kg)(2102,"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let s=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&s.push(e.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2103,"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2104,"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2105,"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){let s;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){var r;let s;(r=s||(s={}))[r.All=0]="All",r[r.This=1]="This",r[r.Cancel=2]="Cancel";let{result:o}=await this._dialogService.prompt({type:tN.A.Info,message:(0,e4.kg)(2106,"Would you like to undo '{0}' across all files?",t.label),buttons:[{label:(0,e4.kg)(2107,"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:(0,e4.kg)(2108,"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(o===s.Cancel)return;if(o===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let a=this._checkWorkspaceUndo(e,t,i,!1);if(a)return a.returnValue;n=!0}try{s=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let o=this._checkWorkspaceUndo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))}_resourceUndo(e,t,i){if(!t.isValid)return void e.flushAllElements();if(e.locked){let e=(0,e4.kg)(2109,"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new tH([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let n=this._editStacks.get(e),s=n.getClosestPastElement();if(s){if(s.groupId){let[e,n]=this._findClosestUndoElementInGroup(s.groupId);if(s!==e&&n)return this._undo(n,t,i)}return(s.sourceId!==t||s.confirmBeforeUndo)&&!i?this._confirmAndContinueUndo(e,t,s):1===s.type?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:(0,e4.kg)(2110,"Would you like to undo '{0}'?",i.label),primaryButton:(0,e4.kg)(2111,"&&Yes"),cancelButton:(0,e4.kg)(2112,"No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=n)}return[t,i]}canRedo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new t$(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new t$}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,(0,e4.kg)(2113,"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,(0,e4.kg)(2114,"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let s=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&s.push(e.resourceLabel);if(s.length>0)return this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2115,"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2116,"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2117,"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}_resourceRedo(e,t){if(!t.isValid)return void e.flushAllElements();if(e.locked){let e=(0,e4.kg)(2118,"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new tH([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}}};tU=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tR(0,tI),tR(1,tT.Ot)],tU);class t${constructor(e){this.returnValue=e}}(0,ez.v)(tM.$D,tU,1);var tK=i(43868),tG=i(20674),tj=i(37084),tq=i(10134),tQ=i(40044),tY=function(e,t){return function(i,n){t(i,n,e)}};let tZ=(0,eZ.u1)("IInlineCompletionsService"),tX=new tG.N1("inlineCompletions.snoozed",!1,(0,e4.kg)(83,"Whether inline completions are currently snoozed")),tJ=class extends J.jG{get snoozeTimeLeft(){return void 0===this._snoozeTimeEnd?0:Math.max(0,this._snoozeTimeEnd-Date.now())}constructor(e,t){super(),this._contextKeyService=e,this._telemetryService=t,this._onDidChangeIsSnoozing=this._register(new eX.vl),this.onDidChangeIsSnoozing=this._onDidChangeIsSnoozing.event,this._snoozeTimeEnd=void 0,this._recentCompletionIds=[],this._timer=this._register(new ts.pc);const i=tX.bindTo(this._contextKeyService);this._register(this.onDidChangeIsSnoozing(()=>i.set(this.isSnoozing())))}setSnoozeDuration(e){if(e<0)throw new tD.D7(`Invalid snooze duration: ${e}. Duration must be non-negative.`);if(0===e)return void this.cancelSnooze();let t=this.isSnoozing(),i=this.snoozeTimeLeft;this._snoozeTimeEnd=Date.now()+e,t||this._onDidChangeIsSnoozing.fire(!0),this._timer.cancelAndSet(()=>{if(this.isSnoozing())throw new tD.D7("Snooze timer did not fire as expected");this._onDidChangeIsSnoozing.fire(!1)},this.snoozeTimeLeft+1),this._reportSnooze(e-i,e)}isSnoozing(){return this.snoozeTimeLeft>0}cancelSnooze(){this.isSnoozing()&&(this._reportSnooze(-this.snoozeTimeLeft,0),this._snoozeTimeEnd=void 0,this._timer.cancel(),this._onDidChangeIsSnoozing.fire(!1))}reportNewCompletion(e){this._lastCompletionId=e,this._recentCompletionIds.unshift(e),this._recentCompletionIds.length>5&&this._recentCompletionIds.pop()}_reportSnooze(e,t){let i=Math.round(e/1e3),n=Math.round(t/1e3);this._telemetryService.publicLog2("inlineCompletions.snooze",{deltaSeconds:i,totalSeconds:n,lastCompletionId:this._lastCompletionId,recentCompletionIds:this._recentCompletionIds})}};tJ=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tY(0,tG.fN),tY(1,tQ.k)],tJ),(0,ez.v)(tZ,tJ,1);let t0="inlineCompletions.lastSnoozeDuration";class t1 extends tK.L{static{this.ID="editor.action.inlineSuggest.snooze"}constructor(){super({id:t1.ID,title:(0,e4.aS)(97,"Snooze Inline Suggestions"),precondition:tG.M$.true(),f1:!0})}async run(e,...t){let i,n=e.get(tj.GK),s=e.get(tZ),r=e.get(tq.CS);t.length>0&&"number"==typeof t[0]&&(i=6e4*t[0]),i||(i=await this.getDurationFromUser(n,r)),i&&s.setSnoozeDuration(i)}async getDurationFromUser(e,t){let i=t.getNumber(t0,0,3e5),n=[{label:(0,e4.kg)(84,"1 minute"),id:"1",value:6e4},{label:(0,e4.kg)(85,"5 minutes"),id:"5",value:3e5},{label:(0,e4.kg)(86,"10 minutes"),id:"10",value:6e5},{label:(0,e4.kg)(87,"15 minutes"),id:"15",value:9e5},{label:(0,e4.kg)(88,"30 minutes"),id:"30",value:18e5},{label:(0,e4.kg)(89,"60 minutes"),id:"60",value:36e5}],s=n;if(i>0&&!n.some(e=>e.value===i)){let e={label:(0,e4.kg)(90,"{0} minutes (Last used)",i/6e4),id:"last-custom",value:i,description:(0,e4.kg)(91,"Last used custom duration")},t=n.findIndex(e=>e.value>i);s=-1===t?[...n,e]:[...n.slice(0,t),e,...n.slice(t)]}s.push({label:(0,e4.kg)(92,"Custom..."),id:"custom",value:-1});let r=await e.pick(s,{placeHolder:(0,e4.kg)(93,"Select snooze duration for Inline Suggestions"),activeItem:s.find(e=>e.value===i)});if(r)return"custom"===r.id?this.getCustomDurationFromUser(e,t):(t.store(t0,r.value,0,0),r.value)}async getCustomDurationFromUser(e,t){let i=await e.input({placeHolder:(0,e4.kg)(94,"Duration in minutes (e.g. 90)"),prompt:(0,e4.kg)(95,"Enter snooze duration in minutes"),validateInput:async e=>{let t=Number(e);if(isNaN(t)||t<=0||!Number.isFinite(t))return(0,e4.kg)(96,"Please enter a positive number")}});if(i){let e=6e4*Number(i);return t.store(t0,e,0,0),e}}}class t2 extends tK.L{static{this.ID="editor.action.inlineSuggest.cancelSnooze"}constructor(){super({id:t2.ID,title:(0,e4.aS)(98,"Cancel Snooze Inline Suggestions"),precondition:tX,f1:!0})}async run(e){e.get(tZ).cancelSnooze()}}i(53556);var t4=i(17873),t5=i(84723),t3=i(15928);let t8="[/\\\\]",t9="[^/\\\\]",t7=/\//g;function t6(e,t){switch(e){case 0:return"";case 1:return`${t9}*?`;default:return`(?:${t8}|${t9}+${t8}${t?`|${t8}${t9}+`:""})*?`}}function ie(e,t){if(!e)return[];let i=[],n=!1,s=!1,r="";for(let o of e){switch(o){case t:if(!n&&!s){i.push(r),r="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}r+=o}return r&&i.push(r),i}let it=/^\*\*\/\*\.[\w\.-]+$/,ii=/^\*\*\/([\w\.-]+)\/?$/,is=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,ir=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,io=/^\*\*((\/[\w\.-]+)+)\/?$/,ia=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,il=new t5.qK(1e4),ih=function(){return!1},id=function(){return null};function ic(e,t){var i,n,s,r,o,a;let l,h,d,c,u,g;if(!e)return id;l=(l="string"!=typeof e?e.pattern:e).trim();let p=t.ignoreCase??!1,f={...t,equals:p?ee.Q_:(e,t)=>e===t,endsWith:p?ee.Dp:(e,t)=>e.endsWith(t),isEqualOrParent:(e,i)=>(0,t4._1)(e,i,t.ignoreCase??!ti.j9)},m=`${p?l.toLowerCase():l}_${!!t.trimForExclusions}_${p}`,_=il.get(m);return _||(_=it.test(l)?(i=l.substring(4),n=l,s=f,function(e,t){return"string"==typeof e&&s.endsWith(e,i)?n:null}):(h=ii.exec(ig(l,f)))?(r=h[1],o=l,a=f,d=`/${r}`,c=`\\${r}`,(u=function(e,t){return"string"!=typeof e?null:t?a.equals(t,r)?o:null:a.equals(e,r)||a.endsWith(e,d)||a.endsWith(e,c)?o:null}).basenames=g=[r],u.patterns=[o],u.allBasenames=g,u):(t.trimForExclusions?ir:is).test(l)?function(e,t){let i=i_(e.slice(1,-1).split(",").map(e=>ic(e,t)).filter(e=>e!==id),e),n=i.length;if(!n)return id;if(1===n)return i[0];let s=function(t,n){for(let s=0,r=i.length;s<r;s++)if(i[s](t,n))return e;return null},r=i.find(e=>!!e.allBasenames);r&&(s.allBasenames=r.allBasenames);let o=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(s.allPaths=o),s}(l,f):(h=io.exec(ig(l,f)))?ip(h[1].substring(1),l,!0,f):(h=ia.exec(ig(l,f)))?ip(h[1],l,!1,f):function(e,t){try{let i=RegExp(`^${function e(t){if(!t)return"";let i="",n=ie(t,"/");if(n.every(e=>"**"===e))i=".*";else{let t=!1;n.forEach((s,r)=>{if("**"===s){if(t)return;i+=t6(2,r===n.length-1)}else{let t=!1,o="",a=!1,l="";for(let n of s){if("}"!==n&&t){o+=n;continue}if(a&&("]"!==n||!l)){let e;e="-"===n?n:"^"!==n&&"!"!==n||l?"/"===n?"":(0,ee.bm)(n):"^",l+=e;continue}switch(n){case"{":t=!0;continue;case"[":a=!0;continue;case"}":{let n=ie(o,","),s=`(?:${n.map(t=>e(t)).join("|")})`;i+=s,t=!1,o="";break}case"]":i+="["+l+"]",a=!1,l="";break;case"?":i+=t9;continue;case"*":i+=t6(1);continue;default:i+=(0,ee.bm)(n)}}r<n.length-1&&("**"!==n[r+1]||r+2<n.length)&&(i+=t8)}t="**"===s})}return i}(e)}$`,t.ignoreCase?"i":void 0);return function(t){return i.lastIndex=0,"string"==typeof t&&i.test(t)?e:null}}catch{return id}}(l,f),il.set(m,_)),iu(_,e,f)}function iu(e,t,i){if("string"==typeof t)return e;let n=function(n,s){return i.isEqualOrParent(n,t.base)?e((0,ee.NB)(n.substring(t.base.length),t3.Vn),s):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function ig(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substring(0,e.length-2):e}function ip(e,t,i,n){let s,r=t3.Vn===t3.SA.sep,o=r?e:e.replace(t7,t3.Vn),a=t3.Vn+o,l=t3.SA.sep+e;return(s=i?function(i,s){return"string"==typeof i&&(n.equals(i,o)||n.endsWith(i,a)||!r&&(n.equals(i,e)||n.endsWith(i,l)))?t:null}:function(i,s){return"string"==typeof i&&(n.equals(i,o)||!r&&n.equals(i,e))?t:null}).allPaths=[(i?"*/":"./")+e],s}function im(e,t={}){var i;if(!e)return ih;if("string"==typeof e||(i=e)&&"string"==typeof i.base&&"string"==typeof i.pattern){let i=ic(e,t);if(i===id)return ih;let n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){let i=i_(Object.getOwnPropertyNames(e).map(i=>(function(e,t,i){if(!1===t)return id;let n=ic(e,i);if(n===id)return id;if("boolean"==typeof t)return n;if(t){let i=t.when;if("string"==typeof i){let t=(t,s,r,o)=>{if(!o||!n(t,s))return null;let a=o(i.replace("$(basename)",()=>r));return(0,ts.Qg)(a)?a.then(t=>t?e:null):a?e:null};return t.requiresSiblings=!0,t}}return n})(i,e[i],t)).filter(e=>e!==id)),n=i.length;if(!n)return id;if(!i.some(e=>!!e.requiresSiblings)){if(1===n)return i[0];let e=function(e,t){let n;for(let s=0,r=i.length;s<r;s++){let r=i[s](e,t);if("string"==typeof r)return r;(0,ts.Qg)(r)&&(n||(n=[]),n.push(r))}return n?(async()=>{for(let e of n){let t=await e;if("string"==typeof t)return t}return null})():null},t=i.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);let s=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}let s=function(e,t,n){let s,r;for(let o=0,a=i.length;o<a;o++){let a=i[o];a.requiresSiblings&&n&&(t||(t=(0,t3.P8)(e)),s||(s=t.substring(0,t.length-(0,t3.LC)(e).length)));let l=a(e,t,s,n);if("string"==typeof l)return l;(0,ts.Qg)(l)&&(r||(r=[]),r.push(l))}return r?(async()=>{for(let e of r){let t=await e;if("string"==typeof t)return t}return null})():null},r=i.find(e=>!!e.allBasenames);r&&(s.allBasenames=r.allBasenames);let o=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(s.allPaths=o),s}(e,t)}function i_(e,t){let i,n=e.filter(e=>!!e.basenames);if(n.length<2)return e;let s=n.reduce((e,t)=>{let i=t.basenames;return i?e.concat(i):e},[]);if(t){i=[];for(let e=0,n=s.length;e<n;e++)i.push(t)}else i=n.reduce((e,t)=>{let i=t.patterns;return i?e.concat(i):e},[]);let r=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){let t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substring(i)}let n=s.indexOf(t);return -1!==n?i[n]:null};r.basenames=s,r.patterns=i,r.allBasenames=s;let o=e.filter(e=>!e.basenames);return o.push(r),o}class iv{constructor(e,t,i,n,s){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=s}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class ib{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new eX.vl}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,J.s)(()=>{if(i){let e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),n=i?new iv(e.uri,e.getLanguageId(),i.uri,i.type,t):new iv(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(n)){for(let i of(this._lastCandidate=n,this._entries))if(i._score=function e(t,i,n,s,r,o){if(Array.isArray(t)){let a=0;for(let l of t){let t=e(l,i,n,s,r,o);if(10===t)return t;t>a&&(a=t)}return a}if("string"==typeof t)return s?"*"===t?5:10*(t===n):0;if(!t)return 0;{let{language:e,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:c}=t;if(!s&&!d)return 0;c&&r&&(i=r);let u=0;if(h)if(h===i.scheme)u=10;else{if("*"!==h)return 0;u=5}if(e)if(e===n)u=10;else{if("*"!==e)return 0;u=Math.max(u,5)}if(c)if(c===o)u=10;else{if("*"!==c||void 0===o)return 0;u=Math.max(u,5)}if(l){var a;let e;if(!((e="string"==typeof l?l:{...l,base:(0,t3.S8)(l.base)})===i.fsPath||(a=i.fsPath,e&&"string"==typeof a&&im(e,void 0)(a))))return 0;u=10}return u}}(i.selector,n.uri,n.languageId,(0,ep.vd)(e),n.notebookUri,n.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(ib._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:iC(e.selector)&&!iC(t.selector)?1:!iC(e.selector)&&iC(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function iC(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(iC):!!e.isBuiltin)}var iw=i(3489);class iy{constructor(){this.referenceProvider=new ib(this._score.bind(this)),this.renameProvider=new ib(this._score.bind(this)),this.newSymbolNamesProvider=new ib(this._score.bind(this)),this.codeActionProvider=new ib(this._score.bind(this)),this.definitionProvider=new ib(this._score.bind(this)),this.typeDefinitionProvider=new ib(this._score.bind(this)),this.declarationProvider=new ib(this._score.bind(this)),this.implementationProvider=new ib(this._score.bind(this)),this.documentSymbolProvider=new ib(this._score.bind(this)),this.inlayHintsProvider=new ib(this._score.bind(this)),this.colorProvider=new ib(this._score.bind(this)),this.codeLensProvider=new ib(this._score.bind(this)),this.documentFormattingEditProvider=new ib(this._score.bind(this)),this.documentRangeFormattingEditProvider=new ib(this._score.bind(this)),this.onTypeFormattingEditProvider=new ib(this._score.bind(this)),this.signatureHelpProvider=new ib(this._score.bind(this)),this.hoverProvider=new ib(this._score.bind(this)),this.documentHighlightProvider=new ib(this._score.bind(this)),this.multiDocumentHighlightProvider=new ib(this._score.bind(this)),this.selectionRangeProvider=new ib(this._score.bind(this)),this.foldingRangeProvider=new ib(this._score.bind(this)),this.linkProvider=new ib(this._score.bind(this)),this.inlineCompletionsProvider=new ib(this._score.bind(this)),this.completionProvider=new ib(this._score.bind(this)),this.linkedEditingRangeProvider=new ib(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new ib(this._score.bind(this)),this.documentSemanticTokensProvider=new ib(this._score.bind(this)),this.documentDropEditProvider=new ib(this._score.bind(this)),this.documentPasteEditProvider=new ib(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,ez.v)(iw.u,iy,1);var iS=i(48514),ix=i(8998);class ik{constructor(e=5){this.timesPerSecond=e,this._lastRun=0,this._minimumTimeBetweenRuns=1e3/e}runIfNotLimited(e){let t=Date.now();t-this._lastRun>=this._minimumTimeBetweenRuns&&(this._lastRun=t,e())}}class iL{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){let e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){let e=this._getTokenCount();if(0===e)return null;let t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new ix.Q(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){let n=t+Math.floor((i-t)/2),s=this._getDeltaLine(n);if(s<e)t=n+1;else if(s>e)i=n-1;else{let s=n;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let r=n;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new iD(this._tokens.subarray(4*s,4*r+4))}}return this._getDeltaLine(t)===e?new iD(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){let s=this._tokens,r=this._tokenCount,o=0,a=!1,l=0;for(let h=0;h<r;h++){let r=4*h,d=s[r],c=s[r+1],u=s[r+2],g=s[r+3];if((d>e||d===e&&u>=t)&&(d<i||d===i&&c<=n))a=!0;else{if(0===o&&(l=d),a){let e=4*o;s[e]=d-l,s[e+1]=c,s[e+2]=u,s[e+3]=g}else 0!==l&&(s[r]=d-l);o++}}return this._tokenCount=o,l}split(e,t,i,n){let s=this._tokens,r=this._tokenCount,o=[],a=[],l=o,h=0,d=0;for(let o=0;o<r;o++){let r=4*o,c=s[r],u=s[r+1],g=s[r+2],p=s[r+3];if(c>e||c===e&&g>=t)if(c<i||c===i&&u<=n)continue;else l!==a&&(l=a,h=0,d=c);l[h++]=c-d,l[h++]=u,l[h++]=g,l[h++]=p}return[new iL(new Uint32Array(o)),new iL(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,n,s){let r=this._tokens,o=this._tokenCount,a=n-t,l=0,h=!1;for(let d=0;d<o;d++){let c=4*d,u=r[c],g=r[c+1],p=r[c+2],f=r[c+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===n&&p>s?p-=s-i:p=i;else if(u===t&&g===i)if(u===n&&p>s)p-=s-i;else{h=!0;continue}else if(u<n||u===n&&g<s)if(u===n&&p>s)u=t,p=(g=i)+(p-s);else{h=!0;continue}else if(u>n){if(0===a&&!h){l=o;break}u-=a}else if(u===n&&g>=s)e&&0===u&&(g+=e,p+=e),u-=a,g-=s-i,p-=s-i;else throw Error("Not possible!");let m=4*l;r[m]=u,r[m+1]=g,r[m+2]=p,r[m+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,s,r){let o=0===i&&1===n&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,l=this._tokenCount;for(let r=0;r<l;r++){let l=4*r,h=a[l],d=a[l+1],c=a[l+2];if(!(h<e)&&(h!==e||!(c<t))){if(h===e&&c===t)if(!o)continue;else c+=1;else if(h===e&&d<t&&t<c)0===i?c+=n:c=t;else{if(h===e&&d===t&&o)continue;if(h===e)if(h+=i,0===i)d+=n,c+=n;else{let e=c-d;c=(d=s+(d-t))+e}else h+=i}a[l]=h,a[l+1]=d,a[l+2]=c}}}static{this._rateLimiter=new ik(10/60)}reportIfInvalid(e,t){for(let i=0;i<this._tokenCount;i++){let n=this._getDeltaLine(i)+t;n<1?iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber < 1")}):n>e.getLineCount()?iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber > model.getLineCount()")}):this._getEndCharacter(i)>e.getLineLength(n)&&iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: end character > model.getLineLength(lineNumber)")})}}}class iD{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var iE=function(e,t){return function(i,n){t(i,n,e)}};let iN=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new iT}getMetadata(e,t,i){let n,s=this._languageService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,s);if(r)n=r.metadata;else{let r=this._legend.tokenTypes[e],o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;let s=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,i);void 0===s?n=0x7fffffff:(n=0,void 0!==s.italic&&(n|=1|!!s.italic<<11),void 0!==s.bold&&(n|=2|2*!!s.bold<<11),void 0!==s.underline&&(n|=4|4*!!s.underline<<11),void 0!==s.strikethrough&&(n|=8|8*!!s.strikethrough<<11),s.foreground&&(n|=16|s.foreground<<15),0===n&&(n=0x7fffffff))}else n=0x7fffffff,r="not-in-legend";this._hashTable.add(e,t,s,n)}return n}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};iN=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iE(1,eU.Gy),iE(2,ec.L),iE(3,iS.rr)],iN);class iI{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class iT{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=iT._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<iT._SIZES.length?2/3*this._currentLength:0),this._elements=[],iT._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){let n=this._hashFunc(e,t,i),s=this._elements[n];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===i)return s;s=s.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){let e=this._elements;for(let t of(this._currentLengthIndex++,this._currentLength=iT._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<iT._SIZES.length?2/3*this._currentLength:0),this._elements=[],iT._nullOutEntries(this._elements,this._currentLength),e)){let e=t;for(;e;){let t=e.next;e.next=null,this._add(e),e=t}}}this._add(new iI(e,t,i,n))}_add(e){let t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}let iM=(0,eZ.u1)("semanticTokensStylingService");var iR=function(e,t){return function(i,n){t(i,n,e)}};let iA=class extends J.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new iN(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};iA=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iR(0,eU.Gy),iR(1,iS.rr),iR(2,ec.L)],iA),(0,ez.v)(iM,iA,1);var iO=i(4990);let iP=class extends J.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new eX.vl),this._onCodeEditorAdd=this._register(new eX.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new eX.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new eX.vl),this._onDiffEditorAdd=this._register(new eX.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new eX.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new iO.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){(delete this._codeEditors[e.getId()])&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){(delete this._diffEditors[e.getId()])&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;for(let t of this.listCodeEditors()){if(t.hasTextFocus())return t;t.hasWidgetFocus()&&(e=t)}return e}removeDecorationType(e){let t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorationsByType(e))))}setModelProperty(e,t,i){let n,s=e.toString();this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){let i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(let n of this._codeEditorOpenHandlers){let s=await n(e,t,i);if(null!==s)return s}return null}registerCodeEditorOpenHandler(e){let t=this._codeEditorOpenHandlers.unshift(e);return(0,J.s)(t)}};iP=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(a=eU.Gy,function(e,t){a(e,t,0)})],iP);var iF=function(e,t){return function(i,n){t(i,n,e)}};let iB=class extends iP{constructor(e,t){super(t),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(e,t,i)=>t?this.doOpenEditor(t,e):null))}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let i=t.resource.scheme;if(i===tE.ny.http||i===tE.ny.https)return(0,eJ.jh)(t.resource.toString()),e}return null}let i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{let t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};iB=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iF(0,tG.fN),iF(1,eU.Gy)],iB),(0,ez.v)(es.T,iB,0);var iW=i(12549),iV=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},iH=function(e,t){return function(i,n){t(i,n,e)}};let iz=class{get mainContainer(){return this._codeEditorService.listCodeEditors().at(0)?.getContainerDomNode()??X.G.document.body}get activeContainer(){let e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return(0,eJ.tG)(this.mainContainer)}get activeContainerDimension(){return(0,eJ.tG)(this.activeContainer)}get containers(){return(0,iW.Yc)(this._codeEditorService.listCodeEditors().map(e=>e.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=eX.Jh.None,this.onDidLayoutActiveContainer=eX.Jh.None,this.onDidLayoutContainer=eX.Jh.None,this.onDidChangeActiveContainer=eX.Jh.None,this.onDidAddContainer=eX.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};iz=iV([iH(0,es.T)],iz);let iU=class extends iz{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};iU=iV([iH(1,es.T)],iU),(0,ez.v)(tu.x,iz,1);var i$=i(70476),iK=i(11196),iG=function(e,t){return function(i,n){t(i,n,e)}};let ij=class extends J.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=this._register(new eX.vl),this._onDidChangeReducedMotion=this._register(new eX.vl),this._onDidChangeReducedTransparency=this._register(new eX.vl),this._onDidChangeLinkUnderline=this._register(new eX.vl),this._accessibilityModeEnabledContext=tn.f.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire()),e.affectsConfiguration("workbench.reduceTransparency")&&(this._configTransparencyReduced=this._configurationService.getValue("workbench.reduceTransparency"),this._onDidChangeReducedTransparency.fire())})),n(),this._register(this.onDidChangeScreenReaderOptimized(()=>n()));const s=X.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion");const r=X.G.matchMedia("(prefers-reduced-transparency: reduce)");this._systemTransparencyReduced=r.matches,this._configTransparencyReduced=this._configurationService.getValue("workbench.reduceTransparency"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(s),this.initReducedTransparencyListeners(r),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,eJ.ko)(e,"change",()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()}));let t=()=>{let e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("monaco-reduce-motion",e),this._layoutService.mainContainer.classList.toggle("monaco-enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initReducedTransparencyListeners(e){this._register((0,eJ.ko)(e,"change",()=>{this._systemTransparencyReduced=e.matches,"auto"===this._configTransparencyReduced&&this._onDidChangeReducedTransparency.fire()}));let t=()=>{let e=this.isTransparencyReduced();this._layoutService.mainContainer.classList.toggle("monaco-reduce-transparency",e)};t(),this._register(this.onDidChangeReducedTransparency(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){let e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}}));let e=()=>{let e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines(()=>e()))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let e=this.getAccessibilitySupportConfigurationValue();return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupportConfigurationValue(){let e=this._configurationService.inspect("editor.accessibilitySupport");return e.policyValue??e.memoryValue??e.workspaceFolderValue??e.workspaceValue??e.userValue??e.applicationValue??e.defaultValue??"auto"}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){let e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}get onDidChangeReducedTransparency(){return this._onDidChangeReducedTransparency.event}isTransparencyReduced(){let e=this._configTransparencyReduced;return"on"===e||"auto"===e&&this._systemTransparencyReduced}getAccessibilitySupport(){return this._accessibilitySupport}};ij=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iG(0,tG.fN),iG(1,tu.x),iG(2,eD.pG)],ij);var iq=i(40518),iQ=i(54481),iY=i(44578),iZ=i(68435),iX=function(e,t){return function(i,n){t(i,n,e)}};let iJ="application/vnd.code.resources",i0=class extends J.jG{static{D=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(iY.nr||iY.c8)&&this.installWebKitWriteTextWorkaround(),this._register(eX.Jh.runAndSubscribe(eJ.Iv,({window:e,disposables:t})=>{t.add((0,eJ.ko)(e.document,"copy",()=>this.clearResourcesState()))},{window:X.G,disposables:this._store}))}triggerPaste(){this.logService.trace("BrowserClipboardService#triggerPaste")}installWebKitWriteTextWorkaround(){let e=()=>{let e=new ts.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,eJ.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch(async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)})};this._register(eX.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,({container:t,disposables:i})=>{i.add((0,eJ.ko)(t,"click",e)),i.add((0,eJ.ko)(t,"keydown",e))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.logService.trace("BrowserClipboardService#writeText called with type:",t," text.length:",e.length),this.clearResourcesState(),t){this.mapTextToType.set(t,e),this.logService.trace("BrowserClipboardService#writeText");return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return this.logService.trace("before navigator.clipboard.writeText"),await (0,eJ.fz)().navigator.clipboard.writeText(e)}catch(e){console.error(e)}this.fallbackWriteText(e)}fallbackWriteText(e){this.logService.trace("BrowserClipboardService#fallbackWriteText");let t=(0,eJ.a)(),i=t.activeElement,n=t.body.appendChild((0,eJ.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),(0,eJ.sb)(i)&&i.focus(),n.remove()}async readText(e){if(this.logService.trace("BrowserClipboardService#readText called with type:",e),e){let t=this.mapTextToType.get(e)||"";return this.logService.trace("BrowserClipboardService#readText text.length:",t.length),t}try{let e=await (0,eJ.fz)().navigator.clipboard.readText();return this.logService.trace("BrowserClipboardService#readText text.length:",e.length),e}catch(e){console.error(e)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{for(let e of(await (0,eJ.fz)().navigator.clipboard.read()))if(e.types.includes(`web ${iJ}`)){let t=await e.getType(`web ${iJ}`);return JSON.parse(await t.text()).map(e=>et.r.from(e))}}catch(e){}let e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;let e=await this.readText();return(0,iZ.tW)(e.substring(0,D.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};i0=D=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iX(0,tu.x),iX(1,iS.rr)],i0);var i1=i(81537),i2=i(29980),i4=i(48633),i5=i(78857),i3=i(88492);function i8(e){return Object.isFrozen(e)?e:(0,i4.ol)(e)}class i9{static createEmptyModel(e){return new i9({},[],[],void 0,e)}constructor(e,t,i,n,s){this._contents=e,this._keys=t,this._overrides=i,this._raw=n,this.logService=s,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this._raw){let e=(Array.isArray(this._raw)?this._raw:[this._raw]).map(e=>{if(e instanceof i9)return e;let t=new i7("",this.logService);return t.parseRaw(e),t.configurationModel});this._rawConfiguration=e.reduce((e,t)=>t===e?t:e.merge(t),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}get raw(){if(this._raw&&!(Array.isArray(this._raw)&&this._raw.every(e=>e instanceof i9)))return this._raw}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,eD.gD)(this.contents,e):this.contents}inspect(e,t){let i=this;return{get value(){return i8(i.rawConfiguration.getValue(e))},get override(){return t?i8(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return i8(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){let t=[];for(let{contents:n,identifiers:s,keys:r}of i.rawConfiguration.overrides){let o=new i9(n,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:s,value:o})}return t.length?i8(t):void 0}}}getOverrideValue(e,t){let i=this.getContentsForOverrideIdentifer(t);return i?e?(0,eD.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){let t=(0,i4.Go)(this.contents),i=(0,i4.Go)(this.overrides),n=[...this.keys],s=this._raw?Array.isArray(this._raw)?[...this._raw]:[this._raw]:[this];for(let r of e)if(s.push(...r._raw?Array.isArray(r._raw)?r._raw:[r._raw]:[r]),!r.isEmpty()){for(let e of(this.mergeContents(t,r.contents),r.overrides)){let[t]=i.filter(t=>(0,iW.aI)(t.identifiers,e.identifiers));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=(0,iW.dM)(t.keys)):i.push((0,i4.Go)(e))}for(let e of r.keys)-1===n.indexOf(e)&&n.push(e)}return new i9(t,n,i,!s.length||s.every(e=>e instanceof i9)?void 0:s,this.logService)}createOverrideConfigurationModel(e){let t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;let i={};for(let e of(0,iW.dM)([...Object.keys(this.contents),...Object.keys(t)])){let n=this.contents[e],s=t[e];s&&("object"==typeof n&&"object"==typeof s?(n=(0,i4.Go)(n),this.mergeContents(n,s)):n=s),i[e]=n}return new i9(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&(0,tr.Gv)(e[i])&&(0,tr.Gv)(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=(0,i4.Go)(t[i])}}getContentsForOverrideIdentifer(e){let t=null,i=null,n=e=>{e&&(i?this.mergeContents(i,e):i=(0,i4.Go)(e))};for(let i of this.overrides)1===i.identifiers.length&&i.identifiers[0]===e?t=i.contents:i.identifiers.includes(e)&&n(i.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){let t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,eD.iB)(this.contents,e),i5.rC.test(e)&&this.overrides.splice(this.overrides.findIndex(t=>(0,iW.aI)(t.identifiers,(0,i5.Gv)(e))),1))}updateValue(e,t,i){if((0,eD.kW)(this.contents,e,t,e=>this.logService.error(e)),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),i5.rC.test(e)){let t=this.contents[e],i=(0,i5.Gv)(e),n={identifiers:i,keys:Object.keys(t),contents:(0,eD.ad)(t,e=>this.logService.error(e))},s=this.overrides.findIndex(e=>(0,iW.aI)(e.identifiers,i));-1!==s?this.overrides[s]=n:this.overrides.push(n)}}}class i7{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||i9.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;let{contents:i,keys:n,overrides:s,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new i9(i,n,s,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){let i=i3.O.as(i5.Fd.Configuration),n=i.getConfigurationProperties(),s=i.getExcludedConfigurationProperties(),r=this.filter(e,n,s,!0,t);e=r.raw;let o=(0,eD.ad)(e,e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`));return{contents:o,keys:Object.keys(e),overrides:this.toOverrides(e,e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`)),restricted:r.restricted,hasExcludedProperties:r.hasExcludedProperties}}filter(e,t,i,n,s){let r=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.skipUnregistered&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:r};let o={},a=[];for(let l in e)if(i5.rC.test(l)&&n){let n=this.filter(e[l],t,i,!1,s);o[l]=n.raw,r=r||n.hasExcludedProperties,a.push(...n.restricted)}else{let n=t[l];n?.restricted&&a.push(l),this.shouldInclude(l,n,i,s)?o[l]=e[l]:r=!0}return{raw:o,restricted:a,hasExcludedProperties:r}}shouldInclude(e,t,i,n){if(n.exclude?.includes(e))return!1;if(n.include?.includes(e))return!0;if(n.skipRestricted&&t?.restricted||n.skipUnregistered&&!t)return!1;let s=t??i[e],r=s?void 0!==s.scope?s.scope:4:void 0;return void 0===r||void 0===n.scopes||n.scopes.includes(r)}toOverrides(e,t){let i=[];for(let n of Object.keys(e))if(i5.rC.test(n)){let s={},r=e[n];for(let e in r)s[e]=r[e];i.push({identifiers:(0,i5.Gv)(n),keys:Object.keys(s),contents:(0,eD.ad)(s,t)})}return i}}class i6{constructor(e,t,i,n,s,r,o,a,l,h,d,c,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=h,this.workspaceConfiguration=d,this.folderConfigurationModel=c,this.memoryConfigurationModel=u}toInspectValue(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get defaultInspectValue(){return this._defaultInspectValue||(this._defaultInspectValue=this.defaultConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._defaultInspectValue}get defaultValue(){return this.defaultInspectValue.merged}get policyInspectValue(){return void 0===this._policyInspectValue&&(this._policyInspectValue=this.policyConfiguration?this.policyConfiguration.inspect(this.key):null),this._policyInspectValue}get policyValue(){return this.policyInspectValue?.merged}get applicationInspectValue(){return void 0===this._applicationInspectValue&&(this._applicationInspectValue=this.applicationConfiguration?this.applicationConfiguration.inspect(this.key):null),this._applicationInspectValue}get applicationValue(){return this.applicationInspectValue?.merged}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get userValue(){return this.userInspectValue.merged}get user(){return this.toInspectValue(this.userInspectValue)}get workspaceInspectValue(){return void 0===this._workspaceInspectValue&&(this._workspaceInspectValue=this.workspaceConfiguration?this.workspaceConfiguration.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceInspectValue}get workspaceValue(){return this.workspaceInspectValue?.merged}get workspaceFolderInspectValue(){return void 0===this._workspaceFolderInspectValue&&(this._workspaceFolderInspectValue=this.folderConfigurationModel?this.folderConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceFolderInspectValue}get workspaceFolderValue(){return this.workspaceFolderInspectValue?.merged}get memoryInspectValue(){return void 0===this._memoryInspectValue&&(this._memoryInspectValue=this.memoryConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier)),this._memoryInspectValue}get memoryValue(){return this.memoryInspectValue.merged}}class ne{constructor(e,t,i,n,s,r,o,a,l,h){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this.logService=h,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new t5.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource))||(n=i9.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,n)):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){let n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(let t of n.overrides)for(let i of t.identifiers)void 0!==n.getOverrideValue(e,i)&&o.add(i);return new i6(e,t,n.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){if(!this._userConfiguration)if(this._remoteUserConfiguration.isEmpty())this._userConfiguration=this._localUserConfiguration;else{let e=this._localUserConfiguration.merge(this._remoteUserConfiguration);this._userConfiguration=new i9(e.contents,e.keys,e.overrides,void 0,this.logService)}return this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);if(t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&void 0!==this._policyConfiguration.getValue(e))for(let e of(n=n.merge(),this._policyConfiguration.keys))n.setValue(e,this._policyConfiguration.getValue(e));return n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){let n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);let s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){let i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){let i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys,raw:Array.isArray(this.applicationConfiguration.raw)?void 0:this.applicationConfiguration.raw},userLocal:{contents:this.localUserConfiguration.contents,overrides:this.localUserConfiguration.overrides,keys:this.localUserConfiguration.keys,raw:Array.isArray(this.localUserConfiguration.raw)?void 0:this.localUserConfiguration.raw},userRemote:{contents:this.remoteUserConfiguration.contents,overrides:this.remoteUserConfiguration.overrides,keys:this.remoteUserConfiguration.keys,raw:Array.isArray(this.remoteUserConfiguration.raw)?void 0:this.remoteUserConfiguration.raw},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{let{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e,t){return new ne(this.parseConfigurationModel(e.defaults,t),this.parseConfigurationModel(e.policy,t),this.parseConfigurationModel(e.application,t),this.parseConfigurationModel(e.userLocal,t),this.parseConfigurationModel(e.userRemote,t),this.parseConfigurationModel(e.workspace,t),e.folders.reduce((e,i)=>(e.set(et.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e),new t5.fT),i9.createEmptyModel(t),new t5.fT,t)}static parseConfigurationModel(e,t){return new i9(e.contents,e.keys,e.overrides,e.raw,t)}}class nt{constructor(e,t,i,n,s){for(const r of(this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this.logService=s,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0,e.keys))this.affectedKeys.add(r);for(const[,t]of e.overrides)for(const e of t)this.affectedKeys.add(e);for(const e of(this._affectsConfigStr=this._marker,this.affectedKeys))this._affectsConfigStr+=e+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ne.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){let i=this._marker+e,n=this._affectsConfigStr.indexOf(i);if(n<0)return!1;let s=n+i.length;if(s>=this._affectsConfigStr.length)return!1;let r=this._affectsConfigStr.charCodeAt(s);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){let i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,n=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!(0,i4.aI)(i,n)}return!0}}class ni extends J.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=i9.createEmptyModel(e)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=i9.createEmptyModel(this.logService);let e=i3.O.as(i5.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){let i=this.getConfigurationDefaultOverrides();for(let n of e){let e=i[n],s=t[n];void 0!==e?this._configurationModel.setValue(n,e):s?this._configurationModel.setValue(n,this.getDefaultValue(n,s)):this._configurationModel.removeValue(n)}}getDefaultValue(e,t){return(0,i4.Go)(t.default)}}var nn=i(4917),ns=i(89290),nr=i(47997);let no="data-keybinding-context";class na{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return!(0,i4.aI)(this._value[e],t)&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){let t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class nl extends na{static{this.INSTANCE=new nl}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class nh extends na{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=ns.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(7===e.source){let e=Array.from(this._values,([e])=>e);this._values.clear(),i.fire(new nu(e))}else{let t=[];for(let i of e.affectedKeys){let e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...nn.f.map(n,([e])=>e)),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new nu(t))}})}dispose(){this._listener.dispose()}getValue(e){let t;if(0!==e.indexOf(nh._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);let i=e.substr(nh._keyPrefix.length),n=this._configurationService.getValue(i);switch(typeof n){case"number":case"boolean":case"string":t=n;break;default:t=Array.isArray(n)?JSON.stringify(n):n}return this._values.set(e,t),t}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class nd{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class nc{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class nu{constructor(e){this.keys=e}affectsSome(e){for(let t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}}class ng{constructor(e){this.events=e}affectsSome(e){for(let t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}}class np extends J.jG{get onDidChangeContext(){return this._onDidChangeContext.event}constructor(e){super(),this._onDidChangeContext=this._register(new eX.fV({merge:e=>new ng(e)})),this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");return new nd(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");return new nm(this,e)}contextMatchesRules(e){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");let t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;let i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new nc(e))}removeContext(e){!this._isDisposed&&this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new nc(e))}getContext(e){return this._isDisposed?nl.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(no)){let t=e.getAttribute(no);if(t)return parseInt(t,10);return NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let nf=class extends np{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0,this.inputFocusedContext=nr.J7.bindTo(this);const t=this._register(new nh(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t),this._register(eX.Jh.runAndSubscribe(eJ.Iv,({window:e,disposables:t})=>{let i=t.add(new J.HE);t.add((0,eJ.ko)(e,eJ.Bx.FOCUS_IN,()=>{i.value=new J.Cm,this.updateInputContextKeys(e.document,i.value)},!0))},{window:X.G,disposables:this._store}))}updateInputContextKeys(e,t){function i(){return!!e.activeElement&&(0,eJ.yD)(e.activeElement)}let n=i();if(this.inputFocusedContext.set(n),n){let n=t.add((0,eJ.w5)(e.activeElement));eX.Jh.once(n.onDidBlur)(()=>{(0,eJ.fz)().document===e&&this.inputFocusedContext.set(i()),n.dispose()},void 0,t)}}getContextValuesContainer(e){return this._isDisposed?nl.INSTANCE:this._contexts.get(e)||nl.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new na(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};nf=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(l=eD.pG,function(e,t){l(e,t,0)})],nf);class nm extends np{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new J.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(no)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${e?": "+e:""}`)}this._domNode.setAttribute(no,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let t=this._parent.getContextValuesContainer(this._myContextId).value;e.allKeysContainedIn(new Set(Object.keys(t)))||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._parentChangeListener.clear(),this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(no),super.dispose())}getContextValuesContainer(e){return this._isDisposed?nl.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._parent.disposeContext(e)}}i2.w.registerCommand("_setContext",function(e,t,i){var n;e.get(tG.fN).createKey(String(t),(n=i,(0,i4.PI)(n,e=>"object"==typeof e&&1===e.$mid?et.r.revive(e).toString():e instanceof et.r?e.toString():void 0)))}),i2.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...tG.N1.all()].sort((e,t)=>e.key.localeCompare(t.key)),metadata:{description:(0,e4.kg)(1736,"A command that returns information about context keys"),args:[]}}),i2.w.registerCommand("_generateContextKeyInfo",function(){let e=[],t=new Set;for(let i of tG.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))});var n_=i(20322),nv=i(99791),nb=i(87540),nC=i(80849),nw=i(97419),ny=i(22088),nS=i(57278),nx=i(3809),nk=i(16363),nL=i(35362),nD=i(54293);let nE=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,nN=/(&)?(&)([^\s&])/g;(h=E||(E={}))[h.Right=0]="Right",h[h.Left=1]="Left",(d=N||(N={}))[d.Above=0]="Above",d[d.Below=1]="Below";class nI extends ny.E{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ti.zx||ti.j9?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(nC.q.addTarget(s)),this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{new e1.Z(e).equals(2)&&e.preventDefault()})),i.enableMnemonics&&this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{let t=e.key.toLocaleLowerCase(),i=this.mnemonics.get(t);if(void 0!==i&&(eJ.fs.stop(e,!0),1===i.length&&(i[0]instanceof nM&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1)){let e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}})),ti.j9&&this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{let t=new e1.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),eJ.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),eJ.fs.stop(e,!0))})),this._register((0,eJ.ko)(this.domNode,eJ.Bx.MOUSE_OUT,e=>{let t=e.relatedTarget;(0,eJ.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register((0,eJ.ko)(this.actionsList,eJ.Bx.MOUSE_OVER,e=>{let t=e.target;if(t&&(0,eJ.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})),this._register(nC.q.addTarget(this.actionsList)),this._register((0,eJ.ko)(this.actionsList,nC.B.Tap,e=>{let t=e.initialTarget;if(t&&(0,eJ.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new e2.MU(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,n),this._register((0,eJ.ko)(s,nC.B.Change,e=>{eJ.fs.stop(e,!0);let t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register((0,eJ.ko)(o,eJ.Bx.MOUSE_UP,e=>{e.preventDefault()}));const a=(0,eJ.zk)(e);s.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((e,n)=>i.submenuIds?.has(e.id)?(console.warn(`Found submenu cycle: ${e.id}`),!1):(!(e instanceof n_.wv)||n!==t.length-1&&0!==n&&!(t[n-1]instanceof n_.wv))&&!0),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof nR)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,eJ.Cl)(e)?this.styleSheet=(0,nw.li)(e):(nI.globalStyleSheet||(nI.globalStyleSheet=(0,nw.li)()),this.styleSheet=nI.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=e.borderColor??"var(--vscode-menu-border)",n=`
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28739,54206],{833:()=>{},1080:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>b,Kl:()=>c,Ob:()=>u,Ou:()=>m,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>f,dv:()=>d,wp:()=>C});var n=i(3809),s=i(35362),r=i(91016),o=i(56558),a=i(83367);i(45837),i(96141),i(4529),i(72880),i(77384),i(25523),i(3463),i(8324),i(3330),i(30020);var l=i(19829);(0,a.x1)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)(153,"The border color for text that got moved in the diff editor.")),(0,a.x1)("diffEditor.moveActive.border","#FFA500",(0,o.kg)(154,"The active border color for text that got moved in the diff editor.")),(0,a.x1)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)(155,"The color of the shadow around unchanged region widgets."));let h=(0,l.pU)("diff-insert",n.W.add,(0,o.kg)(156,"Line decoration for inserts in the diff editor.")),d=(0,l.pU)("diff-remove",n.W.remove,(0,o.kg)(157,"Line decoration for removals in the diff editor.")),c=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+s.L.asClassName(h),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+s.L.asClassName(d),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),f=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),m=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),C=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},1105:(e,t,i)=>{"use strict";i.d(t,{G:()=>m,r:()=>w});var n=i(44578),s=i(95628),r=i(81900),o=i(6819);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,s){let r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,n),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,s)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);let t=[],i=0,n=e[0];for(let s=1,r=e.length;s<r;s++){let r=e[s];n.left+n.width+.9>=r.left?n.width=Math.max(n.width,r.left+r.width-n.left):(t[i++]=n,n=r)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;let n=[];for(let s=0,r=e.length;s<r;s++){let r=e[s];n[s]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,n,s,r){let o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(n=Math.min(o,Math.max(0,n)))&&i===s&&0===i&&!e.children[t].firstChild){let i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==n&&n>0&&0===s&&(n--,s=0x40000000);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=0x40000000),!l&&0===s&&n>0&&(l=e.children[n-1].firstChild,s=0x40000000)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),s=Math.min(l.textContent.length,Math.max(0,s));let h=this._readClientRects(a,i,l,s,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,r.clientRectDeltaLeft,r.clientRectScale)}}var l=i(62946),h=i(58786),d=i(71284),c=i(3907),u=i(66684),g=i(62780);let p=!!r.ib||!r.j9&&!n.gm&&!n.nr,f=!0;class m{static{this.CLASS_NAME="view-line"}constructor(e,t){this._viewGpuContext=e,this._options=t,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,s.Z)(e);else throw Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(!!(0,d.Bb)(this._options.themeType)||this._renderedViewLine?.input.renderWhitespace===2)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(this._options.useGpu&&this._viewGpuContext?.canRender(this._options,n,e))return this._renderedViewLine?.domNode?.domNode.remove(),this._renderedViewLine=null,!1;if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;let r=n.getViewLineRenderingData(e),o=this._options,a=l.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn),v="off"===o.experimentalWhitespaceRendering?o.renderWhitespace:"none",b=!r.hasVariableFonts,w=null;if((0,d.Bb)(o.themeType)||"selection"===v)for(let t of n.selections){if(t.endLineNumber<e||t.startLineNumber>e)continue;let i=t.startLineNumber===e?t.startColumn:r.minColumn,n=t.endLineNumber===e?t.endColumn:r.maxColumn;i<n&&((0,d.Bb)(o.themeType)&&a.push(new l.d(i,n,"inline-selected-text",0)),"selection"===v&&(w||(w=[]),w.push(new u.L(i-1,n-1))))}let y=new h.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,v,o.renderControlCharacters,o.fontLigatures!==c.Bc.OFF,w,r.textDirection,o.verticalScrollbarSize);if(this._renderedViewLine&&this._renderedViewLine.input.equals(y))return!1;s.appendString("<div "),r.textDirection===g.z4.RTL?s.appendString('dir="rtl" '):r.containsRTL&&s.appendString('dir="ltr" '),s.appendString('style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString("px;line-height:"),s.appendString(String(i)),r.textDirection===g.z4.RTL&&(s.appendString("px;padding-right:"),s.appendString(String(o.verticalScrollbarSize))),s.appendString('px;" class="'),s.appendString(m.CLASS_NAME),s.appendString('">');let S=(0,h.UW)(y,s);s.appendString("</div>");let x=null;return b&&f&&p&&r.isBasicASCII&&y.isLTR&&o.useMonospaceOptimizations&&0===S.containsForeignElements&&(x=new _(this._renderedViewLine?this._renderedViewLine.domNode:null,y,S.characterMapping)),x||(x=C(this._renderedViewLine?this._renderedViewLine.domNode:null,y,S.characterMapping,S.containsForeignElements)),this._renderedViewLine=x,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i),this._renderedViewLine.domNode.setLineHeight(i))}isRenderedRTL(){return!!this._renderedViewLine&&this._renderedViewLine.input.textDirection===g.z4.RTL}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof _}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof _?this._renderedViewLine.monospaceAssumptionsAreValid():f}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof _&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));let s=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==s&&t>s+1&&i>s+1)return new o.pj(!0,[new o.IO(this.getWidth(n),0)]);-1!==s&&t>s+1&&(t=s+1),-1!==s&&i>s+1&&(i=s+1);let r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}resetCachedWidth(){this._renderedViewLine?.resetCachedWidth()}}class _{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e<n;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){let e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return -1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}resetCachedWidth(){this._cachedWidth=-1}monospaceAssumptionsAreValid(){return this.domNode?(this.input.lineContent.length<300&&Math.abs(this.getWidth(null)-this.domNode.domNode.firstChild.offsetWidth)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),f=!1),f):f}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,0)}getVisibleRangesForRange(e,t,i,n){let s=this._getColumnPixelOffset(e,t,n),r=this._getColumnPixelOffset(e,i,n);return[new o.IO(s,r-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){let e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}let n=Math.floor((t-1)/300)-1,s=(n+1)*300+1,r=-1;if(this._keyColumnPixelOffsetCache&&-1===(r=this._keyColumnPixelOffsetCache[n])&&(r=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=r),-1===r){let e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}let o=this._characterMapping.getHorizontalOffset(s),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return -1;let n=this._characterMapping.getDomPosition(t),s=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return s&&0!==s.length?s[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v{constructor(e,t,i,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,t.isLTR){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return -1!==this._cachedWidth}resetCachedWidth(){if(this._cachedWidth=-1,null!==this._pixelOffsetCache)for(let e=0,t=this._pixelOffsetCache.length;e<t;e++)this._pixelOffsetCache[e]=-1}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){let s=this._readPixelOffset(this.domNode,e,t,n);if(-1===s)return null;let r=this._readPixelOffset(this.domNode,e,i,n);return -1===r?null:[new o.IO(s,r-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i!==n)return this._readRawVisibleRangesForRange(e,i,n,s);{let n=this._readPixelOffset(e,t,i,s);return -1===n?null:[new o.IO(n,0)]}}_readPixelOffset(e,t,i,n){if(this.input.isLTR&&0===this._characterMapping.length){if(0===this._containsForeignElements||2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);let t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){let s=this._pixelOffsetCache[i];if(-1!==s)return s;let r=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){let t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(this.input.isLTR&&i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);let s=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!r||0===r.length)return -1;let o=r[0].left;if(this.input.isBasicASCII){let e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(1>=Math.abs(t-o))return t}return o}_readRawVisibleRangesForRange(e,t,i,n){if(this.input.isLTR&&1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(n))];let s=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,r.partIndex,r.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class b extends v{_readVisibleRangesForRange(e,t,i,n,s){let r=super._readVisibleRangesForRange(e,t,i,n,s);if(!r||0===r.length||i===n||1===i&&n===this._characterMapping.length)return r;if(this.input.isLTR){let i=this._readPixelOffset(e,t,n,s);if(-1!==i){let e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}let C=n.Tc?function(e,t,i,n){return new b(e,t,i,n)}:function(e,t,i,n){return new v(e,t,i,n)};function w(e,t,i){let n=t.textContent.length,s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new h.wZ(s,i),n)}},1174:(e,t,i)=>{"use strict";i.d(t,{IR:()=>d,KW:()=>_});var n=i(69320),s=i(84229),r=i(38661),o=i(81900),a=i(13091);let l="default",h=!1;function d(e){o.HZ&&(h||(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class c{constructor(e,t,i,n,s){this.vsWorker=e,this.req=t,this.channel=i,this.method=n,this.args=s,this.type=0}}class u{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class g{constructor(e,t,i,n,s){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=n,this.arg=s,this.type=2}}class p{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class f{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class m{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,i){let n=String(++this._lastSentReq);return new Promise((s,r)=>{this._pendingReplies[n]={resolve:s,reject:r},this._send(new c(this._workerId,n,e,t,i))})}listen(e,t,i){let n=null,r=new s.vl({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new g(this._workerId,n,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new f(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId)&&this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(i,n)=>("string"!=typeof n||i[n]||(b(n)?i[n]=t=>this.listen(e,n,t):v(n)?i[n]=this.listen(e,n,void 0):36===n.charCodeAt(0)&&(i[n]=async(...i)=>(await t?.(),this.sendMessage(e,n,i)))),i[n])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){let t=Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,i=t}t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new u(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=(0,n.cU)(e.detail)),this._send(new u(this._workerId,t,void 0,(0,n.cU)(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new p(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){let t=this._pendingEmitters.get(e.req);void 0===t?console.warn("Got event for unknown req"):t.fire(e.event)}_handleUnsubscribeEventMessage(e){let t=this._pendingEvents.get(e.req);void 0===t?console.warn("Got unsubscribe for unknown req"):(t.dispose(),this._pendingEvents.delete(e.req))}_send(e){let t=[];if(0===e.type)for(let i=0;i<e.args.length;i++){let n=e.args[i];n instanceof ArrayBuffer&&t.push(n)}else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class _ extends r.jG{constructor(e){super(),this._localChannels=new Map,this._worker=this._register(e),this._register(this._worker.onMessage(e=>{this._protocol.handleMessage(e)})),this._register(this._worker.onError(e=>{d(e),(0,n.dz)(e)})),this._protocol=new m({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId()),this._onModuleLoaded=this._protocol.sendMessage(l,"$initialize",[this._worker.getId()]).then(()=>{}),this.proxy=this._protocol.createProxyToRemoteChannel(l,async()=>{await this._onModuleLoaded}),this._onModuleLoaded.catch(e=>{this._onError("Worker failed to load ",e)})}_handleMessage(e,t,i){let n=this._localChannels.get(e);if(!n)return Promise.reject(Error(`Missing channel ${e} on main thread`));let s=n[t];if("function"!=typeof s)return Promise.reject(Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s.apply(n,i))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,i){let n=this._localChannels.get(e);if(!n)throw Error(`Missing channel ${e} on main thread`);if(b(t)){let s=n[t];if("function"!=typeof s)throw Error(`Missing dynamic event ${t} on main thread channel ${e}.`);let r=s.call(n,i);if("function"!=typeof r)throw Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(v(t)){let i=n[t];if("function"!=typeof i)throw Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&(0,a.Wv)(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&(0,a.Wv)(e.charCodeAt(9))}},1365:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(49903).then(i.bind(i,49903))})},1542:()=>{},1928:(e,t,i)=>{"use strict";i.d(t,{i:()=>p,s:()=>f});var n=i(7646),s=i(22088),r=i(37267),o=i(20322),a=i(3809),l=i(35362),h=i(84229),d=i(38661);i(25948);var c=i(56558),u=i(80451);let g="--vscode-toolbar-action-min-width";class p extends d.jG{get onDidChangeDropdownVisibility(){return this._onDidChangeDropdownVisibility.event}constructor(e,t,i={orientation:0}){if(super(),this.container=e,this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.originalPrimaryActions=[],this.originalSecondaryActions=[],this.hiddenActions=[],this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,u.bW)()),this.options=i,this.toggleMenuAction=this._register(new f(()=>this.toggleMenuActionViewItem?.show(),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new s.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{if(e.id===f.ID)return this.toggleMenuActionViewItem=new r.d(e,{getActions:()=>this.toggleMenuAction.menuActions},t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??a.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){let t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof o.YH){let i=new r.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}})),this.options.responsiveBehavior?.enabled){this.element.classList.toggle("responsive",!0),this.element.classList.toggle("responsive-all","all"===this.options.responsiveBehavior.kind),this.element.classList.toggle("responsive-last","last"===this.options.responsiveBehavior.kind),this.element.style.setProperty(g,`${this.getConfiguredActionMinWidth()}px`);const e=new ResizeObserver(()=>{this.updateActions(this.getAvailableWidth())});e.observe(this.options.responsiveBehavior?.observedElement??this.element),this._store.add((0,d.s)(()=>e.disconnect()))}}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}set context(e){for(let t of(this.actionBar.context=e,this.toggleMenuActionViewItem?.setActionContext(e),this.submenuActionViewItems))t.setActionContext(e)}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}getItemWidth(e){return this.actionBar.getWidth(e)}getItemsLength(){return this.actionBar.length()}setActions(e,t){this.clear(),this.originalPrimaryActions=e?e.slice(0):[],this.originalSecondaryActions=t?t.slice(0):[];let i=e?e.slice(0):[];if(this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.length>0&&this.options.trailingSeparator&&i.push(new o.wv),i.forEach(e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}),this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),this.options.responsiveBehavior?.enabled){if(this.hiddenActions.length=0,this.options.responsiveBehavior?.minItems!==void 0){let e=this.options.responsiveBehavior.minItems,t=this.originalPrimaryActions.slice(0,e).reduce((e,t)=>e+this.getActionMinWidth(t),0),i=0;(this.originalSecondaryActions.length>0||e<this.originalPrimaryActions.length)&&(i=24),this.container.style.minWidth=`${t+i}px`,this.element.style.minWidth=`${t+i}px`}else{let e=this.originalPrimaryActions.length>0?this.getActionMinWidth(this.originalPrimaryActions[0]):24;this.container.style.minWidth=`${e}px`,this.element.style.minWidth=`${e}px`}this.updateActions(this.getAvailableWidth())}}getKeybindingLabel(e){let t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}getConfiguredActionMinWidth(e){return e?.id===f.ID?20:this.options.responsiveBehavior?.getActionMinWidth?.(e??this.toggleMenuAction)??this.options.responsiveBehavior?.actionMinWidth??20}getActionMinWidth(e){return this.getConfiguredActionMinWidth(e)+4}getAvailableWidth(){return this.options.responsiveBehavior?.getAvailableWidth?this.options.responsiveBehavior.getAvailableWidth():this.element.getBoundingClientRect().width}applyResponsiveActionMinWidths(){if(!this.options.responsiveBehavior?.enabled)return;if("last"===this.options.responsiveBehavior.kind){let e=this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-2:this.actionBar.length()-1,t=e>=0?this.actionBar.getAction(e):void 0,i=`${this.getConfiguredActionMinWidth(t)}px`;this.element.style.getPropertyValue(g)!==i&&this.element.style.setProperty(g,i);return}let e=this.actionBar.getContainer().firstElementChild;if((0,n.sb)(e))for(let t=0;t<e.children.length;t++){let i=e.children.item(t);if(!(0,n.sb)(i))continue;let s=this.actionBar.getAction(t),r=`${this.getConfiguredActionMinWidth(s)}px`;i.style.minWidth!==r&&(i.style.minWidth=r)}}updateActions(e){if(this.actionBar.isEmpty())return;this.applyResponsiveActionMinWidths();let t=parseInt(this.element.style.minWidth);e=Math.max(e,Number.isNaN(t)?0:t);let i=e=>{if(this.options.responsiveBehavior?.kind==="last"){let t=this.actionBar.hasAction(this.toggleMenuAction),i=t?this.actionBar.length()-1:this.actionBar.length();if(0===i)return 24*!!t;let n=0;for(let e=0;e<i-1;e++)n+=this.actionBar.getWidth(e)+4;let s=this.actionBar.getAction(i-1);return n+=e?this.actionBar.getWidth(i-1):this.getActionMinWidth(s),n+=24*!!t}{let t=0;for(let i=0;i<this.actionBar.length();i++)t+=e?this.actionBar.getWidth(i):this.getActionMinWidth(this.actionBar.getAction(i));return t}},n=i(!1);if(n<=e&&0===this.hiddenActions.length)return;if(n>e){if(this.options.responsiveBehavior?.minItems!==void 0&&(this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-1:this.actionBar.length())<=this.options.responsiveBehavior.minItems)return;for(;i(!1)>e&&this.actionBar.length()>0;){let e=this.originalPrimaryActions.length-this.hiddenActions.length-1;if(e<0)break;let t=this.originalPrimaryActions[e],i=Math.min(this.getActionMinWidth(t),this.getItemWidth(e));this.hiddenActions.unshift({action:t,size:i}),this.actionBar.pull(e),0===this.originalSecondaryActions.length&&1===this.hiddenActions.length&&(this.actionBar.push(this.toggleMenuAction,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(this.toggleMenuAction)}),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths()}}else for(;this.hiddenActions.length>0;){let t=this.hiddenActions.shift();if(i(!0)+t.size>e){this.hiddenActions.unshift(t);break}this.actionBar.push(t.action,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(t.action),index:this.originalPrimaryActions.length-this.hiddenActions.length-1}),0===this.originalSecondaryActions.length&&0===this.hiddenActions.length&&(this.toggleMenuAction.menuActions=[],this.actionBar.pull(this.actionBar.length()-1),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths()}let s=this.hiddenActions.map(e=>e.action);if(this.originalSecondaryActions.length>0||s.length>0){let e=this.originalSecondaryActions.slice(0);this.toggleMenuAction.menuActions=o.wv.join(s,e)}this.updateOverflowClassName(),this.applyResponsiveActionMinWidths()}updateOverflowClassName(){this.actionBar.domNode.classList.toggle("has-overflow",this.actionBar.hasAction(this.toggleMenuAction))}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),this.element.remove(),super.dispose()}}class f extends o.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||(0,c.kg)(19,"More Actions..."),super(f.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}},2253:()=>{},2276:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});let n={enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}},2371:(e,t,i)=>{"use strict";let n,s,r;i.d(t,{Su:()=>c,b7:()=>d,fe:()=>u});var o=i(13091),a=i(81900),l=i(88537);function h(){return n||(n=new TextDecoder("UTF-16LE")),n}function d(){return r||(r=(0,a.cm)()?h():(s||(s=new TextDecoder("UTF-16BE")),s)),r}function c(e,t,i){let n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){let n=[],s=0;for(let r=0;r<i;r++){let i=(0,l.$l)(e,t);t+=2,n[s++]=String.fromCharCode(i)}return n.join("")}(e,t,i):h().decode(n)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return d().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||(0,o.pc)(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},2474:(e,t,i)=>{"use strict";i.d(t,{Y:()=>a});var n=i(26961),s=i(38168),r=i(23435),o=i(85704);function a(e,t=o.j.ofCaller()){return"string"==typeof e?new l(e,void 0,t):new l(void 0,e,t)}class l extends r.ZK{get debugName(){return new s.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t,i){super(i),this._debugName=e,this._owner=t}trigger(e,t){if(!e)return void(0,n.Rn)(e=>{this.trigger(e,t)},()=>`Trigger signal ${this.debugName}`);for(let i of this._observers)e.updateObserver(i,this),i.handleChange(this,t)}get(){}}},2507:()=>{},3330:(e,t,i)=>{"use strict";i.d(t,{Al:()=>m,EL:()=>l,HJ:()=>h,NB:()=>c,c7:()=>f,er:()=>d,iw:()=>u,nH:()=>p});var n=i(56558),s=i(18734),r=i(83367),o=i(4529),a=i(77384);let l=(0,r.x1)("quickInput.background",o.Cg,(0,n.kg)(2078,"Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),h=(0,r.x1)("quickInput.foreground",o.Fi,(0,n.kg)(2079,"Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d=(0,r.x1)("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},(0,n.kg)(2080,"Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),c=(0,r.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(2081,"Quick picker color for grouping labels.")),u=(0,r.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(2082,"Quick picker color for grouping borders.")),g=(0,r.x1)("quickInput.list.focusBackground",null,"",void 0,(0,n.kg)(2083,"Please use quickInputList.focusBackground instead")),p=(0,r.x1)("quickInputList.focusForeground",a.GV,(0,n.kg)(2084,"Quick picker foreground color for the focused item.")),f=(0,r.x1)("quickInputList.focusIconForeground",a.fE,(0,n.kg)(2085,"Quick picker icon foreground color for the focused item.")),m=(0,r.x1)("quickInputList.focusBackground",{dark:(0,r.yL)(g,a.Rj),light:(0,r.yL)(g,a.Rj),hcDark:null,hcLight:null},(0,n.kg)(2086,"Quick picker background color for the focused item."));(0,r.x1)("quickInputList.focusHighlightForeground",a.eM,(0,n.kg)(2087,"Quick picker foreground color of the match highlights on the focused item."))},3463:(e,t,i)=>{"use strict";i.d(t,{Aj:()=>l,IL:()=>p,K1:()=>f,Ko:()=>c,Xp:()=>h,uM:()=>u,yL:()=>g,yr:()=>d});var n=i(56558),s=i(18734),r=i(83367),o=i(4529),a=i(8324);let l=(0,r.x1)("minimap.findMatchHighlight",o.Ub,(0,n.kg)(2051,"Minimap marker color for find matches."),!0),h=(0,r.x1)("minimap.selectionOccurrenceHighlight",o.Qw,(0,n.kg)(2052,"Minimap marker color for repeating editor selections."),!0),d=(0,r.x1)("minimap.selectionHighlight",o.se,(0,n.kg)(2053,"Minimap marker color for the editor selection."),!0),c=(0,r.x1)("minimap.infoHighlight",{dark:o.pO,light:o.pO,hcDark:o.II,hcLight:o.II},(0,n.kg)(2054,"Minimap marker color for infos.")),u=(0,r.x1)("minimap.warningHighlight",{dark:o.Hn,light:o.Hn,hcDark:o.St,hcLight:o.St},(0,n.kg)(2055,"Minimap marker color for warnings.")),g=(0,r.x1)("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(2056,"Minimap marker color for errors.")),p=(0,r.x1)("minimap.background",null,(0,n.kg)(2057,"Minimap background color.")),f=(0,r.x1)("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),(0,n.kg)(2058,'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));(0,r.x1)("minimapSlider.background",(0,r.JO)(a.gn,.5),(0,n.kg)(2059,"Minimap slider background color.")),(0,r.x1)("minimapSlider.hoverBackground",(0,r.JO)(a.cI,.5),(0,n.kg)(2060,"Minimap slider background color when hovering.")),(0,r.x1)("minimapSlider.activeBackground",(0,r.JO)(a.mh,.5),(0,n.kg)(2061,"Minimap slider background color when clicked on."))},3489:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});let n=(0,i(93360).u1)("ILanguageFeaturesService")},3644:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var n=i(38661),s=i(84229),r=i(7646);class o extends n.jG{constructor(e,t){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null,t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()},i=!1,n=!1,s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),()=>{n=!1,s()})}};this._resizeObserver=new ResizeObserver(t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},3815:(e,t,i)=>{"use strict";i.d(t,{GP:()=>a,LM:()=>r,Uv:()=>h,nt:()=>o,qL:()=>l});var n=i(12549),s=i(13091);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class o{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,i,n,s,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,n,s,r,o,a,h,d,c,u){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,s),this.tokens=o,this.inlineDecorations=a,this.tabSize=h,this.startVisibleColumn=d,this.textDirection=c,this.hasVariableFonts=u}static isBasicASCII(e,t){return!t||(0,s.aC)(e)}static containsRTL(e,t,i){return!t&&!!i&&(0,s.E_)(e)}}class h{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:+(e.color>t.color):e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&(0,n.aI)(e.data,t.data)}static equalsArr(e,t){return(0,n.aI)(e,t,h.equals)}}},4345:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var n=i(7646),s=i(69737),r=i(87540),o=i(80849),a=i(38661);class l extends a.jG{onclick(e,t){this._register((0,n.ko)(e,n.Bx.CLICK,i=>t(new r.P((0,n.zk)(e),i))))}onmousedown(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_DOWN,i=>t(new r.P((0,n.zk)(e),i))))}onmouseover(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_OVER,i=>t(new r.P((0,n.zk)(e),i))))}onmouseleave(e,t){this._register((0,n.ko)(e,n.Bx.MOUSE_LEAVE,i=>t(new r.P((0,n.zk)(e),i))))}onkeydown(e,t){this._register((0,n.ko)(e,n.Bx.KEY_DOWN,e=>t(new s.Z(e))))}onkeyup(e,t){this._register((0,n.ko)(e,n.Bx.KEY_UP,e=>t(new s.Z(e))))}oninput(e,t){this._register((0,n.ko)(e,n.Bx.INPUT,t))}onblur(e,t){this._register((0,n.ko)(e,n.Bx.BLUR,t))}onfocus(e,t){this._register((0,n.ko)(e,n.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},4448:()=>{},4473:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=(0,i(93360).u1)("markerDecorationsService")},4529:(e,t,i)=>{"use strict";i.d(t,{$B:()=>W,By:()=>h,Cg:()=>d,DS:()=>H,EC:()=>D,EY:()=>A,Fi:()=>c,GN:()=>F,Gj:()=>P,Hn:()=>f,II:()=>v,JP:()=>en,Qw:()=>S,Rb:()=>g,S5:()=>E,St:()=>m,Ub:()=>k,Yt:()=>l,ZE:()=>O,bN:()=>es,et:()=>K,f3:()=>x,f9:()=>V,fA:()=>ee,i6:()=>b,ld:()=>B,mc:()=>U,oZ:()=>I,p8:()=>L,pO:()=>_,rm:()=>w,sA:()=>G,sI:()=>u,se:()=>C,t:()=>y,tY:()=>ei,vV:()=>$,wh:()=>p,z5:()=>et});var n=i(56558),s=i(18734),r=i(83367),o=i(45837),a=i(8324);let l=(0,r.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},(0,n.kg)(1865,"Editor background color.")),h=(0,r.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:o.CU},(0,n.kg)(1866,"Editor default foreground color."));(0,r.x1)("editorStickyScroll.background",l,(0,n.kg)(1867,"Background color of sticky scroll in the editor")),(0,r.x1)("editorStickyScrollGutter.background",l,(0,n.kg)(1868,"Background color of the gutter part of sticky scroll in the editor")),(0,r.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},(0,n.kg)(1869,"Background color of sticky scroll on hover in the editor")),(0,r.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1870,"Border color of sticky scroll in the editor")),(0,r.x1)("editorStickyScroll.shadow",a.bX,(0,n.kg)(1871," Shadow color of sticky scroll in the editor"));let d=(0,r.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},(0,n.kg)(1872,"Background color of editor widgets, such as find/replace.")),c=(0,r.x1)("editorWidget.foreground",o.CU,(0,n.kg)(1873,"Foreground color of editor widgets, such as find/replace.")),u=(0,r.x1)("editorWidget.border",{dark:(0,r.JO)(c,.2),light:(0,r.JO)(c,.2),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1874,"Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));(0,r.x1)("editorWidget.resizeBorder",null,(0,n.kg)(1875,"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,r.x1)("editorError.background",null,(0,n.kg)(1876,"Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let g=(0,r.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},(0,n.kg)(1877,"Foreground color of error squigglies in the editor."));(0,r.x1)("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},(0,n.kg)(1878,"If set, color of double underlines for errors in the editor."));let p=(0,r.x1)("editorWarning.background",null,(0,n.kg)(1879,"Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),f=(0,r.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},(0,n.kg)(1880,"Foreground color of warning squigglies in the editor.")),m=(0,r.x1)("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},(0,n.kg)(1881,"If set, color of double underlines for warnings in the editor."));(0,r.x1)("editorInfo.background",null,(0,n.kg)(1882,"Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let _=(0,r.x1)("editorInfo.foreground",{dark:"#59a4f9",light:"#0063d3",hcDark:"#59a4f9",hcLight:"#0063d3"},(0,n.kg)(1883,"Foreground color of info squigglies in the editor.")),v=(0,r.x1)("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#59a4f9").transparent(.8),hcLight:"#292929"},(0,n.kg)(1884,"If set, color of double underlines for infos in the editor.")),b=(0,r.x1)("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},(0,n.kg)(1885,"Foreground color of hint squigglies in the editor."));(0,r.x1)("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},(0,n.kg)(1886,"If set, color of double underlines for hints in the editor.")),(0,r.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},(0,n.kg)(1887,"Color of active links."));let C=(0,r.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},(0,n.kg)(1888,"Color of the editor selection.")),w=(0,r.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},(0,n.kg)(1889,"Color of the selected text for high contrast.")),y=(0,r.x1)("editor.inactiveSelectionBackground",{light:(0,r.JO)(C,.5),dark:(0,r.JO)(C,.5),hcDark:(0,r.JO)(C,.7),hcLight:(0,r.JO)(C,.5)},(0,n.kg)(1890,"Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),S=(0,r.x1)("editor.selectionHighlightBackground",{light:(0,r.oG)(C,l,.3,.6),dark:(0,r.oG)(C,l,.3,.6),hcDark:null,hcLight:null},(0,n.kg)(1891,"Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1892,"Border color for regions with the same content as the selection.")),(0,r.x1)("editor.compositionBorder",{light:"#000000",dark:"#ffffff",hcLight:"#000000",hcDark:"#ffffff"},(0,n.kg)(1893,"The border color for an IME composition.")),(0,r.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},(0,n.kg)(1894,"Color of the current search match."));let x=(0,r.x1)("editor.findMatchForeground",null,(0,n.kg)(1895,"Text color of the current search match.")),k=(0,r.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},(0,n.kg)(1896,"Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,r.x1)("editor.findMatchHighlightForeground",null,(0,n.kg)(1897,"Foreground color of the other search matches."),!0);(0,r.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},(0,n.kg)(1898,"Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1899,"Border color of the current search match."));let D=(0,r.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1900,"Border color of the other search matches.")),E=(0,r.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,r.JO)(o.bu,.4),hcLight:(0,r.JO)(o.bu,.4)},(0,n.kg)(1901,"Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},(0,n.kg)(1902,"Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);let N=(0,r.x1)("editorHoverWidget.background",d,(0,n.kg)(1903,"Background color of the editor hover."));(0,r.x1)("editorHoverWidget.foreground",c,(0,n.kg)(1904,"Foreground color of the editor hover."));let I=(0,r.x1)("editorHoverWidget.border",u,(0,n.kg)(1905,"Border color of the editor hover."));(0,r.x1)("editorHoverWidget.statusBarBackground",{dark:(0,r.a)(N,.2),light:(0,r.e$)(N,.05),hcDark:d,hcLight:d},(0,n.kg)(1906,"Background color of the editor hover status bar."));let T=(0,r.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},(0,n.kg)(1907,"Foreground color of inline hints")),M=(0,r.x1)("editorInlayHint.background",{dark:(0,r.JO)(a.WM,.1),light:(0,r.JO)(a.WM,.1),hcDark:(0,r.JO)(s.Q1.white,.1),hcLight:(0,r.JO)(a.WM,.1)},(0,n.kg)(1908,"Background color of inline hints"));(0,r.x1)("editorInlayHint.typeForeground",T,(0,n.kg)(1909,"Foreground color of inline hints for types")),(0,r.x1)("editorInlayHint.typeBackground",M,(0,n.kg)(1910,"Background color of inline hints for types")),(0,r.x1)("editorInlayHint.parameterForeground",T,(0,n.kg)(1911,"Foreground color of inline hints for parameters")),(0,r.x1)("editorInlayHint.parameterBackground",M,(0,n.kg)(1912,"Background color of inline hints for parameters"));let R=(0,r.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},(0,n.kg)(1913,"The color used for the lightbulb actions icon."));(0,r.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)(1914,"The color used for the lightbulb auto fix actions icon.")),(0,r.x1)("editorLightBulbAi.foreground",R,(0,n.kg)(1915,"The color used for the lightbulb AI icon.")),(0,r.x1)("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},(0,n.kg)(1916,"Highlight background color of a snippet tabstop.")),(0,r.x1)("editor.snippetTabstopHighlightBorder",null,(0,n.kg)(1917,"Highlight border color of a snippet tabstop.")),(0,r.x1)("editor.snippetFinalTabstopHighlightBackground",null,(0,n.kg)(1918,"Highlight background color of the final tabstop of a snippet.")),(0,r.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},(0,n.kg)(1919,"Highlight border color of the final tabstop of a snippet."));let A=new s.Q1(new s.bU(155,185,85,.2)),O=new s.Q1(new s.bU(255,0,0,.2)),P=(0,r.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},(0,n.kg)(1920,"Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),F=(0,r.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},(0,n.kg)(1921,"Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("diffEditor.insertedLineBackground",{dark:A,light:A,hcDark:null,hcLight:null},(0,n.kg)(1922,"Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("diffEditor.removedLineBackground",{dark:O,light:O,hcDark:null,hcLight:null},(0,n.kg)(1923,"Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("diffEditorGutter.insertedLineBackground",null,(0,n.kg)(1924,"Background color for the margin where lines got inserted.")),(0,r.x1)("diffEditorGutter.removedLineBackground",null,(0,n.kg)(1925,"Background color for the margin where lines got removed."));let B=(0,r.x1)("diffEditorOverview.insertedForeground",null,(0,n.kg)(1926,"Diff overview ruler foreground for inserted content.")),W=(0,r.x1)("diffEditorOverview.removedForeground",null,(0,n.kg)(1927,"Diff overview ruler foreground for removed content."));(0,r.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},(0,n.kg)(1928,"Outline color for the text that got inserted.")),(0,r.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},(0,n.kg)(1929,"Outline color for text that got removed.")),(0,r.x1)("diffEditor.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1930,"Border color between the two text editors.")),(0,r.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},(0,n.kg)(1931,"Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,r.x1)("diffEditor.unchangedRegionBackground","sideBar.background",(0,n.kg)(1932,"The background color of unchanged blocks in the diff editor.")),(0,r.x1)("diffEditor.unchangedRegionForeground","foreground",(0,n.kg)(1933,"The foreground color of unchanged blocks in the diff editor.")),(0,r.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},(0,n.kg)(1934,"The background color of unchanged code in the diff editor."));let V=(0,r.x1)("widget.shadow",{dark:(0,r.JO)(s.Q1.black,.36),light:(0,r.JO)(s.Q1.black,.16),hcDark:null,hcLight:null},(0,n.kg)(1935,"Shadow color of widgets such as find/replace inside the editor.")),H=(0,r.x1)("widget.border",{dark:null,light:null,hcDark:o.b1,hcLight:o.b1},(0,n.kg)(1936,"Border color of widgets such as find/replace inside the editor.")),z=(0,r.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},(0,n.kg)(1937,"Toolbar background when hovering over actions using the mouse"));(0,r.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(1938,"Toolbar outline when hovering over actions using the mouse")),(0,r.x1)("toolbar.activeBackground",{dark:(0,r.a)(z,.1),light:(0,r.e$)(z,.1),hcDark:null,hcLight:null},(0,n.kg)(1939,"Toolbar background when holding the mouse over actions"));let U=(0,r.x1)("breadcrumb.foreground",(0,r.JO)(o.CU,.8),(0,n.kg)(1940,"Color of focused breadcrumb items.")),$=(0,r.x1)("breadcrumb.background",l,(0,n.kg)(1941,"Background color of breadcrumb items.")),K=(0,r.x1)("breadcrumb.focusForeground",{light:(0,r.e$)(o.CU,.2),dark:(0,r.a)(o.CU,.1),hcDark:(0,r.a)(o.CU,.1),hcLight:(0,r.a)(o.CU,.1)},(0,n.kg)(1942,"Color of focused breadcrumb items.")),G=(0,r.x1)("breadcrumb.activeSelectionForeground",{light:(0,r.e$)(o.CU,.2),dark:(0,r.a)(o.CU,.1),hcDark:(0,r.a)(o.CU,.1),hcLight:(0,r.a)(o.CU,.1)},(0,n.kg)(1943,"Color of selected breadcrumb items."));(0,r.x1)("breadcrumbPicker.background",d,(0,n.kg)(1944,"Background color of breadcrumb item picker."));let j=s.Q1.fromHex("#40C8AE").transparent(.5),q=s.Q1.fromHex("#40A6FF").transparent(.5),Q=s.Q1.fromHex("#606060").transparent(.4),Y=(0,r.x1)("merge.currentHeaderBackground",{dark:j,light:j,hcDark:null,hcLight:null},(0,n.kg)(1945,"Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.currentContentBackground",(0,r.JO)(Y,.4),(0,n.kg)(1946,"Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let Z=(0,r.x1)("merge.incomingHeaderBackground",{dark:q,light:q,hcDark:null,hcLight:null},(0,n.kg)(1947,"Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.incomingContentBackground",(0,r.JO)(Z,.4),(0,n.kg)(1948,"Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let X=(0,r.x1)("merge.commonHeaderBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},(0,n.kg)(1949,"Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1)("merge.commonContentBackground",(0,r.JO)(X,.4),(0,n.kg)(1950,"Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let J=(0,r.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},(0,n.kg)(1951,"Border color on headers and the splitter in inline merge-conflicts."));(0,r.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,r.JO)(Y,1),light:(0,r.JO)(Y,1),hcDark:J,hcLight:J},(0,n.kg)(1952,"Current overview ruler foreground for inline merge-conflicts.")),(0,r.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,r.JO)(Z,1),light:(0,r.JO)(Z,1),hcDark:J,hcLight:J},(0,n.kg)(1953,"Incoming overview ruler foreground for inline merge-conflicts.")),(0,r.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,r.JO)(X,1),light:(0,r.JO)(X,1),hcDark:J,hcLight:J},(0,n.kg)(1954,"Common ancestor overview ruler foreground for inline merge-conflicts."));let ee=(0,r.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},(0,n.kg)(1955,"Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),et=(0,r.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",(0,n.kg)(1956,"Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ei=(0,r.x1)("problemsErrorIcon.foreground",g,(0,n.kg)(1957,"The color used for the problems error icon.")),en=(0,r.x1)("problemsWarningIcon.foreground",f,(0,n.kg)(1958,"The color used for the problems warning icon.")),es=(0,r.x1)("problemsInfoIcon.foreground",_,(0,n.kg)(1959,"The color used for the problems info icon."))},4722:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,jN:()=>a,nu:()=>o});var n=i(93360),s=i(34247),r=i(27044);let o=(0,n.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(l.is(e))return l.lift(e);if(h.is(e))return h.lift(e);throw Error("Unsupported edit")})}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&s.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class h extends a{static is(e){return e instanceof h||(0,r.Gv)(e)&&(!!e.newResource||!!e.oldResource)}static lift(e){return e instanceof h?e:new h(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},4757:()=>{},4872:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var n=i(7646),s=i(19923),r=i(80451),o=i(87108),a=i(38661),l=i(48633);i(14908);var h=i(56558);let d=n.$;class c extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=(0,n.BC)(e,d(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,s.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}set(e,t){this.didEverRender&&this.keybinding===e&&c.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let t=1;t<e.length;t++)(0,n.BC)(this.domNode,d("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[t],this.matches?this.matches.chordPart:null);let t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){(0,n.w_)(this.domNode),this.keyElements.clear()}renderChord(e,t,i){let n=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!i?.ctrlKey,n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!i?.shiftKey,n.separator),t.altKey&&this.renderKey(e,n.altKey,!!i?.altKey,n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!i?.metaKey,n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!i?.keyCode,"")}renderKey(e,t,i,s){(0,n.BC)(e,this.createKeyElement(t,i?".highlight":"")),s&&(0,n.BC)(e,d("span.monaco-keybinding-key-separator",void 0,s))}renderUnbound(e){(0,n.BC)(e,this.createKeyElement((0,h.kg)(15,"Unbound")))}createKeyElement(e,t=""){let i=d("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.aI)(e.firstPart,t.firstPart)&&(0,l.aI)(e.chordPart,t.chordPart)}}},4917:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var n,s=i(27044);!function(e){function t(e){return!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e??i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(let n of e)if(t(n,i++))return!0;return!1},e.every=function(e,t){let i=0;for(let n of e)if(!t(n,i++))return!1;return!0},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.flatMap=function*(e,t){let i=0;for(let n of e)yield*t(n,i++)},e.concat=function*(...e){for(let t of e)(0,s.xZ)(t)?yield*t:yield t},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.length=function(e){let t=0;for(let i of e)t++;return t},e.slice=function*(e,t,i=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=1/0){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){let t=[];for await(let i of e)t.push(i);return t},e.asyncToArrayFlat=async function(e){let t=[];for await(let i of e)t=t.concat(i);return t}}(n||(n={}))},5228:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(12865).then(i.bind(i,12865))})},5320:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>m,QB:()=>g,Qx:()=>w,VL:()=>C,Vh:()=>l,Vp:()=>a,eu:()=>c,l4:()=>d,o0:()=>b,pW:()=>p,qe:()=>h,rR:()=>y,sS:()=>u,vr:()=>v,wP:()=>f,zG:()=>_});var n=i(13091),s=i(8998),r=i(89600);function o(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}let a=0;function l(e){return 0===e}function h(e,t){return 0x4000000*e+t}function d(e){let t=Math.floor(e/0x4000000);return new r.W(t,e-0x4000000*t)}function c(e){return Math.floor(e/0x4000000)}function u(e){return e}function g(e,t){let i=e+t;return t>=0x4000000&&(i-=e%0x4000000),i}function p(e,t){return e.reduce((e,i)=>g(e,t(i)),a)}function f(e,t){return e===t}function m(e,t){if(t-e<=0)return a;let i=Math.floor(e/0x4000000),n=Math.floor(t/0x4000000),s=t-0x4000000*n;return i===n?h(0,s-(e-0x4000000*i)):h(n-i,s)}function _(e,t){return e<t}function v(e,t){return e<=t}function b(e,t){return e>=t}function C(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){let i=Math.floor(e/0x4000000),n=Math.floor(t/0x4000000);return new s.Q(i+1,e-0x4000000*i+1,n+1,t-0x4000000*n+1)}function y(e){let t=(0,n.uz)(e);return h(t.length-1,t[t.length-1].length)}},5324:(e,t,i)=>{"use strict";i.d(t,{t:()=>n});let n={RESOURCES:"ResourceURLs",TEXT:i(78423).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},6325:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(9743).then(i.bind(i,9743))})},6819:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>s,pj:()=>h,qN:()=>l});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getLineHeightForLineNumber(e){return this._viewLayout.getLineHeightForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class s extends n{constructor(e,t,i,n){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i,this._viewLinesGpu=n}linesVisibleRangesForRange(e,t){let i=this._viewLines.linesVisibleRangesForRange(e,t);if(!this._viewLinesGpu)return i;let n=this._viewLinesGpu.linesVisibleRangesForRange(e,t);return i?n?i.concat(n).sort((e,t)=>e.lineNumber-t.lineNumber):i:n}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)??this._viewLinesGpu?.visibleRangeForPosition(e)??null}}class r{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class o{static from(e){let t=Array(e.length);for(let i=0,n=e.length;i<n;i++){let n=e[i];t[i]=new o(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class h{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},6911:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(38168),s=i(78882);i(84229),i(38661);var r=i(12811),o=i(26961),a=i(19759),l=i(23435);class h extends l.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i,n){super(n),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(let e of this._deltas)for(let t of((0,a.t)()?.handleObservableUpdated(this,{change:e,didChange:!0,oldValue:"(unknown)",newValue:this._value,hadValue:!0}),this._observers))t.handleChange(this,e);this._deltas.length=0}else for(let e of((0,a.t)()?.handleObservableUpdated(this,{change:void 0,didChange:!0,oldValue:"(unknown)",newValue:this._value,hadValue:!0}),this._observers))e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(let e of this._observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter)for(let e of(this._update(),[...this._observers]))e.endUpdate(this)}addObserver(e){let t=!this._observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){let t=this._observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){let n;if(!(void 0===i&&this._equalityComparator(this._value,e))){t||(t=n=new o.XL(()=>{},()=>`Setting ${this.debugName}`));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(let e of this._observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}var d=i(85704);function c(e,t,i=d.j.ofCaller()){return e.lazy?new h(new n.nA(e.owner,e.debugName,void 0),t,e.equalsFn??s.nx,i):new r.Lj(new n.nA(e.owner,e.debugName,void 0),t,e.equalsFn??s.nx,i)}},7055:(e,t,i)=>{"use strict";let n,s;i.d(t,{Ez:()=>_,SJ:()=>l,dy:()=>v,fV:()=>f,ny:()=>a,v$:()=>p,zl:()=>C});var r,o,a,l,h=i(69320),d=i(81900),c=i(13091),u=i(34247),g=i(15928);function p(e,t){return u.r.isUri(e)?(0,c.Q_)(e.scheme,t):(0,c.ns)(e,t+":")}function f(e,...t){return t.some(t=>p(e,t))}(r=a||(a={})).inMemory="inmemory",r.vscode="vscode",r.internal="private",r.walkThrough="walkThrough",r.walkThroughSnippet="walkThroughSnippet",r.http="http",r.https="https",r.file="file",r.mailto="mailto",r.untitled="untitled",r.data="data",r.command="command",r.vscodeRemote="vscode-remote",r.vscodeRemoteResource="vscode-remote-resource",r.vscodeManagedRemoteResource="vscode-managed-remote-resource",r.vscodeUserData="vscode-userdata",r.vscodeCustomEditor="vscode-custom-editor",r.vscodeNotebookCell="vscode-notebook-cell",r.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",r.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",r.vscodeNotebookCellOutput="vscode-notebook-cell-output",r.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",r.vscodeNotebookMetadata="vscode-notebook-metadata",r.vscodeInteractiveInput="vscode-interactive-input",r.vscodeSettings="vscode-settings",r.vscodeWorkspaceTrust="vscode-workspace-trust",r.vscodeTerminal="vscode-terminal",r.vscodeImageCarousel="vscode-image-carousel",r.vscodeChatCodeBlock="vscode-chat-code-block",r.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",r.vscodeChatEditor="vscode-chat-editor",r.vscodeChatInput="chatSessionInput",r.vscodeLocalChatSession="vscode-chat-session",r.webviewPanel="webview-panel",r.vscodeWebview="vscode-webview",r.vscodeBrowser="vscode-browser",r.extension="extension",r.vscodeFileResource="vscode-file",r.tmp="tmp",r.vsls="vsls",r.vscodeSourceControl="vscode-scm",r.commentsInput="comment",r.codeSetting="code-setting",r.outputChannel="output",r.accessibleView="accessible-view",r.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",r.chatEditingModel="chat-editing-text-model",r.copilotPr="copilot-pr";class m{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return g.SA.join(this._serverRootPath,a.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return(0,h.M_)(t),e}let t=e.authority,i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);let n=this._ports[t],s=this._connectionTokens[t],r=`path=${encodeURIComponent(e.path)}`;return"string"==typeof s&&(r+=`&tkn=${encodeURIComponent(s)}`),u.r.from({scheme:d.HZ?this._preferredWebSchema:a.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}let _=new m,v="vs/../../node_modules";class b{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){let t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===a.vscodeRemote?_.rewrite(e):e.scheme===a.file&&(d.ib||d.lg===`${a.vscodeFileResource}://${b.FALLBACK_AUTHORITY}`)?e.with({scheme:a.vscodeFileResource,authority:e.authority||b.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e){if(u.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){let t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return u.r.joinPath(u.r.parse(t,!0),e);let i=(0,g.fj)(t,e);return u.r.file(i)}throw Error("Cannot determine URI for module id!")}}let C=new b;(o=l||(l={})).CoopAndCoep=Object.freeze((n=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]])).get("3")),s="vscode-coi",o.getHeadersFromQuery=function(e){let t;"string"==typeof e?t=new URL(e).searchParams:e instanceof URL?t=e.searchParams:u.r.isUri(e)&&(t=new URL(e.toString(!0)).searchParams);let i=t?.get(s);if(i)return n.get(i)},o.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;let n=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(s,n):e[s]=n}},7646:(e,t,i)=>{"use strict";let n,s,r,o,a,l,h,d,c,u,g;i.d(t,{$:()=>eF,BC:()=>eM,BK:()=>ei,Be:()=>Q,Bx:()=>ex,Cl:()=>ec,Di:()=>e$,Er:()=>ey,FK:()=>ev,Fv:()=>W,H4:()=>eo,Hs:()=>eR,Iv:()=>F,J$:()=>G,L9:()=>Z,Ln:()=>eA,OK:()=>ea,Oq:()=>n,PG:()=>s,Pl:()=>eT,Q2:()=>O,QX:()=>el,Tr:()=>es,U3:()=>q,WU:()=>eW,X7:()=>ep,XD:()=>eh,YE:()=>M,ZF:()=>P,_9:()=>K,a:()=>em,bo:()=>eB,bq:()=>eg,cL:()=>et,fg:()=>ee,fs:()=>eL,fz:()=>e_,h:()=>ej,i0:()=>eU,jD:()=>eV,jG:()=>eu,jh:()=>ez,ko:()=>U,kx:()=>eS,mU:()=>en,nR:()=>ef,nY:()=>eC,pN:()=>eK,q3:()=>B,sb:()=>eb,sd:()=>ek,sl:()=>R,tG:()=>X,un:()=>$,vT:()=>eH,w5:()=>eI,w_:()=>H,wk:()=>eE,xZ:()=>ew,xb:()=>j,y6:()=>er,yD:()=>eQ,zK:()=>eD,zk:()=>T}),i(44578);var p,f,m,_=i(57746),v=i(69737),b=i(87540),C=i(74789),w=i(69320),y=i(84229),S=i(38661),x=i(7055),k=i(81900),L=i(68435),D=i(7974);i(55098);var E=i(83384),N=i(90967),I=i(12811);let{getWindow:T,getDocument:M,getWindows:R,getWindowsCount:A,getWindowId:O,getWindowById:P,onDidRegisterWindow:F,onWillUnregisterWindow:B,onDidUnregisterWindow:W}=(r=new Map,(0,D.y)(D.G,1),o={window:D.G,disposables:new S.Cm},r.set(D.G.vscodeWindowId,o),a=new y.vl,l=new y.vl,h=new y.vl,{onDidRegisterWindow:a.event,onWillUnregisterWindow:h.event,onDidUnregisterWindow:l.event,registerWindow(e){if(r.has(e.vscodeWindowId))return S.jG.None;let t=new S.Cm,i={window:e,disposables:t.add(new S.Cm)};return r.set(e.vscodeWindowId,i),t.add((0,S.s)(()=>{r.delete(e.vscodeWindowId),l.fire(e)})),t.add(U(e,ex.BEFORE_UNLOAD,()=>{h.fire(e)})),a.fire(i),t},getWindows:()=>r.values(),getWindowsCount:()=>r.size,getWindowId:e=>e.vscodeWindowId,hasWindow:e=>r.has(e),getWindowById:function(e,t){return("number"==typeof e?r.get(e):void 0)??(t?o:void 0)},getWindow:e=>e?.ownerDocument?.defaultView?e.ownerDocument.defaultView.window:e?.view?e.view.window:D.G,getDocument:e=>T(e).document}),V=new Set;function H(e){for(;e.firstChild;)e.firstChild.remove()}class z{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function U(e,t,i,n){return new z(e,t,i,n)}let $=function(e,t,i,n){var s;let r=i;return"click"===t||"mousedown"===t||"contextmenu"===t?(s=T(e),r=function(e){return i(new b.P(s,e))}):("keydown"===t||"keypress"===t||"keyup"===t)&&(r=function(e){return i(new v.Z(e))}),U(e,t,r,n)};function K(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_DOWN:ex.MOUSE_DOWN,t,i)}function G(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_MOVE:ex.MOUSE_MOVE,t,i)}function j(e,t,i){return U(e,k.un&&_.e.pointerEvents?ex.POINTER_UP:ex.MOUSE_UP,t,i)}function q(e,t,i){return(0,C.b7)(e,t,i)}C.A0;class Q extends C.vb{constructor(e){super(),this.defaultTarget=e&&T(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class Y{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,w.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function Z(e){return T(e).getComputedStyle(e,null)}function X(e,t,i){let n=T(e),s=n.document;if(e!==s.body)return new ee(e.clientWidth,e.clientHeight);if(k.un&&n?.visualViewport)return new ee(n.visualViewport.width,n.visualViewport.height);if(n?.innerWidth&&n.innerHeight)return new ee(n.innerWidth,n.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new ee(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new ee(s.documentElement.clientWidth,s.documentElement.clientHeight);throw Error("Unable to figure out browser width and height")}d=new Map,c=new Map,u=new Map,g=new Map,s=(e,t,i=0)=>{let n=O(e),s=new Y(t,i),r=d.get(n);return r||(r=[],d.set(n,r)),r.push(s),u.get(n)||(u.set(n,!0),e.requestAnimationFrame(()=>(e=>{u.set(e,!1);let t=d.get(e)??[];for(c.set(e,t),d.set(e,[]),g.set(e,!0);t.length>0;)t.sort(Y.sort),t.shift().execute();g.set(e,!1)})(n))),s},n=(e,t,i)=>{let n=O(e);if(!g.get(n))return s(e,t,i);{let e=new Y(t,i),s=c.get(n);return s||(s=[],c.set(n,s)),s.push(e),e}};class J{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t){let i=Z(e),n=i?i.getPropertyValue(t):"0";return J.convertToPixels(e,n)}static getBorderLeftWidth(e){return J.getDimension(e,"border-left-width")}static getBorderRightWidth(e){return J.getDimension(e,"border-right-width")}static getBorderTopWidth(e){return J.getDimension(e,"border-top-width")}static getBorderBottomWidth(e){return J.getDimension(e,"border-bottom-width")}static getPaddingLeft(e){return J.getDimension(e,"padding-left")}static getPaddingRight(e){return J.getDimension(e,"padding-right")}static getPaddingTop(e){return J.getDimension(e,"padding-top")}static getPaddingBottom(e){return J.getDimension(e,"padding-bottom")}static getMarginLeft(e){return J.getDimension(e,"margin-left")}static getMarginTop(e){return J.getDimension(e,"margin-top")}static getMarginRight(e){return J.getDimension(e,"margin-right")}static getMarginBottom(e){return J.getDimension(e,"margin-bottom")}}class ee{static{this.None=new ee(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new ee(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof ee?e:new ee(e.width,e.height)}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height}}function et(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;let s=ed(e)?null:Z(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=J.getBorderLeftWidth(e),i+=J.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function ei(e){let t=e.getBoundingClientRect(),i=T(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function en(e){let t=e,i=1;do{let e=Z(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function es(e){let t=J.getMarginLeft(e)+J.getMarginRight(e);return e.offsetWidth+t}function er(e){let t=J.getBorderLeftWidth(e)+J.getBorderRightWidth(e),i=J.getPaddingLeft(e)+J.getPaddingRight(e);return e.offsetWidth-t-i}function eo(e){let t=J.getBorderTopWidth(e)+J.getBorderBottomWidth(e),i=J.getPaddingTop(e)+J.getPaddingBottom(e);return e.offsetHeight-t-i}function ea(e){let t=J.getMarginTop(e)+J.getMarginBottom(e);return e.offsetHeight+t}function el(e,t){return!!t?.contains(e)}function eh(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break}else if(e===i)break}e=e.parentNode}return null}(e,t,i)}function ed(e){return e&&!!e.host&&!!e.mode}function ec(e){return!!eu(e)}function eu(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return ed(e)?e:null}function eg(){let e=em().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ep(e){return eg()===e}function ef(e){return el(eg(),e)}function em(){if(1>=A())return D.G.document;let e=Array.from(R()).map(({window:e})=>e.document).find(e=>e.hasFocus());if(e)return e;let t=function(){for(let e of V){let t=e();if(t.hasFocus&&t.window)return t.window}}();return t?t.document:D.G.document}function e_(){let e=em();return e.defaultView?.window??D.G}let ev=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));let s=(0,L.tW)(i),r=n.get(s);if(r)r.users+=1;else{let o=new y.vl,a=new MutationObserver(e=>o.fire(e));a.observe(e,i);let l=r={users:1,observer:a,onDidMutate:o.event};t.add((0,S.s)(()=>{l.users-=1,0===l.users&&(o.dispose(),a.disconnect(),n?.delete(s),n?.size===0&&this.mutationObservers.delete(e))})),n.set(s,r)}return r.onDidMutate}};function eb(e){return e instanceof HTMLElement||e instanceof T(e).HTMLElement}function eC(e){return e instanceof HTMLAnchorElement||e instanceof T(e).HTMLAnchorElement}function ew(e){return e instanceof SVGElement||e instanceof T(e).SVGElement}function ey(e){return e instanceof MouseEvent||e instanceof T(e).MouseEvent}function eS(e){return e instanceof KeyboardEvent||e instanceof T(e).KeyboardEvent}let ex={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",RESIZE:"resize",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function ek(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation)}let eL={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function eD(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function eE(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class eN extends S.jG{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(!eb(e))return el(e.document.activeElement,e.document);{let t=eu(e);return el(t?t.activeElement:e.ownerDocument.activeElement,e)}}constructor(e){super(),this._onDidFocus=this._register(new y.vl),this._onDidBlur=this._register(new y.vl);let t=eN.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(eb(e)?T(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{eN.hasFocusWithin(e)!==t&&(t?s():n())},this._register(U(e,ex.FOCUS,n,!0)),this._register(U(e,ex.BLUR,s,!0)),eb(e)&&(this._register(U(e,ex.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(e,ex.FOCUS_OUT,()=>this._refreshStateHandler())))}}function eI(e){return new eN(e)}function eT(e,t){return e.after(t),t}function eM(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function eR(e,t){return e.insertBefore(t,e.firstChild),t}function eA(e,...t){e.textContent="",eM(e,...t)}let eO=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function eP(e,t,i,...n){let s,r=eO.exec(t);if(!r)throw Error("Bad use of emmet");let o=r[1]||"div";return s=e!==f.HTML?document.createElementNS(e,o):document.createElement(o),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))}),s.append(...n),s}function eF(e,t,...i){return eP(f.HTML,e,t,...i)}function eB(e,...t){e?eW(...t):eV(...t)}function eW(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function eV(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function eH(e,t){return Math.max(1,Math.floor(e.devicePixelRatio*t))/e.devicePixelRatio}function ez(e){D.G.open(e,"_blank","noopener")}function eU(e,t){let i=()=>{t(),n=s(e,i)},n=s(e,i);return(0,S.s)(()=>n.dispose())}(p=f||(f={})).HTML="http://www.w3.org/1999/xhtml",p.SVG="http://www.w3.org/2000/svg",eF.SVG=function(e,t,...i){return eP(f.SVG,e,t,...i)},x.Ez.setPreferredWebSchema(/^https:/.test(D.G.location.href)?"https":"http");class e$ extends y.vl{constructor(){super(),this._subscriptions=new S.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(y.Jh.runAndSubscribe(F,({window:e,disposables:t})=>this.registerListeners(e,t),{window:D.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(U(e,"keydown",e=>{if(e.defaultPrevented)return;let t=new v.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(U(e,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(U(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(U(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return e$.instance||(e$.instance=new e$),e$.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class eK extends S.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,ex.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(U(this.element,ex.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(U(this.element,ex.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(U(this.element,ex.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(U(this.element,ex.DRAG_LEAVE,e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(U(this.element,ex.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(U(this.element,ex.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}}let eG=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function ej(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);let s=eG.exec(e);if(!s||!s.groups)throw Error("Bad use of h");let r=s.groups.tag||"div",o=document.createElement(r);s.groups.id&&(o.id=s.groups.id);let a=[];if(s.groups.class)for(let e of s.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(o.className=a.join(" "));let l={};if(s.groups.name&&(l[s.groups.name]=o),n)for(let e of n)eb(e)?o.appendChild(e):"string"==typeof e?o.append(e):"root"in e&&(Object.assign(l,e),o.appendChild(e.root));for(let[e,t]of Object.entries(i))if("className"===e)continue;else if("style"===e)for(let[e,i]of Object.entries(t))o.style.setProperty(eq(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?o.tabIndex=t:o.setAttribute(eq(e),t.toString());return l.root=o,l}function eq(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function eQ(e){return"input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase()||eb(e)&&!!e.editContext}var eY=m||(m={});function eZ(e){return(t,i,n)=>{let s=i.class;delete i.class;let r=i.ref;delete i.ref;let o=i.obsRef;return delete i.obsRef,new e5(t,r,o,e,s,i,n)}}function eX(e,t){let i=eZ(t);return(t,n)=>i(e,t,n)}eY.div=eX("div"),eY.elem=eZ(void 0),eY.svg=eX("svg","http://www.w3.org/2000/svg"),eY.svgElem=eZ("http://www.w3.org/2000/svg"),eY.ref=function(){let e,t=function(t){e=t};return Object.defineProperty(t,"element",{get(){if(!e)throw new w.D7("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return e}}),t};class eJ{constructor(e,t,i,n,s,r,o){for(const[o,a]of(this._deriveds=[],this._isHovered=void 0,this._didMouseMoveDuringHover=void 0,this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push((0,E.un)(e=>{i(this),e.store.add({dispose:()=>{i(null)}})})),s&&(!function e(t){return!!(0,N.AT)(t)||!!Array.isArray(t)&&t.some(t=>e(t))}(s)?e0(this._element,e1(s,void 0)):this._deriveds.push((0,E.un)(this,e=>{e0(this._element,e1(s,e))}))),Object.entries(r)))if("style"===o)for(const[e,t]of Object.entries(a)){const i=eq(e);(0,N.AT)(t)?this._deriveds.push((0,E.C)({owner:this,debugName:()=>`set.style.${i}`},e=>{this._element.style.setProperty(i,e2(t.read(e)))})):this._element.style.setProperty(i,e2(t))}else"tabIndex"===o?(0,N.AT)(a)?this._deriveds.push((0,E.un)(this,e=>{this._element.tabIndex=a.read(e)})):this._element.tabIndex=a:o.startsWith("on")?this._element[o]=a:(0,N.AT)(a)?this._deriveds.push((0,E.C)({owner:this,debugName:()=>`set.${o}`},e=>{e3(this._element,o,a.read(e))})):e3(this._element,o,a);if(o){const e=(0,E.un)(this,e=>{this._element.replaceChildren(...function e(t,i){return(0,N.AT)(i)?e(t,i.read(t)):Array.isArray(i)?i.flatMap(i=>e(t,i)):i instanceof eJ?(t&&i.readEffect(t),[i._element]):i?[i]:[]}(e,o))});this._deriveds.push(e),!function e(t){return!!(0,N.AT)(t)||!!Array.isArray(t)&&t.some(t=>e(t))}(o)&&e.get()}}readEffect(e){for(let t of this._deriveds)t.read(e)}keepUpdated(e){return(0,E.un)(e=>{this.readEffect(e)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){let e=new S.Cm;return this.keepUpdated(e),new e4(this._element,e)}get isHovered(){if(!this._isHovered){let e=(0,I.FY)("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=(0,I.FY)("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",t=>{e=!0}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0)}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}}function e0(e,t){ew(e)?e.setAttribute("class",t):e.className=t}function e1(e,t){let i="";return!function e(t,i,n){if((0,N.AT)(t))return void n(t.read(i));if(Array.isArray(t)){for(let s of t)e(s,i,n);return}n(t)}(e,t,e=>{e&&(0===i.length?i=e:i+=" "+e)}),i}function e2(e){return"number"==typeof e?e+"px":e}class e4{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}}class e5 extends eJ{get element(){return this._element}}function e3(e,t,i){null==i?e.removeAttribute(eq(t)):e.setAttribute(eq(t),String(i))}class e8 extends HTMLElement{disconnectedCallback(){this.onDidDisconnect?.()}connectedCallback(){this.onDidConnect?.()}}customElements.get("connection-observer")||customElements.define("connection-observer",e8)},7693:()=>{},7974:(e,t,i)=>{"use strict";function n(e,t){"number"!=typeof e.vscodeWindowId&&Object.defineProperty(e,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>s,y:()=>n});let s=window},8252:()=>{},8324:(e,t,i)=>{"use strict";i.d(t,{BT:()=>g,WM:()=>a,bX:()=>h,cI:()=>c,gn:()=>d,mh:()=>u,zR:()=>l});var n=i(56558),s=i(18734),r=i(83367),o=i(45837);(0,r.x1)("sash.hoverBorder",o.tA,(0,n.kg)(2062,"Border color of active sashes."));let a=(0,r.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},(0,n.kg)(2063,"Badge background color. Badges are small information labels, e.g. for search results count.")),l=(0,r.x1)("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},(0,n.kg)(2064,"Badge foreground color. Badges are small information labels, e.g. for search results count."));(0,r.x1)("activityWarningBadge.foreground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:s.Q1.white},(0,n.kg)(2065,"Foreground color of the warning activity badge")),(0,r.x1)("activityWarningBadge.background",{dark:"#B27C00",light:"#B27C00",hcDark:null,hcLight:"#B27C00"},(0,n.kg)(2066,"Background color of the warning activity badge")),(0,r.x1)("activityErrorBadge.foreground",{dark:s.Q1.black.lighten(.2),light:s.Q1.white,hcDark:null,hcLight:s.Q1.black.lighten(.2)},(0,n.kg)(2067,"Foreground color of the error activity badge")),(0,r.x1)("activityErrorBadge.background",{dark:"#F14C4C",light:"#E51400",hcDark:null,hcLight:"#F14C4C"},(0,n.kg)(2068,"Background color of the error activity badge"));let h=(0,r.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},(0,n.kg)(2069,"Scrollbar shadow to indicate that the view is scrolled.")),d=(0,r.x1)("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:(0,r.JO)(o.b1,.6),hcLight:(0,r.JO)(o.b1,.4)},(0,n.kg)(2070,"Scrollbar slider background color.")),c=(0,r.x1)("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:(0,r.JO)(o.b1,.8),hcLight:(0,r.JO)(o.b1,.8)},(0,n.kg)(2071,"Scrollbar slider background color when hovering.")),u=(0,r.x1)("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2072,"Scrollbar slider background color when clicked on."));(0,r.x1)("scrollbar.background",null,(0,n.kg)(2073,"Scrollbar track background color."));let g=(0,r.x1)("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2074,"Background color of the progress bar that can show for long running operations."));(0,r.x1)("chart.line",{dark:"#236B8E",light:"#236B8E",hcDark:"#236B8E",hcLight:"#236B8E"},(0,n.kg)(2075,"Line color for the chart.")),(0,r.x1)("chart.axis",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2076,"Axis color for the chart.")),(0,r.x1)("chart.guide",{dark:s.Q1.fromHex("#BFBFBF").transparent(.2),light:s.Q1.fromHex("#000000").transparent(.2),hcDark:o.b1,hcLight:o.b1},(0,n.kg)(2077,"Guide line for the chart."))},8461:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var n=i(13091),s=i(54326);function r(e,t,i){let r=(0,n.HG)(e);return -1===r&&(r=e.length),function(e,t,i){let n=0;for(let i=0;i<e.length;i++)" "===e.charAt(i)?n=s.A.nextIndentTabStop(n,t):n++;let r="";if(!i){let e=Math.floor(n/t);n%=t;for(let t=0;t<e;t++)r+=" "}for(let e=0;e<n;e++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},8805:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var n=i(51791);let s=[];function r(e,t,i){t instanceof n.d||(t=new n.d(t,[],!!i)),s.push([e,t])}function o(){return s}},9060:(e,t,i)=>{"use strict";i(90991)},9348:(e,t,i)=>{"use strict";let n,s,r;i.r(t),i.d(t,{CancellationTokenSource:()=>dH,Emitter:()=>dz,KeyCode:()=>dU,KeyMod:()=>d$,MarkerSeverity:()=>dQ,MarkerTag:()=>dY,Position:()=>dK,Range:()=>dG,Selection:()=>dj,SelectionDirection:()=>dq,Token:()=>dX,Uri:()=>dZ,editor:()=>dJ,languages:()=>d0});var o,a,l,h,d,c,u,g,p,f,m,_,v,b,C,w,y,S,x,k,L,D,E,N,I,T,M,R,A,O,P,F,B,W,V,H,z,U,$,K,G,j,q,Q,Y=i(3907),Z=i(60288),X=i(7974),J=i(38661),ee=i(13091),et=i(34247);i(44608);var ei=i(99259),en=i(31601),es=i(49806),er=i(16290);class eo extends er.Z{constructor(e,t,i){super(i.worker,i.keepIdleModels||!1,e,t),this._foreignModuleHost=i.host||null,this._foreignProxy=this._getProxy().then(e=>new Proxy({},{get(t,i,n){if("then"!==i){if("string"!=typeof i)throw Error("Not supported");return(...t)=>e.$fmr(i,t)}}}))}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}getProxy(){return this._foreignProxy}withSyncedResources(e){return this.workerWithSyncedResources(e).then(e=>this.getProxy())}}var ea=i(93488),el=i(34567),eh=i(81403),ed=i(49222),ec=i(60481),eu=i(55034),eg=i(72643),ep=i(62780),ef=i(23121),em=i(60704),e_=i(14050),ev=i(75790),eb=i(58786),eC=i(3815);function ew(e){return"string"==typeof e}function ey(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function eS(e){return e.replace(/[&<>'"_]/g,"-")}function ex(e,t){return Error(`${e.languageId}: ${t}`)}function ek(e,t,i,n,s){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,o,a,l,h,d,c,u,g){return a?"$":l?ey(e,i):h&&h<n.length?ey(e,n[h]):c&&e&&"string"==typeof e[c]?e[c]:(null===r&&(r=s.split(".")).unshift(s),d&&d<r.length)?ey(e,r[d]):""})}function eL(e,t){let i=t;for(;i&&i.length>0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var eD=i(50330);class eE{static{this._INSTANCE=new eE(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new eN(e,t);let i=eN.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new eN(e,t),this._entries[i]=n),n}}class eN{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return eN._equals(this,e)}push(e){return eE.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return eE.create(this.parent,e)}}class eI{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new eI(this.languageId,this.state)}}class eT{static{this._INSTANCE=new eT(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new eM(e,t);let i=eN.getStackElementId(e),n=this._entries[i];return n||(n=new eM(e,null),this._entries[i]=n),n}}class eM{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:eT.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof eM&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class eR{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new ed.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,r=i.state,o=ed.dG.get(s);if(!o)return this.enterLanguage(s),this.emit(n,""),r;let a=o.tokenize(e,t,r);if(0!==n)for(let e of a.tokens)this._tokens.push(new ed.ou(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new ed.$M(this._tokens,e)}}class eA{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,s=t.length,r=null!==i?i.length:0;if(0===n&&0===s&&0===r)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===r)return e;let o=new Uint32Array(n+s+r);null!==e&&o.set(e);for(let e=0;e<s;e++)o[n+e]=t[e];return null!==i&&o.set(i,n+s),o}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,r=i.state,o=ed.dG.get(s);if(!o)return this.enterLanguage(s),this.emit(n,""),r;let a=o.tokenizeEncoded(e,t,r);if(0!==n)for(let e=0,t=a.tokens.length;e<t;e+=2)a.tokens[e]+=n;return this._prependTokens=eA._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new ed.rY(eA._merge(this._prependTokens,this._tokens,null),[],e)}}let eO=L=class extends J.jG{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(ed.dG.onDidChange(e=>{if(r)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){let n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(r=!0,ed.dG.handleChange([this._languageId]),r=!1)})),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let e=[];for(let t in this._embeddedLanguages){let i=ed.dG.get(t);if(i){if(i instanceof L){let t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}continue}ed.dG.isResolved(t)||e.push(ed.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)}}getInitialState(){let e=eE.create(null,this._lexer.start);return eT.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,eg.$H)(this._languageId,i);let n=new eR,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,eg.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new eA(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=eL(this._lexer,t.stack.state)))throw ex(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(let r of i){if(ew(r.action)||!("@pop"===r.action.nextEmbedded||r.action.hasEmbeddedEndInCases))continue;s=!0;let i=r.resolveRegex(t.stack.state),o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}let a=e.search(i);-1!==a&&(0===a||!r.matchOnlyAtLineStart)&&(-1===n||a<n)&&(n=a)}if(!s)throw ex(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,s){let r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){let r=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return eT.create(i.stack,new eI(i.embeddedLanguageData.languageId,r))}let o=e.substring(0,r);o.length>0&&s.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,n);let a=e.substring(r);return this._myTokenize(a,t,i,n+r,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);let r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length,l=i.embeddedLanguageData,h=i.stack,d=0,c=null,u=!0;for(;u||d<a;){let i=d,f=h.depth,m=c?c.groups.length:0,_=h.state,v=null,b=null,C=null,w=null,y=null;if(c){v=c.matches;let e=c.groups.shift();b=e.matched,C=e.action,w=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&d>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&!(e=eL(this._lexer,_)))throw ex(this._lexer,"tokenizer state is not defined: "+_);let t=o.substr(d);for(let i of e)if((0===d||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)))){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(d<a&&(b=(v=[o.charAt(d)])[0]),C=this._lexer.defaultToken),null===b)break;for(d+=b.length;!Array.isArray(C)&&!ew(C)&&C.test;)C=C.test(b,v,_,d===a);let S=null;if("string"==typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){var g,p;if(S=C.tokenSubst?ek(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw ex(this._lexer,"cannot pop embedded language if not inside one");l=null}else if(l)throw ex(this._lexer,"cannot enter embedded language from within an embedded language");else y=ek(this._lexer,C.nextEmbedded,b,v,_);if(C.goBack&&(d=Math.max(0,d-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=ek(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),eL(this._lexer,e))h=h.switchTo(e);else throw ex(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(w))}else if(C.transform&&"function"==typeof C.transform)throw ex(this._lexer,"action.transform not supported");else if(C.next)if("@push"===C.next)if(h.depth>=this._lexer.maxStack)throw ex(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");else h=h.push(_);else if("@pop"===C.next)if(h.depth<=1)throw ex(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));else h=h.pop();else if("@popall"===C.next)h=h.popall();else{let e=ek(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),eL(this._lexer,e))h=h.push(e);else throw ex(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w))}C.log&&"string"==typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+ek(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw ex(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));let x=i=>{let r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(!(d<a))return eT.create(h,o);{let i=e.substr(d);return this._nestedTokenize(i,t,eT.create(h,o),n+d,s)}};if(Array.isArray(S)){if(c&&c.groups.length>0)throw ex(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(v.length!==S.length+1)throw ex(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw ex(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));c={rule:w,matches:v,groups:[]};for(let e=0;e<S.length;e++)c.groups[e]={action:S[e],matched:v[e+1]};d-=b.length;continue}{if("@rematch"===S&&(d-=b.length,b="",v=null,S="",null!==y))return x(y);if(0===b.length)if(0===a||f!==h.depth||_!==h.state||(c?c.groups.length:0)!==m)continue;else throw ex(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w));let e=null;if(ew(S)&&0===S.indexOf("@brackets")){let t=S.substr(9),i=function(e,t){if(!t)return null;for(let i of(t=ey(e,t),e.brackets))if(i.open===t)return{token:i.token,bracketType:1};else if(i.close===t)return{token:i.token,bracketType:-1};return null}(this._lexer,b);if(!i)throw ex(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=eS(i.token+t)}else e=eS(""===S?"":S+this._lexer.tokenPostfix);i<r&&s.emit(i+n,e)}if(null!==y)return x(y)}return eT.create(h,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new eI(e,eg.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),ed.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=ed.dG.get(e);return t?new eI(e,t.getInitialState()):new eI(e,eg.r3)}};eO=L=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(o=eD.pG,function(e,t){o(e,t,4)})],eO);let eP=(0,e_.H)("standaloneColorizer",{createHTML:e=>e});class eF{static colorizeElement(e,t,i,n){let s=(n=n||{}).theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();let o=t.getLanguageIdByMimeType(r)||r;e.setTheme(s);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+s,this.colorize(t,a||"",o,n).then(e=>{i.innerHTML=eP?.createHTML(e)??e},e=>console.error(e))}static async colorize(e,t,i,n){var s,r,o,a;let l=e.languageIdCodec,h=4;n&&"number"==typeof n.tabSize&&(h=n.tabSize),(0,ee.LU)(t)&&(t=t.substr(1));let d=(0,ee.uz)(t);if(!e.isRegisteredLanguageId(i))return eB(d,h,l);let c=await ed.dG.getOrCreate(i);return c?(s=d,r=h,o=c,a=l,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let s=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){let a=e[o],l=i.tokenizeEncoded(a,!0,r);ev.f7.convertToEndOffset(l.tokens,a.length);let h=new ev.f7(l.tokens,a,n),d=eC.qL.isBasicASCII(a,!0),c=eC.qL.containsRTL(a,d,!0),u=(0,eb.Md)(new eb.zL(!1,!0,a,!1,d,c,0,h.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(s=s.concat(u.html)).push("<br/>"),r=l.endState}return s.join("")}(s,r,o,a);if(o instanceof eO){let e=o.getLoadStatus();if(!1===e.loaded)return void e.promise.then(i,t)}e(n)};i()})):eB(d,h,l)}static colorizeLine(e,t,i,n,s=4){let r=eC.qL.isBasicASCII(e,t),o=eC.qL.containsRTL(e,r,i);return(0,eb.Md)(new eb.zL(!1,!0,e,!1,r,o,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null,null,0)).html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function eB(e,t,i){let n=[],s=new Uint32Array(2);s[0]=0,s[1]=0x2008000;for(let r=0,o=e.length;r<o;r++){let o=e[r];s[0]=o.length;let a=new ev.f7(s,o,i),l=eC.qL.isBasicASCII(o,!0),h=eC.qL.containsRTL(o,l,!0),d=(0,eb.Md)(new eb.zL(!1,!0,o,!1,l,h,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(n=n.concat(d.html)).push("<br/>")}return n.join("")}var eW=i(26128),eV=i(82280),eH=i(45540),ez=i(8805),eU=i(63667),e$=i(83367),eK=i(45837);i(96141);var eG=i(4529);i(72880),i(77384),i(25523);var ej=i(3463);i(8324);var eq=i(3330);i(30020);var eQ=i(71491),eY=i(86275),eZ=i(93360);i(21649);var eX=i(84229),eJ=i(7646),e0=i(11928),e1=i(69737),e2=i(88604);i(4448);var e4=i(56558);let e5=eJ.$;class e3 extends J.jG{constructor(e){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.classList.toggle("fade-in",!!e),this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new e2.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class e8 extends J.jG{static render(e,t,i){return new e8(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=(0,eJ.BC)(e,e5("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=(0,eJ.BC)(this.actionContainer,e5("a.action")),this.action.setAttribute("role","button"),t.iconClass&&(0,eJ.BC)(this.action,e5("span.icon")).classList.add(...t.iconClass.split(" ")),this.actionRenderedLabel=i?`${t.label} (${i})`:t.label,(0,eJ.BC)(this.action,e5("span")).textContent=this.actionRenderedLabel,this._store.add(new e9(this.actionContainer,t.run)),this._store.add(new e7(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}class e9 extends J.jG{constructor(e,t){super(),this._register((0,eJ.ko)(e,eJ.Bx.CLICK,i=>{i.stopPropagation(),i.preventDefault(),t(e)}))}}class e7 extends J.jG{constructor(e,t,i){super(),this._register((0,eJ.ko)(e,eJ.Bx.KEY_DOWN,n=>{let s=new e1.Z(n);i.some(e=>s.equals(e))&&(n.stopPropagation(),n.preventDefault(),t(e))}))}}var e6=i(4345),te=i(91422),tt=i(37199),ti=i(81900),tn=i(64006),ts=i(74789),tr=i(27044),to=function(e,t){return function(i,n){t(i,n,e)}};let ta=eJ.$,tl=class extends e6.x{get _targetWindow(){return(0,eJ.zk)(this._target.targetElements[0])}get _targetDocumentElement(){return(0,eJ.zk)(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return+(2!==this._hoverPosition)}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}addMouseTrackingElement(e){return this._lockMouseTracker.addElement(e)}constructor(e,t,i,n,s){let r;if(super(),this._keybindingService=t,this._configurationService=i,this._markdownRenderer=n,this._accessibilityService=s,this._messageListeners=new J.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._maxHeightRatioRelativeToWindow=.5,this._onDispose=this._register(new eX.vl),this._onRequestLayout=this._register(new eX.vl),this._linkHandler=e.linkHandler,this._target="targetElements"in e.target?e.target:new td(e.target),e.style)switch(e.style){case 1:e.appearance??={},e.appearance.compact??=!0,e.appearance.showPointer??=!0;break;case 2:e.appearance??={},e.appearance.compact??=!0}this._hoverPointer=e.appearance?.showPointer?ta("div.workbench-hover-pointer"):void 0,this._hover=this._register(new e3(!e.appearance?.skipFadeInAnimation)),this._hover.containerDomNode.classList.add("workbench-hover"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),this._hoverPointer&&this._hover.containerDomNode.classList.add("with-pointer"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0);const o=e.appearance?.maxHeightRatio;void 0!==o&&o>0&&o<=1&&(this._maxHeightRatioRelativeToWindow=o),this._hoverPosition=e.position?.hoverPosition===void 0?3:(0,tr.Et)(e.position.hoverPosition)?e.position.hoverPosition:2,this.onmousedown(this._hover.containerDomNode,e=>e.stopPropagation()),this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.dispose()}),this._register((0,eJ.ko)(this._targetWindow,"blur",()=>this.dispose()));const a=ta("div.hover-row.markdown-hover"),l=ta("div.hover-contents");if("string"==typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if((0,eJ.sb)(e.content)){l.appendChild(e.content),l.classList.add("html-hover-contents");const t=new ResizeObserver(()=>{this.layout(),this._onRequestLayout.fire()});t.observe(l),this._register((0,J.s)(()=>t.disconnect()))}else{const t=e.content,{element:i}=this._register(this._markdownRenderer.render(t,{actionHandler:this._linkHandler,asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}}));l.appendChild(i)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=ta("div.hover-row.status-bar"),i=ta("div.actions");e.actions.forEach(e=>{let t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;this._register(e8.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n))}),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}if(this._hoverContainer=ta("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),r=(!e.actions||!(e.actions.length>0))&&(e.persistence?.hideOnHover===void 0?"string"==typeof e.content||(0,tt.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=ta("div.hover-row.status-bar"),t=ta("div.info");t.textContent=(0,e4.kg)(1761,"Hold {0} key to mouse over",ti.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const h=[...this._target.targetElements];r||h.push(this._hoverContainer);const d=this._mouseTracker=this._register(new th(h));if(this._register(d.onMouseOut(()=>{this._isLocked||this.dispose()})),r){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new th(e)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=d}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;let e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){let i=(0,eJ.Hs)(this._hoverContainer,ta("div")),n=(0,eJ.BC)(this._hoverContainer,ta("div"));i.tabIndex=0,n.tabIndex=0,this._register((0,eJ.ko)(n,"focus",t=>{e.focus(),t.preventDefault()})),this._register((0,eJ.ko)(i,"focus",e=>{t.focus(),e.preventDefault()}))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){let i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE&&"number"==typeof i.tabIndex&&i.tabIndex>=0)return i;let n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t,i;e.appendChild(this._hoverContainer);let n=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(t=!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel(),t&&i?(0,e4.kg)(7,"Inspect this in the accessible view with {0}.",i):t?(0,e4.kg)(8,"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):"");n&&(0,eW.h5)(n),this.layout(),this.addFocusTrap()}layout(){this._mouseTracker?.suppressPendingMouseOut(),this._lockMouseTracker!==this._mouseTracker&&this._lockMouseTracker?.suppressPendingMouseOut(),this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";let{top:e,right:t,bottom:i,left:n}=this._target.targetElements.map(e=>{let t,i;return t=(0,eJ.mU)(e),{top:(i=e.getBoundingClientRect()).top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})[0],s=t-n,r=i-e,o={top:e,right:t,bottom:i,left:n,width:s,height:r,center:{x:n+s/2,y:e+r/2}};if(this.adjustHorizontalHoverPosition(o),this.adjustVerticalHoverPosition(o),this.adjustHoverMaxHeight(o),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:o.left+=3,o.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:o.left-=3,o.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:o.top+=3,o.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:o.top-=3,o.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}o.center.x=o.left+s/2,o.center.y=o.top+r/2}this.computeXCordinate(o),this.computeYCordinate(o),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(o)),this._hover.onContentsChanged()}computeXCordinate(e){let t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;let t=3*!!this._hoverPointer;if(this._forcePosition){let i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-e.right-i}px`:0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=`${e.left-i}px`);return}1===this._hoverPosition?this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t&&(e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2):0===this._hoverPosition&&(e.left<this._hover.containerDomNode.clientWidth+t&&(this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;let t=3*!!this._hoverPointer;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.offsetHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight*this._maxHeightRatioRelativeToWindow;if(this._forcePosition){let i=3*!!this._hoverPointer+2;3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){let e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");let t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=`${e.center.y-(this._y-t)-3}px`:this._hoverPointer.style.top=`${Math.round(t/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");let t=Math.round(this._hover.containerDomNode.clientWidth/2)-3,i=this._x+t;(i<e.left||i>e.right)&&(t=e.center.x-this._x-3),this._hoverPointer.style.left=`${t}px`}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._target.dispose?.(),this._hoverContainer.remove(),this._messageListeners.dispose(),super.dispose()),this._isDisposed=!0}};tl=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([to(1,e0.b),to(2,eD.pG),to(3,te.TN),to(4,tn.j)],tl);class th extends e6.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e,t=200){for(const i of(super(),this._elements=e,this._eventDebounceDelay=t,this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer=this._register(new J.HE),this._onMouseOut=this._register(new eX.vl),this._elements))this.onmouseover(i,()=>this._onTargetMouseOver()),this.onmouseleave(i,()=>this._onTargetMouseLeave())}_onTargetMouseOver(){this._isMouseIn=!0,this._suppressNextMouseOut=!1,this._mouseTimer.clear()}_onTargetMouseLeave(){this._isMouseIn=!1,this._mouseTimer.value=new ts.pc(()=>this._fireIfMouseOutside(),this._eventDebounceDelay)}_fireIfMouseOutside(){this._isMouseIn||this._suppressNextMouseOut||this._onMouseOut.fire()}suppressPendingMouseOut(){this._isMouseIn||(this._suppressNextMouseOut=!0)}addElement(e){if(this._elements.includes(e))return J.jG.None;this._elements.push(e);let t=new J.Cm;return t.add((0,eJ.ko)(e,eJ.Bx.MOUSE_OVER,()=>this._onTargetMouseOver())),t.add((0,eJ.ko)(e,eJ.Bx.MOUSE_LEAVE,()=>this._onTargetMouseLeave())),t.add((0,J.s)(()=>{let t=this._elements.indexOf(e);t>=0&&this._elements.splice(t,1)})),t}}class td{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var tc=i(93252),tu=i(16454);function tg(e){return"object"==typeof e&&"markdown"in e&&"markdownNotSupportedFallback"in e}var tp=i(87408);class tf{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){let n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){if((0,tr.Kg)(e)||(0,eJ.sb)(e)||void 0===e)n=e;else{let s;this._cancellationTokenSource=new tp.Qi;let r=this._cancellationTokenSource.token;if((s=tg(e)?(0,tr.Tn)(e.markdown)?e.markdown(r).then(t=>t??e.markdownNotSupportedFallback):e.markdown??e.markdownNotSupportedFallback:e.element(r))instanceof Promise?(this._hoverWidget||this.show((0,e4.kg)(1762,"Loading..."),t,i),n=await s):n=s,this.isDisposed||r.isCancellationRequested)return}this.show(n,t,i)}}show(e,t,i){let n=this._hoverWidget;if(this.hasContent(e)){let s={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(s,t)}n?.dispose()}hasContent(e){return!!e&&(!(0,tt.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var tm=i(42512),t_=i(16654),tv=i(82461),tb=function(e,t){return function(i,n){t(i,n,e)}};let tC=class extends J.jG{get _currentHover(){return this._hoverStack.at(-1)?.hover}get _currentHoverOptions(){return this._hoverStack.at(-1)?.options}_getContainingHoverIndex(e){let t=(0,eJ.sb)(e)?[e]:e.targetElements;for(let e=this._hoverStack.length-1;e>=0;e--)for(let i of t)if((0,eJ.QX)(i,this._hoverStack[e].hover.domNode))return e;return -1}constructor(e,t,i,n,s,r){super(),this._instantiationService=e,this._configurationService=t,this._keybindingService=n,this._layoutService=s,this._accessibilityService=r,this._hoverStack=[],this._currentDelayedHoverWasShown=!1,this._delayedHovers=new Map,this._managedHovers=new Map,this._register(i.onDidShowContextMenu(()=>this.hideHover())),this._register(t_.f.registerCommandAndKeybindingRule({id:"workbench.action.showHover",weight:0,primary:(0,tm.m5)(2089,2087),handler:()=>{this._showAndFocusHoverForActiveElement()}}))}showInstantHover(e,t,i,n){let s=this._createHover(e,i);if(s)return this._showHover(s,e,t),s.hover}showDelayedHover(e,t){if(void 0===e.id&&(e.id=ty(e.content)),!this._currentDelayedHover||this._currentDelayedHoverWasShown){if(this._currentHover?.isLocked&&0>this._getContainingHoverIndex(e.target))return;if(tw(this._currentHoverOptions)===tw(e))return this._currentHover;if(this._currentHover&&!this._currentHover.isDisposed&&void 0!==this._currentDelayedHoverGroupId&&this._currentDelayedHoverGroupId===t?.groupId)return this.showInstantHover({...e,appearance:{...e.appearance,skipFadeInAnimation:!0}})}else if(this._currentDelayedHover&&tw(this._currentHoverOptions)===tw(e))return this._currentDelayedHover;let i=this._createHover(e,void 0);if(!i){this._currentDelayedHover=void 0,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=void 0;return}this._currentDelayedHover=i.hover,this._currentDelayedHoverWasShown=!1,this._currentDelayedHoverGroupId=t?.groupId;let n=t?.reducedDelay?this._configurationService.getValue("workbench.hover.reducedDelay"):this._configurationService.getValue("workbench.hover.delay");return(0,ts.wR)(n).then(()=>{i.hover&&!i.hover.isDisposed&&(this._currentDelayedHoverWasShown=!0,this._showHover(i,e))}),i.hover}setupDelayedHover(e,t,i){return this._setupDelayedHover(e,i=>{let n={..."function"==typeof t?t():t,target:e};return 2===n.style&&i&&(n.target=tL(e,i)),n},i)}setupDelayedHoverAtMouse(e,t,i){return this._setupDelayedHover(e,i=>({..."function"==typeof t?t():t,target:i?tL(e,i):e}),i)}_setupDelayedHover(e,t,i){let n=new J.Cm;return n.add((0,eJ.ko)(e,eJ.Bx.MOUSE_OVER,e=>{this.showDelayedHover(t(e),{groupId:i?.groupId,reducedDelay:i?.reducedDelay})})),i?.setupKeyboardEvents&&n.add((0,eJ.ko)(e,eJ.Bx.KEY_DOWN,e=>{let i=new e1.Z(e);(i.equals(10)||i.equals(3))&&this.showInstantHover(t(),!0)})),this._delayedHovers.set(e,{show:e=>{this.showInstantHover(t(),e)}}),n.add((0,J.s)(()=>this._delayedHovers.delete(e))),n}_createHover(e,t){let i;if(this._currentDelayedHover?.dispose(),this._currentDelayedHover=void 0,""===e.content)return;if(void 0===e.id&&(e.id=ty(e.content)),this._getContainingHoverIndex(e.target)>=0){if(this._hoverStack.length>=3)return}else if(this._currentHover?.isLocked||tw(this._currentHoverOptions)===tw(e))return;this._lastHoverOptions=e;let n=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),s=(0,eJ.bq)();!t&&n&&s&&!s.classList.contains("monaco-hover")&&(i=s);let r=new J.Cm,o=this._instantiationService.createInstance(tl,e);if(e.persistence?.sticky&&(o.isLocked=!0),e.position?.hoverPosition&&!(0,tr.Et)(e.position.hoverPosition)&&(e.target={targetElements:(0,eJ.sb)(e.target)?[e.target]:e.target.targetElements,x:e.position.hoverPosition.x+10}),o.onDispose(()=>{let e=this._hoverStack.findIndex(e=>e.hover===o);if(e>=0){let t=this._hoverStack[e];for((0,eJ.nR)(o.domNode)&&t.lastFocusedElementBeforeOpen&&t.lastFocusedElementBeforeOpen.focus();this._hoverStack.length>e+1;){let e=this._hoverStack.pop();e.contextView.dispose(),e.hover.dispose()}this._hoverStack.splice(e,1),t.contextView.dispose()}r.dispose()},void 0,r),!e.container){let t=(0,eJ.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,eJ.zk)(t))}if(r.add((0,eJ.ko)((0,eJ.zk)(e.container).document,eJ.Bx.MOUSE_DOWN,e=>{(0,eJ.QX)(e.target,o.domNode)||this._hideHoverAndDescendants(o)})),!e.persistence?.sticky){if("targetElements"in e.target)for(let t of e.target.targetElements)r.add((0,eJ.ko)(t,eJ.Bx.CLICK,()=>this._hideHoverAndDescendants(o)));else r.add((0,eJ.ko)(e.target,eJ.Bx.CLICK,()=>this._hideHoverAndDescendants(o)));let t=(0,eJ.bq)();if(t){let i=(0,eJ.zk)(t).document;r.add((0,eJ.ko)(t,eJ.Bx.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),r.add((0,eJ.ko)(i,eJ.Bx.KEY_DOWN,t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown))),r.add((0,eJ.ko)(t,eJ.Bx.KEY_UP,e=>this._keyUp(e,o))),r.add((0,eJ.ko)(i,eJ.Bx.KEY_UP,e=>this._keyUp(e,o)))}}if("IntersectionObserver"in X.G){let t=new IntersectionObserver(e=>this._intersectionChange(e,o),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,J.s)(()=>t.disconnect()))}return{hover:o,lastFocusedElementBeforeOpen:i,store:r}}_showHover(e,t,i){let{hover:n,lastFocusedElementBeforeOpen:s,store:r}=e,o=this._getContainingHoverIndex(t.target),a=o>=0;if(a){for(let e=this._hoverStack.length-1;e>o;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=o+1}else this._hideAllHovers();if(a)for(let e=0;e<=o;e++)r.add(this._hoverStack[e].hover.addMouseTrackingElement(n.domNode));let l=t.container??this._layoutService.getContainer((0,eJ.zk)((0,eJ.sb)(t.target)?t.target:t.target.targetElements[0])),h=new tc.vx(l,1);this._hoverStack.push({hover:n,options:t,contextView:h,lastFocusedElementBeforeOpen:s});let d=new tx(n,i,this._hoverStack.length);if(h.show(d),r.add(n.onRequestLayout(()=>h.layout())),i||t.persistence?.sticky){let e=(0,eJ.zk)(l);r.add((0,eJ.ko)(e,eJ.Bx.RESIZE,()=>h.layout()))}if(t.onDidHide){let e=t.onDidHide;r.add((0,J.s)(()=>e()))}t.onDidShow?.()}_hideHoverAndDescendants(e){let t=this._hoverStack.findIndex(t=>t.hover===e);if(!(t<0)){for(let e=this._hoverStack.length-1;e>=t;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=t}}_hideAllHovers(){for(let e=this._hoverStack.length-1;e>=0;e--)this._hoverStack[e].hover.dispose();this._hoverStack.length=0}hideHover(e){0===this._hoverStack.length||!e&&this._currentHover?.isLocked||this.doHideHover()}doHideHover(){let e=this._hoverStack.length;this._hoverStack[e-1]?.hover.dispose(),this._hoverStack.length=e-1}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showInstantHover(this._lastHoverOptions,!0,!0)}_showAndFocusHoverForActiveElement(){let e=(0,eJ.bq)();for(;e;){let t=this._delayedHovers.get(e)??this._managedHovers.get(e);if(t)return void t.show(!0);e=e.parentElement}}_keyDown(e,t,i){if("Alt"===e.key){for(let e of this._hoverStack)e.hover.isLocked=!0;return}let n=new e1.Z(e);if(!this._keybindingService.resolveKeyboardEvent(n).getSingleModifierDispatchChords().some(e=>!!e)&&0===this._keybindingService.softDispatch(n,n.target).kind&&i&&(!this._currentHoverOptions?.trapFocus||"Tab"!==e.key)){let e=this._hoverStack.find(e=>e.hover===t);this._hideHoverAndDescendants(t),e?.lastFocusedElementBeforeOpen?.focus()}}_keyUp(e,t){if("Alt"===e.key){for(let e of this._hoverStack)e.options.persistence?.sticky||(e.hover.isLocked=!1);if(!this._hoverStack.some(e=>e.hover.isMouseIn)){let e=this._hoverStack[this._hoverStack.length-1];this._hideAllHovers(),e?.lastFocusedElementBeforeOpen?.focus()}}}setupManagedHover(e,t,i,n){let s,r;if(e.showNativeHover){var o=t,a=i;function l(e){e?o.setAttribute("title",e):o.removeAttribute("title")}return l(tS(a)),{update:e=>l(tS(e)),show:()=>{},hide:()=>{},dispose:()=>l(void 0)}}t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),t.title="");let h=(t,i)=>{let n=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(s?.dispose(),s=void 0),n&&(e.onDidHideHover?.(),r=void 0)},d=(s,o,a,l)=>new ts.pc(async()=>{(!r||r.isDisposed)&&(r=new tf(e,a||t,s>0),await r.update("function"==typeof i?i():i,o,{...n,trapFocus:l}))},s),c=new J.Cm,u=!1;c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_DOWN,()=>{u=!0,h(!0,!0)},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_UP,()=>{u=!1},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_LEAVE,e=>{u=!1,h(!1,e.fromElement===t)},!0)),c.add((0,eJ.ko)(t,eJ.Bx.MOUSE_OVER,n=>{if(s)return;let r=new J.Cm,o={targetElements:[t],dispose:()=>{}};(void 0===e.placement||"mouse"===e.placement)&&r.add((0,eJ.ko)(t,eJ.Bx.MOUSE_MOVE,e=>{o.x=e.x+10,tk(e,t)||h(!0,!0)},!0)),s=r,tk(n,t)&&r.add(d("function"==typeof e.delay?e.delay(i):e.delay,!1,o))},!0)),(0,eJ.yD)(t)||c.add((0,eJ.ko)(t,eJ.Bx.FOCUS,n=>{if(u||s||(r?.isDisposed&&(r=void 0),(0,eJ.sb)(n.relatedTarget)&&n.relatedTarget.closest(".monaco-hover")||!n.relatedTarget||!tk(n,t)))return;let o=new J.Cm;o.add((0,eJ.ko)(t,eJ.Bx.BLUR,()=>h(!0,!0),!0)),o.add(d("function"==typeof e.delay?e.delay(i):e.delay,!1,{targetElements:[t],dispose:()=>{}})),s=o},!0));let g={show:e=>{h(!1,!0),d(0,e,void 0,e)},hide:()=>{h(!0,!0)},update:async(e,t)=>{i=e,await r?.update(i,void 0,t)},dispose:()=>{this._managedHovers.delete(t),c.dispose(),h(!0,!0)}};return this._managedHovers.set(t,g),g}showManagedHover(e){let t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach(e=>e.dispose()),super.dispose()}};function tw(e){if(void 0!==e)return e?.id??e}function ty(e){if(!(0,eJ.sb)(e))return"string"==typeof e?e.toString():e.value}function tS(e){let t="function"==typeof e?e():e;return(0,tr.Kg)(t)?(0,tv.pS)(t):tg(t)?t.markdownNotSupportedFallback:void 0}tC=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tb(0,eZ._Y),tb(1,eD.pG),tb(2,eY.Z),tb(3,e0.b),tb(4,tu.x),tb(5,tn.j)],tC);class tx{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1,i=1){this._hover=e,this._focus=t,this.layer=i}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function tk(e,t){return(0,eJ.sb)(e.target)&&function(e,t){for(t=t??(0,eJ.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(e.target,t)===t}function tL(e,t){return{targetElements:[e],x:t.x+10}}(0,ez.v)(eQ.TN,tC,1),(0,eU.zy)((e,t)=>{let i=e.getColor(eG.oZ);i&&(t.addRule(`.monaco-hover.workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-hover.workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))});var tD=i(69320),tE=i(7055),tN=i(35004);let tI=(0,eZ.u1)("dialogService");var tT=i(28400),tM=i(40775),tR=function(e,t){return function(i,n){t(i,n,e)}};function tA(e){return e.scheme===tE.ny.file?e.fsPath:e.path}let tO=0;class tP{constructor(e,t,i,n,s,r,o){this.id=++tO,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tF{constructor(e,t){this.resourceLabel=e,this.reason=t}}class tB{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push((0,e4.kg)(2099,"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push((0,e4.kg)(2100,"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class tW{constructor(e,t,i,n,s,r,o){this.id=++tO,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new tB),this.removedResources.has(t)||this.removedResources.set(t,new tF(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new tB),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tF(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class tV{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new tM.To(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,n=0,s=-1;for(let r=0,o=this._past.length;r<o;r++,n++){let o=this._past[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=r),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let s=this._future.length-1;s>=0;s--,n++){let o=this._future[s];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,r=s),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}-1!==s&&(this._past=this._past.slice(0,s)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class tH{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let tz=new tV("","");tz.locked=!0;let tU=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=tM.I_.None,i=tM.Ym.None){if(0===e.type){let n=tA(e.resource),s=this.getUriComparisonKey(e.resource);this._pushElement(new tP(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let n=new Set,s=[],r=[];for(let t of e.resources){let e=tA(t),i=this.getUriComparisonKey(t);n.has(i)||(n.add(i),s.push(e),r.push(i))}1===s.length?this._pushElement(new tP(e,s[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new tW(e,s,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i,n=e.resourceLabels[t],s=e.strResources[t];this._editStacks.has(s)?i=this._editStacks.get(s):(i=new tV(n,s),this._editStacks.set(s,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let e of i){let t=tA(e.resource),i=this.getUriComparisonKey(e.resource),s=new tP(e,t,i,0,0,0,0);n.set(s.strResource,s)}for(let i of e.strResources)t&&t.has(i)||this._editStacks.get(i).splitPastWorkspaceElement(e,n)}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),n=new Map;for(let e of i){let t=tA(e.resource),i=this.getUriComparisonKey(e.resource),s=new tP(e,t,i,0,0,0,0);n.set(s.strResource,s)}for(let i of e.strResources)t&&t.has(i)||this._editStacks.get(i).splitFutureWorkspaceElement(e,n)}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let n=this.getUriComparisonKey(e);this._editStacks.has(n)&&this._editStacks.get(n).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new tM.To(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestPastElement();r&&r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,tD.dz)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){let r,o=this._acquireLocks(i);try{r=t()}catch(t){return o(),n.dispose(),this._onError(t,e)}return r?r.then(()=>(o(),n.dispose(),s()),t=>(o(),n.dispose(),this._onError(t,e))):(o(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if(void 0===e.actual.prepareUndoRedo)return J.jG.None;let t=e.actual.prepareUndoRedo();return void 0===t?J.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(J.jG.None);let i=e.actual.prepareUndoRedo();return i?(0,J.Xm)(i)?t(i):i.then(e=>t(e)):t(J.jG.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||tz);return new tH(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new t$(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new t$}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,(0,e4.kg)(2101,"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,(0,e4.kg)(2102,"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let s=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&s.push(e.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2103,"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2104,"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,(0,e4.kg)(2105,"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){let s;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){var r;let s;(r=s||(s={}))[r.All=0]="All",r[r.This=1]="This",r[r.Cancel=2]="Cancel";let{result:o}=await this._dialogService.prompt({type:tN.A.Info,message:(0,e4.kg)(2106,"Would you like to undo '{0}' across all files?",t.label),buttons:[{label:(0,e4.kg)(2107,"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:(0,e4.kg)(2108,"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(o===s.Cancel)return;if(o===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let a=this._checkWorkspaceUndo(e,t,i,!1);if(a)return a.returnValue;n=!0}try{s=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let o=this._checkWorkspaceUndo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))}_resourceUndo(e,t,i){if(!t.isValid)return void e.flushAllElements();if(e.locked){let e=(0,e4.kg)(2109,"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new tH([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let n=this._editStacks.get(e),s=n.getClosestPastElement();if(s){if(s.groupId){let[e,n]=this._findClosestUndoElementInGroup(s.groupId);if(s!==e&&n)return this._undo(n,t,i)}return(s.sourceId!==t||s.confirmBeforeUndo)&&!i?this._confirmAndContinueUndo(e,t,s):1===s.type?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:(0,e4.kg)(2110,"Would you like to undo '{0}'?",i.label),primaryButton:(0,e4.kg)(2111,"&&Yes"),cancelButton:(0,e4.kg)(2112,"No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=n)}return[t,i]}canRedo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new t$(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new t$}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,(0,e4.kg)(2113,"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,(0,e4.kg)(2114,"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let s=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&s.push(e.resourceLabel);if(s.length>0)return this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2115,"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2116,"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,(0,e4.kg)(2117,"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}_resourceRedo(e,t){if(!t.isValid)return void e.flushAllElements();if(e.locked){let e=(0,e4.kg)(2118,"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new tH([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[n,s]of this._editStacks){let r=s.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof tM.Ym){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}}};tU=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tR(0,tI),tR(1,tT.Ot)],tU);class t${constructor(e){this.returnValue=e}}(0,ez.v)(tM.$D,tU,1);var tK=i(43868),tG=i(20674),tj=i(37084),tq=i(10134),tQ=i(40044),tY=function(e,t){return function(i,n){t(i,n,e)}};let tZ=(0,eZ.u1)("IInlineCompletionsService"),tX=new tG.N1("inlineCompletions.snoozed",!1,(0,e4.kg)(83,"Whether inline completions are currently snoozed")),tJ=class extends J.jG{get snoozeTimeLeft(){return void 0===this._snoozeTimeEnd?0:Math.max(0,this._snoozeTimeEnd-Date.now())}constructor(e,t){super(),this._contextKeyService=e,this._telemetryService=t,this._onDidChangeIsSnoozing=this._register(new eX.vl),this.onDidChangeIsSnoozing=this._onDidChangeIsSnoozing.event,this._snoozeTimeEnd=void 0,this._recentCompletionIds=[],this._timer=this._register(new ts.pc);const i=tX.bindTo(this._contextKeyService);this._register(this.onDidChangeIsSnoozing(()=>i.set(this.isSnoozing())))}setSnoozeDuration(e){if(e<0)throw new tD.D7(`Invalid snooze duration: ${e}. Duration must be non-negative.`);if(0===e)return void this.cancelSnooze();let t=this.isSnoozing(),i=this.snoozeTimeLeft;this._snoozeTimeEnd=Date.now()+e,t||this._onDidChangeIsSnoozing.fire(!0),this._timer.cancelAndSet(()=>{if(this.isSnoozing())throw new tD.D7("Snooze timer did not fire as expected");this._onDidChangeIsSnoozing.fire(!1)},this.snoozeTimeLeft+1),this._reportSnooze(e-i,e)}isSnoozing(){return this.snoozeTimeLeft>0}cancelSnooze(){this.isSnoozing()&&(this._reportSnooze(-this.snoozeTimeLeft,0),this._snoozeTimeEnd=void 0,this._timer.cancel(),this._onDidChangeIsSnoozing.fire(!1))}reportNewCompletion(e){this._lastCompletionId=e,this._recentCompletionIds.unshift(e),this._recentCompletionIds.length>5&&this._recentCompletionIds.pop()}_reportSnooze(e,t){let i=Math.round(e/1e3),n=Math.round(t/1e3);this._telemetryService.publicLog2("inlineCompletions.snooze",{deltaSeconds:i,totalSeconds:n,lastCompletionId:this._lastCompletionId,recentCompletionIds:this._recentCompletionIds})}};tJ=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([tY(0,tG.fN),tY(1,tQ.k)],tJ),(0,ez.v)(tZ,tJ,1);let t0="inlineCompletions.lastSnoozeDuration";class t1 extends tK.L{static{this.ID="editor.action.inlineSuggest.snooze"}constructor(){super({id:t1.ID,title:(0,e4.aS)(97,"Snooze Inline Suggestions"),precondition:tG.M$.true(),f1:!0})}async run(e,...t){let i,n=e.get(tj.GK),s=e.get(tZ),r=e.get(tq.CS);t.length>0&&"number"==typeof t[0]&&(i=6e4*t[0]),i||(i=await this.getDurationFromUser(n,r)),i&&s.setSnoozeDuration(i)}async getDurationFromUser(e,t){let i=t.getNumber(t0,0,3e5),n=[{label:(0,e4.kg)(84,"1 minute"),id:"1",value:6e4},{label:(0,e4.kg)(85,"5 minutes"),id:"5",value:3e5},{label:(0,e4.kg)(86,"10 minutes"),id:"10",value:6e5},{label:(0,e4.kg)(87,"15 minutes"),id:"15",value:9e5},{label:(0,e4.kg)(88,"30 minutes"),id:"30",value:18e5},{label:(0,e4.kg)(89,"60 minutes"),id:"60",value:36e5}],s=n;if(i>0&&!n.some(e=>e.value===i)){let e={label:(0,e4.kg)(90,"{0} minutes (Last used)",i/6e4),id:"last-custom",value:i,description:(0,e4.kg)(91,"Last used custom duration")},t=n.findIndex(e=>e.value>i);s=-1===t?[...n,e]:[...n.slice(0,t),e,...n.slice(t)]}s.push({label:(0,e4.kg)(92,"Custom..."),id:"custom",value:-1});let r=await e.pick(s,{placeHolder:(0,e4.kg)(93,"Select snooze duration for Inline Suggestions"),activeItem:s.find(e=>e.value===i)});if(r)return"custom"===r.id?this.getCustomDurationFromUser(e,t):(t.store(t0,r.value,0,0),r.value)}async getCustomDurationFromUser(e,t){let i=await e.input({placeHolder:(0,e4.kg)(94,"Duration in minutes (e.g. 90)"),prompt:(0,e4.kg)(95,"Enter snooze duration in minutes"),validateInput:async e=>{let t=Number(e);if(isNaN(t)||t<=0||!Number.isFinite(t))return(0,e4.kg)(96,"Please enter a positive number")}});if(i){let e=6e4*Number(i);return t.store(t0,e,0,0),e}}}class t2 extends tK.L{static{this.ID="editor.action.inlineSuggest.cancelSnooze"}constructor(){super({id:t2.ID,title:(0,e4.aS)(98,"Cancel Snooze Inline Suggestions"),precondition:tX,f1:!0})}async run(e){e.get(tZ).cancelSnooze()}}i(53556);var t4=i(17873),t5=i(84723),t3=i(15928);let t8="[/\\\\]",t9="[^/\\\\]",t7=/\//g;function t6(e,t){switch(e){case 0:return"";case 1:return`${t9}*?`;default:return`(?:${t8}|${t9}+${t8}${t?`|${t8}${t9}+`:""})*?`}}function ie(e,t){if(!e)return[];let i=[],n=!1,s=!1,r="";for(let o of e){switch(o){case t:if(!n&&!s){i.push(r),r="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}r+=o}return r&&i.push(r),i}let it=/^\*\*\/\*\.[\w\.-]+$/,ii=/^\*\*\/([\w\.-]+)\/?$/,is=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,ir=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,io=/^\*\*((\/[\w\.-]+)+)\/?$/,ia=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,il=new t5.qK(1e4),ih=function(){return!1},id=function(){return null};function ic(e,t){var i,n,s,r,o,a;let l,h,d,c,u,g;if(!e)return id;l=(l="string"!=typeof e?e.pattern:e).trim();let p=t.ignoreCase??!1,f={...t,equals:p?ee.Q_:(e,t)=>e===t,endsWith:p?ee.Dp:(e,t)=>e.endsWith(t),isEqualOrParent:(e,i)=>(0,t4._1)(e,i,t.ignoreCase??!ti.j9)},m=`${p?l.toLowerCase():l}_${!!t.trimForExclusions}_${p}`,_=il.get(m);return _||(_=it.test(l)?(i=l.substring(4),n=l,s=f,function(e,t){return"string"==typeof e&&s.endsWith(e,i)?n:null}):(h=ii.exec(ig(l,f)))?(r=h[1],o=l,a=f,d=`/${r}`,c=`\\${r}`,(u=function(e,t){return"string"!=typeof e?null:t?a.equals(t,r)?o:null:a.equals(e,r)||a.endsWith(e,d)||a.endsWith(e,c)?o:null}).basenames=g=[r],u.patterns=[o],u.allBasenames=g,u):(t.trimForExclusions?ir:is).test(l)?function(e,t){let i=i_(e.slice(1,-1).split(",").map(e=>ic(e,t)).filter(e=>e!==id),e),n=i.length;if(!n)return id;if(1===n)return i[0];let s=function(t,n){for(let s=0,r=i.length;s<r;s++)if(i[s](t,n))return e;return null},r=i.find(e=>!!e.allBasenames);r&&(s.allBasenames=r.allBasenames);let o=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(s.allPaths=o),s}(l,f):(h=io.exec(ig(l,f)))?ip(h[1].substring(1),l,!0,f):(h=ia.exec(ig(l,f)))?ip(h[1],l,!1,f):function(e,t){try{let i=RegExp(`^${function e(t){if(!t)return"";let i="",n=ie(t,"/");if(n.every(e=>"**"===e))i=".*";else{let t=!1;n.forEach((s,r)=>{if("**"===s){if(t)return;i+=t6(2,r===n.length-1)}else{let t=!1,o="",a=!1,l="";for(let n of s){if("}"!==n&&t){o+=n;continue}if(a&&("]"!==n||!l)){let e;e="-"===n?n:"^"!==n&&"!"!==n||l?"/"===n?"":(0,ee.bm)(n):"^",l+=e;continue}switch(n){case"{":t=!0;continue;case"[":a=!0;continue;case"}":{let n=ie(o,","),s=`(?:${n.map(t=>e(t)).join("|")})`;i+=s,t=!1,o="";break}case"]":i+="["+l+"]",a=!1,l="";break;case"?":i+=t9;continue;case"*":i+=t6(1);continue;default:i+=(0,ee.bm)(n)}}r<n.length-1&&("**"!==n[r+1]||r+2<n.length)&&(i+=t8)}t="**"===s})}return i}(e)}$`,t.ignoreCase?"i":void 0);return function(t){return i.lastIndex=0,"string"==typeof t&&i.test(t)?e:null}}catch{return id}}(l,f),il.set(m,_)),iu(_,e,f)}function iu(e,t,i){if("string"==typeof t)return e;let n=function(n,s){return i.isEqualOrParent(n,t.base)?e((0,ee.NB)(n.substring(t.base.length),t3.Vn),s):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function ig(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substring(0,e.length-2):e}function ip(e,t,i,n){let s,r=t3.Vn===t3.SA.sep,o=r?e:e.replace(t7,t3.Vn),a=t3.Vn+o,l=t3.SA.sep+e;return(s=i?function(i,s){return"string"==typeof i&&(n.equals(i,o)||n.endsWith(i,a)||!r&&(n.equals(i,e)||n.endsWith(i,l)))?t:null}:function(i,s){return"string"==typeof i&&(n.equals(i,o)||!r&&n.equals(i,e))?t:null}).allPaths=[(i?"*/":"./")+e],s}function im(e,t={}){var i;if(!e)return ih;if("string"==typeof e||(i=e)&&"string"==typeof i.base&&"string"==typeof i.pattern){let i=ic(e,t);if(i===id)return ih;let n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){let i=i_(Object.getOwnPropertyNames(e).map(i=>(function(e,t,i){if(!1===t)return id;let n=ic(e,i);if(n===id)return id;if("boolean"==typeof t)return n;if(t){let i=t.when;if("string"==typeof i){let t=(t,s,r,o)=>{if(!o||!n(t,s))return null;let a=o(i.replace("$(basename)",()=>r));return(0,ts.Qg)(a)?a.then(t=>t?e:null):a?e:null};return t.requiresSiblings=!0,t}}return n})(i,e[i],t)).filter(e=>e!==id)),n=i.length;if(!n)return id;if(!i.some(e=>!!e.requiresSiblings)){if(1===n)return i[0];let e=function(e,t){let n;for(let s=0,r=i.length;s<r;s++){let r=i[s](e,t);if("string"==typeof r)return r;(0,ts.Qg)(r)&&(n||(n=[]),n.push(r))}return n?(async()=>{for(let e of n){let t=await e;if("string"==typeof t)return t}return null})():null},t=i.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);let s=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}let s=function(e,t,n){let s,r;for(let o=0,a=i.length;o<a;o++){let a=i[o];a.requiresSiblings&&n&&(t||(t=(0,t3.P8)(e)),s||(s=t.substring(0,t.length-(0,t3.LC)(e).length)));let l=a(e,t,s,n);if("string"==typeof l)return l;(0,ts.Qg)(l)&&(r||(r=[]),r.push(l))}return r?(async()=>{for(let e of r){let t=await e;if("string"==typeof t)return t}return null})():null},r=i.find(e=>!!e.allBasenames);r&&(s.allBasenames=r.allBasenames);let o=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(s.allPaths=o),s}(e,t)}function i_(e,t){let i,n=e.filter(e=>!!e.basenames);if(n.length<2)return e;let s=n.reduce((e,t)=>{let i=t.basenames;return i?e.concat(i):e},[]);if(t){i=[];for(let e=0,n=s.length;e<n;e++)i.push(t)}else i=n.reduce((e,t)=>{let i=t.patterns;return i?e.concat(i):e},[]);let r=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){let t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substring(i)}let n=s.indexOf(t);return -1!==n?i[n]:null};r.basenames=s,r.patterns=i,r.allBasenames=s;let o=e.filter(e=>!e.basenames);return o.push(r),o}class iv{constructor(e,t,i,n,s){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=s}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class ib{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new eX.vl}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,J.s)(()=>{if(i){let e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),n=i?new iv(e.uri,e.getLanguageId(),i.uri,i.type,t):new iv(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(n)){for(let i of(this._lastCandidate=n,this._entries))if(i._score=function e(t,i,n,s,r,o){if(Array.isArray(t)){let a=0;for(let l of t){let t=e(l,i,n,s,r,o);if(10===t)return t;t>a&&(a=t)}return a}if("string"==typeof t)return s?"*"===t?5:10*(t===n):0;if(!t)return 0;{let{language:e,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:c}=t;if(!s&&!d)return 0;c&&r&&(i=r);let u=0;if(h)if(h===i.scheme)u=10;else{if("*"!==h)return 0;u=5}if(e)if(e===n)u=10;else{if("*"!==e)return 0;u=Math.max(u,5)}if(c)if(c===o)u=10;else{if("*"!==c||void 0===o)return 0;u=Math.max(u,5)}if(l){var a;let e;if(!((e="string"==typeof l?l:{...l,base:(0,t3.S8)(l.base)})===i.fsPath||(a=i.fsPath,e&&"string"==typeof a&&im(e,void 0)(a))))return 0;u=10}return u}}(i.selector,n.uri,n.languageId,(0,ep.vd)(e),n.notebookUri,n.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(ib._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:iC(e.selector)&&!iC(t.selector)?1:!iC(e.selector)&&iC(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function iC(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(iC):!!e.isBuiltin)}var iw=i(3489);class iy{constructor(){this.referenceProvider=new ib(this._score.bind(this)),this.renameProvider=new ib(this._score.bind(this)),this.newSymbolNamesProvider=new ib(this._score.bind(this)),this.codeActionProvider=new ib(this._score.bind(this)),this.definitionProvider=new ib(this._score.bind(this)),this.typeDefinitionProvider=new ib(this._score.bind(this)),this.declarationProvider=new ib(this._score.bind(this)),this.implementationProvider=new ib(this._score.bind(this)),this.documentSymbolProvider=new ib(this._score.bind(this)),this.inlayHintsProvider=new ib(this._score.bind(this)),this.colorProvider=new ib(this._score.bind(this)),this.codeLensProvider=new ib(this._score.bind(this)),this.documentFormattingEditProvider=new ib(this._score.bind(this)),this.documentRangeFormattingEditProvider=new ib(this._score.bind(this)),this.onTypeFormattingEditProvider=new ib(this._score.bind(this)),this.signatureHelpProvider=new ib(this._score.bind(this)),this.hoverProvider=new ib(this._score.bind(this)),this.documentHighlightProvider=new ib(this._score.bind(this)),this.multiDocumentHighlightProvider=new ib(this._score.bind(this)),this.selectionRangeProvider=new ib(this._score.bind(this)),this.foldingRangeProvider=new ib(this._score.bind(this)),this.linkProvider=new ib(this._score.bind(this)),this.inlineCompletionsProvider=new ib(this._score.bind(this)),this.completionProvider=new ib(this._score.bind(this)),this.linkedEditingRangeProvider=new ib(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new ib(this._score.bind(this)),this.documentSemanticTokensProvider=new ib(this._score.bind(this)),this.documentDropEditProvider=new ib(this._score.bind(this)),this.documentPasteEditProvider=new ib(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,ez.v)(iw.u,iy,1);var iS=i(48514),ix=i(8998);class ik{constructor(e=5){this.timesPerSecond=e,this._lastRun=0,this._minimumTimeBetweenRuns=1e3/e}runIfNotLimited(e){let t=Date.now();t-this._lastRun>=this._minimumTimeBetweenRuns&&(this._lastRun=t,e())}}class iL{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){let e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){let e=this._getTokenCount();if(0===e)return null;let t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new ix.Q(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){let n=t+Math.floor((i-t)/2),s=this._getDeltaLine(n);if(s<e)t=n+1;else if(s>e)i=n-1;else{let s=n;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let r=n;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new iD(this._tokens.subarray(4*s,4*r+4))}}return this._getDeltaLine(t)===e?new iD(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){let s=this._tokens,r=this._tokenCount,o=0,a=!1,l=0;for(let h=0;h<r;h++){let r=4*h,d=s[r],c=s[r+1],u=s[r+2],g=s[r+3];if((d>e||d===e&&u>=t)&&(d<i||d===i&&c<=n))a=!0;else{if(0===o&&(l=d),a){let e=4*o;s[e]=d-l,s[e+1]=c,s[e+2]=u,s[e+3]=g}else 0!==l&&(s[r]=d-l);o++}}return this._tokenCount=o,l}split(e,t,i,n){let s=this._tokens,r=this._tokenCount,o=[],a=[],l=o,h=0,d=0;for(let o=0;o<r;o++){let r=4*o,c=s[r],u=s[r+1],g=s[r+2],p=s[r+3];if(c>e||c===e&&g>=t)if(c<i||c===i&&u<=n)continue;else l!==a&&(l=a,h=0,d=c);l[h++]=c-d,l[h++]=u,l[h++]=g,l[h++]=p}return[new iL(new Uint32Array(o)),new iL(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,n,s){let r=this._tokens,o=this._tokenCount,a=n-t,l=0,h=!1;for(let d=0;d<o;d++){let c=4*d,u=r[c],g=r[c+1],p=r[c+2],f=r[c+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===n&&p>s?p-=s-i:p=i;else if(u===t&&g===i)if(u===n&&p>s)p-=s-i;else{h=!0;continue}else if(u<n||u===n&&g<s)if(u===n&&p>s)u=t,p=(g=i)+(p-s);else{h=!0;continue}else if(u>n){if(0===a&&!h){l=o;break}u-=a}else if(u===n&&g>=s)e&&0===u&&(g+=e,p+=e),u-=a,g-=s-i,p-=s-i;else throw Error("Not possible!");let m=4*l;r[m]=u,r[m+1]=g,r[m+2]=p,r[m+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,s,r){let o=0===i&&1===n&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,l=this._tokenCount;for(let r=0;r<l;r++){let l=4*r,h=a[l],d=a[l+1],c=a[l+2];if(!(h<e)&&(h!==e||!(c<t))){if(h===e&&c===t)if(!o)continue;else c+=1;else if(h===e&&d<t&&t<c)0===i?c+=n:c=t;else{if(h===e&&d===t&&o)continue;if(h===e)if(h+=i,0===i)d+=n,c+=n;else{let e=c-d;c=(d=s+(d-t))+e}else h+=i}a[l]=h,a[l+1]=d,a[l+2]=c}}}static{this._rateLimiter=new ik(10/60)}reportIfInvalid(e,t){for(let i=0;i<this._tokenCount;i++){let n=this._getDeltaLine(i)+t;n<1?iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber < 1")}):n>e.getLineCount()?iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: lineNumber > model.getLineCount()")}):this._getEndCharacter(i)>e.getLineLength(n)&&iL._rateLimiter.runIfNotLimited(()=>{console.error("Invalid Semantic Tokens Data From Extension: end character > model.getLineLength(lineNumber)")})}}}class iD{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var iE=function(e,t){return function(i,n){t(i,n,e)}};let iN=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new iT}getMetadata(e,t,i){let n,s=this._languageService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,s);if(r)n=r.metadata;else{let r=this._legend.tokenTypes[e],o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;let s=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,i);void 0===s?n=0x7fffffff:(n=0,void 0!==s.italic&&(n|=1|!!s.italic<<11),void 0!==s.bold&&(n|=2|2*!!s.bold<<11),void 0!==s.underline&&(n|=4|4*!!s.underline<<11),void 0!==s.strikethrough&&(n|=8|8*!!s.strikethrough<<11),s.foreground&&(n|=16|s.foreground<<15),0===n&&(n=0x7fffffff))}else n=0x7fffffff,r="not-in-legend";this._hashTable.add(e,t,s,n)}return n}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};iN=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iE(1,eU.Gy),iE(2,ec.L),iE(3,iS.rr)],iN);class iI{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class iT{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=iT._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<iT._SIZES.length?2/3*this._currentLength:0),this._elements=[],iT._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){let n=this._hashFunc(e,t,i),s=this._elements[n];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===i)return s;s=s.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){let e=this._elements;for(let t of(this._currentLengthIndex++,this._currentLength=iT._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<iT._SIZES.length?2/3*this._currentLength:0),this._elements=[],iT._nullOutEntries(this._elements,this._currentLength),e)){let e=t;for(;e;){let t=e.next;e.next=null,this._add(e),e=t}}}this._add(new iI(e,t,i,n))}_add(e){let t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}let iM=(0,eZ.u1)("semanticTokensStylingService");var iR=function(e,t){return function(i,n){t(i,n,e)}};let iA=class extends J.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new iN(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};iA=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iR(0,eU.Gy),iR(1,iS.rr),iR(2,ec.L)],iA),(0,ez.v)(iM,iA,1);var iO=i(4990);let iP=class extends J.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new eX.vl),this._onCodeEditorAdd=this._register(new eX.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new eX.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new eX.vl),this._onDiffEditorAdd=this._register(new eX.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new eX.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new iO.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){(delete this._codeEditors[e.getId()])&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){(delete this._diffEditors[e.getId()])&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;for(let t of this.listCodeEditors()){if(t.hasTextFocus())return t;t.hasWidgetFocus()&&(e=t)}return e}removeDecorationType(e){let t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorationsByType(e))))}setModelProperty(e,t,i){let n,s=e.toString();this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){let i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(let n of this._codeEditorOpenHandlers){let s=await n(e,t,i);if(null!==s)return s}return null}registerCodeEditorOpenHandler(e){let t=this._codeEditorOpenHandlers.unshift(e);return(0,J.s)(t)}};iP=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(a=eU.Gy,function(e,t){a(e,t,0)})],iP);var iF=function(e,t){return function(i,n){t(i,n,e)}};let iB=class extends iP{constructor(e,t){super(t),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(e,t,i)=>t?this.doOpenEditor(t,e):null))}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let i=t.resource.scheme;if(i===tE.ny.http||i===tE.ny.https)return(0,eJ.jh)(t.resource.toString()),e}return null}let i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{let t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};iB=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iF(0,tG.fN),iF(1,eU.Gy)],iB),(0,ez.v)(es.T,iB,0);var iW=i(12549),iV=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},iH=function(e,t){return function(i,n){t(i,n,e)}};let iz=class{get mainContainer(){return this._codeEditorService.listCodeEditors().at(0)?.getContainerDomNode()??X.G.document.body}get activeContainer(){let e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return(0,eJ.tG)(this.mainContainer)}get activeContainerDimension(){return(0,eJ.tG)(this.activeContainer)}get containers(){return(0,iW.Yc)(this._codeEditorService.listCodeEditors().map(e=>e.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=eX.Jh.None,this.onDidLayoutActiveContainer=eX.Jh.None,this.onDidLayoutContainer=eX.Jh.None,this.onDidChangeActiveContainer=eX.Jh.None,this.onDidAddContainer=eX.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};iz=iV([iH(0,es.T)],iz);let iU=class extends iz{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};iU=iV([iH(1,es.T)],iU),(0,ez.v)(tu.x,iz,1);var i$=i(70476),iK=i(11196),iG=function(e,t){return function(i,n){t(i,n,e)}};let ij=class extends J.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=this._register(new eX.vl),this._onDidChangeReducedMotion=this._register(new eX.vl),this._onDidChangeReducedTransparency=this._register(new eX.vl),this._onDidChangeLinkUnderline=this._register(new eX.vl),this._accessibilityModeEnabledContext=tn.f.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire()),e.affectsConfiguration("workbench.reduceTransparency")&&(this._configTransparencyReduced=this._configurationService.getValue("workbench.reduceTransparency"),this._onDidChangeReducedTransparency.fire())})),n(),this._register(this.onDidChangeScreenReaderOptimized(()=>n()));const s=X.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion");const r=X.G.matchMedia("(prefers-reduced-transparency: reduce)");this._systemTransparencyReduced=r.matches,this._configTransparencyReduced=this._configurationService.getValue("workbench.reduceTransparency"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(s),this.initReducedTransparencyListeners(r),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,eJ.ko)(e,"change",()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()}));let t=()=>{let e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("monaco-reduce-motion",e),this._layoutService.mainContainer.classList.toggle("monaco-enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initReducedTransparencyListeners(e){this._register((0,eJ.ko)(e,"change",()=>{this._systemTransparencyReduced=e.matches,"auto"===this._configTransparencyReduced&&this._onDidChangeReducedTransparency.fire()}));let t=()=>{let e=this.isTransparencyReduced();this._layoutService.mainContainer.classList.toggle("monaco-reduce-transparency",e)};t(),this._register(this.onDidChangeReducedTransparency(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){let e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}}));let e=()=>{let e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines(()=>e()))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let e=this.getAccessibilitySupportConfigurationValue();return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupportConfigurationValue(){let e=this._configurationService.inspect("editor.accessibilitySupport");return e.policyValue??e.memoryValue??e.workspaceFolderValue??e.workspaceValue??e.userValue??e.applicationValue??e.defaultValue??"auto"}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){let e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}get onDidChangeReducedTransparency(){return this._onDidChangeReducedTransparency.event}isTransparencyReduced(){let e=this._configTransparencyReduced;return"on"===e||"auto"===e&&this._systemTransparencyReduced}getAccessibilitySupport(){return this._accessibilitySupport}};ij=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iG(0,tG.fN),iG(1,tu.x),iG(2,eD.pG)],ij);var iq=i(40518),iQ=i(54481),iY=i(44578),iZ=i(68435),iX=function(e,t){return function(i,n){t(i,n,e)}};let iJ="application/vnd.code.resources",i0=class extends J.jG{static{D=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(iY.nr||iY.c8)&&this.installWebKitWriteTextWorkaround(),this._register(eX.Jh.runAndSubscribe(eJ.Iv,({window:e,disposables:t})=>{t.add((0,eJ.ko)(e.document,"copy",()=>this.clearResourcesState()))},{window:X.G,disposables:this._store}))}triggerPaste(){this.logService.trace("BrowserClipboardService#triggerPaste")}installWebKitWriteTextWorkaround(){let e=()=>{let e=new ts.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,eJ.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch(async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)})};this._register(eX.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,({container:t,disposables:i})=>{i.add((0,eJ.ko)(t,"click",e)),i.add((0,eJ.ko)(t,"keydown",e))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.logService.trace("BrowserClipboardService#writeText called with type:",t," text.length:",e.length),this.clearResourcesState(),t){this.mapTextToType.set(t,e),this.logService.trace("BrowserClipboardService#writeText");return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return this.logService.trace("before navigator.clipboard.writeText"),await (0,eJ.fz)().navigator.clipboard.writeText(e)}catch(e){console.error(e)}this.fallbackWriteText(e)}fallbackWriteText(e){this.logService.trace("BrowserClipboardService#fallbackWriteText");let t=(0,eJ.a)(),i=t.activeElement,n=t.body.appendChild((0,eJ.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),(0,eJ.sb)(i)&&i.focus(),n.remove()}async readText(e){if(this.logService.trace("BrowserClipboardService#readText called with type:",e),e){let t=this.mapTextToType.get(e)||"";return this.logService.trace("BrowserClipboardService#readText text.length:",t.length),t}try{let e=await (0,eJ.fz)().navigator.clipboard.readText();return this.logService.trace("BrowserClipboardService#readText text.length:",e.length),e}catch(e){console.error(e)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{for(let e of(await (0,eJ.fz)().navigator.clipboard.read()))if(e.types.includes(`web ${iJ}`)){let t=await e.getType(`web ${iJ}`);return JSON.parse(await t.text()).map(e=>et.r.from(e))}}catch(e){}let e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;let e=await this.readText();return(0,iZ.tW)(e.substring(0,D.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};i0=D=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([iX(0,tu.x),iX(1,iS.rr)],i0);var i1=i(81537),i2=i(29980),i4=i(48633),i5=i(78857),i3=i(88492);function i8(e){return Object.isFrozen(e)?e:(0,i4.ol)(e)}class i9{static createEmptyModel(e){return new i9({},[],[],void 0,e)}constructor(e,t,i,n,s){this._contents=e,this._keys=t,this._overrides=i,this._raw=n,this.logService=s,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this._raw){let e=(Array.isArray(this._raw)?this._raw:[this._raw]).map(e=>{if(e instanceof i9)return e;let t=new i7("",this.logService);return t.parseRaw(e),t.configurationModel});this._rawConfiguration=e.reduce((e,t)=>t===e?t:e.merge(t),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}get raw(){if(this._raw&&!(Array.isArray(this._raw)&&this._raw.every(e=>e instanceof i9)))return this._raw}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,eD.gD)(this.contents,e):this.contents}inspect(e,t){let i=this;return{get value(){return i8(i.rawConfiguration.getValue(e))},get override(){return t?i8(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return i8(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){let t=[];for(let{contents:n,identifiers:s,keys:r}of i.rawConfiguration.overrides){let o=new i9(n,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:s,value:o})}return t.length?i8(t):void 0}}}getOverrideValue(e,t){let i=this.getContentsForOverrideIdentifer(t);return i?e?(0,eD.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){let t=(0,i4.Go)(this.contents),i=(0,i4.Go)(this.overrides),n=[...this.keys],s=this._raw?Array.isArray(this._raw)?[...this._raw]:[this._raw]:[this];for(let r of e)if(s.push(...r._raw?Array.isArray(r._raw)?r._raw:[r._raw]:[r]),!r.isEmpty()){for(let e of(this.mergeContents(t,r.contents),r.overrides)){let[t]=i.filter(t=>(0,iW.aI)(t.identifiers,e.identifiers));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=(0,iW.dM)(t.keys)):i.push((0,i4.Go)(e))}for(let e of r.keys)-1===n.indexOf(e)&&n.push(e)}return new i9(t,n,i,!s.length||s.every(e=>e instanceof i9)?void 0:s,this.logService)}createOverrideConfigurationModel(e){let t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;let i={};for(let e of(0,iW.dM)([...Object.keys(this.contents),...Object.keys(t)])){let n=this.contents[e],s=t[e];s&&("object"==typeof n&&"object"==typeof s?(n=(0,i4.Go)(n),this.mergeContents(n,s)):n=s),i[e]=n}return new i9(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&(0,tr.Gv)(e[i])&&(0,tr.Gv)(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=(0,i4.Go)(t[i])}}getContentsForOverrideIdentifer(e){let t=null,i=null,n=e=>{e&&(i?this.mergeContents(i,e):i=(0,i4.Go)(e))};for(let i of this.overrides)1===i.identifiers.length&&i.identifiers[0]===e?t=i.contents:i.identifiers.includes(e)&&n(i.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){let t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,eD.iB)(this.contents,e),i5.rC.test(e)&&this.overrides.splice(this.overrides.findIndex(t=>(0,iW.aI)(t.identifiers,(0,i5.Gv)(e))),1))}updateValue(e,t,i){if((0,eD.kW)(this.contents,e,t,e=>this.logService.error(e)),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),i5.rC.test(e)){let t=this.contents[e],i=(0,i5.Gv)(e),n={identifiers:i,keys:Object.keys(t),contents:(0,eD.ad)(t,e=>this.logService.error(e))},s=this.overrides.findIndex(e=>(0,iW.aI)(e.identifiers,i));-1!==s?this.overrides[s]=n:this.overrides.push(n)}}}class i7{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||i9.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;let{contents:i,keys:n,overrides:s,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new i9(i,n,s,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){let i=i3.O.as(i5.Fd.Configuration),n=i.getConfigurationProperties(),s=i.getExcludedConfigurationProperties(),r=this.filter(e,n,s,!0,t);e=r.raw;let o=(0,eD.ad)(e,e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`));return{contents:o,keys:Object.keys(e),overrides:this.toOverrides(e,e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`)),restricted:r.restricted,hasExcludedProperties:r.hasExcludedProperties}}filter(e,t,i,n,s){let r=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.skipUnregistered&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:r};let o={},a=[];for(let l in e)if(i5.rC.test(l)&&n){let n=this.filter(e[l],t,i,!1,s);o[l]=n.raw,r=r||n.hasExcludedProperties,a.push(...n.restricted)}else{let n=t[l];n?.restricted&&a.push(l),this.shouldInclude(l,n,i,s)?o[l]=e[l]:r=!0}return{raw:o,restricted:a,hasExcludedProperties:r}}shouldInclude(e,t,i,n){if(n.exclude?.includes(e))return!1;if(n.include?.includes(e))return!0;if(n.skipRestricted&&t?.restricted||n.skipUnregistered&&!t)return!1;let s=t??i[e],r=s?void 0!==s.scope?s.scope:4:void 0;return void 0===r||void 0===n.scopes||n.scopes.includes(r)}toOverrides(e,t){let i=[];for(let n of Object.keys(e))if(i5.rC.test(n)){let s={},r=e[n];for(let e in r)s[e]=r[e];i.push({identifiers:(0,i5.Gv)(n),keys:Object.keys(s),contents:(0,eD.ad)(s,t)})}return i}}class i6{constructor(e,t,i,n,s,r,o,a,l,h,d,c,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=h,this.workspaceConfiguration=d,this.folderConfigurationModel=c,this.memoryConfigurationModel=u}toInspectValue(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get defaultInspectValue(){return this._defaultInspectValue||(this._defaultInspectValue=this.defaultConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._defaultInspectValue}get defaultValue(){return this.defaultInspectValue.merged}get policyInspectValue(){return void 0===this._policyInspectValue&&(this._policyInspectValue=this.policyConfiguration?this.policyConfiguration.inspect(this.key):null),this._policyInspectValue}get policyValue(){return this.policyInspectValue?.merged}get applicationInspectValue(){return void 0===this._applicationInspectValue&&(this._applicationInspectValue=this.applicationConfiguration?this.applicationConfiguration.inspect(this.key):null),this._applicationInspectValue}get applicationValue(){return this.applicationInspectValue?.merged}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get userValue(){return this.userInspectValue.merged}get user(){return this.toInspectValue(this.userInspectValue)}get workspaceInspectValue(){return void 0===this._workspaceInspectValue&&(this._workspaceInspectValue=this.workspaceConfiguration?this.workspaceConfiguration.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceInspectValue}get workspaceValue(){return this.workspaceInspectValue?.merged}get workspaceFolderInspectValue(){return void 0===this._workspaceFolderInspectValue&&(this._workspaceFolderInspectValue=this.folderConfigurationModel?this.folderConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceFolderInspectValue}get workspaceFolderValue(){return this.workspaceFolderInspectValue?.merged}get memoryInspectValue(){return void 0===this._memoryInspectValue&&(this._memoryInspectValue=this.memoryConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier)),this._memoryInspectValue}get memoryValue(){return this.memoryInspectValue.merged}}class ne{constructor(e,t,i,n,s,r,o,a,l,h){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this.logService=h,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new t5.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource))||(n=i9.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,n)):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){let n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(let t of n.overrides)for(let i of t.identifiers)void 0!==n.getOverrideValue(e,i)&&o.add(i);return new i6(e,t,n.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){if(!this._userConfiguration)if(this._remoteUserConfiguration.isEmpty())this._userConfiguration=this._localUserConfiguration;else{let e=this._localUserConfiguration.merge(this._remoteUserConfiguration);this._userConfiguration=new i9(e.contents,e.keys,e.overrides,void 0,this.logService)}return this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);if(t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&void 0!==this._policyConfiguration.getValue(e))for(let e of(n=n.merge(),this._policyConfiguration.keys))n.setValue(e,this._policyConfiguration.getValue(e));return n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){let n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);let s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){let i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){let i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys,raw:Array.isArray(this.applicationConfiguration.raw)?void 0:this.applicationConfiguration.raw},userLocal:{contents:this.localUserConfiguration.contents,overrides:this.localUserConfiguration.overrides,keys:this.localUserConfiguration.keys,raw:Array.isArray(this.localUserConfiguration.raw)?void 0:this.localUserConfiguration.raw},userRemote:{contents:this.remoteUserConfiguration.contents,overrides:this.remoteUserConfiguration.overrides,keys:this.remoteUserConfiguration.keys,raw:Array.isArray(this.remoteUserConfiguration.raw)?void 0:this.remoteUserConfiguration.raw},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{let{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e,t){return new ne(this.parseConfigurationModel(e.defaults,t),this.parseConfigurationModel(e.policy,t),this.parseConfigurationModel(e.application,t),this.parseConfigurationModel(e.userLocal,t),this.parseConfigurationModel(e.userRemote,t),this.parseConfigurationModel(e.workspace,t),e.folders.reduce((e,i)=>(e.set(et.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e),new t5.fT),i9.createEmptyModel(t),new t5.fT,t)}static parseConfigurationModel(e,t){return new i9(e.contents,e.keys,e.overrides,e.raw,t)}}class nt{constructor(e,t,i,n,s){for(const r of(this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this.logService=s,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0,e.keys))this.affectedKeys.add(r);for(const[,t]of e.overrides)for(const e of t)this.affectedKeys.add(e);for(const e of(this._affectsConfigStr=this._marker,this.affectedKeys))this._affectsConfigStr+=e+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ne.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){let i=this._marker+e,n=this._affectsConfigStr.indexOf(i);if(n<0)return!1;let s=n+i.length;if(s>=this._affectsConfigStr.length)return!1;let r=this._affectsConfigStr.charCodeAt(s);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){let i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,n=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!(0,i4.aI)(i,n)}return!0}}class ni extends J.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=i9.createEmptyModel(e)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=i9.createEmptyModel(this.logService);let e=i3.O.as(i5.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){let i=this.getConfigurationDefaultOverrides();for(let n of e){let e=i[n],s=t[n];void 0!==e?this._configurationModel.setValue(n,e):s?this._configurationModel.setValue(n,this.getDefaultValue(n,s)):this._configurationModel.removeValue(n)}}getDefaultValue(e,t){return(0,i4.Go)(t.default)}}var nn=i(4917),ns=i(89290),nr=i(47997);let no="data-keybinding-context";class na{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return!(0,i4.aI)(this._value[e],t)&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){let t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class nl extends na{static{this.INSTANCE=new nl}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class nh extends na{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=ns.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(7===e.source){let e=Array.from(this._values,([e])=>e);this._values.clear(),i.fire(new nu(e))}else{let t=[];for(let i of e.affectedKeys){let e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...nn.f.map(n,([e])=>e)),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new nu(t))}})}dispose(){this._listener.dispose()}getValue(e){let t;if(0!==e.indexOf(nh._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);let i=e.substr(nh._keyPrefix.length),n=this._configurationService.getValue(i);switch(typeof n){case"number":case"boolean":case"string":t=n;break;default:t=Array.isArray(n)?JSON.stringify(n):n}return this._values.set(e,t),t}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class nd{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class nc{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class nu{constructor(e){this.keys=e}affectsSome(e){for(let t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}}class ng{constructor(e){this.events=e}affectsSome(e){for(let t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}}class np extends J.jG{get onDidChangeContext(){return this._onDidChangeContext.event}constructor(e){super(),this._onDidChangeContext=this._register(new eX.fV({merge:e=>new ng(e)})),this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");return new nd(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");return new nm(this,e)}contextMatchesRules(e){if(this._isDisposed)throw Error("AbstractContextKeyService has been disposed");let t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;let i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new nc(e))}removeContext(e){!this._isDisposed&&this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new nc(e))}getContext(e){return this._isDisposed?nl.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(no)){let t=e.getAttribute(no);if(t)return parseInt(t,10);return NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let nf=class extends np{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0,this.inputFocusedContext=nr.J7.bindTo(this);const t=this._register(new nh(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t),this._register(eX.Jh.runAndSubscribe(eJ.Iv,({window:e,disposables:t})=>{let i=t.add(new J.HE);t.add((0,eJ.ko)(e,eJ.Bx.FOCUS_IN,()=>{i.value=new J.Cm,this.updateInputContextKeys(e.document,i.value)},!0))},{window:X.G,disposables:this._store}))}updateInputContextKeys(e,t){function i(){return!!e.activeElement&&(0,eJ.yD)(e.activeElement)}let n=i();if(this.inputFocusedContext.set(n),n){let n=t.add((0,eJ.w5)(e.activeElement));eX.Jh.once(n.onDidBlur)(()=>{(0,eJ.fz)().document===e&&this.inputFocusedContext.set(i()),n.dispose()},void 0,t)}}getContextValuesContainer(e){return this._isDisposed?nl.INSTANCE:this._contexts.get(e)||nl.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new na(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};nf=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(l=eD.pG,function(e,t){l(e,t,0)})],nf);class nm extends np{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new J.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(no)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${e?": "+e:""}`)}this._domNode.setAttribute(no,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let t=this._parent.getContextValuesContainer(this._myContextId).value;e.allKeysContainedIn(new Set(Object.keys(t)))||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._parentChangeListener.clear(),this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(no),super.dispose())}getContextValuesContainer(e){return this._isDisposed?nl.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._parent.disposeContext(e)}}i2.w.registerCommand("_setContext",function(e,t,i){var n;e.get(tG.fN).createKey(String(t),(n=i,(0,i4.PI)(n,e=>"object"==typeof e&&1===e.$mid?et.r.revive(e).toString():e instanceof et.r?e.toString():void 0)))}),i2.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...tG.N1.all()].sort((e,t)=>e.key.localeCompare(t.key)),metadata:{description:(0,e4.kg)(1736,"A command that returns information about context keys"),args:[]}}),i2.w.registerCommand("_generateContextKeyInfo",function(){let e=[],t=new Set;for(let i of tG.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))});var n_=i(20322),nv=i(99791),nb=i(87540),nC=i(80849),nw=i(97419),ny=i(22088),nS=i(57278),nx=i(3809),nk=i(16363),nL=i(35362),nD=i(54293);let nE=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,nN=/(&)?(&)([^\s&])/g;(h=E||(E={}))[h.Right=0]="Right",h[h.Left=1]="Left",(d=N||(N={}))[d.Above=0]="Above",d[d.Below=1]="Below";class nI extends ny.E{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ti.zx||ti.j9?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(nC.q.addTarget(s)),this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{new e1.Z(e).equals(2)&&e.preventDefault()})),i.enableMnemonics&&this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{let t=e.key.toLocaleLowerCase(),i=this.mnemonics.get(t);if(void 0!==i&&(eJ.fs.stop(e,!0),1===i.length&&(i[0]instanceof nM&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1)){let e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}})),ti.j9&&this._register((0,eJ.ko)(s,eJ.Bx.KEY_DOWN,e=>{let t=new e1.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),eJ.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),eJ.fs.stop(e,!0))})),this._register((0,eJ.ko)(this.domNode,eJ.Bx.MOUSE_OUT,e=>{let t=e.relatedTarget;(0,eJ.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register((0,eJ.ko)(this.actionsList,eJ.Bx.MOUSE_OVER,e=>{let t=e.target;if(t&&(0,eJ.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})),this._register(nC.q.addTarget(this.actionsList)),this._register((0,eJ.ko)(this.actionsList,nC.B.Tap,e=>{let t=e.initialTarget;if(t&&(0,eJ.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new e2.MU(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,n),this._register((0,eJ.ko)(s,nC.B.Change,e=>{eJ.fs.stop(e,!0);let t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register((0,eJ.ko)(o,eJ.Bx.MOUSE_UP,e=>{e.preventDefault()}));const a=(0,eJ.zk)(e);s.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((e,n)=>i.submenuIds?.has(e.id)?(console.warn(`Found submenu cycle: ${e.id}`),!1):(!(e instanceof n_.wv)||n!==t.length-1&&0!==n&&!(t[n-1]instanceof n_.wv))&&!0),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof nR)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,eJ.Cl)(e)?this.styleSheet=(0,nw.li)(e):(nI.globalStyleSheet||(nI.globalStyleSheet=(0,nw.li)()),this.styleSheet=nI.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=e.borderColor??"var(--vscode-menu-border)",n=`
|
|
2
2
|
.monaco-menu {
|
|
3
3
|
font-size: 13px;
|
|
4
4
|
border-radius: var(--vscode-cornerRadius-large);
|
|
@@ -409,7 +409,7 @@ ${e}</tr>
|
|
|
409
409
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
|
|
410
410
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let n=this.parser.parseInline(i),s=b(e);if(null===s)return n;let r='<a href="'+(e=s)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}image({href:e,title:t,text:i}){let n=b(e);if(null===n)return i;e=n;let s=`<img src="${e}" alt="${i}"`;return t&&(s+=` title="${t}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ed{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class ec{options;renderer;textRenderer;constructor(e){this.options=e||h,this.options.renderer=this.options.renderer||new eh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ed}static parse(e,t){return new ec(t).parse(e)}static parseInline(e,t){return new ec(t).parseInline(e)}parse(e,t=!0){let i="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){i+=e||"";continue}}switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,o=this.renderer.text(r);for(;n+1<e.length&&"text"===e[n+1].type;)r=e[++n],o+="\n"+this.renderer.text(r);t?i+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):i+=o;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=e||"";continue}}switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return i}}class eu{options;constructor(e){this.options=e||h}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class eg{defaults=l();options=this.setOptions;parse=this.parseMarkdown(el.lex,ec.parse);parseInline=this.parseMarkdown(el.lexInline,ec.parseInline);Parser=ec;Renderer=eh;TextRenderer=ed;Lexer=el;Tokenizer=x;Hooks=eu;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let n of e)switch(i=i.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)i=i.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)i=i.concat(this.walkTokens(n.tokens,t));break;case"list":i=i.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let s=e[n].flat(1/0);i=i.concat(this.walkTokens(s,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let i=t.renderers[e.name];i?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=i.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),i.extensions=t),e.renderer){let t=this.defaults.renderer||new eh(this.defaults);for(let i in e.renderer){if(!(i in t))throw Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let n=e.renderer[i],s=t[i];t[i]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new x(this.defaults);for(let i in e.tokenizer){if(!(i in t))throw Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let n=e.tokenizer[i],s=t[i];t[i]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eu;for(let i in e.hooks){if(!(i in t))throw Error(`hook '${i}' does not exist`);if("options"===i)continue;let n=e.hooks[i],s=t[i];eu.passThroughHooks.has(i)?t[i]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then(e=>s.call(t,e));let i=n.call(t,e);return s.call(t,i)}:t[i]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=s.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(n.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return el.lex(e,t??this.defaults)}parser(e,t){return ec.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,n)=>{let s={...n},r={...this.defaults,...s},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===s.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==i)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then(t=>e(t,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>t(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let n=e(i,r);r.hooks&&(n=r.hooks.processAllTokens(n)),r.walkTokens&&this.walkTokens(n,r.walkTokens);let s=t(n,r);return r.hooks&&(s=r.hooks.postprocess(s)),s}catch(e){return o(e)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+m(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}let ep=new eg;function ef(e,t){return ep.parse(e,t)}ef.options=ef.setOptions=function(e){return ep.setOptions(e),ef.defaults=ep.defaults,h=ef.defaults,ef},ef.getDefaults=l,ef.defaults=h,ef.use=function(...e){return ep.use(...e),ef.defaults=ep.defaults,h=ef.defaults,ef},ef.walkTokens=function(e,t){return ep.walkTokens(e,t)},ef.parseInline=ep.parseInline,ef.Parser=ec,ef.parser=ec.parse,ef.Renderer=eh,ef.TextRenderer=ed,ef.Lexer=el,ef.lexer=el.lex,ef.Tokenizer=x,ef.Hooks=eu,ef.parse=ef,ef.options,ef.setOptions,ef.use,ef.walkTokens,ef.parseInline,ec.parse;let em=el.lex;var e_=i(38719),ev=i(7055),eb=i(48633);i(15928);var eC=i(11196),ew=i(13091),ey=i(34247),eS=i(7646),ex=i(82830),ek=i(69737),eL=i(87540),eD=i(59253);let eE=Object.freeze({image:({href:e,title:t,text:i})=>{let n=[],r=[];return e&&({href:e,dimensions:n}=(0,s.nI)(e),r.push(`src="${(0,s.oO)(e)}"`)),i&&r.push(`alt="${(0,s.oO)(i)}"`),t&&r.push(`title="${(0,s.oO)(t)}"`),n.length&&(r=r.concat(n)),"<img "+r.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let n=this.parser.parseInline(i);if("string"!=typeof e)return"";e===n&&(n=(0,s._W)(n)),t="string"==typeof t?(0,s.oO)((0,s._W)(t)):"",e=(0,s._W)(e),!t&&e.startsWith(`${ev.ny.file}:`)&&(t=function(e){try{let t=ey.r.parse(e);if(t.scheme===ev.ny.file){let e=t.fsPath,i=t.fragment;return(0,s.oO)(i?`${e}#${i}`:e)}}catch{}return""}(e));let r=e.startsWith(`${ev.ny.command}:`);e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");let o=t||(r?"":e);return`<a href="${e}" title="${o}" draggable="false">${n}</a>`}});function eN(e,t={},i){var n,s,l,h,d;let c,u,g,p,f,m,_=new a.Cm,v=!1,b=new eg(...t.markedExtensions??[]),{renderer:C,codeBlocks:w,syncCodeBlocks:y}=(n=b,s=t,l=e,(c=new n.Renderer(s.markedOptions)).image=eE.image,c.link=eE.link,c.paragraph=eE.paragraph,l.supportAlertSyntax&&(h=c.blockquote,c.blockquote=function(e){let{tokens:t}=e,i=t[0];if(i?.type!=="paragraph")return h.call(this,e);let n=i.tokens;if(!n||0===n.length)return h.call(this,e);let s=n[0];if(s?.type!=="text")return h.call(this,e);let r=/^\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*?\n*/i,o=s.raw.match(r);if(!o)return h.call(this,e);s.raw=s.raw.replace(r,""),s.text=s.text.replace(r,"");let a=o[1],l=a.charAt(0).toUpperCase()+a.slice(1).toLowerCase(),d=a.toLowerCase(),c=(0,eD.s)({id:{note:"info",tip:"light-bulb",important:"comment",warning:"alert",caution:"stop"}[d]}).outerHTML,u=this.parser.parse(t);return`<blockquote data-severity="${d}"><p><span>${c}${l}</span>${u.substring(3)}</blockquote>
|
|
411
411
|
`}),u=[],g=[],s.codeBlockRendererSync?c.code=({text:e,lang:t,raw:i})=>{let n=o.r.nextId(),r=s.codeBlockRendererSync(eM(t),e,i);return g.push([n,r]),`<div class="code" data-code="${n}">${(0,ew.ih)(e)}</div>`}:s.codeBlockRenderer&&(c.code=({text:e,lang:t})=>{let i=o.r.nextId(),n=s.codeBlockRenderer(eM(t),e);return u.push(n.then(e=>[i,e])),`<div class="code" data-code="${i}">${(0,ew.ih)(e)}</div>`}),l.supportHtml||(c.html=({text:e})=>s.sanitizerConfig?.replaceWithPlaintext?(0,ew.ih)(e):(l.isTrusted?e.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?e:""),{renderer:c,codeBlocks:u,syncCodeBlocks:g}),S=((p=(d=e).value).length>1e5&&(p=`${p.substr(0,1e5)}…`),d.supportThemeIcons&&(p=(0,r.sA)(p)),p);if(t.fillInIncompleteTokens){let e={...b.defaults,...t.markedOptions,renderer:C},i=function(e){for(let t=0;t<3;t++){let t=function(e){let t,i;for(t=0;t<e.length;t++){let n=e[t];if("paragraph"===n.type&&n.raw.match(/(\n|^)\|/)){i=function(e){let t,i=eW(e),n=i.split("\n"),s=!1;for(let e=0;e<n.length;e++){let i=n[e].trim();if(void 0===t&&i.match(/^\s*\|/)){let e=i.match(/(\|[^\|]+)(?=\||$)/g);e&&(t=e.length)}else if("number"==typeof t)if(!i.match(/^\s*\|/))return;else{if(e!==n.length-1)return;s=!0}}if("number"==typeof t&&t>0){let e=s?n.slice(0,-1).join("\n"):i,r=!!e.match(/\|\s*$/);return em(e+(r?"":"|")+`
|
|
412
|
-
|${" --- |".repeat(t)}`)}}(e.slice(t));break}}let n=e.length-1;for(;n>=0&&("space"===e[n].type||"html"===e[n].type);)n--;let s=n>=0?e[n]:void 0,r=e.slice(n+1);if(!i&&s?.type==="list"){let e=function(e){let t,i=e.items[e.items.length-1],n=i.tokens?i.tokens[i.tokens.length-1]:void 0,s=e=>{let t=e.items.at(-1),i=t?.tokens.at(-1);return i?.type==="heading"||i?.type==="list"&&s(i)};if(n?.type!=="text"||"inRawBlock"in i){if(s(e)){let t=em(e.raw.trim()+" ")[0];if("list"!==t.type)return;return t}}else t=eV(n);if(!t||"paragraph"!==t.type)return;let r=eW(e.items.slice(0,-1)),o=i.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!o)return;let a=em(r+(o+eW(i.tokens.slice(0,-1))+t.raw))[0];if("list"===a.type)return a}(s);e&&(i=[e,...r],t=n)}if(!i&&s?.type==="paragraph"){let e=eV(s);e&&(i=[e,...r],t=n)}if(i){let n=[...e.slice(0,t),...i];return n.links=e.links,n}let o=e.at(-1);if(o?.type==="heading"){let t=function(e,t){if(e.raw.match(/-\s*$/))return em(t+" ")}(o,eW(e));if(t)return t}return null}(e);if(t)e=t;else break}return e}(b.lexer(S,e));f=b.parser(i,e)}else f=b.parse(S,{...t?.markedOptions,renderer:C,async:!1});e.supportThemeIcons&&(f=(0,eD.n)(f).map(e=>"string"==typeof e?e:e.outerHTML).join(""));let x=document.createElement("div"),k=eP(e,t.sanitizerConfig??{});if((0,ex.D$)(x,f,k),function(e,t,i){for(let n of i.querySelectorAll("img, audio, video, source")){let i=n.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=eR(ey.r.from(e.baseUri),s))}catch(e){}if(n.setAttribute("src",eT(e,s,!0)),t.sanitizerConfig?.remoteImageIsAllowed){let e=ey.r.parse(s);e.scheme===ev.ny.file||e.scheme===ev.ny.data||t.sanitizerConfig.remoteImageIsAllowed(e)||n.replaceWith((0,eS.$)("",void 0,n.outerHTML))}}}for(let t of i.querySelectorAll("a")){let i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=eT(e,i,!1);e.baseUri&&(n=eR(ey.r.from(e.baseUri),i)),t.dataset.href=n}}}(e,t,x),i?(m=i,(0,eS.Ln)(i,...x.childNodes)):m=x,w.length>0)Promise.all(w).then(e=>{if(v)return;let i=new Map(e);for(let e of m.querySelectorAll("div[data-code]")){let t=i.get(e.dataset.code??"");t&&(0,eS.Ln)(e,t)}t.asyncRenderCallback?.()});else if(y.length>0){let e=new Map(y);for(let t of m.querySelectorAll("div[data-code]")){let i=e.get(t.dataset.code??"");i&&(0,eS.Ln)(t,i)}}if(t.asyncRenderCallback)for(let e of m.getElementsByTagName("img")){let i=_.add((0,eS.ko)(e,"load",()=>{i.dispose(),t.asyncRenderCallback()}))}if(t.actionHandler){let i=i=>{let n=new eL.P((0,eS.zk)(m),i);(n.leftButton||n.middleButton)&&eI(e,t,n)};_.add((0,eS.ko)(m,"click",i)),_.add((0,eS.ko)(m,"auxclick",i)),_.add((0,eS.ko)(m,"keydown",i=>{let n=new ek.Z(i);(n.equals(10)||n.equals(3))&&eI(e,t,n)}))}for(let e of[...m.getElementsByTagName("input")])if(e.attributes.getNamedItem("type")?.value==="checkbox")e.setAttribute("disabled","");else if(t.sanitizerConfig?.replaceWithPlaintext){let t=(0,ex.cZ)(e);t?e.parentElement?.replaceChild(t,e):e.remove()}else e.remove();return{element:m,dispose:()=>{v=!0,_.dispose()}}}function eI(e,t,i){let s=i.target.closest("a[data-href]");if((0,eS.sb)(s))try{let i=s.dataset.href;i&&(e.baseUri&&(i=eR(ey.r.from(e.baseUri),i)),t.actionHandler?.(i,e))}catch(e){(0,n.dz)(e)}finally{i.preventDefault(),i.stopPropagation()}}function eT(e,t,i){let n=e.uris&&e.uris[t],s=ey.r.revive(n);return i?t.startsWith(ev.ny.data+":")?t:(s||(s=ey.r.parse(t)),ev.zl.uriToBrowserUri(s).toString(!0)):s&&ey.r.parse(t).toString()!==s.toString()?(s.query&&(s=s.with({query:function(e,t){let i;try{i=(0,e_.qg)(decodeURIComponent(t))}catch(e){}return i?encodeURIComponent(JSON.stringify(i=(0,eb.PI)(i,t=>e.uris&&e.uris[t]?ey.r.revive(e.uris[t]):void 0))):t}(e,s.query)})),s.toString()):t}function eM(e){if(!e)return"";let t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function eR(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,eC.o1)(e,t).toString():(0,eC.o1)((0,eC.pD)(e),t).toString()}let eA=Object.freeze([...ex.TT,"input"]),eO=Object.freeze(["align","autoplay","alt","colspan","controls","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","target","title","type","width","start","checked","disabled","value","data-code","data-href","data-severity",{attributeName:"style",shouldKeep:(e,t)=>"SPAN"===e.tagName&&"style"===t.attrName&&/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z0-9]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z0-9]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue)},{attributeName:"class",shouldKeep:(e,t)=>"SPAN"===e.tagName&&"class"===t.attrName&&/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue)}]);function eP(e,t){let i=e.isTrusted??!1,n=[ev.ny.http,ev.ny.https,ev.ny.mailto,ev.ny.file,ev.ny.vscodeFileResource,ev.ny.vscodeRemote,ev.ny.vscodeRemoteResource,ev.ny.vscodeNotebookCell,ev.ny.internal];return i&&n.push(ev.ny.command),t.allowedLinkSchemes?.augment&&n.push(...t.allowedLinkSchemes.augment),{allowedTags:{override:t.allowedTags?.override??eA},allowedAttributes:{override:t.allowedAttributes?.override??eO},allowedLinkProtocols:{override:n},allowRelativeLinkPaths:!!e.baseUri,allowedMediaProtocols:{override:[ev.ny.http,ev.ny.https,ev.ny.data,ev.ny.file,ev.ny.vscodeFileResource,ev.ny.vscodeRemote,ev.ny.vscodeRemoteResource]},allowRelativeMediaPaths:!!e.baseUri,replaceWithPlaintext:t.replaceWithPlaintext}}function eF(e,t){let i;if("string"==typeof e)return e;let n=e.value??"";return n.length>1e5&&(n=`${n.substr(0,1e5)}…`),(function(e,t,i={}){let n=eP(t,i);return(0,ex.pn)(e,n)})(ef(n,{async:!1,renderer:((i=new eh).code=({text:e})=>(0,ew.ih)(e),i.blockquote=({text:e})=>e+"\n",i.html=e=>"",i.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},i.hr=()=>"",i.list=function({items:e}){return e.map(e=>this.listitem(e)).join("\n")+"\n"},i.listitem=({text:e})=>e+"\n",i.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},i.table=function({header:e,rows:t}){return e.map(e=>this.tablecell(e)).join(" ")+"\n"+t.map(e=>e.map(e=>this.tablecell(e)).join(" ")).join("\n")+"\n"},i.tablerow=({text:e})=>e,i.tablecell=function({tokens:e}){return this.parser.parseInline(e)},i.strong=({text:e})=>e,i.em=({text:e})=>e,i.codespan=({text:e})=>e,i.br=e=>"\n",i.del=({text:e})=>e,i.image=e=>"",i.text=({text:e})=>e,i.link=({text:e})=>e,i)}),{isTrusted:!1},{}).toString().replace(/&(#\d+|[a-zA-Z]+);/g,e=>eB.get(e)??e).trim()}let eB=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function eW(e){let t="";return e.forEach(e=>{t+=e.raw}),t}function eV(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){let i=e.tokens[t];if("text"===i.type){let n=i.raw.split("\n"),s=n[n.length-1];if(s.includes("`"))return eH(e,"`");if(s.includes("**"))return eH(e,"**");if(s.match(/\*\w/))return eH(e,"*");else if(s.match(/(^|\s)__\w/))return eH(e,"__");else if(s.match(/(^|\s)_\w/))return eH(e,"_");else if(s.match(/(^|\s)\[.*\]\(\w*/)||s.match(/^[^\[]*\]\([^\)]*$/)&&e.tokens.slice(0,t).some(e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/))){let i=e.tokens.slice(t+1);if(i[0]?.type==="link"&&i[1]?.type==="text"&&i[1].raw.match(/^ *"[^"]*$/)||s.match(/^[^"]* +"[^"]*$/))return eH(e,'")',!1);return eH(e,")",!1)}else if(s.match(/(^|\s)\[\w*[^\]]*$/))return eH(e,"](https://microsoft.com)",!1)}}}function eH(e,t,i=!0){let n=eW(Array.isArray(e)?e:[e]);return em((i?n.trimEnd():n)+t)[0]}},14908:()=>{},15676:(e,t,i)=>{"use strict";i.d(t,{A3:()=>T,AQ:()=>K,Am:()=>N,As:()=>R,BD:()=>en,Bo:()=>et,CM:()=>D,D0:()=>u,H0:()=>E,I2:()=>ee,IW:()=>es,If:()=>ei,JB:()=>O,L0:()=>_,Mf:()=>c,P1:()=>eh,Pe:()=>ea,Qt:()=>b,WD:()=>el,WS:()=>eo,WY:()=>ed,Xr:()=>W,aZ:()=>$,bB:()=>er,hz:()=>x,ik:()=>P,je:()=>f,kG:()=>h,kM:()=>g,l5:()=>Q,lQ:()=>j,n4:()=>J,ob:()=>S,ow:()=>k,s7:()=>X,sC:()=>p,sH:()=>Y,sN:()=>G,ss:()=>q,tK:()=>I,tp:()=>M,vP:()=>L,vV:()=>y,vp:()=>z,w4:()=>v,wZ:()=>F,we:()=>m,x9:()=>B,xU:()=>d,yI:()=>U,yw:()=>V,zp:()=>Z});var n=i(56558),s=i(18734),r=i(83367),o=i(45837);i(96141);var a=i(4529);i(72880),i(77384),i(25523),i(3463),i(8324),i(3330),i(30020);var l=i(63667);let h=(0,r.x1)("editor.lineHighlightBackground",null,(0,n.kg)(641,"Background color for the highlight of line at the cursor position.")),d=(0,r.x1)("editor.inactiveLineHighlightBackground",h,(0,n.kg)(642,"Background color for the highlight of line at the cursor position when the editor is not focused.")),c=(0,r.x1)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.b1},(0,n.kg)(643,"Background color for the border around the line at the cursor position."));(0,r.x1)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},(0,n.kg)(644,"Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(645,"Background color of the border around highlighted ranges.")),(0,r.x1)("editor.symbolHighlightBackground",{dark:a.Ub,light:a.Ub,hcDark:null,hcLight:null},(0,n.kg)(646,"Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(647,"Background color of the border around highlighted symbols."));let u=(0,r.x1)("editorCursor.foreground",{dark:"#AEAFAD",light:s.Q1.black,hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(648,"Color of the editor cursor.")),g=(0,r.x1)("editorCursor.background",null,(0,n.kg)(649,"The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),p=(0,r.x1)("editorMultiCursor.primary.foreground",u,(0,n.kg)(650,"Color of the primary editor cursor when multiple cursors are present.")),f=(0,r.x1)("editorMultiCursor.primary.background",g,(0,n.kg)(651,"The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1)("editorMultiCursor.secondary.foreground",u,(0,n.kg)(652,"Color of secondary editor cursors when multiple cursors are present.")),_=(0,r.x1)("editorMultiCursor.secondary.background",g,(0,n.kg)(653,"The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),v=(0,r.x1)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},(0,n.kg)(654,"Color of whitespace characters in the editor.")),b=(0,r.x1)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:s.Q1.white,hcLight:"#292929"},(0,n.kg)(655,"Color of editor line numbers.")),C=(0,r.x1)("editorIndentGuide.background",v,(0,n.kg)(656,"Color of the editor indentation guides."),!1,(0,n.kg)(657,"'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),w=(0,r.x1)("editorIndentGuide.activeBackground",v,(0,n.kg)(658,"Color of the active editor indentation guides."),!1,(0,n.kg)(659,"'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),y=(0,r.x1)("editorIndentGuide.background1",C,(0,n.kg)(660,"Color of the editor indentation guides (1).")),S=(0,r.x1)("editorIndentGuide.background2","#00000000",(0,n.kg)(661,"Color of the editor indentation guides (2).")),x=(0,r.x1)("editorIndentGuide.background3","#00000000",(0,n.kg)(662,"Color of the editor indentation guides (3).")),k=(0,r.x1)("editorIndentGuide.background4","#00000000",(0,n.kg)(663,"Color of the editor indentation guides (4).")),L=(0,r.x1)("editorIndentGuide.background5","#00000000",(0,n.kg)(664,"Color of the editor indentation guides (5).")),D=(0,r.x1)("editorIndentGuide.background6","#00000000",(0,n.kg)(665,"Color of the editor indentation guides (6).")),E=(0,r.x1)("editorIndentGuide.activeBackground1",w,(0,n.kg)(666,"Color of the active editor indentation guides (1).")),N=(0,r.x1)("editorIndentGuide.activeBackground2","#00000000",(0,n.kg)(667,"Color of the active editor indentation guides (2).")),I=(0,r.x1)("editorIndentGuide.activeBackground3","#00000000",(0,n.kg)(668,"Color of the active editor indentation guides (3).")),T=(0,r.x1)("editorIndentGuide.activeBackground4","#00000000",(0,n.kg)(669,"Color of the active editor indentation guides (4).")),M=(0,r.x1)("editorIndentGuide.activeBackground5","#00000000",(0,n.kg)(670,"Color of the active editor indentation guides (5).")),R=(0,r.x1)("editorIndentGuide.activeBackground6","#00000000",(0,n.kg)(671,"Color of the active editor indentation guides (6).")),A=(0,r.x1)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.bu,hcLight:o.bu},(0,n.kg)(672,"Color of editor active line number"),!1,(0,n.kg)(673,"Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));(0,r.x1)("editorLineNumber.activeForeground",A,(0,n.kg)(674,"Color of editor active line number"));let O=(0,r.x1)("editorLineNumber.dimmedForeground",null,(0,n.kg)(675,"Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),P=(0,r.x1)("editorRuler.foreground",{dark:"#5A5A5A",light:s.Q1.lightgrey,hcDark:s.Q1.white,hcLight:"#292929"},(0,n.kg)(676,"Color of the editor rulers."));(0,r.x1)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},(0,n.kg)(677,"Foreground color of editor CodeLens")),(0,r.x1)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},(0,n.kg)(678,"Background color behind matching brackets")),(0,r.x1)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.b1,hcLight:o.b1},(0,n.kg)(679,"Color for matching brackets boxes"));let F=(0,r.x1)("editorBracketMatch.foreground",null,(0,n.kg)(680,"Foreground color for matching brackets")),B=(0,r.x1)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},(0,n.kg)(681,"Color of the overview ruler border.")),W=(0,r.x1)("editorOverviewRuler.background",null,(0,n.kg)(682,"Background color of the editor overview ruler."));(0,r.x1)("editorGutter.background",a.Yt,(0,n.kg)(683,"Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:o.b1},(0,n.kg)(684,"Border color of unnecessary (unused) source code in the editor."));let V=(0,r.x1)("editorUnnecessaryCode.opacity",{dark:s.Q1.fromHex("#000a"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},(0,n.kg)(685,"Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."));(0,r.x1)("editorGhostText.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:s.Q1.fromHex("#292929").transparent(.8)},(0,n.kg)(686,"Border color of ghost text in the editor.")),(0,r.x1)("editorGhostText.foreground",{dark:s.Q1.fromHex("#ffffff56"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},(0,n.kg)(687,"Foreground color of the ghost text in the editor.")),(0,r.x1)("editorGhostText.background",null,(0,n.kg)(688,"Background color of the ghost text in the editor."));let H=new s.Q1(new s.bU(0,122,204,.6)),z=(0,r.x1)("editorOverviewRuler.rangeHighlightForeground",H,(0,n.kg)(689,"Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),U=(0,r.x1)("editorOverviewRuler.errorForeground",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(690,"Overview ruler marker color for errors.")),$=(0,r.x1)("editorOverviewRuler.warningForeground",{dark:a.Hn,light:a.Hn,hcDark:a.St,hcLight:a.St},(0,n.kg)(691,"Overview ruler marker color for warnings.")),K=(0,r.x1)("editorOverviewRuler.infoForeground",{dark:a.pO,light:a.pO,hcDark:a.II,hcLight:a.II},(0,n.kg)(692,"Overview ruler marker color for infos.")),G=(0,r.x1)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},(0,n.kg)(693,"Foreground color of brackets (1). Requires enabling bracket pair colorization.")),j=(0,r.x1)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},(0,n.kg)(694,"Foreground color of brackets (2). Requires enabling bracket pair colorization.")),q=(0,r.x1)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},(0,n.kg)(695,"Foreground color of brackets (3). Requires enabling bracket pair colorization.")),Q=(0,r.x1)("editorBracketHighlight.foreground4","#00000000",(0,n.kg)(696,"Foreground color of brackets (4). Requires enabling bracket pair colorization.")),Y=(0,r.x1)("editorBracketHighlight.foreground5","#00000000",(0,n.kg)(697,"Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Z=(0,r.x1)("editorBracketHighlight.foreground6","#00000000",(0,n.kg)(698,"Foreground color of brackets (6). Requires enabling bracket pair colorization.")),X=(0,r.x1)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new s.Q1(new s.bU(255,18,18,.8)),light:new s.Q1(new s.bU(255,18,18,.8)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(699,"Foreground color of unexpected brackets.")),J=(0,r.x1)("editorBracketPairGuide.background1","#00000000",(0,n.kg)(700,"Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),ee=(0,r.x1)("editorBracketPairGuide.background2","#00000000",(0,n.kg)(701,"Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),et=(0,r.x1)("editorBracketPairGuide.background3","#00000000",(0,n.kg)(702,"Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),ei=(0,r.x1)("editorBracketPairGuide.background4","#00000000",(0,n.kg)(703,"Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),en=(0,r.x1)("editorBracketPairGuide.background5","#00000000",(0,n.kg)(704,"Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),es=(0,r.x1)("editorBracketPairGuide.background6","#00000000",(0,n.kg)(705,"Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),er=(0,r.x1)("editorBracketPairGuide.activeBackground1","#00000000",(0,n.kg)(706,"Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),eo=(0,r.x1)("editorBracketPairGuide.activeBackground2","#00000000",(0,n.kg)(707,"Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ea=(0,r.x1)("editorBracketPairGuide.activeBackground3","#00000000",(0,n.kg)(708,"Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),el=(0,r.x1)("editorBracketPairGuide.activeBackground4","#00000000",(0,n.kg)(709,"Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),eh=(0,r.x1)("editorBracketPairGuide.activeBackground5","#00000000",(0,n.kg)(710,"Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ed=(0,r.x1)("editorBracketPairGuide.activeBackground6","#00000000",(0,n.kg)(711,"Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1)("editorUnicodeHighlight.border",a.Hn,(0,n.kg)(712,"Border color used to highlight unicode characters.")),(0,r.x1)("editorUnicodeHighlight.background",a.wh,(0,n.kg)(713,"Background color used to highlight unicode characters.")),(0,l.zy)((e,t)=>{let i=e.getColor(a.Yt),n=e.getColor(h),s=n&&!n.isTransparent()?n:i;s&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${s}; }`)})},15735:()=>{},15928:(e,t,i)=>{"use strict";i.d(t,{IN:()=>u,LC:()=>w,P8:()=>C,S8:()=>f,SA:()=>p,V8:()=>v,Vn:()=>y,fj:()=>m,hd:()=>_,pD:()=>b});var n=i(16676);class s extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${s} ${n} of type ${t}`;super(r+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function r(e,t){if("string"!=typeof e)throw new s(t,"string",e)}let o="win32"===n.iD;function a(e){return 47===e||92===e}function l(e){return 47===e}function h(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e,t,i,n){let s="",r=0,o=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)l=e.charCodeAt(h);else if(n(l))break;else l=47;if(n(l)){if(o===h-1||1===a);else if(2===a){if(s.length<2||2!==r||46!==s.charCodeAt(s.length-1)||46!==s.charCodeAt(s.length-2)){if(s.length>2){let e=s.lastIndexOf(i);-1===e?(s="",r=0):r=(s=s.slice(0,e)).length-1-s.lastIndexOf(i),o=h,a=0;continue}else if(0!==s.length){s="",r=0,o=h,a=0;continue}}t&&(s+=s.length>0?`${i}..`:"..",r=2)}else s.length>0?s+=`${i}${e.slice(o+1,h)}`:s=e.slice(o+1,h),r=h-o-1;o=h,a=0}else 46===l&&-1!==a?++a:a=-1}return s}function c(e,t){var i;if(null===t||"object"!=typeof t)throw new s("pathObject","Object",t);let n=t.dir||t.root,r=t.base||`${t.name||""}${(i=t.ext)?`${"."===i[0]?"":"."}${i}`:""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let u={resolve(...e){let t="",i="",s=!1;for(let o=e.length-1;o>=-1;o--){let l;if(o>=0){if(r(l=e[o],`paths[${o}]`),0===l.length)continue}else 0===t.length?l=(0,n.bJ)():(void 0===(l=n._K[`=${t}`]||(0,n.bJ)())||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===l.charCodeAt(2))&&(l=`${t}\\`);let d=l.length,c=0,u="",g=!1,p=l.charCodeAt(0);if(1===d)a(p)&&(c=1,g=!0);else if(a(p))if(g=!0,a(l.charCodeAt(1))){let e=2,t=2;for(;e<d&&!a(l.charCodeAt(e));)e++;if(e<d&&e!==t){let i=l.slice(t,e);for(t=e;e<d&&a(l.charCodeAt(e));)e++;if(e<d&&e!==t){for(t=e;e<d&&!a(l.charCodeAt(e));)e++;(e===d||e!==t)&&(u=`\\\\${i}\\${l.slice(t,e)}`,c=e)}}}else c=1;else h(p)&&58===l.charCodeAt(1)&&(u=l.slice(0,2),c=2,d>2&&a(l.charCodeAt(2))&&(g=!0,c=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(s){if(t.length>0)break}else if(i=`${l.slice(c)}\\${i}`,s=g,g&&t.length>0)break}return i=d(i,!s,"\\",a),s?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;r(e,"path");let i=e.length;if(0===i)return".";let n=0,s=!1,o=e.charCodeAt(0);if(1===i)return l(o)?"\\":e;if(a(o))if(s=!0,a(e.charCodeAt(1))){let s=2,r=2;for(;s<i&&!a(e.charCodeAt(s));)s++;if(s<i&&s!==r){let o=e.slice(r,s);for(r=s;s<i&&a(e.charCodeAt(s));)s++;if(s<i&&s!==r){for(r=s;s<i&&!a(e.charCodeAt(s));)s++;if(s===i)return`\\\\${o}\\${e.slice(r)}\\`;s!==r&&(t=`\\\\${o}\\${e.slice(r,s)}`,n=s)}}}else n=1;else h(o)&&58===e.charCodeAt(1)&&(t=e.slice(0,2),n=2,i>2&&a(e.charCodeAt(2))&&(s=!0,n=3));let c=n<i?d(e.slice(n),!s,"\\",a):"";if(0!==c.length||s||(c="."),c.length>0&&a(e.charCodeAt(i-1))&&(c+="\\"),!s&&void 0===t&&e.includes(":")){if(c.length>=2&&h(c.charCodeAt(0))&&58===c.charCodeAt(1))return`.\\${c}`;let t=e.indexOf(":");do if(t===i-1||a(e.charCodeAt(t+1)))return`.\\${c}`;while(-1!==(t=e.indexOf(":",t+1)))}return void 0===t?s?`\\${c}`:c:s?`${t}\\${c}`:`${t}${c}`},isAbsolute(e){r(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return a(i)||t>2&&h(i)&&58===e.charCodeAt(1)&&a(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n<e.length;++n){let s=e[n];r(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let n=!0,s=0;if("string"==typeof i&&a(i.charCodeAt(0))){++s;let e=i.length;e>1&&a(i.charCodeAt(1))&&(++s,e>2&&(a(i.charCodeAt(2))?++s:n=!1))}if(n){for(;s<t.length&&a(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return u.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";let i=u.resolve(e),n=u.resolve(t);if(i===n||(e=i.toLowerCase(),t=n.toLowerCase(),e===t))return"";if(i.length!==e.length||n.length!==t.length){let e,t=i.split("\\"),s=n.split("\\");""===t[t.length-1]&&t.pop(),""===s[s.length-1]&&s.pop();let r=t.length,o=s.length,a=r<o?r:o;for(e=0;e<a&&t[e].toLowerCase()===s[e].toLowerCase();e++);return 0===e?n:e===a?o>a?s.slice(e).join("\\"):r>a?"..\\".repeat(r-1-e)+"..":"":"..\\".repeat(r-e)+s.slice(e).join("\\")}let s=0;for(;s<e.length&&92===e.charCodeAt(s);)s++;let o=e.length;for(;o-1>s&&92===e.charCodeAt(o-1);)o--;let a=o-s,l=0;for(;l<t.length&&92===t.charCodeAt(l);)l++;let h=t.length;for(;h-1>l&&92===t.charCodeAt(h-1);)h--;let d=h-l,c=a<d?a:d,g=-1,p=0;for(;p<c;p++){let i=e.charCodeAt(s+p);if(i!==t.charCodeAt(l+p))break;92===i&&(g=p)}if(p!==c){if(-1===g)return n}else{if(d>c){if(92===t.charCodeAt(l+p))return n.slice(l+p+1);if(2===p)return n.slice(l+p)}a>c&&(92===e.charCodeAt(s+p)?g=p:2===p&&(g=3)),-1===g&&(g=0)}let f="";for(p=s+g+1;p<=o;++p)(p===o||92===e.charCodeAt(p))&&(f+=0===f.length?"..":"\\..");return(l+=g,f.length>0)?`${f}${n.slice(l,h)}`:(92===n.charCodeAt(l)&&++l,n.slice(l,h))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=u.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(h(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return t},dirname(e){r(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,s=e.charCodeAt(0);if(1===t)return a(s)?e:".";if(a(s)){if(i=n=1,a(e.charCodeAt(1))){let s=2,r=2;for(;s<t&&!a(e.charCodeAt(s));)s++;if(s<t&&s!==r){for(r=s;s<t&&a(e.charCodeAt(s));)s++;if(s<t&&s!==r){for(r=s;s<t&&!a(e.charCodeAt(s));)s++;if(s===t)return e;s!==r&&(i=n=s+1)}}}}else h(s)&&58===e.charCodeAt(1)&&(n=i=t>2&&a(e.charCodeAt(2))?3:2);let o=-1,l=!0;for(let i=t-1;i>=n;--i)if(a(e.charCodeAt(i))){if(!l){o=i;break}}else l=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&r(t,"suffix"),r(e,"path");let n=0,s=-1,o=!0;if(e.length>=2&&h(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){let h=e.charCodeAt(i);if(a(h)){if(!o){n=i+1;break}}else -1===l&&(o=!1,l=i+1),r>=0&&(h===t.charCodeAt(r)?-1==--r&&(s=i):(r=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(a(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===s&&(o=!1,s=i+1);return -1===s?"":e.slice(n,s)},extname(e){r(e,"path");let t=0,i=-1,n=0,s=-1,o=!0,l=0;e.length>=2&&58===e.charCodeAt(1)&&h(e.charCodeAt(0))&&(t=n=2);for(let r=e.length-1;r>=t;--r){let t=e.charCodeAt(r);if(a(t)){if(!o){n=r+1;break}continue}-1===s&&(o=!1,s=r+1),46===t?-1===i?i=r:1!==l&&(l=1):-1!==i&&(l=-1)}return -1===i||-1===s||0===l||1===l&&i===s-1&&i===n+1?"":e.slice(i,s)},format:c.bind(null,"\\"),parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,s=e.charCodeAt(0);if(1===i)return a(s)?t.root=t.dir=e:t.base=t.name=e,t;if(a(s)){if(n=1,a(e.charCodeAt(1))){let t=2,s=2;for(;t<i&&!a(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&a(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&!a(e.charCodeAt(t));)t++;t===i?n=t:t!==s&&(n=t+1)}}}}else if(h(s)&&58===e.charCodeAt(1)){if(i<=2)return t.root=t.dir=e,t;if(n=2,a(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,l=n,d=-1,c=!0,u=e.length-1,g=0;for(;u>=n;--u){if(a(s=e.charCodeAt(u))){if(!c){l=u+1;break}continue}-1===d&&(c=!1,d=u+1),46===s?-1===o?o=u:1!==g&&(g=1):-1!==o&&(g=-1)}return -1!==d&&(-1===o||0===g||1===g&&o===d-1&&o===l+1?t.base=t.name=e.slice(l,d):(t.name=e.slice(l,o),t.base=e.slice(l,d),t.ext=e.slice(o,d))),l>0&&l!==n?t.dir=e.slice(0,l-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},g=(()=>{if(o){let e=/\\/g;return()=>{let t=(0,n.bJ)().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>(0,n.bJ)()})(),p={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=0&&!i;n--){let s=e[n];r(s,`paths[${n}]`),0!==s.length&&(t=`${s}/${t}`,i=47===s.charCodeAt(0))}if(!i){let e=g();t=`${e}/${t}`,i=47===e.charCodeAt(0)}return(t=d(t,!i,"/",l),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(r(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=d(e,!t,"/",l)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(r(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){if(0===e.length)return".";let t=[];for(let i=0;i<e.length;++i){let n=e[i];r(n,"path"),n.length>0&&t.push(n)}return 0===t.length?".":p.normalize(t.join("/"))},relative(e,t){if(r(e,"from"),r(t,"to"),e===t||(e=p.resolve(e),t=p.resolve(t),e===t))return"";let i=e.length,n=i-1,s=t.length-1,o=n<s?n:s,a=-1,l=0;for(;l<o;l++){let i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;47===i&&(a=l)}if(l===o)if(s>o){if(47===t.charCodeAt(1+l))return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else n>o&&(47===e.charCodeAt(1+l)?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)(l===i||47===e.charCodeAt(l))&&(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&r(t,"suffix"),r(e,"path");let n=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===s&&(o=!1,s=i+1);return -1===s?"":e.slice(n,s)},extname(e){r(e,"path");let t=-1,i=0,n=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){let a=e[r];if("/"===a){if(!s){i=r+1;break}continue}-1===n&&(s=!1,n=r+1),"."===a?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:c.bind(null,"/"),parse(e){let t;r(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let s=-1,o=0,a=-1,l=!0,h=e.length-1,d=0;for(;h>=t;--h){let t=e.charCodeAt(h);if(47===t){if(!l){o=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===t?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1)}if(-1!==a){let t=0===o&&n?1:o;-1===s||0===d||1===d&&s===a-1&&s===o+1?i.base=i.name=e.slice(t,a):(i.name=e.slice(t,s),i.base=e.slice(t,a),i.ext=e.slice(s,a))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};p.win32=u.win32=u,p.posix=u.posix=p;let f=o?u.normalize:p.normalize,m=o?u.join:p.join,_=o?u.resolve:p.resolve,v=o?u.relative:p.relative,b=o?u.dirname:p.dirname,C=o?u.basename:p.basename,w=o?u.extname:p.extname,y=o?u.sep:p.sep},16124:()=>{},16290:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P,B:()=>M});var n,s=i(74789),r=i(38661),o=i(1174);class a{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}var l=i(9734),h=i(8998),d=i(68376),c=i(48621),u=i(23121),g=i(81643),p=i(12549),f=i(48514),m=i(13934),_=i(69320),v=i(3489),b=i(19538),C=i(44612),w=i(8271),y=i(7974),S=i(7646),x=i(75649),k=i(62389),L=i(7055),D=i(39772),E=i(27044),N=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,n){t(i,n,e)}};function T(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let M=class extends r.jG{static{n=this}static{this.workerDescriptor=new a({esmModuleLocation:()=>L.zl.asBrowserUri("vs/editor/common/services/editorWebWorkerMain.js"),esmModuleLocationBundler:()=>new i.U(i(35458)),label:"editorWorkerService"})}constructor(e,t,i,s,r,o){super(),this._languageConfigurationService=s,this._webWorkerService=o,this._modelService=e,this._workerManager=this._register(new A(n.workerDescriptor,this._modelService,this._webWorkerService)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!T(this._modelService,e.uri))return Promise.resolve({links:[]});let i=await this._workerWithResources([e.uri]),n=await i.$computeLinks(e.uri.toString());return n&&{links:n}}})),this._register(r.completionProvider.register("*",new R(this._workerManager,t,this._modelService,this._languageConfigurationService,this._logService,r)))}canComputeUnicodeHighlights(e){return T(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,n){let s=await this._workerWithResources([e,t],!0),r=await s.$computeDiff(e.toString(),t.toString(),i,n);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map(e=>new b.t(new C.WL(new w.M(e[0],e[1]),new w.M(e[2],e[3])),o(e[4])))};function o(e){return e.map(e=>new C.wm(new w.M(e[0],e[1]),new w.M(e[2],e[3]),e[4]?.map(e=>new C.q6(new h.Q(e[0],e[1],e[2],e[3]),new h.Q(e[4],e[5],e[6],e[7])))))}}async computeMoreMinimalEdits(e,t,i=!1){if(!(0,p.EI)(t))return Promise.resolve(void 0);{if(!T(this._modelService,e))return Promise.resolve(t);let n=m.W.create(),r=this._workerWithResources([e]).then(n=>n.$computeMoreMinimalEdits(e.toString(),t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([r,(0,s.wR)(1e3).then(()=>t)])}}canNavigateValueSet(e){return T(this._modelService,e)}async navigateValueSet(e,t,i){let n=this._modelService.getModel(e);if(!n)return null;let s=this._languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=s.source,o=s.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return T(this._modelService,e)}async computeWordRanges(e,t){let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let n=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),s=n.source,r=n.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,s,r)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){let i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};M=n=N([I(0,u.S),I(1,g.U),I(2,f.rr),I(3,d.JZ),I(4,v.u),I(5,l.d)],M);class R{constructor(e,t,i,n,s,r){this.languageConfigurationService=n,this.logService=s,this.languageFeaturesService=r,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){let i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions||"offWithInlineSuggestions"===i.wordBasedSuggestions&&this.languageFeaturesService.inlineCompletionsProvider.has(e)&&function(e,t,i="*"){let n=D.A.defaultChatAgent?.completionsEnablementSetting;return!!n&&function(e,t="*"){return!!(0,E.Gv)(e)&&(void 0!==e[t]?!!e[t]:!!e["*"])}(e.getValue(t,n),i)}(this._configurationService,e.uri,e.getLanguageId()))return;let n=[];if("currentDocument"===i.wordBasedSuggestions)T(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())T(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestions||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new h.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):h.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column);this.logService.trace("[WordBasedCompletionItemProvider]",`word: "${r?.word||""}", wordDef: "${s}", replace: [${o.toString()}], insert: [${a.toString()}]`);let l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,r?.word,s);if(d)return{duration:d.duration,suggestions:d.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}}))}}}let A=class extends r.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._modelService=t,this._webWorkerService=i,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new S.Be).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4),y.G),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new P(this._workerDescriptor,!1,this._modelService,this._webWorkerService)),Promise.resolve(this._editorWorkerClient)}};A=N([I(1,u.S),I(2,l.d)],A);class O{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw Error("Not supported")}}let P=class extends r.jG{constructor(e,t,i,n){super(),this._workerDescriptorOrWorker=e,this._disposed=!1,this._modelService=i,this._webWorkerService=n,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(this._webWorkerService.createWorkerClient(this._workerDescriptorOrWorker)),k.M.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,o.IR)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{let e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,o.IR)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new O(new c.Q(null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new x.RK(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,_.aD)());let i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){let n=await this.workerWithSyncedResources(e),s=i.source,r=i.flags;return n.$textualSuggest(e.map(e=>e.toString()),t,s,r)}dispose(){super.dispose(),this._disposed=!0}};P=N([I(2,u.S),I(3,l.d)],P)},16363:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var n=i(27044);let s=Object.create(null);function r(e,t){if((0,n.Kg)(t)){let i=s[t];if(void 0===i)throw Error(`${e} references an unknown codicon: ${t}`);t=i}return s[e]=t,{id:e}}function o(){return s}},16454:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});let n=(0,i(93360).u1)("layoutService")},16654:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(70476),s=i(81900),r=i(29980),o=i(88492),a=i(38661),l=i(4990);class h{constructor(){this._coreKeybindings=new l.w,this._coreKeybindingRules=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToPlatform(e,t){if(1===t){if(e&&e.win)return e.win}else if(2===t){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}static bindToCurrentPlatform(e){return h.bindToPlatform(e,s.OS)}registerKeybindingRule(e){let t=h.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){let r=(0,n.Zv)(t.primary,s.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){let o=t.secondary[r],a=(0,n.Zv)(o,s.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}let r=this._coreKeybindingRules.push(e);return i.add((0,a.s)(()=>{r()})),i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,s,r){let o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)(()=>{o(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}let d=new h;function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return -1;if(e.command>t.command)return 1}return e.weight2-t.weight2}o.O.add("platform.keybindingsRegistry",d)},17382:(e,t,i)=>{"use strict";i.d(t,{E:()=>u,eP:()=>c,y0:()=>d});var n,s=i(26961),r=i(78882);i(84229),i(38661);var o=i(38168),a=i(19759),l=i(23435),h=i(85704);function d(...e){let t,i,n,s;return 2===e.length?[i,n]=e:[t,i,n,s]=e,new u(new o.nA(t,void 0,n),i,n,()=>u.globalTransaction,r.nx,s??h.j.ofCaller())}function c(e,t,i,n=h.j.ofCaller()){return new u(new o.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,()=>e.getTransaction?.()??u.globalTransaction,e.equalsFn??r.nx,n)}class u extends l.ZK{constructor(e,t,i,n,r,o){super(o),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=n,this._equalityComparator=r,this._hasValue=!1,this.handleEvent=e=>{let t=this._getValue(e),i=this._value,n=!this._hasValue||!this._equalityComparator(i,t),r=!1;n&&(this._value=t,this._hasValue&&(r=!0,(0,s.PO)(this._getTransaction(),e=>{for(let s of((0,a.t)()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue}),this._observers))e.updateObserver(s,this),s.handleChange(this,void 0)},()=>{let e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")})),this._hasValue=!0),r||(0,a.t)()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}debugGetState(){return{value:this._value,hasValue:this._hasValue}}}(n=d||(d={})).Observer=u,n.batchEventsGlobally=function(e,t){let i=!1;void 0===u.globalTransaction&&(u.globalTransaction=e,i=!0);try{t()}finally{i&&(u.globalTransaction=void 0)}}},17506:(e,t,i)=>{"use strict";function n(e,t,i=e.length-1){let s=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n],n))return n;return -1}(e,t,i);if(-1!==s)return e[s]}function s(e,t){let i=r(e,t);return -1===i?void 0:e[i]}function r(e,t,i=0,n=e.length){let s=i,o=n;for(;s<o;){let i=Math.floor((s+o)/2);t(e[i])?s=i+1:o=i}return s-1}function o(e,t){let i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?r=i:s=i+1}return s}i.d(t,{Cn:()=>h,TM:()=>u,Uk:()=>n,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>c,lx:()=>s,ot:()=>d,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate){for(let t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>0&&(i=s)}return i}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return h(e,(e,i)=>-t(e,i))}function u(e,t){if(0===e.length)return -1;let i=0;for(let n=1;n<e.length;n++)t(e[n],e[i])>0&&(i=n);return i}},17591:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(23435);function s(e){return new r(e)}class r extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}},17873:(e,t,i)=>{"use strict";i.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var n=i(15928);i(81900);var s=i(13091);function r(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,n.SA.sep)}function a(e){return -1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=n.SA.sep){var i;if(!e)return"";let s=e.length,o=e.charCodeAt(0);if(r(o)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let i=3;for(;i<s&&!r(e.charCodeAt(i));i++);if(3!==i&&!r(e.charCodeAt(i+1))){for(i+=1;i<s;i++)if(r(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}}return t}if(((i=o)>=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))if(r(e.charCodeAt(2)))return e.slice(0,2)+t;else return e.slice(0,2);let a=e.indexOf("://");if(-1!==a){for(a+=3;a<s;a++)if(r(e.charCodeAt(a)))return e.slice(0,a+1)}return""}function h(e,t,i,r=!1){let o=r?n.SA.sep:n.Vn;if(e===t)return!0;if(!e||!t||((e.indexOf("..")>=0||t.indexOf("..")>=0)&&(e=r?n.SA.normalize(e):(0,n.S8)(e),t=r?n.SA.normalize(t):(0,n.S8)(t)),t.length>e.length))return!1;if(i){if(!(0,s.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}},18364:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(88651).then(i.bind(i,88651))})},18422:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0,s=e.length;for(;n<s;){let s=e.charCodeAt(n);if(32===s)i++;else if(9===s)i=i-i%t+t;else break;n++}return n===s?-1:i}i.d(t,{G:()=>n})},18734:(e,t,i)=>{"use strict";var n,s;function r(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Q1:()=>h,bU:()=>o,hB:()=>a});class o{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class a{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,i),0),3),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),o=Math.min(t,i,n),l=0,h=0,d=(o+r)/2,c=r-o;if(c>0){switch(h=Math.min(d<=.5?c/(2*d):c/(2-2*d),1),r){case t:l=(i-n)/c+6*(i<n);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l*=60,l=Math.round(l)}return new a(l,h,d,s)}static _hue2rgb(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n,s=e.h/360,{s:r,l,a:h}=e;if(0===r)t=i=n=l;else{let e=l<.5?l*(1+r):l+r-l*r,o=2*l-e;t=a._hue2rgb(o,e,s+1/3),i=a._hue2rgb(o,e,s),n=a._hue2rgb(o,e,s-1/3)}return new o(Math.round(255*t),Math.round(255*i),Math.round(255*n),h)}}class l{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,i),0),3),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),r=s-Math.min(t,i,n);return new l(Math.round(60*(0===r?0:s===t?((i-n)/r%6+6)%6:s===i?(n-t)/r+2:(t-i)/r+4)),0===s?0:r/s,s,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r,[h,d,c]=[0,0,0];return t<60?(h=r,d=a):t<120?(h=a,d=r):t<180?(d=r,c=a):t<240?(d=a,c=r):t<300?(h=a,c=r):t<=360&&(h=r,c=a),new o(h=Math.round((h+l)*255),d=Math.round((d+l)*255),c=Math.round((c+l)*255),s)}}class h{static fromHex(e){return h.Format.CSS.parseHex(e)||h.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:a.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof o)this.rgba=e;else if(e instanceof a)this._hsla=e,this.rgba=a.toRGBA(e);else if(e instanceof l)this._hsva=e,this.rgba=l.toRGBA(e);else throw Error("Invalid color ctor argument");else throw Error("Color needs a value")}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&a.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*h._relativeLuminanceForComponent(this.rgba.r)+.7152*h._relativeLuminanceForComponent(this.rgba.g)+.0722*h._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new h(new a(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new h(new a(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){let{r:t,g:i,b:n,a:s}=this.rgba;return new h(new o(t,i,n,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new h(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,t=.5){let i=Math.min(Math.max(t,0),1),n=this.rgba,s=e.rgba,r=n.r+(s.r-n.r)*i,a=n.g+(s.g-n.g)*i,l=n.b+(s.b-n.b)*i,d=n.a+(s.a-n.a)*i;return new h(new o(r,a,l,d))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;let{r:t,g:i,b:n,a:s}=this.rgba;return new h(new o(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-n),1))}toString(){return this._toString||(this._toString=h.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|(255*this.rgba.a|0))>>>0),this._toNumber32Bit}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-n)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(n-s)/n,e.darken(i)}static{this.white=new h(new o(255,255,255,1))}static{this.black=new h(new o(0,0,0,1))}static{this.red=new h(new o(255,0,0,1))}static{this.blue=new h(new o(0,0,255,1))}static{this.green=new h(new o(0,255,0,1))}static{this.cyan=new h(new o(0,255,255,1))}static{this.lightgrey=new h(new o(211,211,211,1))}static{this.transparent=new h(new o(0,0,0,0))}}!function(e){function t(e){let t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){let t=e.length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t){let t=16*s(e.charCodeAt(1))+s(e.charCodeAt(2)),i=16*s(e.charCodeAt(3))+s(e.charCodeAt(4));return new n(new o(t,i,16*s(e.charCodeAt(5))+s(e.charCodeAt(6)),1))}if(9===t){let t=16*s(e.charCodeAt(1))+s(e.charCodeAt(2)),i=16*s(e.charCodeAt(3))+s(e.charCodeAt(4)),r=16*s(e.charCodeAt(5))+s(e.charCodeAt(6));return new n(new o(t,i,r,(16*s(e.charCodeAt(7))+s(e.charCodeAt(8)))/255))}if(4===t){let t=s(e.charCodeAt(1)),i=s(e.charCodeAt(2)),r=s(e.charCodeAt(3));return new n(new o(16*t+t,16*i+i,16*r+r))}if(5===t){let t=s(e.charCodeAt(1)),i=s(e.charCodeAt(2)),r=s(e.charCodeAt(3)),a=s(e.charCodeAt(4));return new n(new o(16*t+t,16*i+i,16*r+r,(16*a+a)/255))}return null}function s(e){switch(e){case 48:break;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}e.formatRGB=function(e){return 1===e.rgba.a?`rgb(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b})`:n.Format.CSS.formatRGBA(e)},e.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},e.formatHSL=function(e){return 1===e.hsla.a?`hsl(${e.hsla.h}, ${Math.round(100*e.hsla.s)}%, ${Math.round(100*e.hsla.l)}%)`:n.Format.CSS.formatHSLA(e)},e.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${Math.round(100*e.hsla.s)}%, ${Math.round(100*e.hsla.l)}%, ${e.hsla.a.toFixed(2)})`},e.formatHex=function(e){return`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}`},e.formatHexA=function(e,i=!1){return i&&1===e.rgba.a?n.Format.CSS.formatHex(e):`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}${t(Math.round(255*e.rgba.a))}`},e.format=function(e){return e.isOpaque()?n.Format.CSS.formatHex(e):n.Format.CSS.formatRGBA(e)},e.parse=function(e){if("transparent"===e)return n.transparent;if(e.startsWith("#"))return i(e);if(e.startsWith("rgba(")){let t=e.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!t)throw Error("Invalid color format "+e);let i=parseInt(t.groups?.r??"0"),s=parseInt(t.groups?.g??"0"),r=parseInt(t.groups?.b??"0");return new n(new o(i,s,r,parseFloat(t.groups?.a??"0")))}if(e.startsWith("rgb(")){let t=e.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!t)throw Error("Invalid color format "+e);let i=parseInt(t.groups?.r??"0"),s=parseInt(t.groups?.g??"0");return new n(new o(i,s,parseInt(t.groups?.b??"0")))}var t=e;switch(t){case"aliceblue":return new n(new o(240,248,255,1));case"antiquewhite":return new n(new o(250,235,215,1));case"aqua":case"cyan":return new n(new o(0,255,255,1));case"aquamarine":return new n(new o(127,255,212,1));case"azure":return new n(new o(240,255,255,1));case"beige":return new n(new o(245,245,220,1));case"bisque":return new n(new o(255,228,196,1));case"black":return new n(new o(0,0,0,1));case"blanchedalmond":return new n(new o(255,235,205,1));case"blue":return new n(new o(0,0,255,1));case"blueviolet":return new n(new o(138,43,226,1));case"brown":return new n(new o(165,42,42,1));case"burlywood":return new n(new o(222,184,135,1));case"cadetblue":return new n(new o(95,158,160,1));case"chartreuse":return new n(new o(127,255,0,1));case"chocolate":return new n(new o(210,105,30,1));case"coral":return new n(new o(255,127,80,1));case"cornflowerblue":return new n(new o(100,149,237,1));case"cornsilk":return new n(new o(255,248,220,1));case"crimson":return new n(new o(220,20,60,1));case"darkblue":return new n(new o(0,0,139,1));case"darkcyan":return new n(new o(0,139,139,1));case"darkgoldenrod":return new n(new o(184,134,11,1));case"darkgray":case"darkgrey":return new n(new o(169,169,169,1));case"darkgreen":return new n(new o(0,100,0,1));case"darkkhaki":return new n(new o(189,183,107,1));case"darkmagenta":return new n(new o(139,0,139,1));case"darkolivegreen":return new n(new o(85,107,47,1));case"darkorange":return new n(new o(255,140,0,1));case"darkorchid":return new n(new o(153,50,204,1));case"darkred":return new n(new o(139,0,0,1));case"darksalmon":return new n(new o(233,150,122,1));case"darkseagreen":return new n(new o(143,188,143,1));case"darkslateblue":return new n(new o(72,61,139,1));case"darkslategray":case"darkslategrey":return new n(new o(47,79,79,1));case"darkturquoise":return new n(new o(0,206,209,1));case"darkviolet":return new n(new o(148,0,211,1));case"deeppink":return new n(new o(255,20,147,1));case"deepskyblue":return new n(new o(0,191,255,1));case"dimgray":case"dimgrey":return new n(new o(105,105,105,1));case"dodgerblue":return new n(new o(30,144,255,1));case"firebrick":return new n(new o(178,34,34,1));case"floralwhite":return new n(new o(255,250,240,1));case"forestgreen":return new n(new o(34,139,34,1));case"fuchsia":case"magenta":return new n(new o(255,0,255,1));case"gainsboro":return new n(new o(220,220,220,1));case"ghostwhite":return new n(new o(248,248,255,1));case"gold":return new n(new o(255,215,0,1));case"goldenrod":return new n(new o(218,165,32,1));case"gray":case"grey":return new n(new o(128,128,128,1));case"green":return new n(new o(0,128,0,1));case"greenyellow":return new n(new o(173,255,47,1));case"honeydew":return new n(new o(240,255,240,1));case"hotpink":return new n(new o(255,105,180,1));case"indianred":return new n(new o(205,92,92,1));case"indigo":return new n(new o(75,0,130,1));case"ivory":return new n(new o(255,255,240,1));case"khaki":return new n(new o(240,230,140,1));case"lavender":return new n(new o(230,230,250,1));case"lavenderblush":return new n(new o(255,240,245,1));case"lawngreen":return new n(new o(124,252,0,1));case"lemonchiffon":return new n(new o(255,250,205,1));case"lightblue":return new n(new o(173,216,230,1));case"lightcoral":return new n(new o(240,128,128,1));case"lightcyan":return new n(new o(224,255,255,1));case"lightgoldenrodyellow":return new n(new o(250,250,210,1));case"lightgray":case"lightgrey":return new n(new o(211,211,211,1));case"lightgreen":return new n(new o(144,238,144,1));case"lightpink":return new n(new o(255,182,193,1));case"lightsalmon":return new n(new o(255,160,122,1));case"lightseagreen":return new n(new o(32,178,170,1));case"lightskyblue":return new n(new o(135,206,250,1));case"lightslategray":case"lightslategrey":return new n(new o(119,136,153,1));case"lightsteelblue":return new n(new o(176,196,222,1));case"lightyellow":return new n(new o(255,255,224,1));case"lime":return new n(new o(0,255,0,1));case"limegreen":return new n(new o(50,205,50,1));case"linen":return new n(new o(250,240,230,1));case"maroon":return new n(new o(128,0,0,1));case"mediumaquamarine":return new n(new o(102,205,170,1));case"mediumblue":return new n(new o(0,0,205,1));case"mediumorchid":return new n(new o(186,85,211,1));case"mediumpurple":return new n(new o(147,112,219,1));case"mediumseagreen":return new n(new o(60,179,113,1));case"mediumslateblue":return new n(new o(123,104,238,1));case"mediumspringgreen":return new n(new o(0,250,154,1));case"mediumturquoise":return new n(new o(72,209,204,1));case"mediumvioletred":return new n(new o(199,21,133,1));case"midnightblue":return new n(new o(25,25,112,1));case"mintcream":return new n(new o(245,255,250,1));case"mistyrose":return new n(new o(255,228,225,1));case"moccasin":return new n(new o(255,228,181,1));case"navajowhite":return new n(new o(255,222,173,1));case"navy":return new n(new o(0,0,128,1));case"oldlace":return new n(new o(253,245,230,1));case"olive":return new n(new o(128,128,0,1));case"olivedrab":return new n(new o(107,142,35,1));case"orange":return new n(new o(255,165,0,1));case"orangered":return new n(new o(255,69,0,1));case"orchid":return new n(new o(218,112,214,1));case"palegoldenrod":return new n(new o(238,232,170,1));case"palegreen":return new n(new o(152,251,152,1));case"paleturquoise":return new n(new o(175,238,238,1));case"palevioletred":return new n(new o(219,112,147,1));case"papayawhip":return new n(new o(255,239,213,1));case"peachpuff":return new n(new o(255,218,185,1));case"peru":return new n(new o(205,133,63,1));case"pink":return new n(new o(255,192,203,1));case"plum":return new n(new o(221,160,221,1));case"powderblue":return new n(new o(176,224,230,1));case"purple":return new n(new o(128,0,128,1));case"rebeccapurple":return new n(new o(102,51,153,1));case"red":return new n(new o(255,0,0,1));case"rosybrown":return new n(new o(188,143,143,1));case"royalblue":return new n(new o(65,105,225,1));case"saddlebrown":return new n(new o(139,69,19,1));case"salmon":return new n(new o(250,128,114,1));case"sandybrown":return new n(new o(244,164,96,1));case"seagreen":return new n(new o(46,139,87,1));case"seashell":return new n(new o(255,245,238,1));case"sienna":return new n(new o(160,82,45,1));case"silver":return new n(new o(192,192,192,1));case"skyblue":return new n(new o(135,206,235,1));case"slateblue":return new n(new o(106,90,205,1));case"slategray":case"slategrey":return new n(new o(112,128,144,1));case"snow":return new n(new o(255,250,250,1));case"springgreen":return new n(new o(0,255,127,1));case"steelblue":return new n(new o(70,130,180,1));case"tan":return new n(new o(210,180,140,1));case"teal":return new n(new o(0,128,128,1));case"thistle":return new n(new o(216,191,216,1));case"tomato":return new n(new o(255,99,71,1));case"turquoise":return new n(new o(64,224,208,1));case"violet":return new n(new o(238,130,238,1));case"wheat":return new n(new o(245,222,179,1));case"white":return new n(new o(255,255,255,1));case"whitesmoke":return new n(new o(245,245,245,1));case"yellow":return new n(new o(255,255,0,1));case"yellowgreen":return new n(new o(154,205,50,1));default:return null}},e.parseHex=i}((s=(n=h||(h={})).Format||(n.Format={})).CSS||(s.CSS={}))},19759:(e,t,i)=>{"use strict";let n;function s(e){n?n instanceof o?n.loggers.push(e):n=new o([n,e]):n=e}function r(){return n}i.d(t,{E:()=>s,t:()=>r});class o{constructor(e){this.loggers=e}handleObservableCreated(e,t){for(let i of this.loggers)i.handleObservableCreated(e,t)}handleOnListenerCountChanged(e,t){for(let i of this.loggers)i.handleOnListenerCountChanged(e,t)}handleObservableUpdated(e,t){for(let i of this.loggers)i.handleObservableUpdated(e,t)}handleAutorunCreated(e,t){for(let i of this.loggers)i.handleAutorunCreated(e,t)}handleAutorunDisposed(e){for(let t of this.loggers)t.handleAutorunDisposed(e)}handleAutorunDependencyChanged(e,t,i){for(let n of this.loggers)n.handleAutorunDependencyChanged(e,t,i)}handleAutorunStarted(e){for(let t of this.loggers)t.handleAutorunStarted(e)}handleAutorunFinished(e){for(let t of this.loggers)t.handleAutorunFinished(e)}handleDerivedDependencyChanged(e,t,i){for(let n of this.loggers)n.handleDerivedDependencyChanged(e,t,i)}handleDerivedCleared(e){for(let t of this.loggers)t.handleDerivedCleared(e)}handleBeginTransaction(e){for(let t of this.loggers)t.handleBeginTransaction(e)}handleEndTransaction(e){for(let t of this.loggers)t.handleEndTransaction(e)}}},19829:(e,t,i)=>{"use strict";i.d(t,{$_:()=>D,HT:()=>y,pU:()=>w});var n,s,r,o=i(74789),a=i(3809),l=i(16363),h=i(35362),d=i(84229),c=i(27044),u=i(34247),g=i(56558),p=i(29715),f=i(88492),m=i(38661);(s||(s={})).getDefinition=function(e,t){let i=e.defaults;for(;h.L.isThemeIcon(i);){let e=C.getIcon(i.id);if(!e)return;i=e.defaults}return i},(n=r||(r={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))}},n.fromJSONObject=function(e){let t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:u.r.parse(e.location)}))}};let _=/^([\w_-]+)$/,v=(0,g.kg)(2093,"The font ID must only contain letters, numbers, underscores and dashes.");class b extends m.jG{constructor(){super(),this._onDidChange=this._register(new d.vl),this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,g.kg)(2094,"The id of the font to use. If not set, the font that is defined first is used."),pattern:_.source,patternErrorMessage:v},fontCharacter:{type:"string",description:(0,g.kg)(2095,"The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${h.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return s}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;h.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let s of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${h.L.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);for(let s of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!h.L.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n")}}let C=new b;function w(e,t,i,n){return C.registerIcon(e,t,i,n)}function y(){return C}f.O.add("base.contributions.icons",C);let S=(0,l.J)();for(let e in S){let t="\\"+S[e].toString(16);C.registerIcon(e,{fontCharacter:t})}let x="vscode://schemas/icons",k=f.O.as(p.F.JSONContribution);k.registerSchema(x,C.getIconSchema());let L=new o.uC(()=>k.notifySchemaChanged(x),200);C.onDidChange(()=>{L.isScheduled()||L.schedule()});let D=w("widget-close",a.W.close,(0,g.kg)(2096,"Icon for the close action in widgets."));w("goto-previous-location",a.W.arrowUp,(0,g.kg)(2097,"Icon for goto previous editor location.")),w("goto-next-location",a.W.arrowDown,(0,g.kg)(2098,"Icon for goto next editor location.")),h.L.modify(a.W.sync,"spin"),h.L.modify(a.W.loading,"spin")},19835:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>F});var n=i(56558),s=i(64006),r=i(20674),o=i(47997),a=i(31601),l=i(75623),h=i(3907),d=i(26270),c=i(8998),u=i(51205),g=i(91117),p=i(25830),f=i(72032),m=i(42665),_=i(68376);class v extends a.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;let n=(0,g.i)(t.getOption(148),t.getOption(147)),s=t.getModel(),r=t.getSelections(),o=r.length>1,a=r.map(e=>{let t=new d.y(e.positionLineNumber,e.positionColumn),i=this._move(n,s,t,this._wordNavigationType,o);return this._moveTo(e,i,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(e=>f.MF.fromModelSelection(e))),1===a.length){let e=new d.y(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new u.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new u.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n,s){return p.z.moveWordLeft(e,t,i,n,s)}}class C extends v{_move(e,t,i,n,s){return p.z.moveWordRight(e,t,i,n)}}class w extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class y extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class S extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}class x extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class k extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class L extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class D extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class E extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class N extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class I extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}class T extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class M extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class R extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class A extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class O extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class P extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class F extends a.DX{constructor(e){super({canTriggerInlineEdits:!0,...e}),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){let n=e?.get(_.JZ);if(!t.hasModel()||!n)return;let s=(0,g.i)(t.getOption(148),t.getOption(147)),r=t.getModel(),o=t.getSelections(),a=t.getOption(10),h=t.getOption(15),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),c=t._getViewModel(),u=o.map(e=>{let i=this._delete({wordSeparators:s,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(13),autoClosingBrackets:a,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:c.getCursorAutoClosedCharacters()},this._wordNavigationType);return new l.iu(i,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class B extends F{_delete(e,t){let i=p.z.deleteWordLeft(e,t);return i||new c.Q(1,1,1,1)}}class W extends F{_delete(e,t){let i=p.z.deleteWordRight(e,t);if(i)return i;let n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new c.Q(n,s,n,s)}}class V extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:m.R.writable})}}class H extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:m.R.writable})}}class z extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class U extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:m.R.writable})}}class $ extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:m.R.writable})}}class K extends W{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class G extends a.ks{constructor(){super({id:"deleteInsideWord",precondition:m.R.writable,label:(0,n.aS)(1628,"Delete Word"),metadata:{description:(0,n.aS)(1629,"Delete the word at the cursor"),args:[{name:"args",schema:{type:"object",properties:{onlyWord:{type:"boolean",default:!1,description:(0,n.kg)(1627,"Delete only the word and leave surrounding whitespace")}}}}]}})}run(e,t,i){if(!t.hasModel())return;let n=!!(i&&"object"==typeof i&&i.onlyWord),s=(0,g.i)(t.getOption(148),t.getOption(147)),r=t.getModel(),o=t.getSelections().map(e=>{let t=p.z.deleteInsideWord(s,r,e,n);return new l.iu(t,"")});t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,a.E_)(new w),(0,a.E_)(new y),(0,a.E_)(new S),(0,a.E_)(new x),(0,a.E_)(new k),(0,a.E_)(new L),(0,a.E_)(new N),(0,a.E_)(new I),(0,a.E_)(new T),(0,a.E_)(new M),(0,a.E_)(new R),(0,a.E_)(new A),(0,a.E_)(new D),(0,a.E_)(new E),(0,a.E_)(new O),(0,a.E_)(new P),(0,a.E_)(new V),(0,a.E_)(new H),(0,a.E_)(new z),(0,a.E_)(new U),(0,a.E_)(new $),(0,a.E_)(new K),(0,a.Fl)(G)},19871:()=>{},19923:(e,t,i)=>{"use strict";i.d(t,{e:()=>r,i:()=>o});var n=i(38661);let s={showInstantHover:()=>void 0,showDelayedHover:()=>void 0,setupDelayedHover:()=>n.jG.None,setupDelayedHoverAtMouse:()=>n.jG.None,hideHover:()=>void 0,showAndFocusLastHover:()=>void 0,setupManagedHover:()=>({dispose:()=>void 0,show:()=>void 0,hide:()=>void 0,update:()=>void 0}),showManagedHover:()=>void 0};function r(e){s=e}function o(){return s}},20009:(e,t,i)=>{"use strict";var n,s;i.d(t,{GB:()=>o,i3:()=>r,l:()=>n}),(s=n||(n={}))[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent";class r{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class o{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))a(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),a(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),a(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),a(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&a(this.autoClosingPairsCloseSingleChar,t.close,t)}}function a(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},20071:(e,t,i)=>{"use strict";var n,s,r=i(26128),o=i(74789),a=i(42512),l=i(38661),h=i(31601),d=i(32671),c=i(8998),u=i(51205),g=i(42665),p=i(87253),f=i(56558),m=i(43868),_=i(20674),v=i(3489);i(23673);var b=i(62780),C=i(91016);i(49222);var w=i(83367),y=i(45837);i(96141);var S=i(4529);i(72880),i(77384),i(25523);var x=i(3463);i(8324),i(3330),i(30020);var k=i(63667);let L=(0,w.x1)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},(0,f.kg)(1615,"Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,w.x1)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},(0,f.kg)(1616,"Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,w.x1)("editor.wordHighlightTextBackground",L,(0,f.kg)(1617,"Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);let D=(0,w.x1)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:y.bu,hcLight:y.bu},(0,f.kg)(1618,"Border color of a symbol during read-access, like reading a variable."));(0,w.x1)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:y.bu,hcLight:y.bu},(0,f.kg)(1619,"Border color of a symbol during write-access, like writing to a variable.")),(0,w.x1)("editor.wordHighlightTextBorder",D,(0,f.kg)(1620,"Border color of a textual occurrence for a symbol."));let E=(0,w.x1)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",(0,f.kg)(1621,"Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),N=(0,w.x1)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",(0,f.kg)(1622,"Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=(0,w.x1)("editorOverviewRuler.wordHighlightTextForeground",S.z5,(0,f.kg)(1623,"Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);C.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,k.Yf)(N),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),C.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,k.Yf)(I),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}});let T=C.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,k.Yf)(S.z5),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),M=C.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"});C.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,k.Yf)(E),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),(0,k.zy)((e,t)=>{let i=e.getColor(S.Qw);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)});var R=i(93360);function A(e,t){let i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){let e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===i.length?(0,f.kg)(1334,"Cursor added: {0}",e):(0,f.kg)(1335,"Cursors added: {0}",e);(0,r.h5)(t)}}class O extends h.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:(0,f.aS)(1344,"Add Cursor Above"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1336,"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();let r=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorUp(s,r,n)),s.revealTopMostCursor(i.source),A(r,s.getCursorStates())}}class P extends h.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:(0,f.aS)(1345,"Add Cursor Below"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1337,"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();let r=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorDown(s,r,n)),s.revealBottomMostCursor(i.source),A(r,s.getCursorStates())}}class F extends h.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:(0,f.aS)(1346,"Add Cursors to Line Ends"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1338,"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){let e=t.getLineMaxColumn(n);i.push(new u.L(n,e,n,e))}e.endColumn>1&&i.push(new u.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),r=s.getCursorStates(),o=[];n.forEach(e=>this.getCursorsForSelection(e,i,o)),o.length>0&&t.setSelections(o),A(r,s.getCursorStates())}}class B extends h.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:(0,f.aS)(1347,"Add Cursors to Bottom"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let e=i[0].startLineNumber;e<=n;e++)s.push(new u.L(e,i[0].startColumn,e,i[0].endColumn));let r=t._getViewModel(),o=r.getCursorStates();s.length>0&&t.setSelections(s),A(o,r.getCursorStates())}}class W extends h.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:(0,f.aS)(1348,"Add Cursors to Top"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;e>=1;e--)n.push(new u.L(e,i[0].startColumn,e,i[0].endColumn));let s=t._getViewModel(),r=s.getCursorStates();n.length>0&&t.setSelections(n),A(r,s.getCursorStates())}}class V{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class H{static create(e,t){let i,n,s;if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new H(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let o=!1,a=e.getSelections();1===a.length&&a[0].isEmpty()?(o=!0,i=!0,n=!0):(i=r.wholeWord,n=r.matchCase);let l=e.getSelection(),h=null;if(l.isEmpty()){let t=e.getConfiguredWordAtPosition(l.getStartPosition());if(!t)return null;s=t.word,h=new u.L(l.startLineNumber,t.startColumn,l.startLineNumber,t.endColumn)}else s=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new H(e,t,o,s,i,n,h)}constructor(e,t,i,n,s,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();return e?new V(this._editor.getSelections().concat(e),e,0):null}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new V(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return i?new u.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();return e?new V(this._editor.getSelections().concat(e),e,0):null}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new V(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return i?new u.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,0x40000000):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,0x40000000)}}class z extends l.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(z.ID)}constructor(e){super(),this._sessionDispose=this._register(new l.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=H.create(this._editor,e);if(!t)return;this._session=t;let i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new u.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let i=e.getState().matchCase;if(!X(this._editor.getModel(),t,i)){let e=this._editor.getModel(),i=[];for(let n=0,s=t.length;n<s;n++)i[n]=this._expandEmptyToWord(e,t[n]);this._editor.setSelections(i);return}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){let e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(148):null,!1,0x40000000):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(148):null,!1,0x40000000)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){let e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){let n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map(e=>new u.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}class U extends h.ks{run(e,t){let i=z.get(t);if(!i)return;let n=t._getViewModel();if(n){let s=n.getCursorStates(),r=p.z0.get(t);if(r)this._run(i,r);else{let n=e.get(R._Y).createInstance(p.z0,t);this._run(i,n),n.dispose()}A(s,n.getCursorStates())}}}class $ extends U{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:(0,f.aS)(1349,"Add Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1339,"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class K extends U{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:(0,f.aS)(1350,"Add Selection to Previous Find Match"),precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1340,"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class G extends U{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:(0,f.aS)(1351,"Move Last Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:(0,a.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class j extends U{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:(0,f.aS)(1352,"Move Last Selection to Previous Find Match"),precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class q extends U{constructor(){super({id:"editor.action.selectHighlights",label:(0,f.aS)(1353,"Select All Occurrences of Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1341,"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class Q extends U{constructor(){super({id:"editor.action.changeAll",label:(0,f.aS)(1354,"Change All Occurrences"),precondition:_.M$.and(g.R.writable,g.R.editorTextFocus),kbOpts:{kbExpr:g.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class Y{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._cachedFindMatches=null,this._modelVersionId=this._model.getVersionId(),s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(c.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let Z=class extends l.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.uC(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));const i=p.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange(e=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this._isEnabledMultiline,this._maxLength,this.editor))}static _createState(e,t,i,n,s){if(!t||!s.hasModel())return null;if(!i){let e=s.getSelection();if(e.startLineNumber!==e.endLineNumber)return null}let r=z.get(s);if(!r)return null;let o=p.z0.get(s);if(!o)return null;let a=r.getSession(o);if(!a){let e=s.getSelections();if(e.length>1){let t=o.getState().matchCase;if(!X(s.getModel(),e,t))return null}a=H.create(s,o)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||n>0&&a.searchText.length>n)return null;let l=o.getState(),h=l.matchCase;if(l.isRevealed){let e=l.searchString;h||(e=e.toLowerCase());let t=a.searchText;if(h||(t=t.toLowerCase()),e===t&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new Y(s.getModel(),a.searchText,a.matchCase,a.wholeWord?s.getOption(148):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let i=this.state.findMatches(),n=this.editor.getSelections();n.sort(c.Q.compareRangesUsingStarts);let s=[];for(let e=0,t=0,r=i.length,o=n.length;e<r;){let r=i[e];if(t>=o)s.push(r),e++;else{let i=c.Q.compareRangesUsingStarts(r,n[t]);i<0?((n[t].isEmpty()||!c.Q.areIntersecting(r,n[t]))&&s.push(r),e++):(i>0||e++,t++)}}let r="off"!==this.editor.getOption(90),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=s.map(e=>({range:e,options:o?M:T}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function X(e,t,i){let n=J(e,t[0],!i);for(let s=1,r=t.length;s<r;s++){let r=t[s];if(r.isEmpty()||n!==J(e,r,!i))return!1}return!0}function J(e,t,i){let n=e.getValueInRange(t);return i?n.toLowerCase():n}Z=s=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=v.u,function(e,t){n(e,t,1)})],Z);class ee extends h.ks{constructor(){super({id:"editor.action.focusNextCursor",label:(0,f.aS)(1355,"Focus Next Cursor"),metadata:{description:(0,f.kg)(1342,"Focuses the next cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let s=Array.from(n.getCursorStates()),r=s.shift();r&&(s.push(r),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),A(s,n.getCursorStates()))}}class et extends h.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:(0,f.aS)(1356,"Focus Previous Cursor"),metadata:{description:(0,f.kg)(1343,"Focuses the previous cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let s=Array.from(n.getCursorStates()),r=s.pop();r&&(s.unshift(r),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),A(s,n.getCursorStates()))}}(0,h.HW)(z.ID,z,4),(0,h.HW)(Z.ID,Z,1),(0,h.Fl)(O),(0,h.Fl)(P),(0,h.Fl)(F),(0,h.Fl)($),(0,h.Fl)(K),(0,h.Fl)(G),(0,h.Fl)(j),(0,h.Fl)(q),(0,h.Fl)(Q),(0,h.Fl)(B),(0,h.Fl)(W),(0,h.Fl)(ee),(0,h.Fl)(et)},20322:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>d,LN:()=>a,YH:()=>h,ih:()=>c,rc:()=>o,wv:()=>l});var n=i(84229),s=i(38661),r=i(56558);class o extends s.jG{get onDidChange(){return this._onDidChange.event}constructor(e,t="",i="",s=!0,r){super(),this._onDidChange=this._register(new n.vl),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends s.jG{constructor(){super(...arguments),this._onWillRun=this._register(new n.vl),this._onDidRun=this._register(new n.vl)}get onWillRun(){return this._onWillRun.event}get onDidRun(){return this._onDidRun.event}async run(e,t){let i;if(e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=void 0}static join(...e){let t=[];for(let i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}static clean(e){for(;e.length>0&&e[0].id===l.ID;)e.shift();for(;e.length>0&&e[e.length-1].id===l.ID;)e.pop();for(let t=e.length-2;t>=0;t--)e[t].id===l.ID&&e[t+1].id===l.ID&&e.splice(t+1,1);return e}static{this.ID="vs.actions.separator"}async run(){}}class h{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class d extends o{static{this.ID="vs.actions.empty"}constructor(){super(d.ID,(0,r.kg)(32,"(empty)"),void 0,!1)}}function c(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},20349:(e,t,i)=>{"use strict";i.d(t,{c:()=>h});var n=i(7646),s=i(84229),r=i(38661);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1),this._register((0,r.s)(()=>this._mediaQueryList?.removeEventListener("change",this._listener)))}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){let t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t?.webkitBackingStorePixelRatio||t?.mozBackingStorePixelRatio||t?.msBackingStorePixelRatio||t?.oBackingStorePixelRatio||t?.backingStorePixelRatio||1)}}class l{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){let t=(0,n.Q2)(e),i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(s.Jh.once(n.Fv)(({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}let h=new l},20674:(e,t,i)=>{"use strict";i.d(t,{f1:()=>N,M$:()=>x,fN:()=>K,N1:()=>$,M0:()=>function e(t,i){if(0===t.type||1===i.type)return!0;if(9===t.type)return 9===i.type&&j(t.expr,i.expr);if(9===i.type){for(let n of i.expr)if(e(t,n))return!0;return!1}if(6===t.type){if(6===i.type)return j(i.expr,t.expr);for(let n of t.expr)if(e(n,i))return!0;return!1}return t.equals(i)}});var n=i(81900),s=i(13091),r=i(69320),o=i(56558);function a(...e){switch(e.length){case 1:return(0,o.kg)(1755,"Did you mean {0}?",e[0]);case 2:return(0,o.kg)(1756,"Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)(1757,"Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}let l=(0,o.kg)(1758,"Did you forget to open or close the quote?"),h=(0,o.kg)(1759,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">";case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=d._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(h);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var c=i(93360);let u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.zx),u.set("isLinux",n.j9),u.set("isWindows",n.uF),u.set("isWeb",n.HZ),u.set("isMacNative",n.zx&&!n.HZ),u.set("isEdge",n.UP),u.set("isFirefox",n.gm),u.set("isChrome",n.H8),u.set("isSafari",n.nr);let g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},f=(0,o.kg)(1737,"Empty context key expression"),m=(0,o.kg)(1738,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)(1739,"'in' after 'not'."),v=(0,o.kg)(1740,"closing parenthesis ')'"),b=(0,o.kg)(1741,"Unexpected token"),C=(0,o.kg)(1742,"Did you forget to put && or || before the token?"),w=(0,o.kg)(1743,"Unexpected end of expression"),y=(0,o.kg)(1744,"Did you forget to put a context key?");class S{static{this._parseError=Error()}constructor(e=p){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e)return void this._parsingErrors.push({message:f,offset:0,lexeme:"",additionalInfo:m});this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(e){if(e!==S._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),L.INSTANCE;case 12:return this._advance(),D.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();let e=this._expr();return this._consume(1,v),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,s=n.lastIndexOf("/"),r=s===n.length-1?void 0:this._removeFlagsGY(n.substring(s+1));try{i=new RegExp(n.substring(1,s),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(t,i)}switch(e.type){case 10:case 19:{let i,n=[e.lexeme];this._advance();let s=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;n.push(d.getLexeme(s)),this._advance(),s=this._peek()}let o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));try{i=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(t,i)}case 18:{let i=e.lexeme;this._advance();let n=null;if(!(0,s.AV)(i)){let t=i.indexOf("/"),s=i.lastIndexOf("/");if(t!==s&&t>=0){let r=i.slice(t+1,s),o="i"===i[s+1]?"i":"";try{n=new RegExp(r,o)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return W.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);let e=this._value();return x.notIn(t,e)}switch(this._peek().type){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return x.equals(t,e);switch(e){case"true":return x.has(t);case"false":return x.not(t);default:return x.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return x.notEquals(t,e);switch(e){case"true":return x.not(t);case"false":return x.has(t);default:return x.notEquals(t,e)}}case 5:return this._advance(),F.create(t,this._value());case 6:return this._advance(),B.create(t,this._value());case 7:return this._advance(),O.create(t,this._value());case 8:return this._advance(),P.create(t,this._value());case 13:return this._advance(),x.in(t,this._value());default:return x.has(t)}}case 20:throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:"",additionalInfo:y}),S._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
412
|
+
|${" --- |".repeat(t)}`)}}(e.slice(t));break}}let n=e.length-1;for(;n>=0&&("space"===e[n].type||"html"===e[n].type);)n--;let s=n>=0?e[n]:void 0,r=e.slice(n+1);if(!i&&s?.type==="list"){let e=function(e){let t,i=e.items[e.items.length-1],n=i.tokens?i.tokens[i.tokens.length-1]:void 0,s=e=>{let t=e.items.at(-1),i=t?.tokens.at(-1);return i?.type==="heading"||i?.type==="list"&&s(i)};if(n?.type!=="text"||"inRawBlock"in i){if(s(e)){let t=em(e.raw.trim()+" ")[0];if("list"!==t.type)return;return t}}else t=eV(n);if(!t||"paragraph"!==t.type)return;let r=eW(e.items.slice(0,-1)),o=i.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!o)return;let a=em(r+(o+eW(i.tokens.slice(0,-1))+t.raw))[0];if("list"===a.type)return a}(s);e&&(i=[e,...r],t=n)}if(!i&&s?.type==="paragraph"){let e=eV(s);e&&(i=[e,...r],t=n)}if(i){let n=[...e.slice(0,t),...i];return n.links=e.links,n}let o=e.at(-1);if(o?.type==="heading"){let t=function(e,t){if(e.raw.match(/-\s*$/))return em(t+" ")}(o,eW(e));if(t)return t}return null}(e);if(t)e=t;else break}return e}(b.lexer(S,e));f=b.parser(i,e)}else f=b.parse(S,{...t?.markedOptions,renderer:C,async:!1});e.supportThemeIcons&&(f=(0,eD.n)(f).map(e=>"string"==typeof e?e:e.outerHTML).join(""));let x=document.createElement("div"),k=eP(e,t.sanitizerConfig??{});if((0,ex.D$)(x,f,k),function(e,t,i){for(let n of i.querySelectorAll("img, audio, video, source")){let i=n.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=eR(ey.r.from(e.baseUri),s))}catch(e){}if(n.setAttribute("src",eT(e,s,!0)),t.sanitizerConfig?.remoteImageIsAllowed){let e=ey.r.parse(s);e.scheme===ev.ny.file||e.scheme===ev.ny.data||t.sanitizerConfig.remoteImageIsAllowed(e)||n.replaceWith((0,eS.$)("",void 0,n.outerHTML))}}}for(let t of i.querySelectorAll("a")){let i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=eT(e,i,!1);e.baseUri&&(n=eR(ey.r.from(e.baseUri),i)),t.dataset.href=n}}}(e,t,x),i?(m=i,(0,eS.Ln)(i,...x.childNodes)):m=x,w.length>0)Promise.all(w).then(e=>{if(v)return;let i=new Map(e);for(let e of m.querySelectorAll("div[data-code]")){let t=i.get(e.dataset.code??"");t&&(0,eS.Ln)(e,t)}t.asyncRenderCallback?.()});else if(y.length>0){let e=new Map(y);for(let t of m.querySelectorAll("div[data-code]")){let i=e.get(t.dataset.code??"");i&&(0,eS.Ln)(t,i)}}if(t.asyncRenderCallback)for(let e of m.getElementsByTagName("img")){let i=_.add((0,eS.ko)(e,"load",()=>{i.dispose(),t.asyncRenderCallback()}))}if(t.actionHandler){let i=i=>{let n=new eL.P((0,eS.zk)(m),i);(n.leftButton||n.middleButton)&&eI(e,t,n)};_.add((0,eS.ko)(m,"click",i)),_.add((0,eS.ko)(m,"auxclick",i)),_.add((0,eS.ko)(m,"keydown",i=>{let n=new ek.Z(i);(n.equals(10)||n.equals(3))&&eI(e,t,n)}))}for(let e of[...m.getElementsByTagName("input")])if(e.attributes.getNamedItem("type")?.value==="checkbox")e.setAttribute("disabled","");else if(t.sanitizerConfig?.replaceWithPlaintext){let t=(0,ex.cZ)(e);t?e.parentElement?.replaceChild(t,e):e.remove()}else e.remove();return{element:m,dispose:()=>{v=!0,_.dispose()}}}function eI(e,t,i){let s=i.target.closest("a[data-href]");if((0,eS.sb)(s))try{let i=s.dataset.href;i&&(e.baseUri&&(i=eR(ey.r.from(e.baseUri),i)),t.actionHandler?.(i,e))}catch(e){(0,n.dz)(e)}finally{i.preventDefault(),i.stopPropagation()}}function eT(e,t,i){let n=e.uris&&e.uris[t],s=ey.r.revive(n);return i?t.startsWith(ev.ny.data+":")?t:(s||(s=ey.r.parse(t)),ev.zl.uriToBrowserUri(s).toString(!0)):s&&ey.r.parse(t).toString()!==s.toString()?(s.query&&(s=s.with({query:function(e,t){let i;try{i=(0,e_.qg)(decodeURIComponent(t))}catch(e){}return i?encodeURIComponent(JSON.stringify(i=(0,eb.PI)(i,t=>e.uris&&e.uris[t]?ey.r.revive(e.uris[t]):void 0))):t}(e,s.query)})),s.toString()):t}function eM(e){if(!e)return"";let t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function eR(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,eC.o1)(e,t).toString():(0,eC.o1)((0,eC.pD)(e),t).toString()}let eA=Object.freeze([...ex.TT,"input"]),eO=Object.freeze(["align","autoplay","alt","colspan","controls","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","target","title","type","width","start","checked","disabled","value","data-code","data-href","data-severity",{attributeName:"style",shouldKeep:(e,t)=>"SPAN"===e.tagName&&"style"===t.attrName&&/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z0-9]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z0-9]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue)},{attributeName:"class",shouldKeep:(e,t)=>"SPAN"===e.tagName&&"class"===t.attrName&&/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue)}]);function eP(e,t){let i=e.isTrusted??!1,n=[ev.ny.http,ev.ny.https,ev.ny.mailto,ev.ny.file,ev.ny.vscodeFileResource,ev.ny.vscodeRemote,ev.ny.vscodeRemoteResource,ev.ny.vscodeNotebookCell,ev.ny.internal];return i&&n.push(ev.ny.command),t.allowedLinkSchemes?.augment&&n.push(...t.allowedLinkSchemes.augment),{allowedTags:{override:t.allowedTags?.override??eA},allowedAttributes:{override:t.allowedAttributes?.override??eO},allowedLinkProtocols:{override:n},allowRelativeLinkPaths:!!e.baseUri,allowedMediaProtocols:{override:[ev.ny.http,ev.ny.https,ev.ny.data,ev.ny.file,ev.ny.vscodeFileResource,ev.ny.vscodeRemote,ev.ny.vscodeRemoteResource]},allowRelativeMediaPaths:!!e.baseUri,replaceWithPlaintext:t.replaceWithPlaintext}}function eF(e,t){let i;if("string"==typeof e)return e;let n=e.value??"";return n.length>1e5&&(n=`${n.substr(0,1e5)}…`),(function(e,t,i={}){let n=eP(t,i);return(0,ex.pn)(e,n)})(ef(n,{async:!1,renderer:((i=new eh).code=({text:e})=>(0,ew.ih)(e),i.blockquote=({text:e})=>e+"\n",i.html=e=>"",i.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},i.hr=()=>"",i.list=function({items:e}){return e.map(e=>this.listitem(e)).join("\n")+"\n"},i.listitem=({text:e})=>e+"\n",i.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},i.table=function({header:e,rows:t}){return e.map(e=>this.tablecell(e)).join(" ")+"\n"+t.map(e=>e.map(e=>this.tablecell(e)).join(" ")).join("\n")+"\n"},i.tablerow=({text:e})=>e,i.tablecell=function({tokens:e}){return this.parser.parseInline(e)},i.strong=({text:e})=>e,i.em=({text:e})=>e,i.codespan=({text:e})=>e,i.br=e=>"\n",i.del=({text:e})=>e,i.image=e=>"",i.text=({text:e})=>e,i.link=({text:e})=>e,i)}),{isTrusted:!1},{}).toString().replace(/&(#\d+|[a-zA-Z]+);/g,e=>eB.get(e)??e).trim()}let eB=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function eW(e){let t="";return e.forEach(e=>{t+=e.raw}),t}function eV(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){let i=e.tokens[t];if("text"===i.type){let n=i.raw.split("\n"),s=n[n.length-1];if(s.includes("`"))return eH(e,"`");if(s.includes("**"))return eH(e,"**");if(s.match(/\*\w/))return eH(e,"*");else if(s.match(/(^|\s)__\w/))return eH(e,"__");else if(s.match(/(^|\s)_\w/))return eH(e,"_");else if(s.match(/(^|\s)\[.*\]\(\w*/)||s.match(/^[^\[]*\]\([^\)]*$/)&&e.tokens.slice(0,t).some(e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/))){let i=e.tokens.slice(t+1);if(i[0]?.type==="link"&&i[1]?.type==="text"&&i[1].raw.match(/^ *"[^"]*$/)||s.match(/^[^"]* +"[^"]*$/))return eH(e,'")',!1);return eH(e,")",!1)}else if(s.match(/(^|\s)\[\w*[^\]]*$/))return eH(e,"](https://microsoft.com)",!1)}}}function eH(e,t,i=!0){let n=eW(Array.isArray(e)?e:[e]);return em((i?n.trimEnd():n)+t)[0]}},14908:()=>{},15676:(e,t,i)=>{"use strict";i.d(t,{A3:()=>T,AQ:()=>K,Am:()=>N,As:()=>R,BD:()=>en,Bo:()=>et,CM:()=>D,D0:()=>u,H0:()=>E,I2:()=>ee,IW:()=>es,If:()=>ei,JB:()=>O,L0:()=>_,Mf:()=>c,P1:()=>eh,Pe:()=>ea,Qt:()=>b,WD:()=>el,WS:()=>eo,WY:()=>ed,Xr:()=>W,aZ:()=>$,bB:()=>er,hz:()=>x,ik:()=>P,je:()=>f,kG:()=>h,kM:()=>g,l5:()=>Q,lQ:()=>j,n4:()=>J,ob:()=>S,ow:()=>k,s7:()=>X,sC:()=>p,sH:()=>Y,sN:()=>G,ss:()=>q,tK:()=>I,tp:()=>M,vP:()=>L,vV:()=>y,vp:()=>z,w4:()=>v,wZ:()=>F,we:()=>m,x9:()=>B,xU:()=>d,yI:()=>U,yw:()=>V,zp:()=>Z});var n=i(56558),s=i(18734),r=i(83367),o=i(45837);i(96141);var a=i(4529);i(72880),i(77384),i(25523),i(3463),i(8324),i(3330),i(30020);var l=i(63667);let h=(0,r.x1)("editor.lineHighlightBackground",null,(0,n.kg)(641,"Background color for the highlight of line at the cursor position.")),d=(0,r.x1)("editor.inactiveLineHighlightBackground",h,(0,n.kg)(642,"Background color for the highlight of line at the cursor position when the editor is not focused.")),c=(0,r.x1)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.b1},(0,n.kg)(643,"Background color for the border around the line at the cursor position."));(0,r.x1)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},(0,n.kg)(644,"Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(645,"Background color of the border around highlighted ranges.")),(0,r.x1)("editor.symbolHighlightBackground",{dark:a.Ub,light:a.Ub,hcDark:null,hcLight:null},(0,n.kg)(646,"Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.bu,hcLight:o.bu},(0,n.kg)(647,"Background color of the border around highlighted symbols."));let u=(0,r.x1)("editorCursor.foreground",{dark:"#AEAFAD",light:s.Q1.black,hcDark:s.Q1.white,hcLight:"#0F4A85"},(0,n.kg)(648,"Color of the editor cursor.")),g=(0,r.x1)("editorCursor.background",null,(0,n.kg)(649,"The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),p=(0,r.x1)("editorMultiCursor.primary.foreground",u,(0,n.kg)(650,"Color of the primary editor cursor when multiple cursors are present.")),f=(0,r.x1)("editorMultiCursor.primary.background",g,(0,n.kg)(651,"The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1)("editorMultiCursor.secondary.foreground",u,(0,n.kg)(652,"Color of secondary editor cursors when multiple cursors are present.")),_=(0,r.x1)("editorMultiCursor.secondary.background",g,(0,n.kg)(653,"The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),v=(0,r.x1)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},(0,n.kg)(654,"Color of whitespace characters in the editor.")),b=(0,r.x1)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:s.Q1.white,hcLight:"#292929"},(0,n.kg)(655,"Color of editor line numbers.")),C=(0,r.x1)("editorIndentGuide.background",v,(0,n.kg)(656,"Color of the editor indentation guides."),!1,(0,n.kg)(657,"'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),w=(0,r.x1)("editorIndentGuide.activeBackground",v,(0,n.kg)(658,"Color of the active editor indentation guides."),!1,(0,n.kg)(659,"'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),y=(0,r.x1)("editorIndentGuide.background1",C,(0,n.kg)(660,"Color of the editor indentation guides (1).")),S=(0,r.x1)("editorIndentGuide.background2","#00000000",(0,n.kg)(661,"Color of the editor indentation guides (2).")),x=(0,r.x1)("editorIndentGuide.background3","#00000000",(0,n.kg)(662,"Color of the editor indentation guides (3).")),k=(0,r.x1)("editorIndentGuide.background4","#00000000",(0,n.kg)(663,"Color of the editor indentation guides (4).")),L=(0,r.x1)("editorIndentGuide.background5","#00000000",(0,n.kg)(664,"Color of the editor indentation guides (5).")),D=(0,r.x1)("editorIndentGuide.background6","#00000000",(0,n.kg)(665,"Color of the editor indentation guides (6).")),E=(0,r.x1)("editorIndentGuide.activeBackground1",w,(0,n.kg)(666,"Color of the active editor indentation guides (1).")),N=(0,r.x1)("editorIndentGuide.activeBackground2","#00000000",(0,n.kg)(667,"Color of the active editor indentation guides (2).")),I=(0,r.x1)("editorIndentGuide.activeBackground3","#00000000",(0,n.kg)(668,"Color of the active editor indentation guides (3).")),T=(0,r.x1)("editorIndentGuide.activeBackground4","#00000000",(0,n.kg)(669,"Color of the active editor indentation guides (4).")),M=(0,r.x1)("editorIndentGuide.activeBackground5","#00000000",(0,n.kg)(670,"Color of the active editor indentation guides (5).")),R=(0,r.x1)("editorIndentGuide.activeBackground6","#00000000",(0,n.kg)(671,"Color of the active editor indentation guides (6).")),A=(0,r.x1)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.bu,hcLight:o.bu},(0,n.kg)(672,"Color of editor active line number"),!1,(0,n.kg)(673,"Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));(0,r.x1)("editorLineNumber.activeForeground",A,(0,n.kg)(674,"Color of editor active line number"));let O=(0,r.x1)("editorLineNumber.dimmedForeground",null,(0,n.kg)(675,"Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),P=(0,r.x1)("editorRuler.foreground",{dark:"#5A5A5A",light:s.Q1.lightgrey,hcDark:s.Q1.white,hcLight:"#292929"},(0,n.kg)(676,"Color of the editor rulers."));(0,r.x1)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},(0,n.kg)(677,"Foreground color of editor CodeLens")),(0,r.x1)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},(0,n.kg)(678,"Background color behind matching brackets")),(0,r.x1)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.b1,hcLight:o.b1},(0,n.kg)(679,"Color for matching brackets boxes"));let F=(0,r.x1)("editorBracketMatch.foreground",null,(0,n.kg)(680,"Foreground color for matching brackets")),B=(0,r.x1)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},(0,n.kg)(681,"Color of the overview ruler border.")),W=(0,r.x1)("editorOverviewRuler.background",null,(0,n.kg)(682,"Background color of the editor overview ruler."));(0,r.x1)("editorGutter.background",a.Yt,(0,n.kg)(683,"Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:o.b1},(0,n.kg)(684,"Border color of unnecessary (unused) source code in the editor."));let V=(0,r.x1)("editorUnnecessaryCode.opacity",{dark:s.Q1.fromHex("#000a"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},(0,n.kg)(685,"Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."));(0,r.x1)("editorGhostText.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:s.Q1.fromHex("#292929").transparent(.8)},(0,n.kg)(686,"Border color of ghost text in the editor.")),(0,r.x1)("editorGhostText.foreground",{dark:s.Q1.fromHex("#ffffff56"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},(0,n.kg)(687,"Foreground color of the ghost text in the editor.")),(0,r.x1)("editorGhostText.background",null,(0,n.kg)(688,"Background color of the ghost text in the editor."));let H=new s.Q1(new s.bU(0,122,204,.6)),z=(0,r.x1)("editorOverviewRuler.rangeHighlightForeground",H,(0,n.kg)(689,"Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),U=(0,r.x1)("editorOverviewRuler.errorForeground",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(690,"Overview ruler marker color for errors.")),$=(0,r.x1)("editorOverviewRuler.warningForeground",{dark:a.Hn,light:a.Hn,hcDark:a.St,hcLight:a.St},(0,n.kg)(691,"Overview ruler marker color for warnings.")),K=(0,r.x1)("editorOverviewRuler.infoForeground",{dark:a.pO,light:a.pO,hcDark:a.II,hcLight:a.II},(0,n.kg)(692,"Overview ruler marker color for infos.")),G=(0,r.x1)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},(0,n.kg)(693,"Foreground color of brackets (1). Requires enabling bracket pair colorization.")),j=(0,r.x1)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},(0,n.kg)(694,"Foreground color of brackets (2). Requires enabling bracket pair colorization.")),q=(0,r.x1)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},(0,n.kg)(695,"Foreground color of brackets (3). Requires enabling bracket pair colorization.")),Q=(0,r.x1)("editorBracketHighlight.foreground4","#00000000",(0,n.kg)(696,"Foreground color of brackets (4). Requires enabling bracket pair colorization.")),Y=(0,r.x1)("editorBracketHighlight.foreground5","#00000000",(0,n.kg)(697,"Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Z=(0,r.x1)("editorBracketHighlight.foreground6","#00000000",(0,n.kg)(698,"Foreground color of brackets (6). Requires enabling bracket pair colorization.")),X=(0,r.x1)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new s.Q1(new s.bU(255,18,18,.8)),light:new s.Q1(new s.bU(255,18,18,.8)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},(0,n.kg)(699,"Foreground color of unexpected brackets.")),J=(0,r.x1)("editorBracketPairGuide.background1","#00000000",(0,n.kg)(700,"Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),ee=(0,r.x1)("editorBracketPairGuide.background2","#00000000",(0,n.kg)(701,"Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),et=(0,r.x1)("editorBracketPairGuide.background3","#00000000",(0,n.kg)(702,"Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),ei=(0,r.x1)("editorBracketPairGuide.background4","#00000000",(0,n.kg)(703,"Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),en=(0,r.x1)("editorBracketPairGuide.background5","#00000000",(0,n.kg)(704,"Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),es=(0,r.x1)("editorBracketPairGuide.background6","#00000000",(0,n.kg)(705,"Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),er=(0,r.x1)("editorBracketPairGuide.activeBackground1","#00000000",(0,n.kg)(706,"Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),eo=(0,r.x1)("editorBracketPairGuide.activeBackground2","#00000000",(0,n.kg)(707,"Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ea=(0,r.x1)("editorBracketPairGuide.activeBackground3","#00000000",(0,n.kg)(708,"Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),el=(0,r.x1)("editorBracketPairGuide.activeBackground4","#00000000",(0,n.kg)(709,"Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),eh=(0,r.x1)("editorBracketPairGuide.activeBackground5","#00000000",(0,n.kg)(710,"Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ed=(0,r.x1)("editorBracketPairGuide.activeBackground6","#00000000",(0,n.kg)(711,"Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1)("editorUnicodeHighlight.border",a.Hn,(0,n.kg)(712,"Border color used to highlight unicode characters.")),(0,r.x1)("editorUnicodeHighlight.background",a.wh,(0,n.kg)(713,"Background color used to highlight unicode characters.")),(0,l.zy)((e,t)=>{let i=e.getColor(a.Yt),n=e.getColor(h),s=n&&!n.isTransparent()?n:i;s&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${s}; }`)})},15735:()=>{},15928:(e,t,i)=>{"use strict";i.d(t,{IN:()=>u,LC:()=>w,P8:()=>C,S8:()=>f,SA:()=>p,V8:()=>v,Vn:()=>y,fj:()=>m,hd:()=>_,pD:()=>b});var n=i(16676);class s extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${s} ${n} of type ${t}`;super(r+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function r(e,t){if("string"!=typeof e)throw new s(t,"string",e)}let o="win32"===n.iD;function a(e){return 47===e||92===e}function l(e){return 47===e}function h(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e,t,i,n){let s="",r=0,o=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)l=e.charCodeAt(h);else if(n(l))break;else l=47;if(n(l)){if(o===h-1||1===a);else if(2===a){if(s.length<2||2!==r||46!==s.charCodeAt(s.length-1)||46!==s.charCodeAt(s.length-2)){if(s.length>2){let e=s.lastIndexOf(i);-1===e?(s="",r=0):r=(s=s.slice(0,e)).length-1-s.lastIndexOf(i),o=h,a=0;continue}else if(0!==s.length){s="",r=0,o=h,a=0;continue}}t&&(s+=s.length>0?`${i}..`:"..",r=2)}else s.length>0?s+=`${i}${e.slice(o+1,h)}`:s=e.slice(o+1,h),r=h-o-1;o=h,a=0}else 46===l&&-1!==a?++a:a=-1}return s}function c(e,t){var i;if(null===t||"object"!=typeof t)throw new s("pathObject","Object",t);let n=t.dir||t.root,r=t.base||`${t.name||""}${(i=t.ext)?`${"."===i[0]?"":"."}${i}`:""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let u={resolve(...e){let t="",i="",s=!1;for(let o=e.length-1;o>=-1;o--){let l;if(o>=0){if(r(l=e[o],`paths[${o}]`),0===l.length)continue}else 0===t.length?l=(0,n.bJ)():(void 0===(l=n._K[`=${t}`]||(0,n.bJ)())||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===l.charCodeAt(2))&&(l=`${t}\\`);let d=l.length,c=0,u="",g=!1,p=l.charCodeAt(0);if(1===d)a(p)&&(c=1,g=!0);else if(a(p))if(g=!0,a(l.charCodeAt(1))){let e=2,t=2;for(;e<d&&!a(l.charCodeAt(e));)e++;if(e<d&&e!==t){let i=l.slice(t,e);for(t=e;e<d&&a(l.charCodeAt(e));)e++;if(e<d&&e!==t){for(t=e;e<d&&!a(l.charCodeAt(e));)e++;(e===d||e!==t)&&(u=`\\\\${i}\\${l.slice(t,e)}`,c=e)}}}else c=1;else h(p)&&58===l.charCodeAt(1)&&(u=l.slice(0,2),c=2,d>2&&a(l.charCodeAt(2))&&(g=!0,c=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(s){if(t.length>0)break}else if(i=`${l.slice(c)}\\${i}`,s=g,g&&t.length>0)break}return i=d(i,!s,"\\",a),s?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;r(e,"path");let i=e.length;if(0===i)return".";let n=0,s=!1,o=e.charCodeAt(0);if(1===i)return l(o)?"\\":e;if(a(o))if(s=!0,a(e.charCodeAt(1))){let s=2,r=2;for(;s<i&&!a(e.charCodeAt(s));)s++;if(s<i&&s!==r){let o=e.slice(r,s);for(r=s;s<i&&a(e.charCodeAt(s));)s++;if(s<i&&s!==r){for(r=s;s<i&&!a(e.charCodeAt(s));)s++;if(s===i)return`\\\\${o}\\${e.slice(r)}\\`;s!==r&&(t=`\\\\${o}\\${e.slice(r,s)}`,n=s)}}}else n=1;else h(o)&&58===e.charCodeAt(1)&&(t=e.slice(0,2),n=2,i>2&&a(e.charCodeAt(2))&&(s=!0,n=3));let c=n<i?d(e.slice(n),!s,"\\",a):"";if(0!==c.length||s||(c="."),c.length>0&&a(e.charCodeAt(i-1))&&(c+="\\"),!s&&void 0===t&&e.includes(":")){if(c.length>=2&&h(c.charCodeAt(0))&&58===c.charCodeAt(1))return`.\\${c}`;let t=e.indexOf(":");do if(t===i-1||a(e.charCodeAt(t+1)))return`.\\${c}`;while(-1!==(t=e.indexOf(":",t+1)))}return void 0===t?s?`\\${c}`:c:s?`${t}\\${c}`:`${t}${c}`},isAbsolute(e){r(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return a(i)||t>2&&h(i)&&58===e.charCodeAt(1)&&a(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n<e.length;++n){let s=e[n];r(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let n=!0,s=0;if("string"==typeof i&&a(i.charCodeAt(0))){++s;let e=i.length;e>1&&a(i.charCodeAt(1))&&(++s,e>2&&(a(i.charCodeAt(2))?++s:n=!1))}if(n){for(;s<t.length&&a(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return u.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";let i=u.resolve(e),n=u.resolve(t);if(i===n||(e=i.toLowerCase(),t=n.toLowerCase(),e===t))return"";if(i.length!==e.length||n.length!==t.length){let e,t=i.split("\\"),s=n.split("\\");""===t[t.length-1]&&t.pop(),""===s[s.length-1]&&s.pop();let r=t.length,o=s.length,a=r<o?r:o;for(e=0;e<a&&t[e].toLowerCase()===s[e].toLowerCase();e++);return 0===e?n:e===a?o>a?s.slice(e).join("\\"):r>a?"..\\".repeat(r-1-e)+"..":"":"..\\".repeat(r-e)+s.slice(e).join("\\")}let s=0;for(;s<e.length&&92===e.charCodeAt(s);)s++;let o=e.length;for(;o-1>s&&92===e.charCodeAt(o-1);)o--;let a=o-s,l=0;for(;l<t.length&&92===t.charCodeAt(l);)l++;let h=t.length;for(;h-1>l&&92===t.charCodeAt(h-1);)h--;let d=h-l,c=a<d?a:d,g=-1,p=0;for(;p<c;p++){let i=e.charCodeAt(s+p);if(i!==t.charCodeAt(l+p))break;92===i&&(g=p)}if(p!==c){if(-1===g)return n}else{if(d>c){if(92===t.charCodeAt(l+p))return n.slice(l+p+1);if(2===p)return n.slice(l+p)}a>c&&(92===e.charCodeAt(s+p)?g=p:2===p&&(g=3)),-1===g&&(g=0)}let f="";for(p=s+g+1;p<=o;++p)(p===o||92===e.charCodeAt(p))&&(f+=0===f.length?"..":"\\..");return(l+=g,f.length>0)?`${f}${n.slice(l,h)}`:(92===n.charCodeAt(l)&&++l,n.slice(l,h))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=u.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(h(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return t},dirname(e){r(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,s=e.charCodeAt(0);if(1===t)return a(s)?e:".";if(a(s)){if(i=n=1,a(e.charCodeAt(1))){let s=2,r=2;for(;s<t&&!a(e.charCodeAt(s));)s++;if(s<t&&s!==r){for(r=s;s<t&&a(e.charCodeAt(s));)s++;if(s<t&&s!==r){for(r=s;s<t&&!a(e.charCodeAt(s));)s++;if(s===t)return e;s!==r&&(i=n=s+1)}}}}else h(s)&&58===e.charCodeAt(1)&&(n=i=t>2&&a(e.charCodeAt(2))?3:2);let o=-1,l=!0;for(let i=t-1;i>=n;--i)if(a(e.charCodeAt(i))){if(!l){o=i;break}}else l=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&r(t,"suffix"),r(e,"path");let n=0,s=-1,o=!0;if(e.length>=2&&h(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){let h=e.charCodeAt(i);if(a(h)){if(!o){n=i+1;break}}else -1===l&&(o=!1,l=i+1),r>=0&&(h===t.charCodeAt(r)?-1==--r&&(s=i):(r=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(a(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===s&&(o=!1,s=i+1);return -1===s?"":e.slice(n,s)},extname(e){r(e,"path");let t=0,i=-1,n=0,s=-1,o=!0,l=0;e.length>=2&&58===e.charCodeAt(1)&&h(e.charCodeAt(0))&&(t=n=2);for(let r=e.length-1;r>=t;--r){let t=e.charCodeAt(r);if(a(t)){if(!o){n=r+1;break}continue}-1===s&&(o=!1,s=r+1),46===t?-1===i?i=r:1!==l&&(l=1):-1!==i&&(l=-1)}return -1===i||-1===s||0===l||1===l&&i===s-1&&i===n+1?"":e.slice(i,s)},format:c.bind(null,"\\"),parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,s=e.charCodeAt(0);if(1===i)return a(s)?t.root=t.dir=e:t.base=t.name=e,t;if(a(s)){if(n=1,a(e.charCodeAt(1))){let t=2,s=2;for(;t<i&&!a(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&a(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&!a(e.charCodeAt(t));)t++;t===i?n=t:t!==s&&(n=t+1)}}}}else if(h(s)&&58===e.charCodeAt(1)){if(i<=2)return t.root=t.dir=e,t;if(n=2,a(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,l=n,d=-1,c=!0,u=e.length-1,g=0;for(;u>=n;--u){if(a(s=e.charCodeAt(u))){if(!c){l=u+1;break}continue}-1===d&&(c=!1,d=u+1),46===s?-1===o?o=u:1!==g&&(g=1):-1!==o&&(g=-1)}return -1!==d&&(-1===o||0===g||1===g&&o===d-1&&o===l+1?t.base=t.name=e.slice(l,d):(t.name=e.slice(l,o),t.base=e.slice(l,d),t.ext=e.slice(o,d))),l>0&&l!==n?t.dir=e.slice(0,l-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},g=(()=>{if(o){let e=/\\/g;return()=>{let t=(0,n.bJ)().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>(0,n.bJ)()})(),p={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=0&&!i;n--){let s=e[n];r(s,`paths[${n}]`),0!==s.length&&(t=`${s}/${t}`,i=47===s.charCodeAt(0))}if(!i){let e=g();t=`${e}/${t}`,i=47===e.charCodeAt(0)}return(t=d(t,!i,"/",l),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(r(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=d(e,!t,"/",l)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(r(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){if(0===e.length)return".";let t=[];for(let i=0;i<e.length;++i){let n=e[i];r(n,"path"),n.length>0&&t.push(n)}return 0===t.length?".":p.normalize(t.join("/"))},relative(e,t){if(r(e,"from"),r(t,"to"),e===t||(e=p.resolve(e),t=p.resolve(t),e===t))return"";let i=e.length,n=i-1,s=t.length-1,o=n<s?n:s,a=-1,l=0;for(;l<o;l++){let i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;47===i&&(a=l)}if(l===o)if(s>o){if(47===t.charCodeAt(1+l))return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else n>o&&(47===e.charCodeAt(1+l)?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)(l===i||47===e.charCodeAt(l))&&(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&r(t,"suffix"),r(e,"path");let n=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===s&&(o=!1,s=i+1);return -1===s?"":e.slice(n,s)},extname(e){r(e,"path");let t=-1,i=0,n=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){let a=e[r];if("/"===a){if(!s){i=r+1;break}continue}-1===n&&(s=!1,n=r+1),"."===a?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:c.bind(null,"/"),parse(e){let t;r(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let s=-1,o=0,a=-1,l=!0,h=e.length-1,d=0;for(;h>=t;--h){let t=e.charCodeAt(h);if(47===t){if(!l){o=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===t?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1)}if(-1!==a){let t=0===o&&n?1:o;-1===s||0===d||1===d&&s===a-1&&s===o+1?i.base=i.name=e.slice(t,a):(i.name=e.slice(t,s),i.base=e.slice(t,a),i.ext=e.slice(s,a))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};p.win32=u.win32=u,p.posix=u.posix=p;let f=o?u.normalize:p.normalize,m=o?u.join:p.join,_=o?u.resolve:p.resolve,v=o?u.relative:p.relative,b=o?u.dirname:p.dirname,C=o?u.basename:p.basename,w=o?u.extname:p.extname,y=o?u.sep:p.sep},16124:()=>{},16290:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P,B:()=>M});var n,s=i(74789),r=i(38661),o=i(1174);class a{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}var l=i(9734),h=i(8998),d=i(68376),c=i(62715),u=i(23121),g=i(81643),p=i(12549),f=i(48514),m=i(13934),_=i(69320),v=i(3489),b=i(19538),C=i(44612),w=i(8271),y=i(7974),S=i(7646),x=i(75649),k=i(62389),L=i(7055),D=i(39772),E=i(27044),N=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,n){t(i,n,e)}};function T(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let M=class extends r.jG{static{n=this}static{this.workerDescriptor=new a({esmModuleLocation:()=>L.zl.asBrowserUri("vs/editor/common/services/editorWebWorkerMain.js"),esmModuleLocationBundler:()=>new i.U(i(35458)),label:"editorWorkerService"})}constructor(e,t,i,s,r,o){super(),this._languageConfigurationService=s,this._webWorkerService=o,this._modelService=e,this._workerManager=this._register(new A(n.workerDescriptor,this._modelService,this._webWorkerService)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!T(this._modelService,e.uri))return Promise.resolve({links:[]});let i=await this._workerWithResources([e.uri]),n=await i.$computeLinks(e.uri.toString());return n&&{links:n}}})),this._register(r.completionProvider.register("*",new R(this._workerManager,t,this._modelService,this._languageConfigurationService,this._logService,r)))}canComputeUnicodeHighlights(e){return T(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,n){let s=await this._workerWithResources([e,t],!0),r=await s.$computeDiff(e.toString(),t.toString(),i,n);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map(e=>new b.t(new C.WL(new w.M(e[0],e[1]),new w.M(e[2],e[3])),o(e[4])))};function o(e){return e.map(e=>new C.wm(new w.M(e[0],e[1]),new w.M(e[2],e[3]),e[4]?.map(e=>new C.q6(new h.Q(e[0],e[1],e[2],e[3]),new h.Q(e[4],e[5],e[6],e[7])))))}}async computeMoreMinimalEdits(e,t,i=!1){if(!(0,p.EI)(t))return Promise.resolve(void 0);{if(!T(this._modelService,e))return Promise.resolve(t);let n=m.W.create(),r=this._workerWithResources([e]).then(n=>n.$computeMoreMinimalEdits(e.toString(),t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([r,(0,s.wR)(1e3).then(()=>t)])}}canNavigateValueSet(e){return T(this._modelService,e)}async navigateValueSet(e,t,i){let n=this._modelService.getModel(e);if(!n)return null;let s=this._languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=s.source,o=s.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return T(this._modelService,e)}async computeWordRanges(e,t){let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let n=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),s=n.source,r=n.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,s,r)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){let i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};M=n=N([I(0,u.S),I(1,g.U),I(2,f.rr),I(3,d.JZ),I(4,v.u),I(5,l.d)],M);class R{constructor(e,t,i,n,s,r){this.languageConfigurationService=n,this.logService=s,this.languageFeaturesService=r,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){let i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions||"offWithInlineSuggestions"===i.wordBasedSuggestions&&this.languageFeaturesService.inlineCompletionsProvider.has(e)&&function(e,t,i="*"){let n=D.A.defaultChatAgent?.completionsEnablementSetting;return!!n&&function(e,t="*"){return!!(0,E.Gv)(e)&&(void 0!==e[t]?!!e[t]:!!e["*"])}(e.getValue(t,n),i)}(this._configurationService,e.uri,e.getLanguageId()))return;let n=[];if("currentDocument"===i.wordBasedSuggestions)T(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())T(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestions||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new h.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):h.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column);this.logService.trace("[WordBasedCompletionItemProvider]",`word: "${r?.word||""}", wordDef: "${s}", replace: [${o.toString()}], insert: [${a.toString()}]`);let l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,r?.word,s);if(d)return{duration:d.duration,suggestions:d.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}}))}}}let A=class extends r.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._modelService=t,this._webWorkerService=i,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new S.Be).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4),y.G),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new P(this._workerDescriptor,!1,this._modelService,this._webWorkerService)),Promise.resolve(this._editorWorkerClient)}};A=N([I(1,u.S),I(2,l.d)],A);class O{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw Error("Not supported")}}let P=class extends r.jG{constructor(e,t,i,n){super(),this._workerDescriptorOrWorker=e,this._disposed=!1,this._modelService=i,this._webWorkerService=n,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(this._webWorkerService.createWorkerClient(this._workerDescriptorOrWorker)),k.M.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,o.IR)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{let e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,o.IR)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new O(new c.Q(null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new x.RK(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,_.aD)());let i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){let n=await this.workerWithSyncedResources(e),s=i.source,r=i.flags;return n.$textualSuggest(e.map(e=>e.toString()),t,s,r)}dispose(){super.dispose(),this._disposed=!0}};P=N([I(2,u.S),I(3,l.d)],P)},16363:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var n=i(27044);let s=Object.create(null);function r(e,t){if((0,n.Kg)(t)){let i=s[t];if(void 0===i)throw Error(`${e} references an unknown codicon: ${t}`);t=i}return s[e]=t,{id:e}}function o(){return s}},16454:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});let n=(0,i(93360).u1)("layoutService")},16654:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(70476),s=i(81900),r=i(29980),o=i(88492),a=i(38661),l=i(4990);class h{constructor(){this._coreKeybindings=new l.w,this._coreKeybindingRules=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToPlatform(e,t){if(1===t){if(e&&e.win)return e.win}else if(2===t){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}static bindToCurrentPlatform(e){return h.bindToPlatform(e,s.OS)}registerKeybindingRule(e){let t=h.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){let r=(0,n.Zv)(t.primary,s.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){let o=t.secondary[r],a=(0,n.Zv)(o,s.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}let r=this._coreKeybindingRules.push(e);return i.add((0,a.s)(()=>{r()})),i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,s,r){let o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)(()=>{o(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}let d=new h;function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return -1;if(e.command>t.command)return 1}return e.weight2-t.weight2}o.O.add("platform.keybindingsRegistry",d)},17382:(e,t,i)=>{"use strict";i.d(t,{E:()=>u,eP:()=>c,y0:()=>d});var n,s=i(26961),r=i(78882);i(84229),i(38661);var o=i(38168),a=i(19759),l=i(23435),h=i(85704);function d(...e){let t,i,n,s;return 2===e.length?[i,n]=e:[t,i,n,s]=e,new u(new o.nA(t,void 0,n),i,n,()=>u.globalTransaction,r.nx,s??h.j.ofCaller())}function c(e,t,i,n=h.j.ofCaller()){return new u(new o.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,()=>e.getTransaction?.()??u.globalTransaction,e.equalsFn??r.nx,n)}class u extends l.ZK{constructor(e,t,i,n,r,o){super(o),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=n,this._equalityComparator=r,this._hasValue=!1,this.handleEvent=e=>{let t=this._getValue(e),i=this._value,n=!this._hasValue||!this._equalityComparator(i,t),r=!1;n&&(this._value=t,this._hasValue&&(r=!0,(0,s.PO)(this._getTransaction(),e=>{for(let s of((0,a.t)()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue}),this._observers))e.updateObserver(s,this),s.handleChange(this,void 0)},()=>{let e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")})),this._hasValue=!0),r||(0,a.t)()?.handleObservableUpdated(this,{oldValue:i,newValue:t,change:void 0,didChange:n,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}debugGetState(){return{value:this._value,hasValue:this._hasValue}}}(n=d||(d={})).Observer=u,n.batchEventsGlobally=function(e,t){let i=!1;void 0===u.globalTransaction&&(u.globalTransaction=e,i=!0);try{t()}finally{i&&(u.globalTransaction=void 0)}}},17506:(e,t,i)=>{"use strict";function n(e,t,i=e.length-1){let s=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n],n))return n;return -1}(e,t,i);if(-1!==s)return e[s]}function s(e,t){let i=r(e,t);return -1===i?void 0:e[i]}function r(e,t,i=0,n=e.length){let s=i,o=n;for(;s<o;){let i=Math.floor((s+o)/2);t(e[i])?s=i+1:o=i}return s-1}function o(e,t){let i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?r=i:s=i+1}return s}i.d(t,{Cn:()=>h,TM:()=>u,Uk:()=>n,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>c,lx:()=>s,ot:()=>d,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate){for(let t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>0&&(i=s)}return i}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return h(e,(e,i)=>-t(e,i))}function u(e,t){if(0===e.length)return -1;let i=0;for(let n=1;n<e.length;n++)t(e[n],e[i])>0&&(i=n);return i}},17591:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(23435);function s(e){return new r(e)}class r extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}},17873:(e,t,i)=>{"use strict";i.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var n=i(15928);i(81900);var s=i(13091);function r(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,n.SA.sep)}function a(e){return -1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=n.SA.sep){var i;if(!e)return"";let s=e.length,o=e.charCodeAt(0);if(r(o)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let i=3;for(;i<s&&!r(e.charCodeAt(i));i++);if(3!==i&&!r(e.charCodeAt(i+1))){for(i+=1;i<s;i++)if(r(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}}return t}if(((i=o)>=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))if(r(e.charCodeAt(2)))return e.slice(0,2)+t;else return e.slice(0,2);let a=e.indexOf("://");if(-1!==a){for(a+=3;a<s;a++)if(r(e.charCodeAt(a)))return e.slice(0,a+1)}return""}function h(e,t,i,r=!1){let o=r?n.SA.sep:n.Vn;if(e===t)return!0;if(!e||!t||((e.indexOf("..")>=0||t.indexOf("..")>=0)&&(e=r?n.SA.normalize(e):(0,n.S8)(e),t=r?n.SA.normalize(t):(0,n.S8)(t)),t.length>e.length))return!1;if(i){if(!(0,s.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}},18364:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(88651).then(i.bind(i,88651))})},18422:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0,s=e.length;for(;n<s;){let s=e.charCodeAt(n);if(32===s)i++;else if(9===s)i=i-i%t+t;else break;n++}return n===s?-1:i}i.d(t,{G:()=>n})},18734:(e,t,i)=>{"use strict";var n,s;function r(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Q1:()=>h,bU:()=>o,hB:()=>a});class o{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class a{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,i),0),3),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),o=Math.min(t,i,n),l=0,h=0,d=(o+r)/2,c=r-o;if(c>0){switch(h=Math.min(d<=.5?c/(2*d):c/(2-2*d),1),r){case t:l=(i-n)/c+6*(i<n);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l*=60,l=Math.round(l)}return new a(l,h,d,s)}static _hue2rgb(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n,s=e.h/360,{s:r,l,a:h}=e;if(0===r)t=i=n=l;else{let e=l<.5?l*(1+r):l+r-l*r,o=2*l-e;t=a._hue2rgb(o,e,s+1/3),i=a._hue2rgb(o,e,s),n=a._hue2rgb(o,e,s-1/3)}return new o(Math.round(255*t),Math.round(255*i),Math.round(255*n),h)}}class l{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,i),0),3),this.a=r(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),r=s-Math.min(t,i,n);return new l(Math.round(60*(0===r?0:s===t?((i-n)/r%6+6)%6:s===i?(n-t)/r+2:(t-i)/r+4)),0===s?0:r/s,s,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r,[h,d,c]=[0,0,0];return t<60?(h=r,d=a):t<120?(h=a,d=r):t<180?(d=r,c=a):t<240?(d=a,c=r):t<300?(h=a,c=r):t<=360&&(h=r,c=a),new o(h=Math.round((h+l)*255),d=Math.round((d+l)*255),c=Math.round((c+l)*255),s)}}class h{static fromHex(e){return h.Format.CSS.parseHex(e)||h.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:a.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof o)this.rgba=e;else if(e instanceof a)this._hsla=e,this.rgba=a.toRGBA(e);else if(e instanceof l)this._hsva=e,this.rgba=l.toRGBA(e);else throw Error("Invalid color ctor argument");else throw Error("Color needs a value")}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&a.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*h._relativeLuminanceForComponent(this.rgba.r)+.7152*h._relativeLuminanceForComponent(this.rgba.g)+.0722*h._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new h(new a(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new h(new a(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){let{r:t,g:i,b:n,a:s}=this.rgba;return new h(new o(t,i,n,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new h(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,t=.5){let i=Math.min(Math.max(t,0),1),n=this.rgba,s=e.rgba,r=n.r+(s.r-n.r)*i,a=n.g+(s.g-n.g)*i,l=n.b+(s.b-n.b)*i,d=n.a+(s.a-n.a)*i;return new h(new o(r,a,l,d))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;let{r:t,g:i,b:n,a:s}=this.rgba;return new h(new o(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-n),1))}toString(){return this._toString||(this._toString=h.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|(255*this.rgba.a|0))>>>0),this._toNumber32Bit}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-n)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(n-s)/n,e.darken(i)}static{this.white=new h(new o(255,255,255,1))}static{this.black=new h(new o(0,0,0,1))}static{this.red=new h(new o(255,0,0,1))}static{this.blue=new h(new o(0,0,255,1))}static{this.green=new h(new o(0,255,0,1))}static{this.cyan=new h(new o(0,255,255,1))}static{this.lightgrey=new h(new o(211,211,211,1))}static{this.transparent=new h(new o(0,0,0,0))}}!function(e){function t(e){let t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){let t=e.length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t){let t=16*s(e.charCodeAt(1))+s(e.charCodeAt(2)),i=16*s(e.charCodeAt(3))+s(e.charCodeAt(4));return new n(new o(t,i,16*s(e.charCodeAt(5))+s(e.charCodeAt(6)),1))}if(9===t){let t=16*s(e.charCodeAt(1))+s(e.charCodeAt(2)),i=16*s(e.charCodeAt(3))+s(e.charCodeAt(4)),r=16*s(e.charCodeAt(5))+s(e.charCodeAt(6));return new n(new o(t,i,r,(16*s(e.charCodeAt(7))+s(e.charCodeAt(8)))/255))}if(4===t){let t=s(e.charCodeAt(1)),i=s(e.charCodeAt(2)),r=s(e.charCodeAt(3));return new n(new o(16*t+t,16*i+i,16*r+r))}if(5===t){let t=s(e.charCodeAt(1)),i=s(e.charCodeAt(2)),r=s(e.charCodeAt(3)),a=s(e.charCodeAt(4));return new n(new o(16*t+t,16*i+i,16*r+r,(16*a+a)/255))}return null}function s(e){switch(e){case 48:break;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}e.formatRGB=function(e){return 1===e.rgba.a?`rgb(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b})`:n.Format.CSS.formatRGBA(e)},e.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},e.formatHSL=function(e){return 1===e.hsla.a?`hsl(${e.hsla.h}, ${Math.round(100*e.hsla.s)}%, ${Math.round(100*e.hsla.l)}%)`:n.Format.CSS.formatHSLA(e)},e.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${Math.round(100*e.hsla.s)}%, ${Math.round(100*e.hsla.l)}%, ${e.hsla.a.toFixed(2)})`},e.formatHex=function(e){return`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}`},e.formatHexA=function(e,i=!1){return i&&1===e.rgba.a?n.Format.CSS.formatHex(e):`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}${t(Math.round(255*e.rgba.a))}`},e.format=function(e){return e.isOpaque()?n.Format.CSS.formatHex(e):n.Format.CSS.formatRGBA(e)},e.parse=function(e){if("transparent"===e)return n.transparent;if(e.startsWith("#"))return i(e);if(e.startsWith("rgba(")){let t=e.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!t)throw Error("Invalid color format "+e);let i=parseInt(t.groups?.r??"0"),s=parseInt(t.groups?.g??"0"),r=parseInt(t.groups?.b??"0");return new n(new o(i,s,r,parseFloat(t.groups?.a??"0")))}if(e.startsWith("rgb(")){let t=e.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!t)throw Error("Invalid color format "+e);let i=parseInt(t.groups?.r??"0"),s=parseInt(t.groups?.g??"0");return new n(new o(i,s,parseInt(t.groups?.b??"0")))}var t=e;switch(t){case"aliceblue":return new n(new o(240,248,255,1));case"antiquewhite":return new n(new o(250,235,215,1));case"aqua":case"cyan":return new n(new o(0,255,255,1));case"aquamarine":return new n(new o(127,255,212,1));case"azure":return new n(new o(240,255,255,1));case"beige":return new n(new o(245,245,220,1));case"bisque":return new n(new o(255,228,196,1));case"black":return new n(new o(0,0,0,1));case"blanchedalmond":return new n(new o(255,235,205,1));case"blue":return new n(new o(0,0,255,1));case"blueviolet":return new n(new o(138,43,226,1));case"brown":return new n(new o(165,42,42,1));case"burlywood":return new n(new o(222,184,135,1));case"cadetblue":return new n(new o(95,158,160,1));case"chartreuse":return new n(new o(127,255,0,1));case"chocolate":return new n(new o(210,105,30,1));case"coral":return new n(new o(255,127,80,1));case"cornflowerblue":return new n(new o(100,149,237,1));case"cornsilk":return new n(new o(255,248,220,1));case"crimson":return new n(new o(220,20,60,1));case"darkblue":return new n(new o(0,0,139,1));case"darkcyan":return new n(new o(0,139,139,1));case"darkgoldenrod":return new n(new o(184,134,11,1));case"darkgray":case"darkgrey":return new n(new o(169,169,169,1));case"darkgreen":return new n(new o(0,100,0,1));case"darkkhaki":return new n(new o(189,183,107,1));case"darkmagenta":return new n(new o(139,0,139,1));case"darkolivegreen":return new n(new o(85,107,47,1));case"darkorange":return new n(new o(255,140,0,1));case"darkorchid":return new n(new o(153,50,204,1));case"darkred":return new n(new o(139,0,0,1));case"darksalmon":return new n(new o(233,150,122,1));case"darkseagreen":return new n(new o(143,188,143,1));case"darkslateblue":return new n(new o(72,61,139,1));case"darkslategray":case"darkslategrey":return new n(new o(47,79,79,1));case"darkturquoise":return new n(new o(0,206,209,1));case"darkviolet":return new n(new o(148,0,211,1));case"deeppink":return new n(new o(255,20,147,1));case"deepskyblue":return new n(new o(0,191,255,1));case"dimgray":case"dimgrey":return new n(new o(105,105,105,1));case"dodgerblue":return new n(new o(30,144,255,1));case"firebrick":return new n(new o(178,34,34,1));case"floralwhite":return new n(new o(255,250,240,1));case"forestgreen":return new n(new o(34,139,34,1));case"fuchsia":case"magenta":return new n(new o(255,0,255,1));case"gainsboro":return new n(new o(220,220,220,1));case"ghostwhite":return new n(new o(248,248,255,1));case"gold":return new n(new o(255,215,0,1));case"goldenrod":return new n(new o(218,165,32,1));case"gray":case"grey":return new n(new o(128,128,128,1));case"green":return new n(new o(0,128,0,1));case"greenyellow":return new n(new o(173,255,47,1));case"honeydew":return new n(new o(240,255,240,1));case"hotpink":return new n(new o(255,105,180,1));case"indianred":return new n(new o(205,92,92,1));case"indigo":return new n(new o(75,0,130,1));case"ivory":return new n(new o(255,255,240,1));case"khaki":return new n(new o(240,230,140,1));case"lavender":return new n(new o(230,230,250,1));case"lavenderblush":return new n(new o(255,240,245,1));case"lawngreen":return new n(new o(124,252,0,1));case"lemonchiffon":return new n(new o(255,250,205,1));case"lightblue":return new n(new o(173,216,230,1));case"lightcoral":return new n(new o(240,128,128,1));case"lightcyan":return new n(new o(224,255,255,1));case"lightgoldenrodyellow":return new n(new o(250,250,210,1));case"lightgray":case"lightgrey":return new n(new o(211,211,211,1));case"lightgreen":return new n(new o(144,238,144,1));case"lightpink":return new n(new o(255,182,193,1));case"lightsalmon":return new n(new o(255,160,122,1));case"lightseagreen":return new n(new o(32,178,170,1));case"lightskyblue":return new n(new o(135,206,250,1));case"lightslategray":case"lightslategrey":return new n(new o(119,136,153,1));case"lightsteelblue":return new n(new o(176,196,222,1));case"lightyellow":return new n(new o(255,255,224,1));case"lime":return new n(new o(0,255,0,1));case"limegreen":return new n(new o(50,205,50,1));case"linen":return new n(new o(250,240,230,1));case"maroon":return new n(new o(128,0,0,1));case"mediumaquamarine":return new n(new o(102,205,170,1));case"mediumblue":return new n(new o(0,0,205,1));case"mediumorchid":return new n(new o(186,85,211,1));case"mediumpurple":return new n(new o(147,112,219,1));case"mediumseagreen":return new n(new o(60,179,113,1));case"mediumslateblue":return new n(new o(123,104,238,1));case"mediumspringgreen":return new n(new o(0,250,154,1));case"mediumturquoise":return new n(new o(72,209,204,1));case"mediumvioletred":return new n(new o(199,21,133,1));case"midnightblue":return new n(new o(25,25,112,1));case"mintcream":return new n(new o(245,255,250,1));case"mistyrose":return new n(new o(255,228,225,1));case"moccasin":return new n(new o(255,228,181,1));case"navajowhite":return new n(new o(255,222,173,1));case"navy":return new n(new o(0,0,128,1));case"oldlace":return new n(new o(253,245,230,1));case"olive":return new n(new o(128,128,0,1));case"olivedrab":return new n(new o(107,142,35,1));case"orange":return new n(new o(255,165,0,1));case"orangered":return new n(new o(255,69,0,1));case"orchid":return new n(new o(218,112,214,1));case"palegoldenrod":return new n(new o(238,232,170,1));case"palegreen":return new n(new o(152,251,152,1));case"paleturquoise":return new n(new o(175,238,238,1));case"palevioletred":return new n(new o(219,112,147,1));case"papayawhip":return new n(new o(255,239,213,1));case"peachpuff":return new n(new o(255,218,185,1));case"peru":return new n(new o(205,133,63,1));case"pink":return new n(new o(255,192,203,1));case"plum":return new n(new o(221,160,221,1));case"powderblue":return new n(new o(176,224,230,1));case"purple":return new n(new o(128,0,128,1));case"rebeccapurple":return new n(new o(102,51,153,1));case"red":return new n(new o(255,0,0,1));case"rosybrown":return new n(new o(188,143,143,1));case"royalblue":return new n(new o(65,105,225,1));case"saddlebrown":return new n(new o(139,69,19,1));case"salmon":return new n(new o(250,128,114,1));case"sandybrown":return new n(new o(244,164,96,1));case"seagreen":return new n(new o(46,139,87,1));case"seashell":return new n(new o(255,245,238,1));case"sienna":return new n(new o(160,82,45,1));case"silver":return new n(new o(192,192,192,1));case"skyblue":return new n(new o(135,206,235,1));case"slateblue":return new n(new o(106,90,205,1));case"slategray":case"slategrey":return new n(new o(112,128,144,1));case"snow":return new n(new o(255,250,250,1));case"springgreen":return new n(new o(0,255,127,1));case"steelblue":return new n(new o(70,130,180,1));case"tan":return new n(new o(210,180,140,1));case"teal":return new n(new o(0,128,128,1));case"thistle":return new n(new o(216,191,216,1));case"tomato":return new n(new o(255,99,71,1));case"turquoise":return new n(new o(64,224,208,1));case"violet":return new n(new o(238,130,238,1));case"wheat":return new n(new o(245,222,179,1));case"white":return new n(new o(255,255,255,1));case"whitesmoke":return new n(new o(245,245,245,1));case"yellow":return new n(new o(255,255,0,1));case"yellowgreen":return new n(new o(154,205,50,1));default:return null}},e.parseHex=i}((s=(n=h||(h={})).Format||(n.Format={})).CSS||(s.CSS={}))},19759:(e,t,i)=>{"use strict";let n;function s(e){n?n instanceof o?n.loggers.push(e):n=new o([n,e]):n=e}function r(){return n}i.d(t,{E:()=>s,t:()=>r});class o{constructor(e){this.loggers=e}handleObservableCreated(e,t){for(let i of this.loggers)i.handleObservableCreated(e,t)}handleOnListenerCountChanged(e,t){for(let i of this.loggers)i.handleOnListenerCountChanged(e,t)}handleObservableUpdated(e,t){for(let i of this.loggers)i.handleObservableUpdated(e,t)}handleAutorunCreated(e,t){for(let i of this.loggers)i.handleAutorunCreated(e,t)}handleAutorunDisposed(e){for(let t of this.loggers)t.handleAutorunDisposed(e)}handleAutorunDependencyChanged(e,t,i){for(let n of this.loggers)n.handleAutorunDependencyChanged(e,t,i)}handleAutorunStarted(e){for(let t of this.loggers)t.handleAutorunStarted(e)}handleAutorunFinished(e){for(let t of this.loggers)t.handleAutorunFinished(e)}handleDerivedDependencyChanged(e,t,i){for(let n of this.loggers)n.handleDerivedDependencyChanged(e,t,i)}handleDerivedCleared(e){for(let t of this.loggers)t.handleDerivedCleared(e)}handleBeginTransaction(e){for(let t of this.loggers)t.handleBeginTransaction(e)}handleEndTransaction(e){for(let t of this.loggers)t.handleEndTransaction(e)}}},19829:(e,t,i)=>{"use strict";i.d(t,{$_:()=>D,HT:()=>y,pU:()=>w});var n,s,r,o=i(74789),a=i(3809),l=i(16363),h=i(35362),d=i(84229),c=i(27044),u=i(34247),g=i(56558),p=i(29715),f=i(88492),m=i(38661);(s||(s={})).getDefinition=function(e,t){let i=e.defaults;for(;h.L.isThemeIcon(i);){let e=C.getIcon(i.id);if(!e)return;i=e.defaults}return i},(n=r||(r={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))}},n.fromJSONObject=function(e){let t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:u.r.parse(e.location)}))}};let _=/^([\w_-]+)$/,v=(0,g.kg)(2093,"The font ID must only contain letters, numbers, underscores and dashes.");class b extends m.jG{constructor(){super(),this._onDidChange=this._register(new d.vl),this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,g.kg)(2094,"The id of the font to use. If not set, the font that is defined first is used."),pattern:_.source,patternErrorMessage:v},fontCharacter:{type:"string",description:(0,g.kg)(2095,"The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${h.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return s}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;h.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let s of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${h.L.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);for(let s of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!h.L.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n")}}let C=new b;function w(e,t,i,n){return C.registerIcon(e,t,i,n)}function y(){return C}f.O.add("base.contributions.icons",C);let S=(0,l.J)();for(let e in S){let t="\\"+S[e].toString(16);C.registerIcon(e,{fontCharacter:t})}let x="vscode://schemas/icons",k=f.O.as(p.F.JSONContribution);k.registerSchema(x,C.getIconSchema());let L=new o.uC(()=>k.notifySchemaChanged(x),200);C.onDidChange(()=>{L.isScheduled()||L.schedule()});let D=w("widget-close",a.W.close,(0,g.kg)(2096,"Icon for the close action in widgets."));w("goto-previous-location",a.W.arrowUp,(0,g.kg)(2097,"Icon for goto previous editor location.")),w("goto-next-location",a.W.arrowDown,(0,g.kg)(2098,"Icon for goto next editor location.")),h.L.modify(a.W.sync,"spin"),h.L.modify(a.W.loading,"spin")},19835:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>F});var n=i(56558),s=i(64006),r=i(20674),o=i(47997),a=i(31601),l=i(75623),h=i(3907),d=i(26270),c=i(8998),u=i(51205),g=i(91117),p=i(25830),f=i(72032),m=i(42665),_=i(68376);class v extends a.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;let n=(0,g.i)(t.getOption(148),t.getOption(147)),s=t.getModel(),r=t.getSelections(),o=r.length>1,a=r.map(e=>{let t=new d.y(e.positionLineNumber,e.positionColumn),i=this._move(n,s,t,this._wordNavigationType,o);return this._moveTo(e,i,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(e=>f.MF.fromModelSelection(e))),1===a.length){let e=new d.y(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new u.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new u.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n,s){return p.z.moveWordLeft(e,t,i,n,s)}}class C extends v{_move(e,t,i,n,s){return p.z.moveWordRight(e,t,i,n)}}class w extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class y extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class S extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}class x extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class k extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class L extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class D extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class E extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class N extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class I extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}class T extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class M extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class R extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:r.M$.and(m.R.textInputFocus,r.M$.and(s.f,o.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class A extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class O extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class P extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n,s){return super._move((0,g.i)(h.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,s)}}class F extends a.DX{constructor(e){super({canTriggerInlineEdits:!0,...e}),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){let n=e?.get(_.JZ);if(!t.hasModel()||!n)return;let s=(0,g.i)(t.getOption(148),t.getOption(147)),r=t.getModel(),o=t.getSelections(),a=t.getOption(10),h=t.getOption(15),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),c=t._getViewModel(),u=o.map(e=>{let i=this._delete({wordSeparators:s,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(13),autoClosingBrackets:a,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:c.getCursorAutoClosedCharacters()},this._wordNavigationType);return new l.iu(i,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class B extends F{_delete(e,t){let i=p.z.deleteWordLeft(e,t);return i||new c.Q(1,1,1,1)}}class W extends F{_delete(e,t){let i=p.z.deleteWordRight(e,t);if(i)return i;let n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new c.Q(n,s,n,s)}}class V extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:m.R.writable})}}class H extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:m.R.writable})}}class z extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class U extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:m.R.writable})}}class $ extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:m.R.writable})}}class K extends W{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class G extends a.ks{constructor(){super({id:"deleteInsideWord",precondition:m.R.writable,label:(0,n.aS)(1628,"Delete Word"),metadata:{description:(0,n.aS)(1629,"Delete the word at the cursor"),args:[{name:"args",schema:{type:"object",properties:{onlyWord:{type:"boolean",default:!1,description:(0,n.kg)(1627,"Delete only the word and leave surrounding whitespace")}}}}]}})}run(e,t,i){if(!t.hasModel())return;let n=!!(i&&"object"==typeof i&&i.onlyWord),s=(0,g.i)(t.getOption(148),t.getOption(147)),r=t.getModel(),o=t.getSelections().map(e=>{let t=p.z.deleteInsideWord(s,r,e,n);return new l.iu(t,"")});t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,a.E_)(new w),(0,a.E_)(new y),(0,a.E_)(new S),(0,a.E_)(new x),(0,a.E_)(new k),(0,a.E_)(new L),(0,a.E_)(new N),(0,a.E_)(new I),(0,a.E_)(new T),(0,a.E_)(new M),(0,a.E_)(new R),(0,a.E_)(new A),(0,a.E_)(new D),(0,a.E_)(new E),(0,a.E_)(new O),(0,a.E_)(new P),(0,a.E_)(new V),(0,a.E_)(new H),(0,a.E_)(new z),(0,a.E_)(new U),(0,a.E_)(new $),(0,a.E_)(new K),(0,a.Fl)(G)},19871:()=>{},19923:(e,t,i)=>{"use strict";i.d(t,{e:()=>r,i:()=>o});var n=i(38661);let s={showInstantHover:()=>void 0,showDelayedHover:()=>void 0,setupDelayedHover:()=>n.jG.None,setupDelayedHoverAtMouse:()=>n.jG.None,hideHover:()=>void 0,showAndFocusLastHover:()=>void 0,setupManagedHover:()=>({dispose:()=>void 0,show:()=>void 0,hide:()=>void 0,update:()=>void 0}),showManagedHover:()=>void 0};function r(e){s=e}function o(){return s}},20009:(e,t,i)=>{"use strict";var n,s;i.d(t,{GB:()=>o,i3:()=>r,l:()=>n}),(s=n||(n={}))[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent";class r{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class o{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))a(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),a(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),a(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),a(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&a(this.autoClosingPairsCloseSingleChar,t.close,t)}}function a(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},20071:(e,t,i)=>{"use strict";var n,s,r=i(26128),o=i(74789),a=i(42512),l=i(38661),h=i(31601),d=i(32671),c=i(8998),u=i(51205),g=i(42665),p=i(87253),f=i(56558),m=i(43868),_=i(20674),v=i(3489);i(23673);var b=i(62780),C=i(91016);i(49222);var w=i(83367),y=i(45837);i(96141);var S=i(4529);i(72880),i(77384),i(25523);var x=i(3463);i(8324),i(3330),i(30020);var k=i(63667);let L=(0,w.x1)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},(0,f.kg)(1615,"Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,w.x1)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},(0,f.kg)(1616,"Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,w.x1)("editor.wordHighlightTextBackground",L,(0,f.kg)(1617,"Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);let D=(0,w.x1)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:y.bu,hcLight:y.bu},(0,f.kg)(1618,"Border color of a symbol during read-access, like reading a variable."));(0,w.x1)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:y.bu,hcLight:y.bu},(0,f.kg)(1619,"Border color of a symbol during write-access, like writing to a variable.")),(0,w.x1)("editor.wordHighlightTextBorder",D,(0,f.kg)(1620,"Border color of a textual occurrence for a symbol."));let E=(0,w.x1)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",(0,f.kg)(1621,"Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),N=(0,w.x1)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",(0,f.kg)(1622,"Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=(0,w.x1)("editorOverviewRuler.wordHighlightTextForeground",S.z5,(0,f.kg)(1623,"Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);C.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,k.Yf)(N),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),C.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,k.Yf)(I),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}});let T=C.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,k.Yf)(S.z5),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),M=C.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"});C.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,k.Yf)(E),position:b.A5.Center},minimap:{color:(0,k.Yf)(x.Xp),position:1}}),(0,k.zy)((e,t)=>{let i=e.getColor(S.Qw);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)});var R=i(93360);function A(e,t){let i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){let e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===i.length?(0,f.kg)(1334,"Cursor added: {0}",e):(0,f.kg)(1335,"Cursors added: {0}",e);(0,r.h5)(t)}}class O extends h.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:(0,f.aS)(1344,"Add Cursor Above"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1336,"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();let r=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorUp(s,r,n)),s.revealTopMostCursor(i.source),A(r,s.getCursorStates())}}class P extends h.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:(0,f.aS)(1345,"Add Cursor Below"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1337,"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();let r=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorDown(s,r,n)),s.revealBottomMostCursor(i.source),A(r,s.getCursorStates())}}class F extends h.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:(0,f.aS)(1346,"Add Cursors to Line Ends"),precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1338,"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){let e=t.getLineMaxColumn(n);i.push(new u.L(n,e,n,e))}e.endColumn>1&&i.push(new u.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),r=s.getCursorStates(),o=[];n.forEach(e=>this.getCursorsForSelection(e,i,o)),o.length>0&&t.setSelections(o),A(r,s.getCursorStates())}}class B extends h.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:(0,f.aS)(1347,"Add Cursors to Bottom"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let e=i[0].startLineNumber;e<=n;e++)s.push(new u.L(e,i[0].startColumn,e,i[0].endColumn));let r=t._getViewModel(),o=r.getCursorStates();s.length>0&&t.setSelections(s),A(o,r.getCursorStates())}}class W extends h.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:(0,f.aS)(1348,"Add Cursors to Top"),precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;e>=1;e--)n.push(new u.L(e,i[0].startColumn,e,i[0].endColumn));let s=t._getViewModel(),r=s.getCursorStates();n.length>0&&t.setSelections(n),A(r,s.getCursorStates())}}class V{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class H{static create(e,t){let i,n,s;if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new H(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let o=!1,a=e.getSelections();1===a.length&&a[0].isEmpty()?(o=!0,i=!0,n=!0):(i=r.wholeWord,n=r.matchCase);let l=e.getSelection(),h=null;if(l.isEmpty()){let t=e.getConfiguredWordAtPosition(l.getStartPosition());if(!t)return null;s=t.word,h=new u.L(l.startLineNumber,t.startColumn,l.startLineNumber,t.endColumn)}else s=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new H(e,t,o,s,i,n,h)}constructor(e,t,i,n,s,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();return e?new V(this._editor.getSelections().concat(e),e,0):null}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new V(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return i?new u.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();return e?new V(this._editor.getSelections().concat(e),e,0):null}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new V(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return i?new u.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,0x40000000):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,0x40000000)}}class z extends l.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(z.ID)}constructor(e){super(),this._sessionDispose=this._register(new l.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=H.create(this._editor,e);if(!t)return;this._session=t;let i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new u.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let i=e.getState().matchCase;if(!X(this._editor.getModel(),t,i)){let e=this._editor.getModel(),i=[];for(let n=0,s=t.length;n<s;n++)i[n]=this._expandEmptyToWord(e,t[n]);this._editor.setSelections(i);return}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){let e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(148):null,!1,0x40000000):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(148):null,!1,0x40000000)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){let e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){let n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map(e=>new u.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}class U extends h.ks{run(e,t){let i=z.get(t);if(!i)return;let n=t._getViewModel();if(n){let s=n.getCursorStates(),r=p.z0.get(t);if(r)this._run(i,r);else{let n=e.get(R._Y).createInstance(p.z0,t);this._run(i,n),n.dispose()}A(s,n.getCursorStates())}}}class $ extends U{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:(0,f.aS)(1349,"Add Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1339,"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class K extends U{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:(0,f.aS)(1350,"Add Selection to Previous Find Match"),precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1340,"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class G extends U{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:(0,f.aS)(1351,"Move Last Selection to Next Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:(0,a.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class j extends U{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:(0,f.aS)(1352,"Move Last Selection to Previous Find Match"),precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class q extends U{constructor(){super({id:"editor.action.selectHighlights",label:(0,f.aS)(1353,"Select All Occurrences of Find Match"),precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:(0,f.kg)(1341,"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class Q extends U{constructor(){super({id:"editor.action.changeAll",label:(0,f.aS)(1354,"Change All Occurrences"),precondition:_.M$.and(g.R.writable,g.R.editorTextFocus),kbOpts:{kbExpr:g.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class Y{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._cachedFindMatches=null,this._modelVersionId=this._model.getVersionId(),s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(c.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let Z=class extends l.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.uC(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));const i=p.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange(e=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this._isEnabledMultiline,this._maxLength,this.editor))}static _createState(e,t,i,n,s){if(!t||!s.hasModel())return null;if(!i){let e=s.getSelection();if(e.startLineNumber!==e.endLineNumber)return null}let r=z.get(s);if(!r)return null;let o=p.z0.get(s);if(!o)return null;let a=r.getSession(o);if(!a){let e=s.getSelections();if(e.length>1){let t=o.getState().matchCase;if(!X(s.getModel(),e,t))return null}a=H.create(s,o)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||n>0&&a.searchText.length>n)return null;let l=o.getState(),h=l.matchCase;if(l.isRevealed){let e=l.searchString;h||(e=e.toLowerCase());let t=a.searchText;if(h||(t=t.toLowerCase()),e===t&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new Y(s.getModel(),a.searchText,a.matchCase,a.wholeWord?s.getOption(148):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let i=this.state.findMatches(),n=this.editor.getSelections();n.sort(c.Q.compareRangesUsingStarts);let s=[];for(let e=0,t=0,r=i.length,o=n.length;e<r;){let r=i[e];if(t>=o)s.push(r),e++;else{let i=c.Q.compareRangesUsingStarts(r,n[t]);i<0?((n[t].isEmpty()||!c.Q.areIntersecting(r,n[t]))&&s.push(r),e++):(i>0||e++,t++)}}let r="off"!==this.editor.getOption(90),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=s.map(e=>({range:e,options:o?M:T}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function X(e,t,i){let n=J(e,t[0],!i);for(let s=1,r=t.length;s<r;s++){let r=t[s];if(r.isEmpty()||n!==J(e,r,!i))return!1}return!0}function J(e,t,i){let n=e.getValueInRange(t);return i?n.toLowerCase():n}Z=s=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=v.u,function(e,t){n(e,t,1)})],Z);class ee extends h.ks{constructor(){super({id:"editor.action.focusNextCursor",label:(0,f.aS)(1355,"Focus Next Cursor"),metadata:{description:(0,f.kg)(1342,"Focuses the next cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let s=Array.from(n.getCursorStates()),r=s.shift();r&&(s.push(r),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),A(s,n.getCursorStates()))}}class et extends h.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:(0,f.aS)(1356,"Focus Previous Cursor"),metadata:{description:(0,f.kg)(1343,"Focuses the previous cursor"),args:[]},precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let s=Array.from(n.getCursorStates()),r=s.pop();r&&(s.unshift(r),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),A(s,n.getCursorStates()))}}(0,h.HW)(z.ID,z,4),(0,h.HW)(Z.ID,Z,1),(0,h.Fl)(O),(0,h.Fl)(P),(0,h.Fl)(F),(0,h.Fl)($),(0,h.Fl)(K),(0,h.Fl)(G),(0,h.Fl)(j),(0,h.Fl)(q),(0,h.Fl)(Q),(0,h.Fl)(B),(0,h.Fl)(W),(0,h.Fl)(ee),(0,h.Fl)(et)},20322:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>d,LN:()=>a,YH:()=>h,ih:()=>c,rc:()=>o,wv:()=>l});var n=i(84229),s=i(38661),r=i(56558);class o extends s.jG{get onDidChange(){return this._onDidChange.event}constructor(e,t="",i="",s=!0,r){super(),this._onDidChange=this._register(new n.vl),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends s.jG{constructor(){super(...arguments),this._onWillRun=this._register(new n.vl),this._onDidRun=this._register(new n.vl)}get onWillRun(){return this._onWillRun.event}get onDidRun(){return this._onDidRun.event}async run(e,t){let i;if(e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=void 0}static join(...e){let t=[];for(let i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}static clean(e){for(;e.length>0&&e[0].id===l.ID;)e.shift();for(;e.length>0&&e[e.length-1].id===l.ID;)e.pop();for(let t=e.length-2;t>=0;t--)e[t].id===l.ID&&e[t+1].id===l.ID&&e.splice(t+1,1);return e}static{this.ID="vs.actions.separator"}async run(){}}class h{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class d extends o{static{this.ID="vs.actions.empty"}constructor(){super(d.ID,(0,r.kg)(32,"(empty)"),void 0,!1)}}function c(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},20349:(e,t,i)=>{"use strict";i.d(t,{c:()=>h});var n=i(7646),s=i(84229),r=i(38661);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1),this._register((0,r.s)(()=>this._mediaQueryList?.removeEventListener("change",this._listener)))}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){let t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t?.webkitBackingStorePixelRatio||t?.mozBackingStorePixelRatio||t?.msBackingStorePixelRatio||t?.oBackingStorePixelRatio||t?.backingStorePixelRatio||1)}}class l{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){let t=(0,n.Q2)(e),i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(s.Jh.once(n.Fv)(({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}let h=new l},20674:(e,t,i)=>{"use strict";i.d(t,{f1:()=>N,M$:()=>x,fN:()=>K,N1:()=>$,M0:()=>function e(t,i){if(0===t.type||1===i.type)return!0;if(9===t.type)return 9===i.type&&j(t.expr,i.expr);if(9===i.type){for(let n of i.expr)if(e(t,n))return!0;return!1}if(6===t.type){if(6===i.type)return j(i.expr,t.expr);for(let n of t.expr)if(e(n,i))return!0;return!1}return t.equals(i)}});var n=i(81900),s=i(13091),r=i(69320),o=i(56558);function a(...e){switch(e.length){case 1:return(0,o.kg)(1755,"Did you mean {0}?",e[0]);case 2:return(0,o.kg)(1756,"Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)(1757,"Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}let l=(0,o.kg)(1758,"Did you forget to open or close the quote?"),h=(0,o.kg)(1759,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">";case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=d._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(h);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var c=i(93360);let u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.zx),u.set("isLinux",n.j9),u.set("isWindows",n.uF),u.set("isWeb",n.HZ),u.set("isMacNative",n.zx&&!n.HZ),u.set("isEdge",n.UP),u.set("isFirefox",n.gm),u.set("isChrome",n.H8),u.set("isSafari",n.nr);let g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},f=(0,o.kg)(1737,"Empty context key expression"),m=(0,o.kg)(1738,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)(1739,"'in' after 'not'."),v=(0,o.kg)(1740,"closing parenthesis ')'"),b=(0,o.kg)(1741,"Unexpected token"),C=(0,o.kg)(1742,"Did you forget to put && or || before the token?"),w=(0,o.kg)(1743,"Unexpected end of expression"),y=(0,o.kg)(1744,"Did you forget to put a context key?");class S{static{this._parseError=Error()}constructor(e=p){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e)return void this._parsingErrors.push({message:f,offset:0,lexeme:"",additionalInfo:m});this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(e){if(e!==S._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),L.INSTANCE;case 12:return this._advance(),D.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();let e=this._expr();return this._consume(1,v),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,s=n.lastIndexOf("/"),r=s===n.length-1?void 0:this._removeFlagsGY(n.substring(s+1));try{i=new RegExp(n.substring(1,s),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(t,i)}switch(e.type){case 10:case 19:{let i,n=[e.lexeme];this._advance();let s=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;n.push(d.getLexeme(s)),this._advance(),s=this._peek()}let o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));try{i=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(t,i)}case 18:{let i=e.lexeme;this._advance();let n=null;if(!(0,s.AV)(i)){let t=i.indexOf("/"),s=i.lastIndexOf("/");if(t!==s&&t>=0){let r=i.slice(t+1,s),o="i"===i[s+1]?"i":"";try{n=new RegExp(r,o)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return W.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);let e=this._value();return x.notIn(t,e)}switch(this._peek().type){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return x.equals(t,e);switch(e){case"true":return x.has(t);case"false":return x.not(t);default:return x.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return x.notEquals(t,e);switch(e){case"true":return x.not(t);case"false":return x.has(t);default:return x.notEquals(t,e)}}case 5:return this._advance(),F.create(t,this._value());case 6:return this._advance(),B.create(t,this._value());case 7:return this._advance(),O.create(t,this._value());case 8:return this._advance(),P.create(t,this._value());case 13:return this._advance(),x.in(t,this._value());default:return x.has(t)}}case 20:throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:"",additionalInfo:y}),S._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
413
413
|
| KEY '=~' REGEX
|
|
414
414
|
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return!this._isAtEnd()&&this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){let n=(0,o.kg)(1745,"Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),s=t.offset,r=d.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:r,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class x{static false(){return L.INSTANCE}static true(){return D.INSTANCE}static has(e){return E.create(e)}static equals(e,t){return N.create(e,t)}static notEquals(e,t){return M.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return T.create(e,t)}static not(e){return R.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new S({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(null!=e)return this._parser.parse(e)}}function k(e,t){return e.cmp(t)}class L{static{this.INSTANCE=new L}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return D.INSTANCE}}class D{static{this.INSTANCE=new D}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}class E{static create(e,t=null){let i=u.get(e);return"boolean"==typeof i?i?D.INSTANCE:L.INSTANCE:new E(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:function(e,t){return e<t?-1:+(e>t)}(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=u.get(this.key);return"boolean"==typeof e?e?D.INSTANCE:L.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class N{static create(e,t,i=null){if("boolean"==typeof t)return t?E.create(e,i):R.create(e,i);let n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?D.INSTANCE:L.INSTANCE:new N(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=u.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?D.INSTANCE:L.INSTANCE:this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);if(Array.isArray(t)){if(t.includes(i))return!0;if(n.uF&&"string"==typeof i&&i.startsWith("file:///")){let e=i.toLowerCase();return t.some(t=>"string"==typeof t&&t.toLowerCase()===e)}return!1}if("string"==typeof i&&"object"==typeof t&&null!==t){if(g.call(t,i))return!0;if(n.uF&&i.startsWith("file:///")){let e=i.toLowerCase();return Object.keys(t).some(t=>t.toLowerCase()===e)}}return!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=T.create(this.key,this.valueKey)),this.negated}}class T{static create(e,t){return new T(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class M{static create(e,t,i=null){if("boolean"==typeof t)return t?R.create(e,i):E.create(e,i);let n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?L.INSTANCE:D.INSTANCE:new M(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=u.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?L.INSTANCE:D.INSTANCE:this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){let i=u.get(e);return"boolean"==typeof i?i?L.INSTANCE:D.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:function(e,t){return e<t?-1:+(e>t)}(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=u.get(this.key);return"boolean"==typeof e?e?L.INSTANCE:D.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}function A(e,t){if("string"==typeof e){let t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):L.INSTANCE}class O{static create(e,t,i=null){return A(t,t=>new O(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,i=null){return A(t,t=>new P(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return A(t,t=>new F(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return A(t,t=>new B(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return -1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:+(t>i)}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function H(e){let t=null;for(let i=0,n=e.length;i<n;i++){let n=e[i].substituteConstants();if(e[i]!==n&&null===t){t=[];for(let n=0;n<i;n++)t[n]=e[n]}null!==t&&(t[i]=n)}return null===t?e:t}class z{static create(e,t,i){return z._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return -1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let e=H(this.expr);return e===this.expr?this:z.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){let n=[],s=!1;for(let t of e)if(t){if(1===t.type){s=!0;continue}if(0===t.type)return L.INSTANCE;if(6===t.type){n.push(...t.expr);continue}n.push(t)}if(0===n.length&&s)return D.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(k);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){let e=n[n.length-1];if(9!==e.type)break;n.pop();let t=n.pop(),s=0===n.length,r=U.create(e.expr.map(e=>z.create([e,t],null,i)),null,s);r&&(n.push(r),n.sort(k))}if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return L.INSTANCE;if(1===n.length)return n[0]}return new z(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return -1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let i=k(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let e=H(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],s=!1;if(e){for(let t=0,i=e.length;t<i;t++){let i=e[t];if(i){if(0===i.type){s=!0;continue}if(1===i.type)return D.INSTANCE;if(9===i.type){n=n.concat(i.expr);continue}n.push(i)}}if(0===n.length&&s)return L.INSTANCE;n.sort(k)}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return D.INSTANCE;if(1===n.length)return n[0]}return new U(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let e of q(t))for(let t of q(i))n.push(z.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends E{static{this._info=[]}static all(){return $._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?$._info.push({...i,key:e}):!0!==i&&$._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return N.create(this.key,e)}}let K=(0,c.u1)("contextKeyService");function G(e,t,i,n){return e<i?-1:e>i?1:t<n?-1:+(t>n)}function j(e,t){let i=0,n=0;for(;i<e.length&&n<t.length;){let s=e[i].cmp(t[n]);if(s<0)return!1;0===s&&i++,n++}return i===e.length}function q(e){return 9===e.type?e.expr:[e]}},20745:()=>{},20876:(e,t,i)=>{"use strict";i.d(t,{GN:()=>s,vo:()=>n});class n{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}function s(e,t){return!(t.options.hideInCommentTokens&&r(e,t.range,e=>1===e)||t.options.hideInStringTokens&&r(e,t.range,e=>2===e))}function r(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let s=e.tokenization.getLineTokens(n),r=n===t.startLineNumber,o=n===t.endLineNumber,a=r?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<s.getCount()&&!(o&&s.getStartOffset(a)>t.endColumn-1);){if(!i(s.getStandardTokenType(a)))return!1;a++}}return!0}},20901:(e,t,i)=>{"use strict";i.d(t,{_q:()=>r,ew:()=>n,xC:()=>s});class n{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function s(e){return 32===e||9===e}class r{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){n++;const i=e[t],s=r.getKey(i);this.histogram[s]=(this.histogram[s]||0)+1}n++;const s=r.getKey("\n");this.histogram[s]=(this.histogram[s]||0)+1}this.totalCount=n}computeSimilarity(e){let t=0,i=Math.max(this.histogram.length,e.histogram.length);for(let n=0;n<i;n++)t+=Math.abs((this.histogram[n]??0)-(e.histogram[n]??0));return 1-t/(this.totalCount+e.totalCount)}}},21371:()=>{},21504:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(8593).then(i.bind(i,8593))})},21649:()=>{},22088:(e,t,i)=>{"use strict";i.d(t,{E:()=>c});var n=i(7646),s=i(69737),r=i(57278),o=i(80451),a=i(20322),l=i(84229),h=i(38661),d=i(27044);i(87708);class c extends h.jG{get viewItems(){return this._viewItems}get onDidBlur(){return this._onDidBlur.event}get onDidCancel(){return this._onDidCancel.event}get onDidRun(){return this._onDidRun.event}get onWillRun(){return this._onWillRun.event}constructor(e,t={}){let i,d;switch(super(),this._actionRunnerDisposables=this._register(new h.Cm),this.viewItemDisposables=this._register(new h.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.vl),this._onDidCancel=this._register(new l.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.cancelHasListener=!1,this._onDidRun=this._register(new l.vl),this._onWillRun=this._register(new l.vl),this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(e=>this._onWillRun.fire(e))),this._viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],d=[17];break;case 1:i=[16],d=[18],this.domNode.className+=" vertical"}this._register((0,n.ko)(this.domNode,n.Bx.KEY_DOWN,e=>{let t=new s.Z(e),n=!0,o="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?n=this.focusPrevious():d&&(t.equals(d[0])||t.equals(d[1]))?n=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?n=this.focusFirst():t.equals(13)?n=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?n=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:n=!1,n&&(t.preventDefault(),t.stopPropagation())})),this._register((0,n.ko)(this.domNode,n.Bx.KEY_UP,e=>{let t=new s.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register((0,n.w5)(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(0,n.bq)()!==this.domNode&&(0,n.QX)((0,n.bq)(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){let e=this.viewItems.find(e=>e instanceof r.EH&&e.isEnabled());e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach(e=>{e instanceof r.EH&&e.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){let t=this.actionsList.children[e];if((0,n.QX)((0,n.bq)(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(e=>this._onWillRun.fire(e))),this.viewItems.forEach(t=>t.actionRunner=e)}getContainer(){return this.domNode}hasAction(e){return -1!==this.viewItems.findIndex(t=>t.action.id===e.id)}getAction(e){if("number"==typeof e)return this.viewItems[e]?.action;if((0,n.sb)(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){let i=Array.isArray(e)?e:[e],s=(0,d.Et)(t.index)?t.index:null;if(i.forEach(e=>{let i,o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation");let a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(i=this.options.actionViewItemProvider(e,a)),i||(i=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(i,(0,n.ko)(o,n.Bx.CONTEXT_MENU,e=>{n.fs.stop(e,!0)})),i.actionRunner=this._actionRunner,i.setActionContext(this.context),i.render(o),null===s||s<0||s>=this.actionsList.children.length?(this.actionsList.appendChild(o),this._viewItems.push(i)):(this.actionsList.insertBefore(o,this.actionsList.children[s]),this._viewItems.splice(s,0,i),s++)}),this.focusable){let e=!1;for(let t of this.viewItems)t instanceof r.EH&&(!e&&t.action.id!==a.wv.ID&&(t.isEnabled()||!this.options.focusOnlyEnabledItems)?(t.setFocusable(!0),e=!0):t.setFocusable(!1))}"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}getWidth(e){return this.actionsList.children.item(e)?.clientWidth??0}pull(e){e>=0&&e<this.viewItems.length&&(this.actionsList.childNodes[e].remove(),this.viewItemDisposables.deleteAndDispose(this.viewItems[e]),(0,h.AS)(this._viewItems.splice(e,1)),this.refreshRole())}clear(){this.isEmpty()||(this._viewItems=(0,h.AS)(this._viewItems),this.viewItemDisposables.clearAndDisposeAll(),(0,n.w_)(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){let e=this.viewItems.findIndex(e=>e.isEnabled());this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){let i;if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let n=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=n,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){let t;if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=i,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();let n=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(n){let s=!0;(0,d.Tn)(n.focus)||(s=!1),this.options.focusOnlyEnabledItems&&(0,d.Tn)(n.isEnabled)&&!n.isEnabled()&&(s=!1),n.action.id===a.wv.ID&&(s=!1),s?(i||this.previouslyFocusedItem!==this.focusedItem)&&(n.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),s&&n.showHover?.()}}doTrigger(e){if(void 0===this.focusedItem)return;let t=this.viewItems[this.focusedItem];if(t instanceof r.EH){let i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this._viewItems=(0,h.AS)(this._viewItems),this.getContainer().remove(),super.dispose()}}},23121:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});let n=(0,i(93360).u1)("modelService")},23164:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});let n=(0,i(93360).u1)("environmentService")},23346:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var n=i(84229);class s{get event(){return this.emitter.event}constructor(e,t,i){const s=e=>this.emitter.fire(e);this.emitter=new n.vl({onWillAddFirstListener:()=>e.addEventListener(t,s,i),onDidRemoveLastListener:()=>e.removeEventListener(t,s,i)})}dispose(){this.emitter.dispose()}}},23385:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0,s=e.getVisibleRanges();if(s.length>0){t=s[0].getStartPosition();let n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){let t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;let t=e.getPosition();if(!this._cursorPosition||!t)return;let i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},23435:(e,t,i)=>{"use strict";let n,s;i.d(t,{Bm:()=>h,N2:()=>l,ZK:()=>c,zV:()=>d});var r=i(85704),o=i(38168),a=i(19759);function l(e){n=e}function h(e){s=e}class d{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t,i=r.j.ofCaller()){let s=void 0===t?void 0:e,a=void 0===t?e:t;return n({owner:s,debugName:()=>{let e=(0,o.qQ)(a);if(void 0!==e)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(a.toString());return t?`${this.debugName}.${t[2]}`:s?void 0:`${this.debugName} (mapped)`},debugReferenceFn:a},e=>a(this.read(e),e),i)}flatten(){return n({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(s(this,t)),this}}class c extends d{constructor(e){super(),this._observers=new Set,(0,a.t)()?.handleObservableCreated(this,e)}addObserver(e){let t=this._observers.size;this._observers.add(e),0===t&&this.onFirstObserverAdded(),t!==this._observers.size&&(0,a.t)()?.handleOnListenerCountChanged(this,this._observers.size)}removeObserver(e){let t=this._observers.delete(e);t&&0===this._observers.size&&this.onLastObserverRemoved(),t&&(0,a.t)()?.handleOnListenerCountChanged(this,this._observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers}}},23673:()=>{},23704:()=>{},23715:(e,t,i)=>{"use strict";i.d(t,{Y:()=>h,fm:()=>a,ht:()=>d,yC:()=>c,zL:()=>l}),i(78882),i(84229);var n=i(38661),s=i(38168),r=i(84065),o=i(85704);function a(e,t=o.j.ofCaller()){return new r.d(new s.nA(void 0,void 0,e),e,void 0,t)}function l(e,t,i=o.j.ofCaller()){return new r.d(new s.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,i)}function h(e,t,i=o.j.ofCaller()){return new r.d(new s.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.changeTracker,i)}function d(e,t){let i=new n.Cm,s=h({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,changeTracker:e.changeTracker},(e,n)=>{i.clear(),t(e,n,i)});return(0,n.s)(()=>{s.dispose(),i.dispose()})}function c(e){let t=new n.Cm,i=l({owner:void 0,debugName:void 0,debugReferenceFn:e},i=>{t.clear(),e(i,t)});return(0,n.s)(()=>{i.dispose(),t.dispose()})}},23979:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var n=i(7646),s=i(38661);class r{constructor(){this._hooks=new s.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,s.s)(()=>{try{e.releasePointerCapture(t)}catch(e){}}))}catch(t){a=(0,n.zk)(e)}this._hooks.add((0,n.ko)(a,n.Bx.POINTER_MOVE,e=>{e.buttons!==i?this.stopMonitoring(!0):(e.preventDefault(),this._pointerMoveCallback(e))})),this._hooks.add((0,n.ko)(a,n.Bx.POINTER_UP,e=>this.stopMonitoring(!0)))}}},24244:()=>{},25523:(e,t,i)=>{"use strict";i.d(t,{D7:()=>u,SN:()=>c,c6:()=>d,dd:()=>h,g$:()=>l});var n=i(56558),s=i(83367),r=i(45837),o=i(72880),a=i(77384);let l=(0,s.x1)("menu.border",{dark:null,light:null,hcDark:r.b1,hcLight:r.b1},(0,n.kg)(2044,"Border color of menus.")),h=(0,s.x1)("menu.foreground",o.yq,(0,n.kg)(2045,"Foreground color of menu items.")),d=(0,s.x1)("menu.background",o.rv,(0,n.kg)(2046,"Background color of menu items."));(0,s.x1)("menu.selectionForeground",a.GV,(0,n.kg)(2047,"Foreground color of the selected menu item in menus.")),(0,s.x1)("menu.selectionBackground",a.Rj,(0,n.kg)(2048,"Background color of the selected menu item in menus."));let c=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:r.bu,hcLight:r.bu},(0,n.kg)(2049,"Border color of the selected menu item in menus.")),u=(0,s.x1)("menu.separatorBackground",{dark:(0,s.JO)(r.CU,.2),light:(0,s.JO)(r.CU,.2),hcDark:r.b1,hcLight:r.b1},(0,n.kg)(2050,"Color of a separator menu item in menus."))},25830:(e,t,i)=>{"use strict";i.d(t,{c:()=>d,z:()=>h});var n=i(13091),s=i(72032),r=i(88901),o=i(91117),a=i(26270),l=i(8998);class h{static _createWord(e,t,i,n,s){return{start:n,end:s,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){let n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0,s=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){let i=e.charCodeAt(r),o=t.get(i);if(s&&r===s.index)return this._createIntlWord(s,o);if(0===o){if(2===n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1));n=1}else if(2===o){if(1===n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1));n=2}else if(1===o&&0!==n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){let s=t.findNextIntlWordAtOrAfterOffset(e,n),r=e.length;for(let o=n;o<r;o++){let n=e.charCodeAt(o),r=t.get(n);if(s&&o===s.index+s.segment.length||1===r||1===i&&2===r||2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){let n=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(n,e,i)}static _doFindNextWordOnLine(e,t,i){let n=0,s=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<s;o++){let i=e.charCodeAt(o),s=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,s);if(0===s){if(2===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,o-1),o);n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,o-1),o);n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,o-1),o)}return 0!==n?this._createWord(e,n,1,this._findStartOfWord(e,t,n,s-1),s):null}static _findStartOfWord(e,t,i,n){let s=t.findPrevIntlWordBeforeOrAtOffset(e,n);for(let r=n;r>=0;r--){let n=e.charCodeAt(r),o=t.get(n);if(s&&r===s.index)return r;if(1===o||1===i&&2===o||2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,n,s){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let l=h._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===n)return new a.y(r,l?l.start+1:1);if(1===n)return!s&&l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=h._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.start+1:1);if(3===n){for(;l&&2===l.wordType;)l=h._findPreviousWordOnLine(e,t,new a.y(r,l.start+1));return new a.y(r,l?l.start+1:1)}return l&&o<=l.end+1&&(l=h._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.end+1:1)}static _moveWordPartLeft(e,t){let i=t.lineNumber,s=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;let r=e.getLineContent(i);for(let e=t.column-1;e>1;e--){let t=r.charCodeAt(e-2),o=r.charCodeAt(e-1);if(95===t&&95!==o||45===t&&45!==o||((0,n.Lv)(t)||(0,n.DB)(t))&&(0,n.Wv)(o))return new a.y(i,e);if((0,n.Wv)(t)&&(0,n.Wv)(o)&&e+1<s){let t=r.charCodeAt(e);if((0,n.Lv)(t)||(0,n.DB)(t))return new a.y(i,e)}}return new a.y(i,1)}static moveWordRight(e,t,i,n){let s=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(s)&&s<t.getLineCount()&&(o=!0,s+=1,r=1);let l=h._findNextWordOnLine(e,t,new a.y(s,r));if(2===n)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=h._findNextWordOnLine(e,t,new a.y(s,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(s);else if(3===n){for(o&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=h._findNextWordOnLine(e,t,new a.y(s,l.end+1));r=l?l.start+1:t.getLineMaxColumn(s)}else l&&!o&&r>=l.start+1&&(l=h._findNextWordOnLine(e,t,new a.y(s,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(s);return new a.y(s,r)}static _moveWordPartRight(e,t){let i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===s)return i<e.getLineCount()?new a.y(i+1,1):t;let r=e.getLineContent(i);for(let e=t.column+1;e<s;e++){let t=r.charCodeAt(e-2),o=r.charCodeAt(e-1);if(95!==t&&95===o||45!==t&&45===o||((0,n.Lv)(t)||(0,n.DB)(t))&&(0,n.Wv)(o))return new a.y(i,e);if((0,n.Wv)(t)&&(0,n.Wv)(o)&&e+1<s){let t=r.charCodeAt(e);if((0,n.Lv)(t)||(0,n.DB)(t))return new a.y(i,e)}}return new a.y(i,s)}static _deleteWordLeftWhitespace(e,t){let i=e.getLineContent(t.lineNumber),s=t.column-2,r=(0,n.lT)(i,s);return r+1<s?new l.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){let i=e.wordSeparators,n=e.model,s=e.selection,o=e.whitespaceHeuristics;if(!s.isEmpty())return s;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){let t=e.selection.getPosition();return new l.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}let d=new a.y(s.positionLineNumber,s.positionColumn),c=d.lineNumber,u=d.column;if(1===c&&1===u)return null;if(o){let e=this._deleteWordLeftWhitespace(n,d);if(e)return e}let g=h._findPreviousWordOnLine(i,n,d);return 0===t?g?u=g.start+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=h._findPreviousWordOnLine(i,n,new a.y(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.Q(c,u,d.lineNumber,d.column)}static deleteInsideWord(e,t,i,n=!1){if(!i.isEmpty())return i;let s=new a.y(i.positionLineNumber,i.positionColumn),r=this._deleteInsideWordWhitespace(t,s);return r||this._deleteInsideWordDetermineDeleteRange(e,t,s,n)}static _charAtIsWhitespace(e,t){let i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let s=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,s))return null;let r=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,r))return null;for(;s>0&&this._charAtIsWhitespace(i,s-1);)s--;for(;r+1<n&&this._charAtIsWhitespace(i,r+1);)r++;return new l.Q(t.lineNumber,s+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i,n){let s=t.getLineContent(i.lineNumber),r=s.length;if(0===r)if(i.lineNumber>1)return new l.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1);else if(i.lineNumber<t.getLineCount())return new l.Q(i.lineNumber,1,i.lineNumber+1,1);else return new l.Q(i.lineNumber,1,i.lineNumber,1);let o=e=>e.start+1<=i.column&&i.column<=e.end+1,a=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Q(i.lineNumber,e,i.lineNumber,t)),d=e=>{let t=e.start+1,i=e.end+1;if(n)return a(t,i);let o=!1;for(;i-1<r&&this._charAtIsWhitespace(s,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return a(t,i)},c=h._findPreviousWordOnLine(e,t,i);if(c&&o(c))return d(c);let u=h._findNextWordOnLine(e,t,i);return u&&o(u)?d(u):c&&u?a(c.end+1,u.start+1):c?a(c.start+1,c.end+1):u?a(u.start+1,u.end+1):a(1,r+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),n=h._moveWordPartLeft(e,i);return new l.Q(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let n=t;n<i;n++){let t=e.charAt(n);if(" "!==t&&" "!==t)return n}return i}static _deleteWordRightWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=t.column-1,s=this._findFirstNonWhitespaceChar(i,n);return n+1<s?new l.Q(t.lineNumber,t.column,t.lineNumber,s+1):null}static deleteWordRight(e,t){let i=e.wordSeparators,n=e.model,s=e.selection,r=e.whitespaceHeuristics;if(!s.isEmpty())return s;let o=new a.y(s.positionLineNumber,s.positionColumn),d=o.lineNumber,c=o.column,u=n.getLineCount(),g=n.getLineMaxColumn(d);if(d===u&&c===g)return null;if(r){let e=this._deleteWordRightWhitespace(n,o);if(e)return e}let p=h._findNextWordOnLine(i,n,o);return 2===t?p?c=p.end+1:c<g||d===u?c=g:(d++,c=(p=h._findNextWordOnLine(i,n,new a.y(d,1)))?p.start+1:n.getLineMaxColumn(d)):(p&&c>=p.start+1&&(p=h._findNextWordOnLine(i,n,new a.y(d,p.end+1))),p?c=p.start+1:c<g||d===u?c=g:(d++,c=(p=h._findNextWordOnLine(i,n,new a.y(d,1)))?p.start+1:n.getLineMaxColumn(d))),new l.Q(d,c,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),n=h._moveWordPartRight(e,i);return new l.Q(i.lineNumber,i.column,n.lineNumber,n.column)}static _createWordAtPosition(e,t,i){let n=new l.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(n),startColumn:n.startColumn,endColumn:n.endColumn}}static getWordAtPosition(e,t,i,n){let s=(0,o.i)(t,i),r=h._findPreviousWordOnLine(s,e,n);if(r&&1===r.wordType&&r.start<=n.column-1&&n.column-1<=r.end)return h._createWordAtPosition(e,n.lineNumber,r);let a=h._findNextWordOnLine(s,e,n);return a&&1===a.wordType&&a.start<=n.column-1&&n.column-1<=a.end?h._createWordAtPosition(e,n.lineNumber,a):null}static word(e,t,i,n,r){let d,c,u,g=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),p=h._findPreviousWordOnLine(g,t,r),f=h._findNextWordOnLine(g,t,r);if(!n){let e,i;return p&&1===p.wordType&&p.start<=r.column-1&&r.column-1<=p.end||p&&2===p.wordType&&p.start<=r.column-1&&r.column-1<p.end?(e=p.start+1,i=p.end+1):f&&1===f.wordType&&f.start<=r.column-1&&r.column-1<=f.end||f&&2===f.wordType&&f.start<=r.column-1&&r.column-1<f.end?(e=f.start+1,i=f.end+1):(e=p?p.end+1:1,i=f?f.start+1:t.getLineMaxColumn(r.lineNumber)),new s.mG(new l.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}p&&1===p.wordType&&p.start<r.column-1&&r.column-1<p.end?(d=p.start+1,c=p.end+1):f&&1===f.wordType&&f.start<r.column-1&&r.column-1<f.end?(d=f.start+1,c=f.end+1):(d=r.column,c=r.column);let m=r.lineNumber;if(i.selectionStart.containsPosition(r))u=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){u=d;let e=new a.y(m,u);i.selectionStart.containsPosition(e)&&(u=i.selectionStart.endColumn)}else{u=c;let e=new a.y(m,u);i.selectionStart.containsPosition(e)&&(u=i.selectionStart.startColumn)}return i.move(!0,m,u,0)}}class d extends h{static deleteWordPartLeft(e){let t=c([h.deleteWordLeft(e,0),h.deleteWordLeft(e,2),h._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){let t=c([h.deleteWordRight(e,0),h.deleteWordRight(e,2),h._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,n){let s=c([h.moveWordLeft(e,t,i,0,n),h.moveWordLeft(e,t,i,2,n),h._moveWordPartLeft(t,i)]);return s.sort(a.y.compare),s[2]}static moveWordPartRight(e,t,i){let n=c([h.moveWordRight(e,t,i,0),h.moveWordRight(e,t,i,2),h._moveWordPartRight(t,i)]);return n.sort(a.y.compare),n[0]}}function c(e){return e.filter(e=>!!e)}},25948:()=>{},26044:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var n,s=n||(n={});function r(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};let i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function o(e){return e.end-e.start<=0}s.intersect=r,s.isEmpty=o,s.intersects=function(e,t){return!o(r(e,t))},s.relativeComplement=function(e,t){let i=[],n={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return o(n)||i.push(n),o(s)||i.push(s),i}},26128:(e,t,i)=>{"use strict";let n,s,r,o,a;i.d(t,{h5:()=>c,vr:()=>h,xE:()=>d});var l=i(7646);function h(e){(n=document.createElement("div")).className="monaco-aria-container";let t=()=>{let e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),n.appendChild(e),e};s=t(),r=t();let i=()=>{let e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),n.appendChild(e),e};o=i(),a=i(),e.appendChild(n)}function d(e){n&&(s.textContent!==e?((0,l.w_)(r),u(s,e)):((0,l.w_)(s),u(r,e)))}function c(e){n&&(o.textContent!==e?((0,l.w_)(a),u(o,e)):((0,l.w_)(o),u(a,e)))}function u(e,t){(0,l.w_)(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}i(24244)},26290:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var n=i(95628);function s(e,t){e instanceof n.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},26333:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,k:()=>u});var n=i(17506),s=i(13091),r=i(54326),o=i(8998),a=i(51978),l=i(18422),h=i(79888),d=i(69320);class c extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();let n=this.textModel.getLineCount();if(e<1||e>n)throw new d.D7("Illegal value for lineNumber");let s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(s&&s.offSide),o=-2,a=-1,l=-2,h=-1,c=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===l){l=-1,h=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){l=t,h=e;break}}}},u=-2,g=-1,p=-2,f=-1,m=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,f=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){p=t,f=e;break}}}},_=0,v=!0,b=0,C=!0,w=0,y=0;for(let s=0;v||C;s++){let o=e-s,d=e+s;s>1&&(o<1||o<t)&&(v=!1),s>1&&(d>n||d>i)&&(C=!1),s>5e4&&(v=!1,C=!1);let p=-1;if(v&&o>=1){let e=this._computeIndentLevel(o-1);e>=0?(l=o-1,h=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(c(o),p=this._getIndentLevelForWhitespaceLine(r,a,h))}let S=-1;if(C&&d<=n){let e=this._computeIndentLevel(d-1);e>=0?(u=d-1,g=e,S=Math.ceil(e/this.textModel.getOptions().indentSize)):(m(d),S=this._getIndentLevelForWhitespaceLine(r,g,f))}if(0===s){y=p;continue}if(1===s){if(d<=n&&S>=0&&y+1===S){v=!1,_=d,b=d,w=S;continue}if(o>=1&&p>=0&&p-1===y){C=!1,_=o,b=o,w=p;continue}if(_=e,b=e,0===(w=y))break}v&&(p>=w?_=o:v=!1),C&&(S>=w?b=d:C=!1)}return{startLineNumber:_,endLineNumber:b,indent:w}}getLinesBracketGuides(e,t,i,r){let a,l=[];for(let i=e;i<=t;i++)l.push([]);let d=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();if(i&&d.length>0){let s=(e<=i.lineNumber&&i.lineNumber<=t?d:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter(e=>o.Q.strictContainsPosition(e.range,i));a=(0,n.Uk)(s,e=>!0)?.range}let c=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,g=new u;for(let i of d){if(!i.closingBracketRange)continue;let n=a&&i.range.equalsRange(a);if(!n&&!r.includeInactive)continue;let o=g.getInlineClassName(i.nestingLevel,i.nestingLevelOfEqualBracketType,c)+(r.highlightActive&&n?" "+g.activeClassName:""),d=i.openingBracketRange.getStartPosition(),u=i.closingBracketRange.getStartPosition(),p=r.horizontalGuides===h.N6.Enabled||r.horizontalGuides===h.N6.EnabledForActive&&n;if(i.range.startLineNumber===i.range.endLineNumber){p&&l[i.range.startLineNumber-e].push(new h.TH(-1,i.openingBracketRange.getEndPosition().column,o,new h.pv(!1,u.column),-1,-1));continue}let f=this.getVisibleColumnFromPosition(u),m=this.getVisibleColumnFromPosition(i.openingBracketRange.getStartPosition()),_=Math.min(m,f,i.minVisibleColumnIndentation+1),v=!1;(0,s.HG)(this.textModel.getLineContent(i.closingBracketRange.startLineNumber))<i.closingBracketRange.startColumn-1&&(v=!0);let b=Math.max(d.lineNumber,e),C=Math.min(u.lineNumber,t),w=+!!v;for(let t=b;t<C+w;t++)l[t-e].push(new h.TH(_,-1,o,null,t===d.lineNumber?d.column:-1,t===u.lineNumber?u.column:-1));p&&(d.lineNumber>=e&&m>_&&l[d.lineNumber-e].push(new h.TH(_,-1,o,new h.pv(!1,d.column),-1,-1)),u.lineNumber<=t&&f>_&&l[u.lineNumber-e].push(new h.TH(_,-1,o,new h.pv(!v,u.column),-1,-1)))}for(let e of l)e.sort((e,t)=>e.visibleColumn-t.visibleColumn);return l}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();let i=this.textModel.getLineCount();if(e<1||e>i)throw Error("Illegal value for startLineNumber");if(t<1||t>i)throw Error("Illegal value for endLineNumber");let n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(s&&s.offSide),o=Array(t-e+1),a=-2,l=-1,h=-2,d=-1;for(let s=e;s<=t;s++){let t=s-e,c=this._computeIndentLevel(s-1);if(c>=0){a=s-1,l=c,o[t]=Math.ceil(c/n.indentSize);continue}if(-2===a){a=-1,l=-1;for(let e=s-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<s-1)){h=-1,d=-1;for(let e=s;e<i;e++){let t=this._computeIndentLevel(e);if(t>=0){h=e,d=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,l,d)}return o}_getIndentLevelForWhitespaceLine(e,t,i){let n=this.textModel.getOptions();return -1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i?Math.ceil(i/n.indentSize):e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return`bracket-indent-guide lvl-${e%30}`}}},26692:(e,t,i)=>{"use strict";i.d(t,{m:()=>w});var n,s,r=i(7646),o=i(97419),a=i(23346),l=i(80849),h=i(74789),d=i(48157),c=i(84229),u=i(38661),g=i(81900);i(96960);var p=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};(n=s||(s={})).North="north",n.South="south",n.East="east",n.West="west";let f=new c.vl,m=new c.vl;class _{constructor(e){this.el=e,this.disposables=new u.Cm}get onPointerMove(){return this.disposables.add(new a.f((0,r.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new a.f((0,r.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}p([d.B],_.prototype,"onPointerMove",null),p([d.B],_.prototype,"onPointerUp",null);class v{get onPointerMove(){return this.disposables.add(new a.f(this.el,l.B.Change)).event}get onPointerUp(){return this.disposables.add(new a.f(this.el,l.B.End)).event}constructor(e){this.el=e,this.disposables=new u.Cm}dispose(){this.disposables.dispose()}}p([d.B],v.prototype,"onPointerMove",null),p([d.B],v.prototype,"onPointerUp",null);class b{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}p([d.B],b.prototype,"onPointerMove",null),p([d.B],b.prototype,"onPointerUp",null);let C="pointer-events-disabled";class w extends u.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}get onDidStart(){return this._onDidStart.event}get onDidChange(){return this._onDidChange.event}get onDidReset(){return this._onDidReset.event}get onDidEnd(){return this._onDidEnd.event}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){let t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,r.BC)(this.el,(0,r.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,u.s)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add((0,r.ko)(this._orthogonalStartDragHandle,"mouseenter",()=>w.onMouseEnter(e))),this.orthogonalStartDragHandleDisposables.add((0,r.ko)(this._orthogonalStartDragHandle,"mouseleave",()=>w.onMouseLeave(e))))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){let t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,r.BC)(this.el,(0,r.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,u.s)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add((0,r.ko)(this._orthogonalEndDragHandle,"mouseenter",()=>w.onMouseEnter(e))),this.orthogonalEndDragHandleDisposables.add((0,r.ko)(this._orthogonalEndDragHandle,"mouseleave",()=>w.onMouseLeave(e))))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){let n;super(),this.hoverDelay=300,this.hoverDelayer=this._register(new h.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.vl),this._onDidStart=this._register(new c.vl),this._onDidChange=this._register(new c.vl),this._onDidReset=this._register(new c.vl),this._onDidEnd=this._register(new c.vl),this.orthogonalStartSashDisposables=this._register(new u.Cm),this.orthogonalStartDragHandleDisposables=this._register(new u.Cm),this.orthogonalEndSashDisposables=this._register(new u.Cm),this.orthogonalEndDragHandleDisposables=this._register(new u.Cm),this.linkedSash=void 0,this.el=(0,r.BC)(e,(0,r.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),g.zx&&this.el.classList.add("mac"),this._register((0,r.ko)(this.el,"mousedown",t=>this.onPointerStart(t,new _(e)))),this._register((0,r.ko)(this.el,"dblclick",e=>this.onPointerDoublePress(e))),this._register((0,r.ko)(this.el,"mouseenter",()=>w.onMouseEnter(this))),this._register((0,r.ko)(this.el,"mouseleave",()=>w.onMouseLeave(this))),this._register(l.q.addTarget(this.el)),this._register((0,r.ko)(this.el,l.B.Start,e=>this.onPointerStart(e,new v(this.el)))),this._register((0,r.ko)(this.el,l.B.Tap,e=>{if(n){clearTimeout(n),n=void 0,this.onPointerDoublePress(e);return}clearTimeout(n),n=setTimeout(()=>n=void 0,250)})),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(f.event(e=>{this.size=e,this.layout()}))),this._register(m.event(e=>this.hoverDelay=e)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}onPointerStart(e,t){r.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){let n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new b(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new b(t))),!this.state)return;let n=this.el.ownerDocument.getElementsByTagName("iframe");for(let e of n)e.classList.add(C);let s=e.pageX,a=e.pageY,l=e.altKey;this.el.classList.add("active"),this._onDidStart.fire({startX:s,currentX:s,startY:a,currentY:a,altKey:l});let h=(0,o.li)(this.el),d=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":g.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":g.zx?"col-resize":"ew-resize",h.textContent=`* { cursor: ${e} !important; }`},c=new u.Cm;d(),i||this.onDidEnablementChange.event(d,null,c);let p=e=>{r.fs.stop(e,!1);let t={startX:s,currentX:e.pageX,startY:a,currentY:e.pageY,altKey:l};this._onDidChange.fire(t)},f=e=>{for(let t of(r.fs.stop(e,!1),h.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),c.dispose(),n))t.classList.remove(C)};t.onPointerMove(p,null,c),t.onPointerUp(f,null,c),c.add(t)}onPointerDoublePress(e){let t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&w.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&w.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){w.onMouseLeave(this)}layout(){if(0===this.orientation){let e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{let e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){let t=e.initialTarget??e.target;if(t&&(0,r.sb)(t)&&t.classList.contains("orthogonal-drag-handle"))return t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}},26961:(e,t,i)=>{"use strict";let n;i.d(t,{XL:()=>c,YY:()=>h,PO:()=>d,Rn:()=>l});var s=i(69320);function r(e){let t=Error("BugIndicatingErrorRecovery: "+e);(0,s.dz)(t),console.error("recovered from an error that indicates a bug",t)}i(78882),i(84229),i(38661);var o=i(38168),a=i(19759);function l(e,t){let i=new c(e,t);try{e(i)}finally{i.finish()}}function h(e){if(n)e(n);else{let t=new c(e,void 0);n=t;try{e(t)}finally{t.finish(),n=void 0}}}function d(e,t,i){e?t(e):l(t,i)}class c{constructor(e,t){this._fn=e,this._getDebugName=t,this._updatingObservers=[],(0,a.t)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,o.qQ)(this._fn)}updateObserver(e,t){if(!this._updatingObservers){r("Transaction already finished!"),l(i=>{i.updateObserver(e,t)});return}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){let e=this._updatingObservers;if(!e)return void r("transaction.finish() has already been called!");for(let t=0;t<e.length;t++){let{observer:i,observable:n}=e[t];i.endUpdate(n)}this._updatingObservers=null,(0,a.t)()?.handleEndTransaction(this)}debugGetUpdatingObservers(){return this._updatingObservers}}},27044:(e,t,i)=>{"use strict";i.d(t,{Et:()=>a,Gv:()=>r,Kg:()=>s,Lm:()=>h,O9:()=>c,Tn:()=>f,VT:()=>_,b0:()=>d,iu:()=>o,j:()=>g,jx:()=>m,ni:()=>p,xZ:()=>l,z:()=>u});var n=i(92185);function s(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function a(e){return"number"==typeof e&&!isNaN(e)}function l(e){return!!e&&"function"==typeof e[Symbol.iterator]}function h(e){return!0===e||!1===e}function d(e){return void 0===e}function c(e){return!u(e)}function u(e){return d(e)||null===e}function g(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function p(e){return(0,n.vA)(null!=e,"Argument is `undefined` or `null`."),e}function f(e){return"function"==typeof e}function m(e,t){let i=Math.min(e.length,t.length);for(let n=0;n<i;n++)!function(e,t){if(s(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(f(t)){try{if(e instanceof t)return}catch{}if(!u(e)&&e.constructor===t||1===t.length&&!0===t.call(void 0,e))return;throw Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}(e[n],t[n])}function _(e){return e}},28400:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var n=i(35004),s=i(93360),r=n.A;let o=(0,s.u1)("notificationService");class a{}},29156:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var n=i(84229);class s{constructor(){this._onDidChange=new n.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}let r=new s},29282:(e,t,i)=>{"use strict";let n;i.d(t,{CX:()=>ew,Ls:()=>ef});var s=i(7646),r=i(26128),o=i(47322),a=i(26692),l=i(4345),h=i(74789),d=i(3809),c=i(69320),u=i(38661),g=i(81900),p=i(13091);i(51351);var f=i(8998),m=i(43394),_=i(56558),v=i(61124),b=i(92590),C=i(84229);i(83856);let w=(0,_.kg)(5,"input"),y=(0,_.kg)(6,"Preserve Case");class S extends o.lM{constructor(e){super({icon:d.W.preserveCase,title:y+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class x extends l.x{get onDidOptionChange(){return this._onDidOptionChange.event}get onKeyDown(){return this._onKeyDown.event}get onPreserveCaseKeyDown(){return this._onPreserveCaseKeyDown.event}constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new C.vl),this._onKeyDown=this._register(new C.vl),this._onMouseDown=this._register(new C.vl),this._onInput=this._register(new C.vl),this._onKeyUp=this._register(new C.vl),this._onPreserveCaseKeyDown=this._register(new C.vl),this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||w;const r=n.appendPreserveCaseLabel||"",o=n.history||new Set([]),a=!!n.flexibleHeight,l=!!n.flexibleWidth,h=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new b.m(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:o,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:h,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new S({appendTitle:r,isChecked:!1,hoverLifecycleOptions:n.hoverLifecycleOptions,...n.toggleStyles})),this._register(this.preserveCase.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(e=>{this._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=d.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%d.length:e.equals(15)&&(i=0===t?d.length-1:t-1),e.equals(9)?(d[t].blur(),this.inputBox.focus()):i>=0&&d[i].focus(),s.fs.stop(e,!0)}}});const c=document.createElement("div");c.className="controls",c.style.display=this._showOptionButtons?"block":"none",c.appendChild(this.preserveCase.domNode),this.domNode.appendChild(c),e?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}}var k=i(20674),L=i(16654),D=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,n){t(i,n,e)}};let N=new k.N1("suggestWidgetVisible",!1,(0,_.kg)(1760,"Whether suggestion are visible")),I="historyNavigationWidgetFocus",T="historyNavigationForwardsEnabled",M="historyNavigationBackwardsEnabled",R=[];function A(e,t){if(R.includes(t))throw Error("Cannot register the same widget multiple times");R.push(t);let i=new u.Cm,r=new k.N1(I,!1).bindTo(e),o=new k.N1(T,!0).bindTo(e),a=new k.N1(M,!0).bindTo(e),l=()=>{r.set(!0),n=t},h=()=>{r.set(!1),n===t&&(n=void 0)};return(0,s.X7)(t.element)&&l(),i.add(t.onDidFocus(()=>l())),i.add(t.onDidBlur(()=>h())),i.add((0,u.s)(()=>{R.splice(R.indexOf(t),1),h()})),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:a,dispose(){i.dispose()}}}let O=class extends v.c{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(A(s,this.inputBox))}};O=D([E(3,k.fN)],O);let P=class extends x{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(A(r,this.inputBox))}};function F(e){return e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()==="Up"&&e.lookupKeybinding("history.showNext")?.getElectronAccelerator()==="Down"}P=D([E(3,k.fN)],P),L.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:k.M$.and(k.M$.has(I),k.M$.equals(M,!0),k.M$.not("isComposing"),N.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{n?.showPreviousValue()}}),L.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:k.M$.and(k.M$.has(I),k.M$.equals(T,!0),k.M$.not("isComposing"),N.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{n?.showNextValue()}});var B=i(83367),W=i(45837);i(96141);var V=i(4529),H=i(72880);i(77384),i(25523),i(3463),i(8324),i(3330),i(30020);var z=i(19829),U=i(63667),$=i(35362),K=i(71284),G=i(27044),j=i(49497);let q=(0,z.pU)("find-collapsed",d.W.chevronRight,(0,_.kg)(996,"Icon to indicate that the editor find widget is collapsed.")),Q=(0,z.pU)("find-expanded",d.W.chevronDown,(0,_.kg)(997,"Icon to indicate that the editor find widget is expanded.")),Y=(0,z.pU)("find-selection",d.W.selection,(0,_.kg)(998,"Icon for 'Find in Selection' in the editor find widget.")),Z=(0,z.pU)("find-replace",d.W.replace,(0,_.kg)(999,"Icon for 'Replace' in the editor find widget.")),X=(0,z.pU)("find-replace-all",d.W.replaceAll,(0,_.kg)(1e3,"Icon for 'Replace All' in the editor find widget.")),J=(0,z.pU)("find-previous-match",d.W.arrowUp,(0,_.kg)(1001,"Icon for 'Find Previous' in the editor find widget.")),ee=(0,z.pU)("find-next-match",d.W.arrowDown,(0,_.kg)(1002,"Icon for 'Find Next' in the editor find widget.")),et=(0,_.kg)(1003,"Find / Replace"),ei=(0,_.kg)(1004,"Find"),en=(0,_.kg)(1005,"Find"),es=(0,_.kg)(1006,"Previous Match"),er=(0,_.kg)(1007,"Next Match"),eo=(0,_.kg)(1008,"Find in Selection"),ea=(0,_.kg)(1009,"Close"),el=(0,_.kg)(1010,"Replace"),eh=(0,_.kg)(1011,"Replace"),ed=(0,_.kg)(1012,"Replace"),ec=(0,_.kg)(1013,"Replace All"),eu=(0,_.kg)(1014,"Toggle Replace"),eg=(0,_.kg)(1015,"Only the first {0} results are highlighted, but all find operations work on the entire text.",m.Es),ep=(0,_.kg)(1016,"{0} of {1}"),ef=(0,_.kg)(1017,"No results"),em=69,e_=g.zx?256:2048;class ev{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function eb(e,t,i){let n=!!t.match(/\n/);if(i&&n&&i.selectionStart>0)return void e.stopPropagation()}function eC(e,t,i){let n=!!t.match(/\n/);if(i&&n&&i.selectionEnd<i.value.length)return void e.stopPropagation()}class ew extends l.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,n,r,o,a,l,d,c,g){super(),this._hoverService=a,this._findWidgetSearchHistory=l,this._replaceWidgetHistory=d,this._configurationService=c,this._accessibilityService=g,this._cachedHeight=null,this._lastFocusedInputWasReplace=!1,this._lastFocusedElement=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=n,this._keybindingService=r,this._contextKeyService=o,this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._accessibilityHelpHintAnnounced=!1,this._updateHistoryDelayer=new h.ve(500),this._register((0,u.s)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(e=>{if(e.hasChanged(104)&&(this._codeEditor.getOption(104)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(165)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(50)){let e=this._codeEditor.getOption(50).loop;this._state.change({loop:e},!1);let t=this._codeEditor.getOption(50).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new ev(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(async()=>{if(this._isVisible){let e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}})),this._findInputFocused=m.l3.bindTo(o),this._findFocusTracker=this._register((0,s.w5)(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._lastFocusedInputWasReplace=!1,this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=m.MA.bindTo(o),this._replaceFocusTracker=this._register((0,s.w5)(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._lastFocusedInputWasReplace=!0,this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._findWidgetFocused=m.JQ.bindTo(o),this._widgetFocusTracker=this._register((0,s.w5)(this._domNode)),this._register(this._widgetFocusTracker.onDidFocus(()=>{this._findWidgetFocused.set(!0)})),this._register(this._widgetFocusTracker.onDidBlur(()=>{this._findWidgetFocused.set(!1)})),this._register((0,s.ko)(this._domNode,"focusin",e=>{(0,s.sb)(e.target)&&(this._lastFocusedElement=e.target)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(50).addExtraSpaceOnTop&&(this._viewZone=new ev(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return ew.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(104)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=(0,s.Tr)(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,c.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=em+"px",this._state.matchesCount>=m.Es?this._matchesCount.title=eg:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=m.Es&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=(0,p.GP)(ep,i,t)}else e=ef;this._matchesCount.appendChild(document.createTextNode(e)),(0,r.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),em=Math.max(em,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){let n;if(e===ef)n=""===i?(0,_.kg)(1018,"{0} found",e):(0,_.kg)(1019,"{0} found for '{1}'",e,i);else if(t){let s=(0,_.kg)(1020,"{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),r=this._codeEditor.getModel();if(r&&t.startLineNumber<=r.getLineCount()&&t.startLineNumber>=1){let e=r.getLineContent(t.startLineNumber);n=`${e}, ${s}`}else n=s}else n=(0,_.kg)(1021,"{0} found for '{1}'",e,i);return n}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let i=!this._codeEditor.getOption(104);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(50).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false"),this._updateFindInputAriaLabel()},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(50).seedSearchStringFromSelection&&e){let i=this._codeEditor.getDomNode();if(i){let n=(0,s.BK)(i),r=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=n.left+(r?r.left:0),a=r?r.top:0;if(this._viewZone&&a<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);let i=(0,s.cL)(this._domNode).left;o>i&&(t=!1);let r=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(r?r.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._accessibilityHelpHintAnnounced=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(50).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;let t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones(i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(50).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new ev(0));let t=this._viewZone;this._codeEditor.changeViewZones(i=>{if(void 0!==this._viewZoneId){let n=this._getHeight();if(n===t.heightInPx)return;let s=n-t.heightInPx;t.heightInPx=n,i.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s);return}{let n=this._getHeight();if((n-=this._codeEditor.getOption(96).top)<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!this._domNode.isConnected)return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");let t=e.width,i=e.minimap.minimapWidth,n=!1,r=!1,o=!1;if(this._resized&&(0,s.Tr)(this._domNode)>419){this._domNode.style.maxWidth=`${t-28-i-15}px`,this._replaceInput.width=(0,s.Tr)(this._findInput.domNode);return}if(447+i>=t&&(r=!0),447+i-em>=t&&(o=!0),447+i-em>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",r),o||n||(this._domNode.style.maxWidth=`${t-28-i-15}px`),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:o,reducedFindWidget:r}),this._resized){let e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=(0,s.Tr)(this._findInput.domNode))}_getHeight(){let e;return e=4+(this._findInput.inputBox.height+2),this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4}_tryUpdateHeight(){let e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));let t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||f.Q.equalsRange(e,t)?null:e}).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(3|e_))if(this._keybindingService.dispatchEvent(e,e.target))return void e.preventDefault();else{this._findInput.inputBox.insertAtCursor("\n"),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}return e.equals(16)?eb(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?eC(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){if(e.equals(3|e_))if(this._keybindingService.dispatchEvent(e,e.target))return void e.preventDefault();else{this._replaceInput.inputBox.insertAtCursor("\n"),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}return e.equals(16)?eb(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?eC(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){return this._keybindingService.appendKeybinding("",e)}_buildDomNode(){let e=this._codeEditor.getOption(50).history,t=this._codeEditor.getOption(50).replaceHistory;this._findInput=this._register(new O(null,this._contextViewProvider,{width:221,label:ei,placeholder:en,appendCaseSensitiveLabel:this._keybindingLabelFor(m.j4.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(m.j4.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(m.j4.ToggleRegexCommand),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>F(this._keybindingService),inputBoxStyles:j.ho,toggleStyles:j.mk,history:"workspace"===e?this._findWidgetSearchHistory:new Set([])},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(e=>{e.equals(3)&&!this._codeEditor.getOption(50).findOnType&&this._state.change({searchString:this._findInput.getValue()},!0),this._onFindInputKeyDown(e)})),this._register(this._findInput.inputBox.onDidChange(()=>{!this._ignoreChangeEvent&&this._codeEditor.getOption(50).findOnType&&this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())})),this._register(this._findInput.onRegexKeyDown(e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(e=>{this._tryUpdateHeight()&&this._showViewZone()})),g.j9&&this._register(this._findInput.onMouseDown(e=>this._onFindInputMouseDown(e))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();let i={groupId:"find-widget"};this._prevBtn=this._register(new ey({label:es+this._keybindingLabelFor(m.j4.PreviousMatchFindAction),icon:J,hoverLifecycleOptions:i,onTrigger:()=>{(0,G.ni)(this._codeEditor.getAction(m.j4.PreviousMatchFindAction)).run().then(void 0,c.dz)}},this._hoverService)),this._nextBtn=this._register(new ey({label:er+this._keybindingLabelFor(m.j4.NextMatchFindAction),icon:ee,hoverLifecycleOptions:i,onTrigger:()=>{(0,G.ni)(this._codeEditor.getAction(m.j4.NextMatchFindAction)).run().then(void 0,c.dz)}},this._hoverService));let n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);let r=document.createElement("div");r.className="find-actions",n.appendChild(r),r.appendChild(this._matchesCount),r.appendChild(this._prevBtn.domNode),r.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new o.lM({icon:Y,title:eo+this._keybindingLabelFor(m.j4.ToggleSearchScopeCommand),isChecked:!1,hoverLifecycleOptions:i,inputActiveOptionBackground:(0,B.Gu)(H.c1),inputActiveOptionBorder:(0,B.Gu)(H.uN),inputActiveOptionForeground:(0,B.Gu)(H.$$)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();(e=e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty())?null:e).filter(e=>!!e)).length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)})),r.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new ey({label:ea+this._keybindingLabelFor(m.j4.CloseFindWidgetCommand),icon:z.$_,hoverLifecycleOptions:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new P(null,void 0,{label:el,placeholder:eh,appendPreserveCaseLabel:this._keybindingLabelFor(m.j4.TogglePreserveCaseCommand),history:"workspace"===t?this._replaceWidgetHistory:new Set([]),flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>F(this._keybindingService),inputBoxStyles:j.ho,toggleStyles:j.mk,hoverLifecycleOptions:i},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(e=>this._onReplaceInputKeyDown(e))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})),this._replaceBtn=this._register(new ey({label:ed+this._keybindingLabelFor(m.j4.ReplaceOneAction),icon:Z,hoverLifecycleOptions:i,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new ey({label:ec+this._keybindingLabelFor(m.j4.ReplaceAllAction),icon:X,hoverLifecycleOptions:i,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));let l=document.createElement("div");l.className="replace-part",l.appendChild(this._replaceInput.domNode);let h=document.createElement("div");h.className="replace-actions",l.appendChild(h),h.appendChild(this._replaceBtn.domNode),h.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new ey({label:eu,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=(0,s.Tr)(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=et,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(l),this._resizeSash=this._register(new a.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let d=419;this._register(this._resizeSash.onDidStart(()=>{d=(0,s.Tr)(this._domNode)})),this._register(this._resizeSash.onDidChange(e=>{this._resized=!0;let t=d+e.startX-e.currentX;t<419||t>(parseFloat((0,s.L9)(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=(0,s.Tr)(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let e=(0,s.Tr)(this._domNode);if(e<419)return;let t=419;if(!this._resized||419===e){let e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=(0,s.Tr)(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){let e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e),this._updateFindInputAriaLabel()}_updateFindInputAriaLabel(){let e=ei,t=el;if(!this._accessibilityHelpHintAnnounced&&this._configurationService.getValue("accessibility.verbosity.find")&&this._accessibilityService.isScreenReaderOptimized()){let i=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel();if(i){let n=(0,_.kg)(1022,"Press {0} for accessibility help",i);e=(0,_.kg)(1023,"{0}, {1}",e,n),t=(0,_.kg)(1024,"{0}, {1}",t,n)}this._accessibilityHelpHintAnnounced=!0,this._labelResetTimeout?.dispose(),this._labelResetTimeout=(0,h.EQ)(()=>{this._isVisible&&(this._findInput.inputBox.setAriaLabel(ei),this._replaceInput.inputBox.setAriaLabel(el))},1e3)}this._findInput.inputBox.setAriaLabel(e),this._replaceInput.inputBox.setAriaLabel(t)}getViewState(){let e=!1;return this._viewZone&&this._viewZoneId&&(e=this._viewZone.heightInPx>this._codeEditor.getScrollTop()),{widgetViewZoneVisible:e,scrollTop:this._codeEditor.getScrollTop()}}setViewState(e){e&&e.widgetViewZoneVisible&&this._layoutViewZone(e.scrollTop)}}class ey extends l.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+$.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupDelayedHover(this._domNode,{content:this._opts.label,style:1},e.hoverLifecycleOptions)),this.onclick(this._domNode,e=>{this._opts.onTrigger(),e.preventDefault()}),this.onkeydown(this._domNode,e=>{if(e.equals(10)||e.equals(3)){this._opts.onTrigger(),e.preventDefault();return}this._opts.onKeyDown?.(e)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...$.L.asClassNameArray(q)),this._domNode.classList.add(...$.L.asClassNameArray(Q))):(this._domNode.classList.remove(...$.L.asClassNameArray(Q)),this._domNode.classList.add(...$.L.asClassNameArray(q)))}}(0,U.zy)((e,t)=>{let i=e.getColor(V.EC);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,K.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);let n=e.getColor(V.S5);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,K.Bb)(e.type)?"dashed":"solid"} ${n}; }`);let s=e.getColor(W.b1);s&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${s}; }`);let r=e.getColor(V.f3);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);let o=e.getColor(V.p8);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)})},29631:(e,t,i)=>{"use strict";i.d(t,{a:()=>g,J:()=>u});var n=i(81900),s=i(4345);i(12036);var r=i(93679),o=i(7646),a=i(80849),l=i(12549),h=i(84229),d=i(38661);class c extends d.jG{constructor(e,t,i,n){super(),this.selected=0,this.selectBoxOptions=n||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"==typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new h.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(a.q.addTarget(this.selectElement)),[a.B.Tap].forEach(e=>{this._register((0,o.ko)(this.selectElement,e,e=>{this.selectElement.focus()}))}),this._register((0,o.un)(this.selectElement,"click",e=>{o.fs.stop(e,!0)})),this._register((0,o.un)(this.selectElement,"change",e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})})),this._register((0,o.un)(this.selectElement,"keydown",e=>{let t=!1;n.zx?(18===e.keyCode||16===e.keyCode||10===e.keyCode)&&(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&(0,l.aI)(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled,e.isSeparator))})),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"==typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i,n){let s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i||!!n,n&&s.setAttribute("role","separator"),s}}let u=Object.freeze({text:"─────────",isDisabled:!0,isSeparator:!0});class g extends s.x{constructor(e,t,i,s,o){super(),n.zx&&!o?.useCustomDrawn?this.selectBoxDelegate=new c(e,t,s,o):this.selectBoxDelegate=new r.A(e,t,i,s,o),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}},29715:(e,t,i)=>{"use strict";i.d(t,{F:()=>o});var n=i(84229),s=i(38661),r=i(88492);let o={JSONContribution:"base.contributions.json"};class a extends s.jG{constructor(){super(...arguments),this.schemasById={},this._onDidChangeSchema=this._register(new n.vl)}registerSchema(e,t,i){let n=e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e;this.schemasById[n]=t,this._onDidChangeSchema.fire(e),i&&i.add((0,s.s)(()=>{delete this.schemasById[n],this._onDidChangeSchema.fire(e)}))}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}let l=new a;r.O.add(o.JSONContribution,l)},29980:(e,t,i)=>{"use strict";i.d(t,{d:()=>l,w:()=>h});var n=i(84229),s=i(4917),r=i(38661),o=i(4990),a=i(27044);let l=(0,i(93360).u1)("commandService"),h=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw Error("invalid command");if("string"==typeof e){if(!t)throw Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){let t=[];for(let i of e.metadata.args)t.push(i.constraint);let i=e.handler;e.handler=function(e,...n){return(0,a.jx)(n,t),i(e,...n)}}let{id:i}=e,n=this._commands.get(i);n||(n=new o.w,this._commands.set(i,n));let s=n.unshift(e),l=(0,r.s)(()=>{s();let e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)});return this._onDidRegisterCommand.fire(i),(0,r.lC)(l)}registerCommandAlias(e,t){return h.registerCommand(e,(e,...i)=>e.get(l).executeCommand(t,...i))}getCommand(e){let t=this._commands.get(e);if(!(!t||t.isEmpty()))return s.f.first(t)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let i=this.getCommand(t);i&&e.set(t,i)}return e}};h.registerCommand("noop",()=>{})},30006:(e,t,i)=>{"use strict";i.d(t,{$:()=>v});var n=i(7646),s=i(69737),r=i(14239),o=i(80849),a=i(80451),l=i(59253),h=i(18734),d=i(84229),c=i(37199),u=i(38661),g=i(35362);i(98338);var p=i(19923),f=i(82830);h.Q1.white.toString(),h.Q1.white.toString();let m=Object.freeze({allowedTags:{override:["b","i","u","code","span"]},allowedAttributes:{override:["class"]}}),_=Object.freeze({sanitizerConfig:{allowedAttributes:{override:["class"]}}});class v extends u.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary),this._element.classList.toggle("small",!!t.small);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,r=t.secondary?t.buttonSecondaryForeground:t.buttonForeground,a=t.secondary?t.buttonSecondaryBorder:t.buttonBorder;this._element.style.color=r||"",this._element.style.backgroundColor=i||"",a&&(this._element.style.border=`1px solid ${a}`),t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"==typeof t.title&&this.setTitle(t.title),"string"==typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this.enabled=!t.disabled,this._register(o.q.addTarget(this._element)),[n.Bx.CLICK,o.B.Tap].forEach(e=>{this._register((0,n.ko)(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):n.fs.stop(e)}))}),this._register((0,n.ko)(this._element,n.Bx.KEY_DOWN,e=>{let t=new s.Z(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.fs.stop(t,!0)})),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OVER,e=>{this._element.classList.contains("disabled")||this.updateStyles(!0)})),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OUT,e=>{this.updateStyles(!1)})),this.focusTracker=this._register((0,n.w5)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateStyles(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateStyles(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){let t=[];for(let i of(0,l.n)(e))if("string"==typeof i){if(""===(i=i.trim()))continue;let e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateStyles(e){let t,i,n;this.options.secondary?(t=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground,i=this.options.buttonSecondaryForeground,n=this.options.buttonSecondaryBorder):(t=e?this.options.buttonHoverBackground:this.options.buttonBackground,i=this.options.buttonForeground,n=this.options.buttonBorder),this._element.style.backgroundColor=t||"",this._element.style.color=i||"",this._element.style.border=n?`1px solid ${n}`:""}get element(){return this._element}set label(e){if(this._label===e||(0,c.VS)(this._label)&&(0,c.VS)(e)&&(0,c.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");let t=this.options.supportShortLabel?this._labelElement:this._element;if((0,c.VS)(e)){let i=(0,r.Gc)(e,_,document.createElement("span"));i.dispose();let s=i.element.querySelector("p")?.innerHTML;s?(0,f.D$)(t,s,m):(0,n.Ln)(t)}else this.options.supportIcons?(0,n.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"==typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,r.Mh)(e)),this.setTitle(i),this._setAriaLabel(),this._label=e}get label(){return this._label}_setAriaLabel(){"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):"string"==typeof this.options.title&&this._element.setAttribute("aria-label",this.options.title)}set icon(e){this._setAriaLabel();let t=Array.from(this._element.classList).filter(e=>e.startsWith("codicon-"));this._element.classList.remove(...t),this._element.classList.add(...g.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}set secondary(e){this._element.classList.toggle("secondary",e),this.options.secondary=e,this.updateStyles(!1)}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,p.i)().setupManagedHover(this.options.hoverDelegate??(0,a.nZ)("element"),this._element,e))}}},30020:(e,t,i)=>{"use strict";var n=i(56558),s=i(83367),r=i(45837),o=i(4529);(0,s.x1)("search.resultsInfoForeground",{light:r.CU,dark:(0,s.JO)(r.CU,.65),hcDark:r.CU,hcLight:r.CU},(0,n.kg)(2088,"Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(o.Ub,.66),dark:(0,s.JO)(o.Ub,.66),hcDark:o.Ub,hcLight:o.Ub},(0,n.kg)(2089,"Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(o.EC,.66),dark:(0,s.JO)(o.EC,.66),hcDark:o.EC,hcLight:o.EC},(0,n.kg)(2090,"Border color of the Search Editor query matches."))},30772:(e,t,i)=>{"use strict";i.d(t,{CG:()=>s,gO:()=>o});var n=i(81900);function s(e,t){var i,s;if(n.HZ)return!1;let o=(i=e,(s=t)||(s=r(i)),"native"===s),a=e.getValue("window");return a?.menuStyle==="native"?!!n.zx||!!o:a?.menuStyle!=="custom"&&o}function r(e){if(n.HZ)return"custom";let t=e.getValue("window");if(t){if(n.zx&&!0===t.nativeTabs||n.zx&&!1===t.nativeFullScreen)return"native";let e=t.titleBarStyle;if("native"===e||"custom"===e)return e}return"custom"}function o(e){if(n.HZ||n.zx||"native"===r(e))return"native";let t=e.getValue("window"),i=t?.controlsStyle;return"custom"===i||"hidden"===i?i:"native"}},30881:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let r="";return 4&n&&(r+=" underline"),8&n&&(r+=" line-through"),r&&(s+=`text-decoration:${r};`),s}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}},30921:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(87831).then(i.bind(i,87831))})},31323:(e,t,i)=>{"use strict";i.d(t,{k:()=>_});var n,s=i(14239),r=i(26128),o=i(84229),a=i(37199),l=i(38661);i(20745);var h=i(31601),d=i(8998),c=i(91422),u=i(56558),g=i(20674),p=i(70412),f=i(7646),m=function(e,t){return function(i,n){t(i,n,e)}};let _=class{static{n=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,(0,u.kg)(1333,"Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(n.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new l.HE,this._messageListeners=new l.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=n.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;if((0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),(0,a.VS)(e)){let i=this._messageListeners.add((0,s.Gc)(e,{actionHandler:(e,t)=>{this.closeMessage(),(0,c.iM)(this._openerService,e,t.isTrusted)}}));this._messageWidget.value=new b(this._editor,t,i.element)}else this._messageWidget.value=new b(this._editor,t,e);this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,(e,t)=>t,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&(0,f.QX)((0,f.bq)(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add((0,f.ko)(this._messageWidget.value.getDomNode(),f.Bx.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add((0,f.ko)(this._messageWidget.value.getDomNode(),f.Bx.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new d.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(b.fadeOut(this._messageWidget.value))}};_=n=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([m(1,g.fN),m(2,p.Cr)],_);let v=h.DX.bindToContribution(_.get);(0,h.E_)(new v({id:"leaveEditorMessage",precondition:_.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class b{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");"string"==typeof n?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,h.HW)(_.ID,_,4)},31417:(e,t,i)=>{"use strict";var n=i(3809),s=i(7646),r=i(31601),o=i(49806),a=i(62809),l=i(42665),h=i(56558),d=i(43868),c=i(50330),u=i(20674);i(1080);class g extends d.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,h.aS)(101,"Toggle Collapse Unchanged Regions"),icon:n.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:d.D8.EditorTitle,order:22,group:"navigation"}})}run(e){let t=e.get(c.pG),i=!t.getValue("diffEditor.hideUnchangedRegions.enabled");t.updateValue("diffEditor.hideUnchangedRegions.enabled",i)}}class p extends d.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,h.aS)(102,"Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e){let t=e.get(c.pG),i=!t.getValue("diffEditor.experimental.showMoves");t.updateValue("diffEditor.experimental.showMoves",i)}}class f extends d.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,h.aS)(103,"Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e){let t=e.get(c.pG),i=!t.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");t.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",i)}}let m=(0,h.aS)(104,"Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,h.aS)(105,"Switch Side"),icon:n.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:m})}runEditorCommand(e,t,i){let n=k(e);if(n instanceof a.T)if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};else n.switchSide()}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,h.aS)(106,"Exit Compare Move"),icon:n.W.close,precondition:l.R.comparingMovedCode,f1:!1,category:m,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t){let i=k(e);i instanceof a.T&&i.exitCompareMove()}}class b extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,h.aS)(107,"Collapse All Unchanged Regions"),icon:n.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:m})}runEditorCommand(e,t){let i=k(e);i instanceof a.T&&i.collapseAllUnchangedRegions()}}class C extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,h.aS)(108,"Show All Unchanged Regions"),icon:n.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:m})}runEditorCommand(e,t){let i=k(e);i instanceof a.T&&i.showAllUnchangedRegions()}}class w extends d.L{constructor(){super({id:"diffEditor.revert",title:(0,h.aS)(109,"Revert"),f1:!0,category:m,precondition:u.M$.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){let t=k(e);t instanceof a.T&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){var i,n,s;let r=(i=e,n=t.originalUri,s=t.modifiedUri,i.get(o.T).listDiffEditors().find(e=>{let t=e.getModifiedEditor(),i=e.getOriginalEditor();return t&&t.getModel()?.uri.toString()===s.toString()&&i&&i.getModel()?.uri.toString()===n.toString()})||null);r instanceof a.T&&r.revertRangeMappings(t.mapping.innerChanges??[])}}let y=(0,h.aS)(110,"Accessible Diff Viewer");class S extends d.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:S.id,title:(0,h.aS)(111,"Go to Next Difference"),category:y,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){let t=k(e);t?.accessibleDiffViewerNext()}}class x extends d.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:x.id,title:(0,h.aS)(112,"Go to Previous Difference"),category:y,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){let t=k(e);t?.accessibleDiffViewerPrev()}}function k(e){let t=e.get(o.T).listDiffEditors(),i=(0,s.bq)();if(i){for(let e of t)if(e.getContainerDomNode().contains(i))return e}return null}var L=i(29980);for(let e of((0,d.ug)(g),(0,d.ug)(p),(0,d.ug)(f),d.ZG.appendMenuItem(d.D8.EditorTitle,{command:{id:new f().desc.id,title:(0,h.kg)(135,"Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(l.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),d.ZG.appendMenuItem(d.D8.EditorTitle,{command:{id:new p().desc.id,title:(0,h.kg)(136,"Show Moved Code Blocks"),icon:n.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,d.ug)(w),[{icon:n.W.arrowRight,key:l.R.diffEditorInlineMode.toNegated()},{icon:n.W.discard,key:l.R.diffEditorInlineMode}]))d.ZG.appendMenuItem(d.D8.DiffEditorHunkToolbar,{command:{id:new w().desc.id,title:(0,h.kg)(137,"Revert Block"),icon:e.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,e.key),order:5,group:"primary"}),d.ZG.appendMenuItem(d.D8.DiffEditorSelectionToolbar,{command:{id:new w().desc.id,title:(0,h.kg)(138,"Revert Selection"),icon:e.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,e.key),order:5,group:"primary"});(0,d.ug)(_),(0,d.ug)(v),(0,d.ug)(b),(0,d.ug)(C),d.ZG.appendMenuItem(d.D8.EditorTitle,{command:{id:S.id,title:(0,h.kg)(139,"Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(l.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),L.w.registerCommandAlias("editor.action.diffReview.next",S.id),(0,d.ug)(S),L.w.registerCommandAlias("editor.action.diffReview.prev",x.id),(0,d.ug)(x)},31601:(e,t,i)=>{"use strict";i.d(t,{uB:()=>m,ks:()=>C,qO:()=>y,DX:()=>b,dS:()=>s,fE:()=>_,PF:()=>w,ih:()=>T,tc:()=>M,aU:()=>I,Fl:()=>x,E_:()=>S,HW:()=>D,xX:()=>L,gW:()=>k});var n,s,r=i(56558);i(34247);var o=i(49806);i(23121),i(52741);var a=i(43868),l=i(29980),h=i(20674);i(93360);var d=i(16654),c=i(88492),u=i(40044);i(27044);var g=i(48514),p=i(7646);class f{static{this.REGISTERED_COMMANDS=new Set}static getRegisteredCommands(){return[...f.REGISTERED_COMMANDS]}static registerCommand(e){f.REGISTERED_COMMANDS.add(e)}}class m{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata,this.canTriggerInlineEdits=e.canTriggerInlineEdits}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts)for(let e of Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts]){let t=e.kbExpr;this.precondition&&(t=t?h.M$.and(t,this.precondition):this.precondition);let i={id:this.id,weight:e.weight,args:e.args,when:t,primary:e.primary,secondary:e.secondary,win:e.win,linux:e.linux,mac:e.mac};d.f.registerKeybindingRule(i)}l.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata}),this.canTriggerInlineEdits&&f.registerCommand(this.id)}_registerMenuItem(e){a.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class _ extends m{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){let i=e.get(g.rr),n=e.get(h.fN);for(let s of(i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`),this._implementations)){if(s.when){let e=n.getContext((0,p.bq)());if(!s.when.evaluate(e))continue}let r=s.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${s.name}'.`),"boolean"==typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class v extends m{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class b extends m{static bindToContribution(e){return class extends b{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,n){let s=e(i);s&&this._callback(s,n)}}}static runEditorCommand(e,t,i,n){let s=e.get(o.T),r=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(r)return r.invokeWithinContext(e=>{if(e.get(h.fN).contextMatchesRules(i??void 0))return n(e,r,t)})}runCommand(e,t){return b.runEditorCommand(e,t,this.precondition,(e,t,i)=>this.runEditorCommand(e,t,i))}}class C extends b{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=a.D8.EditorContext),t.title||(t.title="string"==typeof e.label?e.label:e.label.value),t.when=h.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(C.convertOptions(e)),"string"==typeof e.label?(this.label=e.label,this.alias=e.alias??e.label):(this.label=e.label.value,this.alias=e.alias??e.label.original)}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(u.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class w extends C{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(let n of this._implementations){let s=n[1](e,t,i);if(s){if("boolean"==typeof s)return;return s}}}}class y extends a.L{run(e,...t){let i=e.get(o.T),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(e=>{let i=e.get(h.fN),s=e.get(g.rr);return i.contextMatchesRules(this.desc.precondition??void 0)?this.runEditorCommand(e,n,...t):void s.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())})}}function S(e){return E.INSTANCE.registerEditorCommand(e),e}function x(e){let t=new e;return E.INSTANCE.registerEditorAction(t),t}function k(e){return E.INSTANCE.registerEditorAction(e),e}function L(e){E.INSTANCE.registerEditorAction(e)}function D(e,t,i){E.INSTANCE.registerEditorContribution(e,t,i)}(n=s||(s={})).getEditorCommand=function(e){return E.INSTANCE.getEditorCommand(e)},n.getEditorActions=function(){return E.INSTANCE.getEditorActions()},n.getEditorContributions=function(){return E.INSTANCE.getEditorContributions()},n.getSomeEditorContributions=function(e){return E.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)},n.getDiffEditorContributions=function(){return E.INSTANCE.getDiffEditorContributions()};class E{static{this.INSTANCE=new E}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function N(e){return e.register(),e}c.O.add("editor.contributions",E.INSTANCE);let I=N(new _({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:a.D8.MenubarEditMenu,group:"1_do",title:(0,r.kg)(73,"&&Undo"),order:1},{menuId:a.D8.CommandPalette,group:"",title:(0,r.kg)(74,"Undo"),order:1},{menuId:a.D8.SimpleEditorContext,group:"1_do",title:(0,r.kg)(75,"Undo"),order:1}]}));N(new v(I,{id:"default:undo",precondition:void 0}));let T=N(new _({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:a.D8.MenubarEditMenu,group:"1_do",title:(0,r.kg)(76,"&&Redo"),order:2},{menuId:a.D8.CommandPalette,group:"",title:(0,r.kg)(77,"Redo"),order:1},{menuId:a.D8.SimpleEditorContext,group:"1_do",title:(0,r.kg)(78,"Redo"),order:2}]}));N(new v(T,{id:"default:redo",precondition:void 0}));let M=N(new _({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:a.D8.MenubarSelectionMenu,group:"1_basic",title:(0,r.kg)(79,"&&Select All"),order:1},{menuId:a.D8.CommandPalette,group:"",title:(0,r.kg)(80,"Select All"),order:1},{menuId:a.D8.SimpleEditorContext,group:"9_select",title:(0,r.kg)(81,"Select All"),order:1}]}))},32145:(e,t,i)=>{"use strict";(0,i(80487).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(31527).then(i.bind(i,31527))})},32671:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>u});var n,s,r=i(27044),o=i(72032),a=i(40639),l=i(25830),h=i(26270),d=i(8998),c=i(62780);class u{static addCursorDown(e,t,i){let n=[],s=0;for(let r=0,l=t.length;r<l;r++){let l=t[r];n[s++]=new o.MF(l.modelState,l.viewState),i?n[s++]=o.MF.fromModelState(a.I.translateDown(e.cursorConfig,e.model,l.modelState)):n[s++]=o.MF.fromViewState(a.I.translateDown(e.cursorConfig,e,l.viewState))}return n}static addCursorUp(e,t,i){let n=[],s=0;for(let r=0,l=t.length;r<l;r++){let l=t[r];n[s++]=new o.MF(l.modelState,l.viewState),i?n[s++]=o.MF.fromModelState(a.I.translateUp(e.cursorConfig,e.model,l.modelState)):n[s++]=o.MF.fromViewState(a.I.translateUp(e.cursorConfig,e,l.viewState))}return n}static moveToBeginningOfLine(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s];n[s]=this._moveToLineStart(e,r,i)}return n}static _moveToLineStart(e,t,i){let n=t.viewState.position.column,s=t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n!==s&&n!==o?this._moveToLineStartByView(e,t,i):this._moveToLineStartByModel(e,t,i)}static _moveToLineStartByView(e,t,i){return o.MF.fromViewState(a.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return o.MF.fromModelState(a.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){let s=[];for(let r=0,o=t.length;r<o;r++){let o=t[r];s[r]=this._moveToLineEnd(e,o,i,n)}return s}static _moveToLineEnd(e,t,i,n){let s=t.viewState.position,r=e.getLineMaxColumn(s.lineNumber),o=s.column===r,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),h=r-s.column==l-a.column;return o||h?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return o.MF.fromViewState(a.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return o.MF.fromModelState(a.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){let i=[];for(let n=0,s=t.length;n<s;n++){let s,r=t[n],a=r.modelState.selection.startLineNumber,l=e.model.getLineCount(),c=r.modelState.selection.endLineNumber;c===l?s=e.model.getLineMaxColumn(l):(c++,s=1),i[n]=o.MF.fromModelState(new o.mG(new d.Q(a,1,a,1),0,0,new h.y(c,s),0))}return i}static moveToBeginningOfBuffer(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s];n[s]=o.MF.fromModelState(a.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,r.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s];n[s]=o.MF.fromModelState(a.I.moveToEndOfBuffer(e.cursorConfig,e.model,r.modelState,i))}return n}static selectAll(e,t){let i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return o.MF.fromModelState(new o.mG(new d.Q(1,1,1,1),0,0,new h.y(i,n),0))}static line(e,t,i,n,s){let r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new h.y(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);if(!i){let t=e.model.getLineCount(),i=r.lineNumber+1,n=1;return i>t&&(i=t,n=e.model.getLineMaxColumn(i)),o.MF.fromModelState(new o.mG(new d.Q(r.lineNumber,1,i,n),2,0,new h.y(i,n),0))}let l=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<l)return o.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(r.lineNumber>l){let i=e.getLineCount(),n=a.lineNumber+1,s=1;return n>i&&(n=i,s=e.getLineMaxColumn(n)),o.MF.fromViewState(t.viewState.move(!0,n,s,0))}{let e=t.modelState.selectionStart.getEndPosition();return o.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){let s=e.model.validatePosition(n);return o.MF.fromModelState(l.z.word(e.cursorConfig,e.model,t.modelState,i,s))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o.MF(t.modelState,t.viewState);let i=t.viewState.position.lineNumber,n=t.viewState.position.column;return o.MF.fromViewState(new o.mG(new d.Q(i,n,i,n),0,0,new h.y(i,n),0))}static moveTo(e,t,i,n,s){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,s)}let r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new h.y(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return o.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,s,r){switch(i){case 0:if(4===r)return this._moveHalfLineLeft(e,t,n);return this._moveLeft(e,t,n,s);case 1:if(4===r)return this._moveHalfLineRight(e,t,n);return this._moveRight(e,t,n,s);case 2:if(2===r)return this._moveUpByViewLines(e,t,n,s);if(5===r)return this._moveUpByFoldedLines(e,t,n,s);return this._moveUpByModelLines(e,t,n,s);case 3:if(2===r)return this._moveDownByViewLines(e,t,n,s);if(5===r)return this._moveDownByFoldedLines(e,t,n,s);return this._moveDownByModelLines(e,t,n,s);case 4:if(2===r)return t.map(t=>o.MF.fromViewState(a.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)));return t.map(t=>o.MF.fromModelState(a.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 5:if(2===r)return t.map(t=>o.MF.fromViewState(a.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)));return t.map(t=>o.MF.fromModelState(a.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,s){let r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{let i=this._firstLineNumberInRange(e.model,o,s),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,r)]}case 13:{let i=this._lastLineNumberInRange(e.model,o,s),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,r)]}case 12:{let i=Math.round((o.startLineNumber+o.endLineNumber)/2),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 14:{let i=[];for(let s=0,o=t.length;s<o;s++){let o=t[s];i[s]=this.findPositionInViewportIfOutside(e,o,r,n)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,n){let s=t.viewState.position.lineNumber;if(i.startLineNumber<=s&&s<=i.endLineNumber-1)return new o.MF(t.modelState,t.viewState);{let r;r=s>i.endLineNumber-1?i.endLineNumber-1:s<i.startLineNumber?i.startLineNumber:s;let l=a.I.vertical(e.cursorConfig,e,s,t.viewState.position.column,t.viewState.leftoverVisibleColumns,r,!1);return o.MF.fromViewState(t.viewState.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map(t=>{let s=e.getTextDirection(t.viewState.position.lineNumber)===c.z4.RTL;return o.MF.fromViewState(s?a.I.moveRight(e.cursorConfig,e,t.viewState,i,n):a.I.moveLeft(e.cursorConfig,e,t.viewState,i,n))})}static _moveHalfLineLeft(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],l=r.viewState.position.lineNumber,h=Math.round(e.getLineLength(l)/2);n[s]=o.MF.fromViewState(a.I.moveLeft(e.cursorConfig,e,r.viewState,i,h))}return n}static _moveRight(e,t,i,n){return t.map(t=>{let s=e.getTextDirection(t.viewState.position.lineNumber)===c.z4.RTL;return o.MF.fromViewState(s?a.I.moveLeft(e.cursorConfig,e,t.viewState,i,n):a.I.moveRight(e.cursorConfig,e,t.viewState,i,n))})}static _moveHalfLineRight(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],l=r.viewState.position.lineNumber,h=Math.round(e.getLineLength(l)/2);n[s]=o.MF.fromViewState(a.I.moveRight(e.cursorConfig,e,r.viewState,i,h))}return n}static _moveDownByViewLines(e,t,i,n){let s=[];for(let r=0,l=t.length;r<l;r++){let l=t[r];s[r]=o.MF.fromViewState(a.I.moveDown(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveDownByModelLines(e,t,i,n){let s=[];for(let r=0,l=t.length;r<l;r++){let l=t[r];s[r]=o.MF.fromModelState(a.I.moveDown(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveUpByViewLines(e,t,i,n){let s=[];for(let r=0,l=t.length;r<l;r++){let l=t[r];s[r]=o.MF.fromViewState(a.I.moveUp(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveUpByModelLines(e,t,i,n){let s=[];for(let r=0,l=t.length;r<l;r++){let l=t[r];s[r]=o.MF.fromModelState(a.I.moveUp(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveDownByFoldedLines(e,t,i,n){let s=e.model,r=s.getLineCount(),l=e.getHiddenAreas();return t.map(t=>{let h=t.modelState.hasSelection()&&!i?t.modelState.selection.endLineNumber:t.modelState.position.lineNumber,d=u._targetFoldedDown(h,n,l,r)-h;return 0===d?o.MF.fromModelState(t.modelState):o.MF.fromModelState(a.I.moveDown(e.cursorConfig,s,t.modelState,i,d))})}static _moveUpByFoldedLines(e,t,i,n){let s=e.model,r=e.getHiddenAreas();return t.map(t=>{let l=t.modelState.hasSelection()&&!i?t.modelState.selection.startLineNumber:t.modelState.position.lineNumber,h=u._targetFoldedUp(l,n,r),d=l-h;return 0===d?o.MF.fromModelState(t.modelState):o.MF.fromModelState(a.I.moveUp(e.cursorConfig,s,t.modelState,i,d))})}static _targetFoldedDown(e,t,i,n){let s=e,r=0;for(;r<i.length&&i[r].endLineNumber<s+1;)r++;for(let e=0;e<t;e++){if(s>=n)return n;let e=s+1;for(;r<i.length&&i[r].endLineNumber<e;)r++;if(r<i.length&&i[r].startLineNumber<=e&&(e=i[r].endLineNumber+1),e>n)break;s=e}return s}static _targetFoldedUp(e,t,i){let n=e,s=i.length-1;for(;s>=0&&i[s].startLineNumber>n-1;)s--;for(let e=0;e<t;e++){if(n<=1)return 1;let e=n-1;for(;s>=0&&i[s].startLineNumber>e;)s--;if(s>=0&&i[s].endLineNumber>=e&&(e=i[s].startLineNumber-1),e<1)break;n=e}return n}static _moveToViewPosition(e,t,i,n,s){return o.MF.fromViewState(t.viewState.move(i,n,s,0))}static _moveToModelPosition(e,t,i,n,s){return o.MF.fromModelState(t.modelState.move(i,n,s,0))}static _moveToViewMinColumn(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);n[s]=this._moveToViewPosition(e,r,i,o,a)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);n[s]=this._moveToViewPosition(e,r,i,o,a)}return n}static _moveToViewCenterColumn(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);n[s]=this._moveToViewPosition(e,r,i,o,a)}return n}static _moveToViewMaxColumn(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);n[s]=this._moveToViewPosition(e,r,i,o,a)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){let n=[];for(let s=0,r=t.length;s<r;s++){let r=t[s],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);n[s]=this._moveToViewPosition(e,r,i,o,a)}return n}}(n=s||(s={})).metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
|
|
415
415
|
* 'to': A mandatory logical position value providing where to move the cursor.
|