@rsdoctor/client 0.3.2 → 0.3.3
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/dist/index.html +1 -1
- package/dist/resource/css/826.2794f707.css +4 -0
- package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
- package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
- package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
- package/dist/resource/js/index.f0279c55.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.6a7defc9.js +1 -0
- package/dist/resource/js/monaco-10.cdc45bb5.js +3 -0
- package/dist/resource/js/monaco-11.40a1fcb1.js +4 -0
- package/dist/resource/js/monaco-12.0c116aa2.js +43 -0
- package/dist/resource/js/monaco-13.dcefcf80.js +366 -0
- package/dist/resource/js/monaco-14.afa84c5f.js +42 -0
- package/dist/resource/js/monaco-15.26757ead.js +8 -0
- package/dist/resource/js/monaco-16.77a3677c.js +4 -0
- package/dist/resource/js/monaco-17.b0290dba.js +1 -0
- package/dist/resource/js/monaco-2.133a02f6.js +18 -0
- package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
- package/dist/resource/js/monaco-4.b9b35171.js +301 -0
- package/dist/resource/js/monaco-5.b2a6d9b1.js +8 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.0c2b350f.js +1 -0
- package/dist/resource/js/monaco-8.389906ed.js +1 -0
- package/dist/resource/js/monaco-9.9a685176.js +1 -0
- package/package.json +3 -3
- package/dist/resource/css/505.b09c71b1.css +0 -1
- package/dist/resource/js/index.fc9559d0.js +0 -156
- package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
- package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
- package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
- package/dist/resource/js/monaco-11.18edf242.js +0 -25
- package/dist/resource/js/monaco-12.f2868e03.js +0 -5
- package/dist/resource/js/monaco-13.88108488.js +0 -1
- package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
- package/dist/resource/js/monaco-2.6895e134.js +0 -17
- package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
- package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
- package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
- package/dist/resource/js/monaco-6.6e712e08.js +0 -1
- package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
- package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
- package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["86"],{45695:function(e,t,i){"use strict";i.d(t,{z:function(){return m}});var n=i("55952"),s=i("67558"),r=i("12084"),o=i("33565"),a=i("19711"),d=i("94260"),l=i("77993"),u=i("52640"),h=i("98212"),c=i("4157"),f=i("37764"),x=i("34308");i("76062");var g=i("58036");u.Il.white.toString(),u.Il.white.toString();class m extends f.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new h.Q5),this._onDidEscape=this._register(new h.Q5),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);let i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,s=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=s||"",this._element.style.backgroundColor=i||"",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._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach(e=>{this._register((0,n.nm)(this._element,e,e=>{if(!this.enabled){n.zB.stop(e);return}this._onDidClick.fire(e)}))}),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,e=>{let t=new r.y(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.zB.stop(t,!0)})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,e=>{!this._element.classList.contains("disabled")&&this.updateBackground(!0)})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,e=>{this.updateBackground(!1)})),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateBackground(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateBackground(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){let t=[];for(let i of(0,l.T)(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}updateBackground(e){let t;(t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground)&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e||(0,c.Fr)(this._label)&&(0,c.Fr)(e)&&(0,c.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");let i=this.options.supportShortLabel?this._labelElement:this._element;if((0,c.Fr)(e)){let r=(0,o.ap)(e,{inline:!0});r.dispose();let a=null===(t=r.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){let e=(0,s.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;let r="";"string"==typeof this.options.title?r=this.options.title:this.options.title&&(r=(0,o.et)(e)),this.setTitle(r),"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",r),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...x.k.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")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,g.B)().setupUpdatableHover(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,d.tM)("mouse"),this._element,e))}}},32623:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i("55952"),s=i("71482");i("21276");class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,s.WU)(this.countFormat,this.count),this.element.title=(0,s.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},12681:function(e,t,i){"use strict";i.d(t,{h:function(){return l}});var n=i("55952"),s=i("12084"),r=i("19711"),o=i("16234"),a=i("98212");i("90132");class d extends o.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new a.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;for(let e of(!i&&(i=e=>(e.textContent=t.label||"",null)),[n.tw.CLICK,n.tw.MOUSE_DOWN,r.t.Tap]))this._register((0,n.nm)(this.element,e,e=>n.zB.stop(e,!0)));for(let e of[n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this._label,e,e=>{(!(0,n.N5)(e)||!(e.detail>1)&&0===e.button)&&(this.visible?this.hide():this.show())}));this._register((0,n.nm)(this._label,n.tw.KEY_UP,e=>{let t=new s.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())}));let o=i(this._label);o&&this._register(o),this._register(r.o.addTarget(this._label))}get element(){return this._element}show(){!this.visible&&(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class l extends d{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}},65626:function(e,t,i){"use strict";i.d(t,{A:function(){return l}});var n=i("55952"),s=i("19711"),r=i("47983"),o=i("98212"),a=i("37764"),d=i("97147");class l extends a.JT{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 o.Q5),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(s.o.addTarget(this.selectElement)),[s.t.Tap].forEach(e=>{this._register(n.nm(this.selectElement,e,e=>{this.selectElement.focus()}))}),this._register(n.mu(this.selectElement,"click",e=>{n.zB.stop(e,!0)})),this._register(n.mu(this.selectElement,"change",e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})})),this._register(n.mu(this.selectElement,"keydown",e=>{let t=!1;d.dz?(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||!r.fS(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))})),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(){var e,t,i;this.selectElement&&(this.selectElement.style.backgroundColor=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",this.selectElement.style.color=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",this.selectElement.style.borderColor=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"")}createOption(e,t,i){let n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}}},73250:function(e,t,i){"use strict";i.d(t,{M:function(){return o},z:function(){return S}});var n,s,r,o,a=i("55952"),d=i("44608"),l=i("475"),u=i("99557"),h=i("47983"),c=i("52640"),f=i("98212"),x=i("37764"),g=i("45065"),m=i("80928"),p=i("67414");i("57590");let _={separatorBorder:c.Il.transparent};class C{set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,g.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(e){console.error("Splitview: Failed to set visible view"),console.error(e)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(e){console.error("Splitview: Failed to layout view"),console.error(e)}}dispose(){this.disposable.dispose()}}class b extends C{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class v extends C{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}(n=r||(r={}))[n.Idle=0]="Idle",n[n.Busy=1]="Busy",(s=o||(o={})).Distribute={type:"distribute"},s.Split=function(e){return{type:"split",index:e}},s.Auto=function(e){return{type:"auto",index:e}},s.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};class S extends x.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(let t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(let t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,n,s,o,l;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=r.Idle,this._onDidSashChange=this._register(new f.Q5),this._onDidSashReset=this._register(new f.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(n=t.inverseAltBehavior)&&void 0!==n&&n,this.proportionalLayout=null===(s=t.proportionalLayout)||void 0===s||s,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,a.R3)(this.el,(0,a.$)(".sash-container")),this.viewContainer=(0,a.$)(".split-view-container"),this.scrollable=this._register(new m.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,a.jL)((0,a.Jj)(this.el),e)})),this.scrollableElement=this._register(new u.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(o=t.scrollbarVisibility)&&void 0!==o?o:1:2,horizontal:1===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2},this.scrollable));let h=this._register(new d.Y(this.viewContainer,"scroll")).event;this._register(h(e=>{let t=this.scrollableElement.getScrollPosition(),i=1>=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)?void 0:this.viewContainer.scrollLeft,n=1>=Math.abs(this.viewContainer.scrollTop-t.scrollTop)?void 0:this.viewContainer.scrollTop;(void 0!==i||void 0!==n)&&this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)})),(0,a.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||_),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((e,t)=>{let i=p.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)}),this._contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){let i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){let n=this.viewItems[i],s=this.proportions[i];"number"==typeof s?t+=s:e-=n.size}for(let i=0;i<this.viewItems.length;i++){let n=this.viewItems[i],s=this.proportions[i];"number"==typeof s&&t>0&&(n.size=(0,g.uZ)(Math.round(s*e/t),n.minimumSize,n.maximumSize))}}else{let t=(0,h.w6)(this.viewItems.length),n=t.filter(e=>1===this.viewItems[e].priority),s=t.filter(e=>2===this.viewItems[e].priority);this.resize(this.viewItems.length-1,e-i,void 0,n,s)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0))}onSashStart({sash:e,start:t,alt:i}){for(let e of this.viewItems)e.enabled=!1;let n=this.sashItems.findIndex(t=>t.sash===e),s=(0,x.F8)((0,a.nm)(this.el.ownerDocument.body,"keydown",e=>r(this.sashDragState.current,e.altKey)),(0,a.nm)(this.el.ownerDocument.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(e,t)=>{let i,r;let o=this.viewItems.map(e=>e.size),a=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){let e=this.viewItems[n];a=(e.minimumSize-e.size)/2,d=(e.maximumSize-e.size)/2}else{let e=this.viewItems[n+1];a=(e.size-e.maximumSize)/2,d=(e.size-e.minimumSize)/2}}if(!t){let e=(0,h.w6)(n,-1),t=(0,h.w6)(n+1,this.viewItems.length),s=e.reduce((e,t)=>e+(this.viewItems[t].minimumSize-o[t]),0),a=e.reduce((e,t)=>e+(this.viewItems[t].viewMaximumSize-o[t]),0),d=0===t.length?Number.POSITIVE_INFINITY:t.reduce((e,t)=>e+(o[t]-this.viewItems[t].minimumSize),0),l=Math.max(s,0===t.length?Number.NEGATIVE_INFINITY:t.reduce((e,t)=>e+(o[t]-this.viewItems[t].viewMaximumSize),0)),u=Math.min(d,a),c=this.findFirstSnapIndex(e),f=this.findFirstSnapIndex(t);if("number"==typeof c){let e=this.viewItems[c],t=Math.floor(e.viewMinimumSize/2);i={index:c,limitDelta:e.visible?l-t:l+t,size:e.size}}if("number"==typeof f){let e=this.viewItems[f],t=Math.floor(e.viewMinimumSize/2);r={index:f,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:o,minDelta:a,maxDelta:d,alt:t,snapBefore:i,snapAfter:r,disposable:s}};r(t,i)}onSashChange({current:e}){let{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:d}=this.sashDragState;this.sashDragState.current=e;let l=this.resize(t,e-i,n,void 0,void 0,r,o,a,d);if(s){let e=t===this.sashItems.length-1,i=this.viewItems.map(e=>e.size),n=e?t:t+1,s=this.viewItems[n],r=s.size-s.maximumSize,o=s.size-s.minimumSize;this.resize(e?t-1:t+1,-l,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){for(let t of(this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions(),this.viewItems))t.enabled=!0}onViewChange(e,t){let i=this.viewItems.indexOf(e);!(i<0)&&!(i>=this.viewItems.length)&&(t="number"==typeof t?t:e.size,t=(0,g.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0)&&!(e>=this.viewItems.length)){if(this.state!==r.Idle)throw Error("Cant modify splitview");this.state=r.Busy;try{let i=(0,h.w6)(this.viewItems.length).filter(t=>t!==e),n=[...i.filter(e=>1===this.viewItems[e].priority),e],s=i.filter(e=>2===this.viewItems[e].priority),r=this.viewItems[e];t=Math.round(t),t=(0,g.uZ)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s)}finally{this.state=r.Idle}}}distributeViewSizes(){let e=[],t=0;for(let i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);let i=Math.floor(t/e.length);for(let t of e)t.size=(0,g.uZ)(i,t.minimumSize,t.maximumSize);let n=(0,h.w6)(this.viewItems.length),s=n.filter(e=>1===this.viewItems[e].priority),r=n.filter(e=>2===this.viewItems[e].priority);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==r.Idle)throw Error("Cant modify splitview");this.state=r.Busy;try{let s,r;let o=(0,a.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));let d=e.onDidChange(e=>this.onViewChange(g,e)),u=(0,x.OF)(()=>this.viewContainer.removeChild(o)),c=(0,x.F8)(d,u);"number"==typeof t?s=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),s="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);let g=0===this.orientation?new b(o,e,s,c):new v(o,e,s,c);if(this.viewItems.splice(i,0,g),this.viewItems.length>1){let e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new l.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new l.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=f.ju.map(t.onDidStart,n)(this.onSashStart,this),r=f.ju.map(t.onDidChange,n)(this.onSashChange,this),o=f.ju.map(t.onDidEnd,()=>this.sashItems.findIndex(e=>e.sash===t))(this.onSashEnd,this),a=t.onDidReset(()=>{let e=this.sashItems.findIndex(e=>e.sash===t),i=(0,h.w6)(e,-1),n=(0,h.w6)(e+1,this.viewItems.length),s=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(n);if("number"!=typeof s||!!this.viewItems[s].visible)("number"!=typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)}),d=(0,x.F8)(s,r,o,a,t);this.sashItems.splice(i-1,0,{sash:t,disposable:d})}o.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(r=[t.index]),!n&&this.relayout([i],r),!n&&"number"!=typeof t&&"distribute"===t.type&&this.distributeViewSizes()}finally{this.state=r.Idle}}relayout(e,t){let i=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(e=>e.size),n,s,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,a,d){if(e<0||e>=this.viewItems.length)return 0;let l=(0,h.w6)(e,-1),u=(0,h.w6)(e+1,this.viewItems.length);if(s)for(let e of s)(0,h.zI)(l,e),(0,h.zI)(u,e);if(n)for(let e of n)(0,h.al)(l,e),(0,h.al)(u,e);let c=l.map(e=>this.viewItems[e]),f=l.map(e=>i[e]),x=u.map(e=>this.viewItems[e]),m=u.map(e=>i[e]),p=l.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),_=l.reduce((e,t)=>e+(this.viewItems[t].maximumSize-i[t]),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),b=Math.max(p,0===u.length?Number.NEGATIVE_INFINITY:u.reduce((e,t)=>e+(i[t]-this.viewItems[t].maximumSize),0),r),v=Math.min(C,_,o),S=!1;if(a){let e=this.viewItems[a.index],i=t>=a.limitDelta;S=i!==e.visible,e.setVisible(i,a.size)}if(!S&&d){let e=this.viewItems[d.index],i=t<d.limitDelta;S=i!==e.visible,e.setVisible(i,d.size)}if(S)return this.resize(e,t,i,n,s,r,o);t=(0,g.uZ)(t,b,v);for(let e=0,i=t;e<c.length;e++){let t=c[e],n=(0,g.uZ)(f[e]+i,t.minimumSize,t.maximumSize);i-=n-f[e],t.size=n}for(let e=0,i=t;e<x.length;e++){let t=x[e],n=(0,g.uZ)(m[e]-i,t.minimumSize,t.maximumSize);i+=n-m[e],t.size=n}return t}distributeEmptySpace(e){let t=this.viewItems.reduce((e,t)=>e+t.size,0),i=this.size-t,n=(0,h.w6)(this.viewItems.length-1,-1),s=n.filter(e=>1===this.viewItems[e].priority);for(let e of n.filter(e=>2===this.viewItems[e].priority))(0,h.zI)(n,e);for(let e of s)(0,h.al)(n,e);"number"==typeof e&&(0,h.al)(n,e);for(let e=0;0!==i&&e<n.length;e++){let t=this.viewItems[n[e]],s=(0,g.uZ)(t.size+i,t.minimumSize,t.maximumSize);i-=s-t.size,t.size=s}}layoutViews(){this._contentSize=this.viewItems.reduce((e,t)=>e+t.size,0);let e=0;for(let t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1,t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;let i=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),n=[...this.viewItems].reverse();e=!1;let s=n.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;let r=n.map(t=>e=t.maximumSize-t.size>0||e).reverse(),o=0;for(let e=0;e<this.sashItems.length;e++){let{sash:n}=this.sashItems[e];o+=this.viewItems[e].size;let a=!(t[e]&&r[e+1]),d=!(i[e]&&s[e+1]);if(a&&d){let i=(0,h.w6)(e,-1),r=(0,h.w6)(e+1,this.viewItems.length),a=this.findFirstSnapIndex(i),d=this.findFirstSnapIndex(r),l="number"==typeof a&&!this.viewItems[a].visible,u="number"==typeof d&&!this.viewItems[d].visible;l&&s[e]&&(o>0||this.startSnappingEnabled)?n.state=1:u&&t[e]&&(o<this._contentSize||this.endSnappingEnabled)?n.state=2:n.state=0}else a&&!d?n.state=1:!a&&d?n.state=2:n.state=3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(let t of e){let e=this.viewItems[t];if(e.visible&&e.snap)return t}for(let t of e){let e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)break;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(let i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),(t=void 0===t?i.size:Math.max(t,i.size))-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,x.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[],super.dispose()}}},73866:function(e,t,i){"use strict";i.d(t,{$:function(){return d}});var n=i("55952"),s=i("12084"),r=i("67095"),o=i("19711"),a=i("37764");class d extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,i=>t(new r.n(n.Jj(e),i))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,i=>t(new r.n(n.Jj(e),i))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,i=>t(new r.n(n.Jj(e),i))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,i=>t(new r.n(n.Jj(e),i))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,e=>t(new s.y(e))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,e=>t(new s.y(e))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return o.o.ignoreTarget(e)}}},59287:function(e,t,i){"use strict";function n(e,t,i){let n=null,s=null;if("function"==typeof i.value?(n="value",0!==(s=i.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof i.get&&(n="get",s=i.get),!s)throw Error("not supported");let r=`$memoize$${t}`;i[n]=function(...e){return!this.hasOwnProperty(r)&&Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,e)}),this[r]}}i.d(t,{H:function(){return n}})},64138:function(e,t,i){"use strict";var n,s,r=i("71482");(n=s||(s={}))[n.Ignore=0]="Ignore",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error",!function(e){let t="error",i="warning",n="info";e.fromValue=function(s){return s?r.qq(t,s)?e.Error:r.qq(i,s)||r.qq("warn",s)?e.Warning:r.qq(n,s)?e.Info:e.Ignore:e.Ignore};e.toString=function(s){switch(s){case e.Error:return t;case e.Warning:return i;case e.Info:return n;default:return"ignore"}}}(s||(s={})),t.Z=s},59604:function(e,t,i){"use strict";i.d(t,{Id:function(){return l}});var n=i("71482");class s{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){let t=e.charCodeAt(0);return t-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(46===this._value.charCodeAt(this._to)){if(e)this._from++;else break}else e=!1;return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){let e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){let t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(e)this._from++;else break}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.TT)(e,this._value,0,e.length,this._from,this._to):(0,n.j_)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),!this._ignoreQueryAndFragment(e)&&(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,n.zY)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,n.zY)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);else if(4===this._states[this._stateIdx])return(0,n.qu)(e,this._value.query);else if(5===this._states[this._stateIdx])return(0,n.qu)(e,this._value.fragment);throw Error()}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();else if(4===this._states[this._stateIdx])return this._value.query;else if(5===this._states[this._stateIdx])return this._value.fragment;throw Error()}}class d{constructor(){this.height=1}rotateLeft(){let e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){let e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}class l{static forUris(e=()=>!1,t=()=>!1){return new l(new a(e,t))}static forStrings(){return new l(new s)}static forConfigKeys(){return new l(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){let i;let n=this._iter.reset(e);!this._root&&(this._root=new d,this._root.segment=n.value());let s=[];for(i=this._root;;){let e=n.cmp(i.segment);if(e>0)!i.left&&(i.left=new d,i.left.segment=n.value()),s.push([-1,i]),i=i.left;else if(e<0)!i.right&&(i.right=new d,i.right.segment=n.value()),s.push([1,i]),i=i.right;else if(n.hasNext())n.next(),!i.mid&&(i.mid=new d,i.mid.segment=n.value()),s.push([0,i]),i=i.mid;else break}let r=i.value;i.value=t,i.key=e;for(let e=s.length-1;e>=0;e--){let t=s[e][1];t.updateHeight();let i=t.balanceFactor();if(i<-1||i>1){let i=s[e][0],n=s[e+1][0];if(1===i&&1===n)s[e][1]=t.rotateLeft();else if(-1===i&&-1===n)s[e][1]=t.rotateRight();else if(1===i&&-1===n)t.right=s[e+1][1]=s[e+1][1].rotateRight(),s[e][1]=t.rotateLeft();else if(-1===i&&1===n)t.left=s[e+1][1]=s[e+1][1].rotateLeft(),s[e][1]=t.rotateRight();else throw Error();if(e>0)switch(s[e-1][0]){case -1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}return r}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){let t=this._iter.reset(e),i=this._root;for(;i;){let e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){let t=this._getNode(e);return!((null==t?void 0:t.value)===void 0&&(null==t?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;let n=this._iter.reset(e),s=[],r=this._root;for(;r;){let e=n.cmp(r.segment);if(e>0)s.push([-1,r]),r=r.left;else if(e<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}if(r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value){if(r.left&&r.right){let e=this._min(r.right);if(e.key){let{key:t,value:i,segment:n}=e;this._delete(e.key,!1),r.key=t,r.value=i,r.segment=n}}else{let e=null!==(i=r.left)&&void 0!==i?i:r.right;if(s.length>0){let[t,i]=s[s.length-1];switch(t){case -1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}}for(let e=s.length-1;e>=0;e--){let t=s[e][1];t.updateHeight();let i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(0>=t.left.balanceFactor()||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case -1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){let t,i=this._iter.reset(e),n=this._root;for(;n;){let e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else if(i.hasNext())i.next(),t=n.value||t,n=n.mid;else break}return n&&n.value||t}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){let i=this._iter.reset(e),n=this._root;for(;n;){let e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else{if(n.mid)return this._entries(n.mid);if(t)return n.value;break}}}forEach(e){for(let[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){let t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},7480:function(e,t,i){"use strict";function n(e){return e<0?0:e>255?255:0|e}function s(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:function(){return s},K:function(){return n}})},88814:function(e,t,i){"use strict";let n,s;i.d(t,{H:function(){return g}});var r=i("76761"),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of d(t))!l.call(e,s)&&s!==i&&o(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},h={};u(h,n=r,"default"),s&&u(s,n,"default");var c={},f={},x=class e{static getOrCreate(t){return!f[t]&&(f[t]=new e(t)),f[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return!this._loadingTriggered&&(this._loadingTriggered=!0,c[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function g(e){let t=e.id;c[t]=e,h.languages.register(e);let i=x.getOrCreate(t);h.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),h.languages.onLanguageEncountered(t,async()=>{let e=await i.load();h.languages.setLanguageConfiguration(t,e.conf)})}},16637:function(e,t,i){"use strict";(0,i("88814").H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"71385"))})},80212:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},50410:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03C0","\u212F","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xf7","\u2208","\u2209","\u220B","\u220C","\u2218","\u221A","\u221B","\u2229","\u222A","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228A","\u228B","\u22BB"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}},93621:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}},59964:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}},78058:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},95732:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}},36809:function(e,t,i){"use strict";i.d(t,{AJ:function(){return S},QG:function(){return D},Qr:function(){return T},R6:function(){return E},Sq:function(){return B},Uc:function(){return s},_K:function(){return M},_l:function(){return y},fK:function(){return k},jY:function(){return I},kz:function(){return F},mY:function(){return v},n_:function(){return P},rn:function(){return N},sb:function(){return L},x1:function(){return A}});var n,s,r=i("94479"),o=i("98084"),a=i("87294"),d=i("70668"),l=i("96468"),u=i("51413"),h=i("95316"),c=i("249"),f=i("77667"),x=i("95449"),g=i("14811"),m=i("88928"),p=i("48467"),_=i("67414"),C=i("80853"),b=i("55952");class v{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}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?f.Ao.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};g.W.registerKeybindingRule(i)}c.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.BH.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 S extends v{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){this._implementations.splice(e,1);return}}}}runCommand(e,t){let i=e.get(C.VZ),n=e.get(f.i6);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,b.vY)());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 w extends v{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends v{static bindToContribution(e){return class extends y{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(a.$),r=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(r)return r.invokeWithinContext(e=>{if(e.get(f.i6).contextMatchesRules(null!=i?i:void 0))return n(e,r,t)})}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,(e,t,i)=>this.runEditorCommand(e,t,i))}}class E extends y{static convertOptions(e){let t;function i(t){return!t.menuId&&(t.menuId=h.eH.EditorContext),!t.title&&(t.title=e.label),t.when=f.Ao.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(E.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(p.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class I extends E{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){this._implementations.splice(e,1);return}}}}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 A extends h.Ke{run(e,...t){let i=e.get(a.$),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(e=>{var i,s;let r=e.get(f.i6),o=e.get(C.VZ);if(!r.contextMatchesRules(null!==(i=this.desc.precondition)&&void 0!==i?i:void 0)){o.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(s=this.desc.precondition)||void 0===s?void 0:s.serialize());return}return this.runEditorCommand(e,n,...t)})}}function L(e,t){c.P.registerCommand(e,function(e,...i){let n=e.get(x.TG),[s,r]=i;(0,_.p_)(o.o.isUri(s)),(0,_.p_)(d.L.isIPosition(r));let a=e.get(l.q).getModel(s);if(a){let e=d.L.lift(r);return n.invokeFunction(t,a,e,...i.slice(2))}return e.get(u.S).createModelReference(s).then(e=>new Promise((s,o)=>{try{let o=n.invokeFunction(t,e.object.textEditorModel,d.L.lift(r),i.slice(2));s(o)}catch(e){o(e)}}).finally(()=>{e.dispose()}))})}function k(e){return R.INSTANCE.registerEditorCommand(e),e}function T(e){let t=new e;return R.INSTANCE.registerEditorAction(t),t}function N(e){return R.INSTANCE.registerEditorAction(e),e}function D(e){R.INSTANCE.registerEditorAction(e)}function M(e,t,i){R.INSTANCE.registerEditorContribution(e,t,i)}(n=s||(s={})).getEditorCommand=function(e){return R.INSTANCE.getEditorCommand(e)},n.getEditorActions=function(){return R.INSTANCE.getEditorActions()},n.getEditorContributions=function(){return R.INSTANCE.getEditorContributions()},n.getSomeEditorContributions=function(e){return R.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)},n.getDiffEditorContributions=function(){return R.INSTANCE.getDiffEditorContributions()};class R{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 O(e){return e.register(),e}R.INSTANCE=new R,m.B.add("editor.contributions",R.INSTANCE);let P=O(new S({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:r.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.eH.CommandPalette,group:"",title:r.NC("undo","Undo"),order:1}]}));O(new w(P,{id:"default:undo",precondition:void 0}));let F=O(new S({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:r.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.eH.CommandPalette,group:"",title:r.NC("redo","Redo"),order:1}]}));O(new w(F,{id:"default:redo",precondition:void 0}));let B=O(new S({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.eH.MenubarSelectionMenu,group:"1_basic",title:r.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.eH.CommandPalette,group:"",title:r.NC("selectAll","Select All"),order:1}]}))},12622:function(e,t,i){"use strict";i.d(t,{Nt:function(){return g},dL:function(){return S},ob:function(){return x}});var n=i("5623"),s=i("40013"),r=i("97147"),o=i("90107"),a=i("55103"),d=i("74243"),l=i("35087"),u=i("91989"),h=i("97295");let c=!!r.tY||!r.IJ&&!n.vU&&!n.G6&&!0,f=!0;class x{constructor(e,t){this.themeType=t;let i=e.options,n=i.get(50);"off"===i.get(38)?this.renderWhitespace=i.get(99):this.renderWhitespace="none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class g{constructor(e){this._options=e,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.X)(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,u.c3)(this._options.themeType)||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;let r=n.getViewLineRenderingData(e),o=this._options,a=d.Kp.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn),x=null;if((0,u.c3)(o.themeType)||"selection"===this._options.renderWhitespace)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,u.c3)(o.themeType)&&a.push(new d.Kp(i,n,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(!x&&(x=[]),x.push(new l.zG(i-1,n-1))))}let p=new l.IJ(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,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==h.n0.OFF,x);if(this._renderedViewLine&&this._renderedViewLine.input.equals(p))return!1;s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;" class="'),s.appendString(g.CLASS_NAME),s.appendString('">');let _=(0,l.d1)(p,s);s.appendString("</div>");let b=null;return f&&c&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===_.containsForeignElements&&(b=new m(this._renderedViewLine?this._renderedViewLine.domNode:null,p,_.characterMapping)),!b&&(b=C(this._renderedViewLine?this._renderedViewLine.domNode:null,p,_.characterMapping,_.containsRTL,_.containsForeignElements)),this._renderedViewLine=b,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof m}monospaceAssumptionsAreValid(){return this._renderedViewLine?this._renderedViewLine instanceof m?this._renderedViewLine.monospaceAssumptionsAreValid():f:f}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof m&&(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 a.CH(!0,[new a.CR(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 a.CH(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}g.CLASS_NAME="view-line";class m{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;let 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,null==e||e.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return f;if(this.input.lineContent.length<300){let e=this.getWidth(null);Math.abs(e-this.domNode.domNode.firstChild.offsetWidth)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),f=!1)}return f}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){let s=this._getColumnPixelOffset(e,t,n),r=this._getColumnPixelOffset(e,i,n);return[new a.CR(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=o.h.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 S(this._characterMapping,e,t)}}class p{constructor(e,t,i,n,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){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,null==e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return -1!==this._cachedWidth&&!0}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 a.CR(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 a.CR(n,0)]}}_readPixelOffset(e,t,i,n){if(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=o.h.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);let s=this._characterMapping.getDomPosition(i),r=o.h.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!r||0===r.length)return -1;let a=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-a))return t}return a}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new a.CR(0,this.getWidth(n))];let s=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return o.h.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,r.partIndex,r.charIndex,n)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _ extends p{_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.containsRTL){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.Pf?b:v;function b(e,t,i,n,s){return new _(e,t,i,n,s)}function v(e,t,i,n,s){return new p(e,t,i,n,s)}function S(e,t,i){let n=t.textContent.length,s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new l.Nd(s,i),n)}},12517:function(e,t,i){"use strict";i.d(t,{H:function(){return o}});var n=i("74927");let s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},r=e=>{let t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=s[e[i]]<<4|15&s[e[i+1]];return t},o={1:(0,n.M)(()=>r("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,n.M)(()=>r("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}},2945:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});var n=i("70668"),s=i("83112");class r{static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(let n of e)"\n"===n?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new s.e(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new s.e(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new n.L(e.lineNumber,e.column+this.columnCount):new n.L(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}r.zero=new r(0,0)},78756:function(e,t,i){"use strict";i.d(t,{U:function(){return m}});var n=i("45802"),s=i("71482"),r=i("22970"),o=i("6950"),a=i("59775"),d=i("59550"),l=i("11482"),u=i("83112"),h=i("98681"),c=i("12680"),f=i("87496"),x=i("37764"),g=i("67478");class m extends x.JT{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new a.z(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new r.s(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,x.B9)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new a.z(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){let i=this._autoClosedActions[t];!i.isValid(e)&&(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,n){let s=!1,r=this.context.cursorConfig.multiCursorLimit;null!==n&&n.length>r&&(n=n.slice(0,r),s=!0);let o=p.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,s,r){let o=this._cursors.getViewPositions(),a=null,d=null;o.length>1?d=this._cursors.getViewSelections():a=u.e.fromPositions(o[0],o[0]),e.emitViewEvent(new f.Qb(t,i,a,d,n,s,r))}revealPrimary(e,t,i,n,s,r){let o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new f.Qb(t,i,null,o,n,s,r))}saveState(){let e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i<n;i++){let n=t[i];e.push({inSelectionMode:!n.isEmpty(),selectionStart:{lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn},position:{lineNumber:n.positionLineNumber,column:n.positionColumn}})}return e}restoreState(e,t){let i=[];for(let e=0,n=t.length;e<n;e++){let n=t[e],s=1,r=1;n.position&&n.position.lineNumber&&(s=n.position.lineNumber),n.position&&n.position.column&&(r=n.position.column);let o=s,a=r;n.selectionStart&&n.selectionStart.lineNumber&&(o=n.selectionStart.lineNumber),n.selectionStart&&n.selectionStart.column&&(a=n.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:s,positionColumn:r})}this.setStates(e,"restoreState",0,o.Vi.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof c.D8){if(!this._isHandling){this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}}else{let i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;let n=i.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new r.s(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){let t=o.Vi.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{let t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,o.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;let e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,o.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let i=[],n=[];for(let s=0,r=e.length;s<r;s++)i.push({range:e[s],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),n.push({range:t[s],options:{description:"auto-closed-enclosing",stickiness:1}});let s=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],n);this._autoClosedActions.push(new _(this._model,s,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();let t=C.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);let i=[],n=[];for(let t=0;t<e.commands.length;t++){let s=e.commands[t];s instanceof l.g_&&s.enclosingRange&&s.closeCharacterRange&&(i.push(s.closeCharacterRange),n.push(s.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||0===e.length)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){let r=p.from(this._model,this);if(r.equals(n))return!1;let o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new f.e$(a,o,i)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((e,t)=>!e.modelState.equals(n.cursorState[t].modelState))){let a=n?n.cursorState.map(e=>e.modelState.selection):null,d=n?n.modelVersionId:0;e.emitOutgoingEvent(new g.H6(a,o,d,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.text||n.text.indexOf("\n")>=0)return null;let s=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!s)return null;let r=s[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;let a=o[0].open,d=n.text.length-s[2].length-1,l=n.text.lastIndexOf(a,d-1);if(-1===l)return null;t.push([l,d])}return t}executeEdits(e,t,i,n){let s=null;"snippet"===t&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);let r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,e=>{if(s)for(let t=0,i=s.length;t<i;t++){let[i,n]=s[t],a=e[t],d=a.range.startLineNumber,l=a.range.startColumn-1+i,h=a.range.startColumn-1+n;r.push(new u.e(d,h+1,d,h+2)),o.push(new u.e(d,l+1,d,h+2))}let t=n(e);return t&&(this._isHandling=!0),t});a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;let r=p.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){(0,n.dL)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,r,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return _.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new v(this._model,this.getSelections())}endComposition(e,t){let i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{"keyboard"===t&&this._executeEditOperation(l.u6.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if("keyboard"===i){let e=t.length,i=0;for(;i<e;){let e=s.vH(t,i),n=t.substr(i,e);this._executeEditOperation(l.u6.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),n)),i+=e}}else this._executeEditOperation(l.u6.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,i)}compositionType(e,t,i,n,s,r){if(0===t.length&&0===i&&0===n){if(0!==s){let t=this.getSelections().map(e=>{let t=e.getPosition();return new h.Y(t.lineNumber,t.column+s,t.lineNumber,t.column+s)});this.setSelections(e,r,t,0)}return}this._executeEdit(()=>{this._executeEditOperation(l.u6.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(l.u6.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(d.A.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new o.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new o.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}class p{static from(e,t){return new p(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class _{static getAllAutoClosedCharacters(e){let t=[];for(let i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){let i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){let t=[];for(let e=0;e<this._autoClosedEnclosingDecorations.length;e++){let i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[e]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(u.e.compareRangesUsingStarts),e.sort(u.e.compareRangesUsingStarts);for(let i=0;i<e.length;i++)if(i>=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class C{static executeCommands(e,t,i){let n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let e=0,t=n.trackedRanges.length;e<t;e++)n.model._setTrackedRange(n.trackedRanges[e],null,0);return s}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;let i=this._getEditOperations(e,t);if(0===i.operations.length)return null;let n=i.operations,s=this._getLoserCursorMap(n);if(s.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let r=[];for(let e=0,t=n.length;e<t;e++)!s.hasOwnProperty(n[e].identifier.major.toString())&&r.push(n[e]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,i=>{let n=[];for(let t=0;t<e.selectionsBefore.length;t++)n[t]=[];for(let e of i)e.identifier&&n[e.identifier.major].push(e);let s=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let i=0;i<e.selectionsBefore.length;i++)n[i].length>0?(n[i].sort(s),r[i]=t[i].computeCursorState(e.model,{getInverseEditOperations:()=>n[i],getTrackedSelection:t=>{let i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new h.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new h.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):r[i]=e.selectionsBefore[i];return r});!o&&(o=e.selectionsBefore);let a=[];for(let e in s)s.hasOwnProperty(e)&&a.push(parseInt(e,10));for(let e of(a.sort((e,t)=>t-e),a))o.splice(e,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],n=!1;for(let s=0,r=t.length;s<r;s++){let r=t[s];if(r){let t=this._getEditOperationsFromCommand(e,s,r);i=i.concat(t.operations),n=n||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:n}}static _getEditOperationsFromCommand(e,t,i){let s=[],r=0,o=(e,n,o=!1)=>{(!u.e.isEmpty(e)||""!==n)&&s.push({identifier:{major:t,minor:r++},range:e,text:n,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},a=!1;try{i.getEditOperations(e.model,{addEditOperation:o,addTrackedEditOperation:(e,t,i)=>{a=!0,o(e,t,i)},trackSelection:(t,i)=>{let n;let s=h.Y.liftSelection(t);if(s.isEmpty()){if("boolean"==typeof i)n=i?2:3;else{let t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}}else n=1;let r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}})}catch(e){return(0,n.dL)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){(e=e.slice(0)).sort((e,t)=>-u.e.compareRangesUsingEnds(e.range,t.range));let t={};for(let i=1;i<e.length;i++){let n=e[i-1],s=e[i];if(u.e.getStartPosition(n.range).isBefore(u.e.getEndPosition(s.range))){let r;t[(r=n.identifier.major>s.identifier.major?n.identifier.major:s.identifier.major).toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class b{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class v{static _capture(e,t){let i=[];for(let n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new b(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=v._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;let i=v._capture(e,t);if(!i||this._original.length!==i.length)return null;let n=[];for(let e=0,t=this._original.length;e<t;e++)n.push(v._deduceOutcome(this._original[e],i[e]));return n}static _deduceOutcome(e,t){let i=Math.min(e.startSelection,t.startSelection,s.Mh(e.text,t.text)),n=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,s.P1(e.text,t.text)),r=e.text.substring(i,e.text.length-n),o=t.text.substring(i,t.text.length-n);return new l.Nu(r,e.startSelection-i,e.endSelection-i,o,t.startSelection-i,t.endSelection-i)}}},49439:function(e,t,i){"use strict";i.d(t,{DW:function(){return p}});var n=i("47983"),s=i("26089"),r=i("8773"),o=i("17202"),a=i("83112"),d=i("21111"),l=i("74203"),u=i("38810"),h=i("29008"),c=i("7648"),f=i("2306"),x=i("41296"),g=i("7890"),m=i("33852");class p{constructor(){this.dynamicProgrammingDiffing=new l.C,this.myersDiffingAlgorithm=new u.k}computeDiff(e,t,i){if(e.length<=1&&(0,n.fS)(e,t,(e,t)=>e===t))return new g.h([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new g.h([new m.gB(new r.z(1,e.length+1),new r.z(1,t.length+1),[new m.iy(new a.e(1,1,e.length,e[e.length-1].length+1),new a.e(1,1,t.length,t[t.length-1].length+1))])],[],!1);let l=0===i.maxComputationTimeMs?d.n0.instance:new d.NT(i.maxComputationTimeMs),u=!i.ignoreTrimWhitespace,h=new Map;function x(e){let t=h.get(e);return void 0===t&&(t=h.size,h.set(e,t)),t}let p=e.map(e=>x(e.trim())),C=t.map(e=>x(e.trim())),b=new f.b(p,e),v=new f.b(C,t),S=(()=>b.length+v.length<1700?this.dynamicProgrammingDiffing.compute(b,v,l,(i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99):this.myersDiffingAlgorithm.compute(b,v))(),w=S.diffs,y=S.hitTimeout;w=(0,c.xG)(b,v,w),w=(0,c.rh)(b,v,w);let E=[],I=i=>{if(u)for(let n=0;n<i;n++){let i=A+n,s=L+n;if(e[i]!==t[s]){let n=this.refineDiff(e,t,new d.i8(new o.q(i,i+1),new o.q(s,s+1)),l,u);for(let e of n.mappings)E.push(e);n.hitTimeout&&(y=!0)}}},A=0,L=0;for(let i of w){(0,s.eZ)(()=>i.seq1Range.start-A==i.seq2Range.start-L),I(i.seq1Range.start-A),A=i.seq1Range.endExclusive,L=i.seq2Range.endExclusive;let n=this.refineDiff(e,t,i,l,u);for(let e of(n.hitTimeout&&(y=!0),n.mappings))E.push(e)}I(e.length-A);let k=_(E,e,t),T=[];return i.computeMoves&&(T=this.computeMoves(k,e,t,p,C,l,u)),(0,s.eZ)(()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let i=t[e.lineNumber-1];return!(e.column<1)&&!(e.column>i.length+1)&&!0}function n(e,t){return!(e.startLineNumber<1)&&!(e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1)&&!(e.endLineNumberExclusive>t.length+1)&&!0}for(let s of k){if(!s.innerChanges)return!1;for(let n of s.innerChanges)if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1;if(!n(s.modified,t)||!n(s.original,e))return!1}return!0}),new g.h(k,T,y)}computeMoves(e,t,i,n,s,r,o){return(0,h.R)(e,t,i,n,s,r).map(e=>{let n=_(this.refineDiff(t,i,new d.i8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new g.y(e,n)})}refineDiff(e,t,i,n,s){let r=new x.v(e,i.seq1Range,s),o=new x.v(t,i.seq2Range,s),a=r.length+o.length<500?this.dynamicProgrammingDiffing.compute(r,o,n):this.myersDiffingAlgorithm.compute(r,o,n),d=a.diffs;return d=(0,c.xG)(r,o,d),d=(0,c.g0)(r,o,d),d=(0,c.oK)(r,o,d),{mappings:(d=(0,c.DI)(r,o,d)).map(e=>new m.iy(r.translateRange(e.seq1Range),o.translateRange(e.seq2Range))),hitTimeout:a.hitTimeout}}}function _(e,t,i,o=!1){let a=[];for(let s of(0,n.mw)(e.map(e=>(function(e,t,i){let n=0,s=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(s=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(n=1);let o=new r.z(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+s),a=new r.z(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+s);return new m.gB(o,a,[e])})(e,t,i)),(e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified))){let e=s[0],t=s[s.length-1];a.push(new m.gB(e.original.join(t.original),e.modified.join(t.modified),s.map(e=>e.innerChanges[0])))}return(0,s.eZ)(()=>(!!o||!(a.length>0)||a[0].modified.startLineNumber===a[0].original.startLineNumber&&i.length-a[a.length-1].modified.endLineNumberExclusive==t.length-a[a.length-1].original.endLineNumberExclusive)&&(0,s.DM)(a,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),a}},34109:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i("45802"),s=i("71482"),r=i("73071");class o{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{let t=o._createOpenBracketRegExp(e[0]),i=o._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,s=this._regExpRules.length;e<s;e++){let s=this._regExpRules[e];if([{reg:s.beforeText,text:i},{reg:s.afterText,text:n},{reg:s.previousLineText,text:t}].every(e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))))return s.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e<t;e++){let t=this._brackets[e];if(t.openRegExp.test(i)&&t.closeRegExp.test(n))return{indentAction:r.wU.IndentOutdent}}if(e>=2&&i.length>0){for(let e=0,t=this._brackets.length;e<t;e++)if(this._brackets[e].openRegExp.test(i))return{indentAction:r.wU.Indent}}return null}static _createOpenBracketRegExp(e){let t=s.ec(e);return!/\B/.test(t.charAt(0))&&(t="\\b"+t),t+="\\s*$",o._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=s.ec(e);return!/\B/.test(t.charAt(t.length-1))&&(t+="\\b"),t="^\\s*"+t,o._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(e){return(0,n.dL)(e),null}}}},83812:function(e,t,i){"use strict";i.d(t,{FE:function(){return o},Qw:function(){return r},tS:function(){return s}});let n=[];class s{static create(e,t){if(e<=128&&0===t.length){let i=s.cache[e];return!i&&(i=new s(e,t),s.cache[e]=i),i}return new s(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){let i=t.getKey(e),n=i>>5;if(0===n){let e=1<<i|this.items;return e===this.items?this:s.create(e,this.additionalItems)}n--;let r=this.additionalItems.slice(0);for(;r.length<n;)r.push(0);return r[n]|=1<<(31&i),s.create(this.items,r)}merge(e){let t=this.items|e.items;if(this.additionalItems===n&&e.additionalItems===n)return t===this.items?this:t===e.items?e:s.create(t,n);let i=[];for(let t=0;t<Math.max(this.additionalItems.length,e.additionalItems.length);t++){let n=this.additionalItems[t]||0,s=e.additionalItems[t]||0;i.push(n|s)}return s.create(t,i)}intersects(e){if((this.items&e.items)!=0)return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if((this.additionalItems[t]&e.additionalItems[t])!=0)return!0;return!1}}s.cache=Array(129),s.empty=s.create(0,n);let r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},73886:function(e,t,i){"use strict";i.d(t,{bc:function(){return d},cM:function(){return c},iE:function(){return l},pM:function(){return h},sz:function(){return f}});var n=i("71482"),s=i("32009"),r=i("70668"),o=i("83112"),a=i("42733");class d{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){let e;if(""===this.searchString)return null;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){let n=e.charCodeAt(t);if(10===n)return!0;if(92===n){if(++t>=i)break;let n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.Tx(t,this.wordSeparators?(0,s.u)(this.wordSeparators,[]):null,i?this.searchString:null)}}function l(e,t,i){if(!i)return new a.tk(e,null);let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e];return new a.tk(e,n)}class u{constructor(e){let t=[],i=0;for(let n=0,s=e.length;n<s;n++)10===e.charCodeAt(n)&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){let t=this._lineFeedsOffsets,i=0,n=t.length-1;if(-1===n||e<=t[0])return 0;for(;i<n;){let s=i+((n-i)/2>>0);t[s]>=e?n=s-1:t[s+1]>=e?(i=s,n=s):i=s+1}return i+1}}class h{static findMatches(e,t,i,n,s){let r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new f(r.wordSeparators,r.regex),n,s):this._doFindMatchesLineByLine(e,i,r,n,s):[]}static _getMultilineMatchRange(e,t,i,n,s,r){let a,d;let l=0;if(n?(l=n.findLineFeedCountBeforeOffset(s),a=t+s+l):a=t+s,n){let e=n.findLineFeedCountBeforeOffset(s+r.length)-l;d=a+r.length+e}else d=a+r.length;let u=e.getPositionAt(a),h=e.getPositionAt(d);return new o.e(u.lineNumber,u.column,h.lineNumber,h.column)}static _doFindMatchesMultiline(e,t,i,n,s){let r;let o=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),d="\r\n"===e.getEOL()?new u(a):null,h=[],c=0;for(i.reset(0);(r=i.next(a))&&(h[c++]=l(this._getMultilineMatchRange(e,o,a,d,r.index,r[0]),r,n),!(c>=s)););return h}static _doFindMatchesLineByLine(e,t,i,n,s){let r=[],o=0;if(t.startLineNumber===t.endLineNumber){let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,n,s),r}let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,n,s);for(let a=t.startLineNumber+1;a<t.endLineNumber&&o<s;a++)o=this._findMatchesInLine(i,e.getLineContent(a),a,0,o,r,n,s);if(o<s){let a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,n,s)}return r}static _findMatchesInLine(e,t,i,n,s,r,d,u){let h;let x=e.wordSeparators;if(!d&&e.simpleSearch){let d=e.simpleSearch,l=d.length,h=t.length,f=-l;for(;-1!==(f=t.indexOf(d,f+l))&&(!(!x||c(x,t,h,f,l))||(r[s++]=new a.tk(new o.e(i,f+1+n,i,f+1+l+n),null),!(s>=u))););return s}let g=new f(e.wordSeparators,e.regex);g.reset(0);do if((h=g.next(t))&&(r[s++]=l(new o.e(i,h.index+1+n,i,h.index+1+h[0].length+n),h,d),s>=u))break;while(h);return s}static findNextMatch(e,t,i,n){let s=t.parseSearchRequest();if(!s)return null;let r=new f(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,i,r,n):this._doFindNextMatchLineByLine(e,i,r,n)}static _doFindNextMatchMultiline(e,t,i,n){let s=new r.L(t.lineNumber,1),a=e.getOffsetAt(s),d=e.getLineCount(),h=e.getValueInRange(new o.e(s.lineNumber,s.column,d,e.getLineMaxColumn(d)),1),c="\r\n"===e.getEOL()?new u(h):null;i.reset(t.column-1);let f=i.next(h);return f?l(this._getMultilineMatchRange(e,a,h,c,f.index,f[0]),f,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.L(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){let s=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,n);if(a)return a;for(let t=1;t<=s;t++){let o=(r+t-1)%s,a=e.getLineContent(o+1),d=this._findFirstMatchInLine(i,a,o+1,1,n);if(d)return d}return null}static _findFirstMatchInLine(e,t,i,n,s){e.reset(n-1);let r=e.next(t);return r?l(new o.e(i,r.index+1,i,r.index+1+r[0].length),r,s):null}static findPreviousMatch(e,t,i,n){let s=t.parseSearchRequest();if(!s)return null;let r=new f(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,n):this._doFindPreviousMatchLineByLine(e,i,r,n)}static _doFindPreviousMatchMultiline(e,t,i,n){let s=this._doFindMatchesMultiline(e,new o.e(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];let a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.L(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){let s=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,n);if(a)return a;for(let t=1;t<=s;t++){let o=(s+r-t-1)%s,a=e.getLineContent(o+1),d=this._findLastMatchInLine(i,a,o+1,n);if(d)return d}return null}static _findLastMatchInLine(e,t,i,n){let s,r=null;for(e.reset(0);s=e.next(t);)r=l(new o.e(i,s.index+1,i,s.index+1+s[0].length),s,n);return r}}function c(e,t,i,n,s){return function(e,t,i,n,s){if(0===n)return!0;let r=t.charCodeAt(n-1);if(0!==e.get(r)||13===r||10===r)return!0;if(s>0){let i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,s)&&function(e,t,i,n,s){if(n+s===i)return!0;let r=t.charCodeAt(n+s);if(0!==e.get(r)||13===r||10===r)return!0;if(s>0){let i=t.charCodeAt(n+s-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,s)}class f{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t;let i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||!(t=this._searchRegex.exec(e)))break;let s=t.index,r=t[0].length;if(s===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){n.ZH(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}break}if(this._prevMatchStartIndex=s,this._prevMatchLength=r,!this._wordSeparators||c(this._wordSeparators,e,i,s,r))return t}while(t);return null}}},72490:function(e,t,i){"use strict";i.d(t,{j:function(){return r}});var n=i("36498"),s=i("2945");class r extends n.MS{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){let e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new s.A(e-1,t)}}},56104:function(e,t,i){"use strict";i.d(t,{Y:function(){return o}});var n=i("70668"),s=i("83112"),r=i("37013");class o{static create(e,t){return new o(e,new a(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){let e=this._tokens.getRange();return e?new s.e(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new o(this._startLineNumber,n),new o(this._startLineNumber+r,s)]}applyEdit(e,t){let[i,n,s]=(0,r.Q)(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,r){this._acceptDeleteRange(e),this._acceptInsertText(new n.L(e.startLineNumber,e.startColumn),t,i,s,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;let t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){let e=i-t;this._startLineNumber-=e;return}let n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){let n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(0===t&&0===i)return;let r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}!(r>=this._tokens.getMaxDeltaLine()+1)&&this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class a{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 s.e(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 d(this._tokens.subarray(4*s,4*r+4))}}return this._getDeltaLine(t)===e?new d(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,d=0;for(let l=0;l<r;l++){let r=4*l,u=s[r],h=s[r+1],c=s[r+2],f=s[r+3];if((u>e||u===e&&c>=t)&&(u<i||u===i&&h<=n))a=!0;else{if(0===o&&(d=u),a){let e=4*o;s[e]=u-d,s[e+1]=h,s[e+2]=c,s[e+3]=f}o++}}return this._tokenCount=o,d}split(e,t,i,n){let s=this._tokens,r=this._tokenCount,o=[],d=[],l=o,u=0,h=0;for(let o=0;o<r;o++){let r=4*o,a=s[r],c=s[r+1],f=s[r+2],x=s[r+3];if(a>e||a===e&&f>=t){if(a<i||a===i&&c<=n)continue;l!==d&&(l=d,u=0,h=a)}l[u++]=a-h,l[u++]=c,l[u++]=f,l[u++]=x}return[new a(new Uint32Array(o)),new a(new Uint32Array(d)),h]}acceptDeleteRange(e,t,i,n,s){let r=this._tokens,o=this._tokenCount,a=n-t,d=0,l=!1;for(let u=0;u<o;u++){let h=4*u,c=r[h],f=r[h+1],x=r[h+2],g=r[h+3];if(c<t||c===t&&x<=i){d++;continue}if(c===t&&f<i)c===n&&x>s?x-=s-i:x=i;else if(c===t&&f===i){if(c===n&&x>s)x-=s-i;else{l=!0;continue}}else if(c<n||c===n&&f<s){if(c===n&&x>s)c=t,x=(f=i)+(x-s);else{l=!0;continue}}else if(c>n){if(0===a&&!l){d=o;break}c-=a}else if(c===n&&f>=s)e&&0===c&&(f+=e,x+=e),c-=a,f-=s-i,x-=s-i;else throw Error("Not possible!");let m=4*d;r[m]=c,r[m+1]=f,r[m+2]=x,r[m+3]=g,d++}this._tokenCount=d}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,d=this._tokenCount;for(let r=0;r<d;r++){let d=4*r,l=a[d],u=a[d+1],h=a[d+2];if(!(l<e)&&(l!==e||!(h<t))){if(l===e&&h===t){if(!o)continue;h+=1}else if(l===e&&u<t&&t<h)0===i?h+=n:h=t;else{if(l===e&&u===t&&o)continue;if(l===e){if(l+=i,0===i)u+=n,h+=n;else{let e=h-u;h=(u=s+(u-t))+e}}else l+=i}a[d]=l,a[d+1]=u,a[d+2]=h}}}}class d{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]}}},35087:function(e,t,i){"use strict";i.d(t,{IJ:function(){return l},Nd:function(){return u},d1:function(){return f},tF:function(){return g},zG:function(){return d}});var n=i("94479"),s=i("71482"),r=i("34086"),o=i("74243"),a=i("57553");class d{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,n,s,r,a,d,l,u,h,c,f,x,g,m,p,_,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=d,this.lineDecorations=l.sort(o.Kp.compare),this.tabSize=u,this.startVisibleColumn=h,this.spaceWidth=c,this.stopRenderingLineAfter=g,this.renderWhitespace="all"===m?4:"boundary"===m?1:"selection"===m?2:"trailing"===m?3:0,this.renderControlCharacters=p,this.fontLigatures=_,this.selectionsOnLine=C&&C.sort((e,t)=>e.startOffset<t.startOffset?-1:1);Math.abs(x-c)<Math.abs(f-c)?(this.renderSpaceWidth=x,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=f,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e||e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.Kp.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class u{constructor(e,t){this.partIndex=e,this.charIndex=t}}class h{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){this._data[e-1]=(t<<16|i<<0)>>>0,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){let t=this.charOffsetToPartData(e-1),i=h.getPartIndex(t);return new u(i,h.getCharIndex(t))}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){let n;if(0===this.length)return 0;let s=(e<<16|i<<0)>>>0,r=0,o=this.length-1;for(;r+1<o;){let e=r+o>>>1,t=this._data[e];if(t===s)return e;t>s?o=e:r=e}if(r===o)return r;let a=this._data[r],d=this._data[o];if(a===s)return r;if(d===s)return o;let l=h.getPartIndex(a),u=h.getCharIndex(a);n=l!==h.getPartIndex(d)?t:h.getCharIndex(d);let c=n-i;return i-u<=c?r:o}}class c{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function f(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,n=0,s=0;for(let r of e.lineDecorations)(1===r.type||2===r.type)&&(t.appendString('<span class="'),t.appendString(r.className),t.appendString('"></span>'),1===r.type&&(s|=1,i++),2===r.type&&(s|=2,n++));t.appendString("</span>");let r=new h(1,i+n);return r.setColumnInfo(1,i,0,0),new c(r,!1,s)}return t.appendString("<span><span></span></span>"),new c(new h(0,0),!1,0)}return function(e,t){let i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,d=e.len,l=e.isOverflowing,u=e.overflowingCharCount,f=e.parts,x=e.fauxIndentLength,g=e.tabSize,m=e.startVisibleColumn,_=e.containsRTL,C=e.spaceWidth,b=e.renderSpaceCharCode,v=e.renderWhitespace,S=e.renderControlCharacters,w=new h(d+1,f.length),y=!1,E=0,I=m,A=0,L=0,k=0;_?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let e=0,n=f.length;e<n;e++){let n=f[e],l=n.endIndex,u=n.type,h=n.containsRTL,c=0!==v&&n.isWhitespace(),m=c&&!i&&("mtkw"===u||!o),_=E===l&&n.isPseudoAfter();if(A=0,t.appendString("<span "),h&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(m?"mtkz":u),t.appendASCIICharCode(34),c){let i=0;{let e=E,t=I;for(;e<l;e++){let n=(9===a.charCodeAt(e)?g-t%g:1)|0;i+=n,e>=x&&(t+=n)}}for(m&&(t.appendString(' style="width:'),t.appendString(String(C*i)),t.appendString('px"')),t.appendASCIICharCode(62);E<l;E++){let i,n;if(w.setColumnInfo(E+1,e-k,A,L),k=0,9===a.charCodeAt(E)){n=i=g-I%g|0,!r||n>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=n;e++)t.appendCharCode(160)}else i=2,n=1,t.appendCharCode(b),t.appendCharCode(8204);A+=i,L+=n,E>=x&&(I+=n)}}else for(t.appendASCIICharCode(62);E<l;E++){w.setColumnInfo(E+1,e-k,A,L),k=0;let i=a.charCodeAt(E),n=1,r=1;switch(i){case 9:r=n=g-I%g;for(let e=1;e<=n;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:S?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:s.K7(i)&&r++,S&&i<32?t.appendCharCode(9216+i):S&&127===i?t.appendCharCode(9249):S&&p(i)?(t.appendString("[U+"),t.appendString(function(e){return e.toString(16).toUpperCase().padStart(4,"0")}(i)),t.appendString("]"),r=n=8):t.appendCharCode(i)}A+=n,L+=r,E>=x&&(I+=r)}_?k++:k=0,E>=d&&!y&&n.isPseudoAfter()&&(y=!0,w.setColumnInfo(E+1,e,A,L)),t.appendString("</span>")}return!y&&w.setColumnInfo(d+1,f.length-1,A,L),l&&(t.appendString('<span class="mtkoverflow">'),t.appendString(n.NC("showMore","Show more ({0})",function(e){return e<1024?n.NC("overflow.chars","{0} chars",e):e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}(u))),t.appendString("</span>")),t.appendString("</span>"),new c(w,_,o)}(function(e){let t,i,n;let r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<r.length?(t=!0,i=r.length-e.stopRenderingLineAfter,n=e.stopRenderingLineAfter):(t=!1,i=0,n=r.length);let d=function(e,t,i,n,r){let o=[],d=0;n>0&&(o[d++]=new a.B(n,"",0,!1));let l=n;for(let u=0,h=i.getCount();u<h;u++){let h=i.getEndOffset(u);if(h<=n)continue;let c=i.getClassName(u);if(h>=r){let i=!!t&&s.Ut(e.substring(l,r));o[d++]=new a.B(r,c,0,i);break}let f=!!t&&s.Ut(e.substring(l,h));o[d++]=new a.B(h,c,0,f),l=h}return o}(r,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(d=function(e,t){let i=[],n=new a.B(0,"",0,!1),s=0;for(let r of t){let t=r.endIndex;for(;s<t;s++)p(e.charCodeAt(s))&&(s>n.endIndex&&(n=new a.B(s,r.type,r.metadata,r.containsRTL),i.push(n)),n=new a.B(s+1,"mtkcontrol",r.metadata,!1),i.push(n));s>n.endIndex&&(n=new a.B(t,r.type,r.metadata,r.containsRTL),i.push(n))}return i}(r,d)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(d=function(e,t,i,n){let r;let o=e.continuesWithWrappedLine,d=e.fauxIndentLength,l=e.tabSize,u=e.startVisibleColumn,h=e.useMonospaceOptimizations,c=e.selectionsOnLine,f=1===e.renderWhitespace,x=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth,m=[],p=0,_=0,C=n[0].type,b=n[_].containsRTL,v=n[_].endIndex,S=n.length,w=!1,y=s.LC(t);-1===y?(w=!0,y=i,r=i):r=s.ow(t);let E=!1,I=0,A=c&&c[I],L=u%l;for(let e=d;e<i;e++){let o;let u=t.charCodeAt(e);if(A&&e>=A.endOffset&&(I++,A=c&&c[I]),e<y||e>r)o=!0;else if(9===u)o=!0;else if(32===u){if(f){if(E)o=!0;else{let n=e+1<i?t.charCodeAt(e+1):0;o=32===n||9===n}}else o=!0}else o=!1;if(o&&c&&(o=!!A&&A.startOffset<=e&&A.endOffset>e),o&&x&&(o=w||e>r),o&&b&&e>=y&&e<=r&&(o=!1),E){if(!o||!h&&L>=l){if(g){let t=p>0?m[p-1].endIndex:d;for(let i=t+1;i<=e;i++)m[p++]=new a.B(i,"mtkw",1,!1)}else m[p++]=new a.B(e,"mtkw",1,!1);L%=l}}else(e===v||o&&e>d)&&(m[p++]=new a.B(e,C,0,b),L%=l);for(9===u?L=l:s.K7(u)?L+=2:L++,E=o;e===v;)if(++_<S)C=n[_].type,b=n[_].containsRTL,v=n[_].endIndex;else break}let k=!1;if(E){if(o&&f){let e=i>0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;!(32===e&&32!==n&&9!==n)&&(k=!0)}else k=!0}if(k){if(g){let e=p>0?m[p-1].endIndex:d;for(let t=e+1;t<=i;t++)m[p++]=new a.B(t,"mtkw",1,!1)}else m[p++]=new a.B(i,"mtkw",1,!1)}else m[p++]=new a.B(i,C,0,b);return m}(e,r,n,d));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){let i=e.lineDecorations[t];3===i.type?l|=1:1===i.type?l|=1:2===i.type&&(l|=2)}d=function(e,t,i,n){n.sort(o.Kp.compare);let s=o.k.normalize(e,n),r=s.length,d=0,l=[],u=0,h=0;for(let e=0,t=i.length;e<t;e++){let t=i[e],n=t.endIndex,o=t.type,c=t.metadata,f=t.containsRTL;for(;d<r&&s[d].startOffset<n;){let e=s[d];if(e.startOffset>h&&(h=e.startOffset,l[u++]=new a.B(h,o,c,f)),e.endOffset+1<=n)h=e.endOffset+1,l[u++]=new a.B(h,o+" "+e.className,c|e.metadata,f),d++;else{h=n,l[u++]=new a.B(h,o+" "+e.className,c|e.metadata,f);break}}n>h&&(h=n,l[u++]=new a.B(h,o,c,f))}let c=i[i.length-1].endIndex;if(d<r&&s[d].startOffset===c)for(;d<r&&s[d].startOffset===c;){let e=s[d];l[u++]=new a.B(h,e.className,e.metadata,!1),d++}return l}(r,n,d,e.lineDecorations)}return!e.containsRTL&&(d=function(e,t,i){let n=0,s=[],r=0;if(i)for(let i=0,o=t.length;i<o;i++){let o=t[i],d=o.endIndex;if(n+50<d){let t=o.type,i=o.metadata,l=o.containsRTL,u=-1,h=n;for(let o=n;o<d;o++)32===e.charCodeAt(o)&&(u=o),-1!==u&&o-h>=50&&(s[r++]=new a.B(u+1,t,i,l),h=u+1,u=-1);h!==d&&(s[r++]=new a.B(d,t,i,l))}else s[r++]=o;n=d}else for(let e=0,i=t.length;e<i;e++){let i=t[e],o=i.endIndex,d=o-n;if(d>50){let e=i.type,t=i.metadata,l=i.containsRTL,u=Math.ceil(d/50);for(let i=1;i<u;i++){let o=n+50*i;s[r++]=new a.B(o,e,t,l)}s[r++]=new a.B(o,e,t,l)}else s[r++]=i;n=o}return s}(r,d,!e.isBasicASCII||e.fontLigatures)),new m(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,r,n,t,i,d,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class x{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function g(e){let t=new r.HT(1e4),i=f(e,t);return new x(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class m{constructor(e,t,i,n,s,r,o,a,d,l,u,h,c,f,x,g){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=d,this.tabSize=l,this.startVisibleColumn=u,this.containsRTL=h,this.spaceWidth=c,this.renderSpaceCharCode=f,this.renderWhitespace=x,this.renderControlCharacters=g}}function p(e){return e<32?9!==e:127===e||!!(e>=8234)&&!!(e<=8238)||!!(e>=8294)&&!!(e<=8297)||!!(e>=8206)&&!!(e<=8207)||1564===e||!1}},43652:function(e,t,i){"use strict";var n=i("37764"),s=i("36809"),r=i("83112"),o=i("7861"),a=i("21230"),d=i("53303"),l=i("60327");class u extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){let t=this._editor.getOption(148);if("click"!==t&&"clickAndHover"!==t)return;let i=e.target;if(6!==i.type||!i.detail.injectedText||i.detail.injectedText.options.attachedData!==o.Ak||!i.range)return;let n=this._editor.getContribution(d.c.ID);if(n&&!n.isColorPickerVisible){let e=new r.e(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}u.ID="editor.contrib.colorContribution",(0,s._K)(u.ID,u,2),l.Ae.register(a.nh)},54389:function(e,t,i){"use strict";i.d(t,{K:function(){return a}});var n=i("89172"),s=i("70668"),r=i("83112"),o=i("98681");class a{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;let n=t.length;if(i+n>e.length)return!1;for(let s=0;s<n;s++){let n=e.charCodeAt(i+s),r=t.charCodeAt(s);if(n!==r&&(!(n>=65)||!(n<=90)||n+32!==r)){if(!(r>=65)||!(r<=90)||r+32!==n)return!1}}return!0}_createOperationsForBlockComment(e,t,i,n,s,o){let d;let l=e.startLineNumber,u=e.startColumn,h=e.endLineNumber,c=e.endColumn,f=s.getLineContent(l),x=s.getLineContent(h),g=f.lastIndexOf(t,u-1+t.length),m=x.indexOf(i,c-1-i.length);if(-1!==g&&-1!==m){if(l===h)f.substring(g+t.length,m).indexOf(i)>=0&&(g=-1,m=-1);else{let e=f.substring(g+t.length),n=x.substring(0,m);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(g=-1,m=-1)}}for(let s of(-1!==g&&-1!==m?(n&&g+t.length<f.length&&32===f.charCodeAt(g+t.length)&&(t+=" "),n&&m>0&&32===x.charCodeAt(m-1)&&(i=" "+i,m-=1),d=a._createRemoveBlockCommentOperations(new r.e(l,g+t.length+1,h,m+1),t,i)):(d=a._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===d.length?i:null),d))o.addTrackedEditOperation(s.range,s.text)}static _createRemoveBlockCommentOperations(e,t,i){let s=[];return r.e.isEmpty(e)?s.push(n.h.delete(new r.e(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(n.h.delete(new r.e(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(n.h.delete(new r.e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,o){let a=[];return r.e.isEmpty(e)?a.push(n.h.replace(new r.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(a.push(n.h.insert(new s.L(e.startLineNumber,e.startColumn),t+(o?" ":""))),a.push(n.h.insert(new s.L(e.endLineNumber,e.endColumn),(o?" ":"")+i))),a}getEditOperations(e,t){let i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);let s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let i=t.getInverseEditOperations();if(2===i.length){let e=i[0],t=i[1];return new o.Y(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{let e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new o.Y(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}},581:function(e,t,i){"use strict";i.d(t,{p:function(){return _}});var n,s=i("55952"),r=i("45695"),o=i("16234"),a=i("98212"),d=i("37764");i("2445");var l=i("48933"),u=i("42134"),h=i("77667"),c=i("81844"),f=i("95449"),x=i("81171"),g=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=function(e,t){return function(i,n){t(i,n,e)}};let p=n=class extends d.JT{constructor(e,t,i,n,s,r,o,l,u,h){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=l,this._keybindingService=h,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(u),this.visibleContext.set(!0),this._register((0,d.OF)(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,d.OF)(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(e=>{!s.containsPosition(e.position)&&this.dispose()})),this._register(a.ju.runAndSubscribe(h.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;let t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=s.$(".post-edit-widget"),this.button=this._register(new r.z(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(s.nm(this.domNode,s.tw.CLICK,()=>this.showSelector()))}getId(){return n.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=s.i(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>(0,o.xw)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};p.baseId="editor.widget.postEditWidget",p=n=g([m(7,c.i),m(8,h.i6),m(9,x.d)],p);let _=class extends d.JT{constructor(e,t,i,n,s,r){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._currentWidget=this._register(new d.XK),this._register(a.ju.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){let r,o;let a=this._editor.getModel();if(!a||!e.length)return;let d=t.allEdits.at(t.activeEditIndex);if(!d)return;let l=await n(d,s);if(s.isCancellationRequested)return;let h=(0,u.n)(a.uri,e,l),c=e[0],f=a.deltaDecorations([],[{range:c,options:{description:"paste-line-suffix",stickiness:0}}]);this._editor.focus();try{r=await this._bulkEditService.apply(h,{editor:this._editor,token:s}),o=a.getDecorationRange(f[0])}finally{a.deltaDecorations(f,[])}!s.isCancellationRequested&&i&&r.isApplied&&t.allEdits.length>1&&this.show(null!=o?o:c,t,async r=>{let o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,n,s))})}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(p,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};_=g([m(4,f.TG),m(5,l.vu)],_)},58432:function(e,t,i){"use strict";i.d(t,{BT:function(){return K},Bj:function(){return H},_k:function(){return W}});var n,s,r,o,a,d,l,u,h=i("74471"),c=i("1966"),f=i("85376"),x=i("67414"),g=i("98084"),m=i("61791"),p=i("64909"),_=i("36809"),C=i("87294"),b=i("82001"),v=i("70668"),S=i("83112"),w=i("8109"),y=i("64141"),E=i("93665"),I=i("32681"),A=i("56803"),L=i("91797"),k=i("24806"),T=i("94479"),N=i("95316"),D=i("249"),M=i("77667"),R=i("95449"),O=i("97717"),P=i("24726"),F=i("65271"),B=i("76891"),z=i("55278"),V=i("58814");N.BH.appendMenuItem(N.eH.EditorContext,{submenu:N.eH.EditorContextPeek,title:T.NC("peek.submenu","Peek"),group:"navigation",order:100});class W{static is(e){return!!e&&"object"==typeof e&&(!!(e instanceof W||v.L.isIPosition(e.position)&&e.model)||!1)}constructor(e,t){this.model=e,this.position=t}}class H extends _.x1{static all(){return H._allSymbolNavigationCommands.values()}static _patchConfig(e){let t={...e,f1:!0};if(t.menu)for(let i of z.$.wrap(t.menu))(i.id===N.eH.EditorContext||i.id===N.eH.EditorContextPeek)&&(i.when=M.Ao.and(e.precondition,i.when));return t}constructor(e,t){super(H._patchConfig(t)),this.configuration=e,H._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);let s=e.get(O.lT),r=e.get(C.$),o=e.get(P.ek),a=e.get(A._),d=e.get(B.p),l=e.get(R.TG),u=t.getModel(),f=t.getPosition(),x=W.is(i)?i:new W(u,f),g=new m.Dl(t,5),p=(0,c.eP)(this._getLocationModel(d,x.model,x.position,g.token),g.token).then(async e=>{var s;let o;if(!e||g.token.isCancellationRequested)return;if((0,h.Z9)(e.ariaMessage),e.referenceAt(u.uri,f)){let e=this._getAlternativeCommand(t);!H._activeAlternativeCommands.has(e)&&H._allSymbolNavigationCommands.has(e)&&(o=H._allSymbolNavigationCommands.get(e))}let d=e.references.length;if(0===d){if(!this.configuration.muteMessage){let e=u.getWordAtPosition(f);null===(s=L.O.get(t))||void 0===s||s.showMessage(this._getNoResultFoundMessage(e),f)}}else{if(1!==d||!o)return this._onResult(r,a,t,e,n);H._activeAlternativeCommands.add(this.desc.id),l.invokeFunction(e=>o.runEditorCommand(e,t,i,n).finally(()=>{H._activeAlternativeCommands.delete(this.desc.id)}))}},e=>{s.error(e)}).finally(()=>{g.dispose()});return o.showWhile(p,250),p}async _onResult(e,t,i,n,s){let r=this._getGoToPreference(i);if(i instanceof b.H||!this.configuration.openInPeek&&("peek"!==r||!(n.references.length>1))){let o=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===r,d=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&d?this._openInPeek(d,n,s):n.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,n,s)}async _openReference(e,t,i,n,s){let r;if((0,y.vx)(i)&&(r=i.targetSelectionRange),!r&&(r=i.range),!r)return;let o=await t.openCodeEditor({resource:i.uri,options:{selection:S.e.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(o){if(s){let e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{o.getModel()===e&&t.clear()},350)}return o}}_openInPeek(e,t,i){let n=E.J.get(e);n&&e.hasModel()?n.toggleWidget(null!=i?i:e.getSelection(),(0,c.PG)(e=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}H._allSymbolNavigationCommands=new Map,H._activeAlternativeCommands=new Set;class K extends H{async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.nD)(e.definitionProvider,t,i,n),T.NC("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?T.NC("noResultWord","No definition found for '{0}'",e.word):T.NC("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,N.r1)(((n=class extends K{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:n.id,title:{...T.vv("actions.goToDecl.label","Go to Definition"),mnemonicTitle:T.NC({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:w.u.hasDefinitionProvider,keybinding:[{when:w.u.editorTextFocus,primary:70,weight:100},{when:M.Ao.and(w.u.editorTextFocus,V.Pf),primary:2118,weight:100}],menu:[{id:N.eH.EditorContext,group:"navigation",order:1.1},{id:N.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),D.P.registerCommandAlias("editor.action.goToDeclaration",n.id)}}).id="editor.action.revealDefinition",n)),(0,N.r1)(((s=class extends K{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:s.id,title:T.vv("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:M.Ao.and(w.u.hasDefinitionProvider,w.u.isInEmbeddedEditor.toNegated()),keybinding:[{when:w.u.editorTextFocus,primary:(0,f.gx)(2089,70),weight:100},{when:M.Ao.and(w.u.editorTextFocus,V.Pf),primary:(0,f.gx)(2089,2118),weight:100}]}),D.P.registerCommandAlias("editor.action.openDeclarationToTheSide",s.id)}}).id="editor.action.revealDefinitionAside",s)),(0,N.r1)(((r=class extends K{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:r.id,title:T.vv("actions.previewDecl.label","Peek Definition"),precondition:M.Ao.and(w.u.hasDefinitionProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),keybinding:{when:w.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:N.eH.EditorContextPeek,group:"peek",order:2}}),D.P.registerCommandAlias("editor.action.previewDeclaration",r.id)}}).id="editor.action.peekDefinition",r));class U extends H{async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.zq)(e.declarationProvider,t,i,n),T.NC("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?T.NC("decl.noResultWord","No declaration found for '{0}'",e.word):T.NC("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,N.r1)(((o=class extends U{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:o.id,title:{...T.vv("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:T.NC({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:M.Ao.and(w.u.hasDeclarationProvider,w.u.isInEmbeddedEditor.toNegated()),menu:[{id:N.eH.EditorContext,group:"navigation",order:1.3},{id:N.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?T.NC("decl.noResultWord","No declaration found for '{0}'",e.word):T.NC("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",o)),(0,N.r1)(class extends U{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:T.vv("actions.peekDecl.label","Peek Declaration"),precondition:M.Ao.and(w.u.hasDeclarationProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),menu:{id:N.eH.EditorContextPeek,group:"peek",order:3}})}});class G extends H{async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.L3)(e.typeDefinitionProvider,t,i,n),T.NC("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?T.NC("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):T.NC("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,N.r1)(((a=class extends G{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:a.ID,title:{...T.vv("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:T.NC({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:w.u.hasTypeDefinitionProvider,keybinding:{when:w.u.editorTextFocus,primary:0,weight:100},menu:[{id:N.eH.EditorContext,group:"navigation",order:1.4},{id:N.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",a)),(0,N.r1)(((d=class extends G{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:d.ID,title:T.vv("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:M.Ao.and(w.u.hasTypeDefinitionProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),menu:{id:N.eH.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",d));class $ extends H{async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.f4)(e.implementationProvider,t,i,n),T.NC("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?T.NC("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):T.NC("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,N.r1)(((l=class extends ${constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l.ID,title:{...T.vv("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:T.NC({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:w.u.hasImplementationProvider,keybinding:{when:w.u.editorTextFocus,primary:2118,weight:100},menu:[{id:N.eH.EditorContext,group:"navigation",order:1.45},{id:N.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",l)),(0,N.r1)(((u=class extends ${constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,title:T.vv("actions.peekImplementation.label","Peek Implementations"),precondition:M.Ao.and(w.u.hasImplementationProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),keybinding:{when:w.u.editorTextFocus,primary:3142,weight:100},menu:{id:N.eH.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",u));class q extends H{_getNoResultFoundMessage(e){return e?T.NC("references.no","No references found for '{0}'",e.word):T.NC("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,N.r1)(class extends q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...T.vv("goToReferences.label","Go to References"),mnemonicTitle:T.NC({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:M.Ao.and(w.u.hasReferenceProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),keybinding:{when:w.u.editorTextFocus,primary:1094,weight:100},menu:[{id:N.eH.EditorContext,group:"navigation",order:1.45},{id:N.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.aA)(e.referenceProvider,t,i,!0,n),T.NC("ref.title","References"))}}),(0,N.r1)(class extends q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:T.vv("references.action.label","Peek References"),precondition:M.Ao.and(w.u.hasReferenceProvider,k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated()),menu:{id:N.eH.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new I.oQ(await (0,F.aA)(e.referenceProvider,t,i,!1,n),T.NC("ref.title","References"))}});class j extends H{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:T.vv("label.generic","Go to Any Symbol"),precondition:M.Ao.and(k.Jy.notInPeekEditor,w.u.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new I.oQ(this._references,T.NC("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&T.NC("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}D.P.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:g.o},{name:"position",description:"The position at which to start",constraint:v.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,s,r,o)=>{(0,x.p_)(g.o.isUri(t)),(0,x.p_)(v.L.isIPosition(i)),(0,x.p_)(Array.isArray(n)),(0,x.p_)(void 0===s||"string"==typeof s),(0,x.p_)(void 0===o||"boolean"==typeof o);let a=e.get(C.$),d=await a.openCodeEditor({resource:t},a.getFocusedCodeEditor());if((0,p.CL)(d))return d.setPosition(i),d.revealPositionInCenterIfOutsideViewport(i,0),d.invokeWithinContext(e=>{let t=new class extends j{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!r,openInPeek:!!o,openToSide:!1},n,s);e.get(R.TG).invokeFunction(t.run.bind(t),d)})}}),D.P.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:g.o},{name:"position",description:"The position at which to start",constraint:v.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,s)=>{e.get(D.H).executeCommand("editor.action.goToLocations",t,i,n,s,void 0,!0)}}),D.P.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,x.p_)(g.o.isUri(t)),(0,x.p_)(v.L.isIPosition(i));let n=e.get(B.p),s=e.get(C.$);return s.openCodeEditor({resource:t},s.getFocusedCodeEditor()).then(e=>{if(!(0,p.CL)(e)||!e.hasModel())return;let t=E.J.get(e);if(!t)return;let s=(0,c.PG)(t=>(0,F.aA)(n.referenceProvider,e.getModel(),v.L.lift(i),!1,t).then(e=>new I.oQ(e,T.NC("ref.title","References")))),r=new S.e(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,s,!1))})}}),D.P.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},17917:function(e,t,i){"use strict";var n=i("36809"),s=i("60327"),r=i("70609"),o=i("14986");(0,n._K)(r.K.ID,r.K,1),s.Ae.register(o.G)},13020:function(e,t,i){"use strict";i.d(t,{FO:function(){return S},L8:function(){return g},SG:function(){return b},VY:function(){return v},a5:function(){return m},i3:function(){return p},md:function(){return C},y:function(){return _}});var n=i("56136"),s=i("10361"),r=i("36809"),o=i("8109"),a=i("28998"),d=i("33473"),l=i("74282"),u=i("59542"),h=i("94479"),c=i("95316"),f=i("756"),x=i("77667");class g extends r.R6{constructor(){super({id:g.ID,label:h.NC("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:x.Ao.and(o.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;let n=l.D.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.next()}}g.ID=a.OW;class m extends r.R6{constructor(){super({id:m.ID,label:h.NC("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:x.Ao.and(o.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;let n=l.D.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.previous()}}m.ID=a.Np;class p extends r.R6{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:h.NC("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:o.u.writable})}async run(e,t){let i=l.D.get(t);await (0,s.Hr)(async e=>{var t;await (null===(t=null==i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null==i||i.playAccessibilitySignal(e)})}}class _ extends r.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:h.NC("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:x.Ao.and(o.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:x.Ao.and(o.u.writable,d.f.inlineSuggestionVisible)},menuOpts:[{menuId:c.eH.InlineSuggestionToolbar,title:h.NC("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;let n=l.D.get(t);await (null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}class C extends r.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:h.NC("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:x.Ao.and(o.u.writable,d.f.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:c.eH.InlineSuggestionToolbar,title:h.NC("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;let n=l.D.get(t);await (null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}class b extends r.R6{constructor(){super({id:a.Ou,label:h.NC("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:d.f.inlineSuggestionVisible,menuOpts:[{menuId:c.eH.InlineSuggestionToolbar,title:h.NC("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:x.Ao.and(d.f.inlineSuggestionVisible,o.u.tabMovesFocus.toNegated(),d.f.inlineSuggestionHasIndentationLessThanTabSize,u._y.Visible.toNegated(),o.u.hoverFocused.toNegated())}})}async run(e,t){var i;let n=l.D.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class v extends r.R6{constructor(){super({id:v.ID,label:h.NC("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:d.f.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){let i=l.D.get(t);(0,n.PS)(e=>{var t;null===(t=null==i?void 0:i.model.get())||void 0===t||t.stop(e)})}}v.ID="editor.action.inlineSuggest.hide";class S extends c.Ke{constructor(){super({id:S.ID,title:h.NC("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:c.eH.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:x.Ao.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){let i=e.get(f.Ui),n=i.getValue("editor.inlineSuggest.showToolbar");i.updateValue("editor.inlineSuggest.showToolbar","always"===n?"onHover":"always")}}S.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"},47586:function(e,t,i){"use strict";var n=i("36809"),s=i("60327"),r=i("36551"),o=i("63850"),a=i("95868");(0,n.Qr)(r.B1),(0,n.Qr)(r.hC),(0,n.Qr)(r.M4),(0,n.Qr)(r.L5),(0,n.Qr)(r.Nm),(0,n._K)(a.P.ID,a.P,3),s.Ae.register(o.V)},74483:function(e,t,i){"use strict";i.d(t,{i:function(){return r}});var n=i("89172"),s=i("83112");class r{static getCollator(){return!r._COLLATOR&&(r._COLLATOR=new Intl.Collator),r._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){let i=function(e,t,i){let r=o(e,t,i);return r?n.h.replace(new s.e(r.startLineNumber,1,r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),r.after.join("\n")):null}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;let n=o(e,t,i);if(!n)return!1;for(let e=0,t=n.before.length;e<t;e++)if(n.before[e]!==n.after[e])return!0;return!1}}function o(e,t,i){let n=t.startLineNumber,s=t.endLineNumber;if(1===t.endColumn&&s--,n>=s)return null;let o=[];for(let t=n;t<=s;t++)o.push(e.getLineContent(t));let a=o.slice(0);return a.sort(r.getCollator().compare),!0===i&&(a=a.reverse()),{startLineNumber:n,endLineNumber:s,before:o,after:a}}r._COLLATOR=null},56194:function(e,t,i){"use strict";i.d(t,{U:function(){return L}});var n,s=i("1966"),r=i("66735"),o=i("45802"),a=i("98212"),d=i("37764"),l=i("71482"),u=i("98681"),h=i("24370"),c=i("29218"),f=i("15266"),x=i("756"),g=i("77667"),m=i("80853"),p=i("48467"),_=i("77111"),C=i("59542"),b=i("76891"),v=i("27236"),S=i("67414"),w=i("33473"),y=i("52873"),E=i("62042"),I=function(e,t){return function(i,n){t(i,n,e)}};class A{static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);let n=t.getWordAtPosition(i);return!!(n&&(n.endColumn===i.column||n.startColumn+1===i.column)&&isNaN(Number(n.word)))||!1}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let L=n=class{constructor(e,t,i,n,r,o,l,h,c){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=r,this._contextKeyService=o,this._configurationService=l,this._languageFeaturesService=h,this._envService=c,this._toDispose=new d.SL,this._triggerCharacterListener=new d.SL,this._triggerQuickSuggest=new s._F,this._triggerState=void 0,this._completionDisposables=new d.SL,this._onDidCancel=new a.Q5,this._onDidTrigger=new a.Q5,this._onDidSuggest=new a.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new u.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let f=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{f=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{f=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(e=>{!f&&this._onCursorChange(e)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!f&&void 0!==this._triggerState&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){(0,d.B9)(this._triggerCharacterListener),(0,d.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;let e=new Map;for(let t of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let i of t.triggerCharacters||[]){let n=e.get(i);!n&&((n=new Set).add((0,C.ZJ)()),e.set(i,n)),n.add(t)}let t=t=>{var i;if(!function(e,t,i){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;let n=t.getContextKeyValue(w.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService)||A.shouldAutoTrigger(this._editor))return;if(!t){let e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,l.YK)(t.charCodeAt(t.length-1))?(0,l.ZG)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);let s=e.get(n);if(s){let e=new Map;if(this._completionModel)for(let[t,i]of this._completionModel.getItemsByProvider())!s.has(t)&&e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:!!this._completionModel,clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source){this.cancel();return}void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;if(!C.tG.isAllOff(this._editor.getOption(89)))!(this._editor.getOption(118).snippetsPreventQuickSuggestions&&(null===(e=y.f.get(this._editor))||void 0===e?void 0:e.isInSnippet()))&&(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(void 0!==this._triggerState||!A.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(89);if(C.tG.isAllOff(i))return;if(!C.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);let n=e.tokenization.getLineTokens(t.lineNumber),s=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.tG.valueFor(i,s))return}if(!!function(e,t,i){if(!t.getContextKeyValue(w.f.inlineSuggestionVisible.key))return!0;let n=t.getContextKeyValue(w.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})},this._editor.getOption(90)))}_refilterCompletionItems(){(0,S.p_)(this._editor.hasModel()),(0,S.p_)(void 0!==this._triggerState);let e=this._editor.getModel(),t=new A(e,this._editor.getPosition(),{...this._triggerState,refilter:!0});this._onNewContext(t)}trigger(e){var t,i,s,a,d,l;if(!this._editor.hasModel())return;let u=this._editor.getModel(),h=new A(u,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=h;let f={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(f={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.AU;let x=this._editor.getOption(112),g=1;switch(x){case"top":g=0;break;case"bottom":g=2}let{itemKind:m,showDeprecated:p}=n.createSuggestFilter(this._editor),b=new C.A9(g,null!==(a=null===(s=e.completionOptions)||void 0===s?void 0:s.kindFilter)&&void 0!==a?a:m,null===(d=e.completionOptions)||void 0===d?void 0:d.providerFilter,null===(l=e.completionOptions)||void 0===l?void 0:l.providerItemsToReuse,p),S=c.K.create(this._editorWorkerService,this._editor);Promise.all([(0,C.kL)(this._languageFeaturesService.completionProvider,u,this._editor.getPosition(),b,f,this._requestToken.token),S]).then(async([t,i])=>{var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let s=null==e?void 0:e.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;let r=new A(this._editor.getModel(),this._editor.getPosition(),e),o={...v.mX.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new _._(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(118),this._editor.getOption(112),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(let e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)}).catch(o.dL)}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static createSuggestFilter(e){let t=new Set;"none"===e.getOption(112)&&t.add(27);let i=e.getOption(118);return!i.showMethods&&t.add(0),!i.showFunctions&&t.add(1),!i.showConstructors&&t.add(2),!i.showFields&&t.add(3),!i.showVariables&&t.add(4),!i.showClasses&&t.add(5),!i.showStructs&&t.add(6),!i.showInterfaces&&t.add(7),!i.showModules&&t.add(8),!i.showProperties&&t.add(9),!i.showEvents&&t.add(10),!i.showOperators&&t.add(11),!i.showUnits&&t.add(12),!i.showValues&&t.add(13),!i.showConstants&&t.add(14),!i.showEnums&&t.add(15),!i.showEnumMembers&&t.add(16),!i.showKeywords&&t.add(17),!i.showWords&&t.add(18),!i.showColors&&t.add(19),!i.showFiles&&t.add(20),!i.showReferences&&t.add(21),!i.showColors&&t.add(22),!i.showFolders&&t.add(23),!i.showTypeParameters&&t.add(24),!i.showSnippets&&t.add(27),!i.showUsers&&t.add(25),!i.showIssues&&t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(!!this._context){if(e.lineNumber!==this._context.lineNumber||(0,l.V8)(e.leadingLineContent)!==(0,l.V8)(this._context.leadingLineContent)){this.cancel();return}if(e.column<this._context.column){e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();return}if(this._completionModel){if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(A.shouldAutoTrigger(this._editor)&&this._context){let e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){let e=new Map,t=new Set;for(let[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{let t=this._completionModel.lineContext,i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){let n=A.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(n&&this._context.leadingWord.endColumn<e.leadingWord.startColumn){this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});return}if(this._context.triggerOptions.auto){this.cancel();return}if(this._completionModel.lineContext=t,(i=this._completionModel.items.length>0)&&0===e.leadingWord.word.length){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}}}};L=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(1,h.p),I(2,f.p),I(3,p.b),I(4,m.VZ),I(5,g.i6),I(6,x.Ui),I(7,b.p),I(8,E.Y)],L)},53668:function(e,t,i){"use strict";var n=i("74471"),s=i("3453"),r=i("94479"),o=i("95316");class a extends o.Ke{constructor(){super({id:a.ID,title:r.vv({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.vv("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){let e=!s.n.getTabFocusMode();s.n.setTabFocusMode(e),e?(0,n.Z9)(r.NC("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.Z9)(r.NC("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,o.r1)(a)},22775:function(e,t,i){"use strict";var n,s,r=i("14432"),o=i("88928"),a=i("91278"),d=i("87294"),l=i("30410"),u=i("98212"),h=i("36809"),c=i("8109"),f=i("84587");let x=class extends r.q{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};x=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=0,s=d.$,function(e,t){s(e,t,0)})],x);class g extends h.R6{constructor(){super({id:g.ID,label:l.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:c.u.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(f.eJ).quickAccess.show(x.PREFIX)}}g.ID="editor.action.gotoLine",(0,h.Qr)(g),o.B.as(a.IP.Quickaccess).registerQuickAccessProvider({ctor:x,prefix:x.PREFIX,helpEntries:[{description:l.qq.gotoLineActionLabel,commandId:g.ID}]})},43236:function(e,t,i){"use strict";i.d(t,{Id:function(){return P},LJ:function(){return k},Mm:function(){return D},vr:function(){return T}});var n=i("55952"),s=i("12084"),r=i("40817"),o=i("13370"),a=i("16234"),d=i("73644"),l=i("37764"),u=i("97147");i("53603");var h=i("94479"),c=i("95316"),f=i("89926"),x=i("77667"),g=i("81844"),m=i("95449"),p=i("81171"),_=i("97717"),C=i("88739"),b=i("29149"),v=i("34308"),S=i("91989"),w=i("67414"),y=i("94590"),E=i("1163"),I=i("44279"),A=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=function(e,t){return function(i,n){t(i,n,e)}};function k(e,t,i,s){let r=e.getActions(t),o=n._q.getInstance();N(r,i,o.keyStatus.altKey||(u.ED||u.IJ)&&o.keyStatus.shiftKey,s?e=>e===s:e=>"navigation"===e)}function T(e,t,i,n,s,r){let o=e.getActions(t);N(o,i,!1,"string"==typeof n?e=>e===n:n,s,r)}function N(e,t,i,n=e=>"navigation"===e,s=()=>!1,r=!1){let o,d;Array.isArray(t)?(o=t,d=t):(o=t.primary,d=t.secondary);let l=new Set;for(let[t,s]of e){let e;for(let u of(n(t)?(e=o).length>0&&r&&e.push(new a.Z0):(e=d).length>0&&e.push(new a.Z0),s)){i&&(u=u instanceof c.U8&&u.alt?u.alt:u);let n=e.push(u);u instanceof a.wY&&l.add({group:t,action:u,index:n-1})}}for(let{group:e,action:t,index:i}of l){let r=n(e)?o:d,a=t.actions;s(t,e,r.length)&&r.splice(i,1,...a)}}let D=class extends r.gU{constructor(e,t,i,s,r,o,a,d){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=s,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=d,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1,i=()=>{var e;let i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.nm)(e,"mouseleave",e=>{t=!1,i()})),this._register((0,n.nm)(e,"mouseenter",e=>{t=!0,i()})),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label,s=i?(0,h.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,h.NC)("titleAndKb","{0} ({1})",e,i):e;s=(0,h.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,d.xo.modifierLabels[u.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;let{element:t,label:i}=this;if(!t||!i)return;let s=this._commandAction.checked&&(0,f.X)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(s){if(v.k.isThemeIcon(s)){let e=v.k.asClassNameArray(s);i.classList.add(...e),this._itemClassDispose.value=(0,l.OF)(()=>{i.classList.remove(...e)})}else i.style.backgroundImage=(0,S._T)(this._themeService.getColorTheme().type)?(0,n.wY)(s.dark):(0,n.wY)(s.light),i.classList.add("icon"),this._itemClassDispose.value=(0,l.F8)((0,l.OF)(()=>{i.style.backgroundImage="",i.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};D=A([L(2,p.d),L(3,_.lT),L(4,x.i6),L(5,b.XE),L(6,g.i),L(7,I.F)],D);let M=class extends o.C{constructor(e,t,i,n,s){var r,o,a;super(e,{getActions:()=>e.actions},n,{...t,menuAsChild:null!==(r=null==t?void 0:t.menuAsChild)&&void 0!==r&&r,classNames:null!==(o=null==t?void 0:t.classNames)&&void 0!==o?o:v.k.isThemeIcon(e.item.icon)?v.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null==t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)}),this._keybindingService=i,this._contextMenuService=n,this._themeService=s}render(e){super.render(e),(0,w.p_)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!v.k.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,S._T)(this._themeService.getColorTheme().type)?(0,n.wY)(t.dark):(0,n.wY)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};M=A([L(2,p.d),L(3,g.i),L(4,b.XE)],M);let R=class extends r.YH{constructor(e,t,i,n,s,r,d,l){var u,h,f;let x;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=d,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let g=(null==t?void 0:t.persistLastActionId)?l.get(this._storageKey,1):void 0;g&&(x=e.actions.find(e=>g===e.id)),!x&&(x=e.actions[0]),this._defaultAction=this._instaService.createInstance(D,x,{keybinding:this._getDefaultActionKeybindingLabel(x)});let m={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(u=null==t?void 0:t.menuAsChild)||void 0===u||u,classNames:null!==(h=null==t?void 0:t.classNames)&&void 0!==h?h:["codicon","codicon-chevron-down"],actionRunner:null!==(f=null==t?void 0:t.actionRunner)&&void 0!==f?f:new a.Wi};this._dropdown=new o.C(e,e.actions,this._contextMenuService,m),this._register(this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof c.U8&&this.update(e.action)}))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(D,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,e=>{let t=new s.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,e=>{var t;let i=new s.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};R=A([L(2,p.d),L(3,_.lT),L(4,g.i),L(5,c.co),L(6,m.TG),L(7,C.Uy)],R);let O=class extends r.Lc{constructor(e,t){super(null,e,e.actions.map(e=>({text:e.id===a.Z0.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled})),0,t,E.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex(e=>e.checked)))}render(e){super.render(e),e.style.borderColor=(0,y.n_1)(y.a9O)}runAction(e,t){let i=this.action.actions[t];i&&this.actionRunner.run(i)}};function P(e,t,i){if(t instanceof c.U8)return e.createInstance(D,t,i);if(t instanceof c.NZ)return t.item.isSelection?e.createInstance(O,t):t.item.rememberDefaultAction?e.createInstance(R,t,{...i,persistLastActionId:!0}):e.createInstance(M,t,i)}O=A([L(1,g.u)],O)},90546:function(e,t,i){"use strict";i.d(t,{r:function(){return x}});var n,s=i("5623"),r=i("55952"),o=i("91867"),a=i("1966"),d=i("98212"),l=i("53255"),u=i("37764"),h=i("55111"),c=i("80853"),f=function(e,t){return function(i,n){t(i,n,e)}};let x=n=class extends u.JT{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(s.G6||s.MG)&&this.installWebKitWriteTextWorkaround(),this._register(d.ju.runAndSubscribe(r.Xo,({window:e,disposables:t})=>{t.add((0,r.nm)(e.document,"copy",()=>this.clearResources()))},{window:o.E,disposables:this._store}))}installWebKitWriteTextWorkaround(){let e=()=>{let e=new a.CR;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,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(d.ju.runAndSubscribe(this.layoutService.onDidAddContainer,({container:t,disposables:i})=>{i.add((0,r.nm)(t,"click",e)),i.add((0,r.nm)(t,"keydown",e))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(e){console.error(e)}this.fallbackWriteText(e)}fallbackWriteText(e){let t=(0,r.uP)(),i=t.activeElement,n=t.body.appendChild((0,r.$)("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"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(e){console.error(e)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){let e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;let e=await this.readText();return(0,l.vp)(e.substring(0,n.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};x.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,x=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}([f(0,h.F),f(1,c.VZ)],x)},15467:function(e,t,i){"use strict";i.d(t,{Ej:function(){return r},Km:function(){return s}});var n=i("88928");let s={EDITORS:"CodeEditors",FILES:"CodeFiles"};n.B.add("workbench.contributions.dragAndDrop",new class e{});class r{constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}r.INSTANCE=new r},15536:function(e,t,i){"use strict";i.d(t,{F:function(){return h}});var n=i("1966"),s=i("45802"),r=i("98212"),o=i("20522"),a=i("37764"),d=i("94479"),l=i("25133");let u=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class h extends a.JT{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:r.ju.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=o,this._onDidUpdateKeybindings=this._register(new r.Q5),this._currentChords=[],this._currentChordChecker=new n.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new n._F,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){let i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");let i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),l.N;let[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),l.N;let s=this._contextKeyService.getContext(t),r=this._currentChords.map(({keypress:e})=>e);return this._getResolver().resolve(s,r,n)}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-e>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,s.L6)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(d.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{let e=this._currentChords.map(({label:e})=>e).join(", ");this._currentChordStatusMessage=this._notificationService.status(d.NC("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),o.F.enabled&&o.F.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],o.F.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=c.EMPTY,null===this._currentSingleModifier)?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1);let[s]=i.getChords();return this._ignoreSingleModifiers=new c(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let r=null,o=null;if(i){let[t]=e.getSingleModifierDispatchChords();r=t,o=t?[t]:[]}else[r]=e.getDispatchChords(),o=this._currentChords.map(({keypress:e})=>e);if(null===r)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;let a=this._contextKeyService.getContext(t),l=e.getLabel(),h=this._getResolver().resolve(a,o,r);switch(h.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(d.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(r,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${h.commandId} ]`),null===h.commandId||""===h.commandId){if(this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(d.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),!h.isBubble&&(s=!0),this._log(`+ Invoking command ${h.commandId}.`),this._currentlyDispatchingCommandId=h.commandId;try{void 0===h.commandArgs?this._commandService.executeCommand(h.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(h.commandId,h.commandArgs).then(void 0,e=>this._notificationService.warn(e))}finally{this._currentlyDispatchingCommandId=null}!u.test(h.commandId)&&this._telemetryService.publicLog2("workbenchActionExecuted",{id:h.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(!!(e.keyCode>=31)&&!!(e.keyCode<=56)||!!(e.keyCode>=21)&&!!(e.keyCode<=30)||!1)}}class c{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}c.EMPTY=new c(null)},32518:function(e,t,i){"use strict";i.d(t,{Y:function(){return n}});let n=(0,i("95449").yh)("workspaceTrustManagementService")}}]);
|