import{r as e}from"./rolldown-runtime-CNC7AqOf.js";function t(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}var r=n()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function i(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),r&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function a(e,t,...n){return i(typeof e==`number`?o(e,t):t,n)}function o(e,n){let r=t()?.[e];if(typeof r!=`string`){if(typeof n==`string`)return n;throw Error(`!!! NLS MISSING: ${e} !!!`)}return r}function s(e,t,...n){let r;r=typeof e==`number`?o(e,t):t;let a=i(r,n);return{value:a,original:t===r?a:i(t,n)}}function c(e,t){let n=e;typeof n.vscodeWindowId!=`number`&&Object.defineProperty(n,"vscodeWindowId",{get:()=>t})}var l=window,u=class e{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new e}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};function d(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}function f(e){return u.INSTANCE.getZoomFactor(e)}var p=navigator.userAgent,m=p.indexOf(`Firefox`)>=0,h=p.indexOf(`AppleWebKit`)>=0,g=p.indexOf(`Chrome`)>=0,_=!g&&p.indexOf(`Safari`)>=0,v=!g&&!_&&h;p.indexOf(`Electron/`);var y=p.indexOf(`Android`)>=0,b=!1;if(typeof l.matchMedia==`function`){let e=l.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=l.matchMedia(`(display-mode: fullscreen)`);b=e.matches,d(l,e,({matches:e})=>{b&&t.matches||(b=e)})}function x(){return b}var S=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?le.isErrorNoTelemetry(e)?new le(e.message+` `+e.stack):Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function C(e){S.onUnexpectedError(e)}function w(e){re(e)||S.onUnexpectedError(e)}function ee(e){re(e)||S.onUnexpectedExternalError(e)}function te(e){if(e instanceof Error){let{name:t,message:n,cause:r}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:le.isErrorNoTelemetry(e),cause:r?te(r):void 0,code:e.code}}return e}var ne=`Canceled`;function re(e){return e instanceof ie||e instanceof Error&&e.name===`Canceled`&&e.message===`Canceled`}var ie=class extends Error{constructor(){super(ne),this.name=this.message}};function ae(){let e=Error(ne);return e.name=e.message,e}function oe(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}function se(e){return Error(e?`Illegal state: ${e}`:`Illegal state`)}var ce=class extends Error{constructor(e){super(`NotSupported`),e&&(this.message=e)}},le=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},T=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function ue(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:`Assertion Failed`)}function de(e,t=`Unreachable`){throw Error(t)}function fe(e,t=`unexpected state`){if(!e)throw typeof t==`string`?new T(`Assertion Failed: ${t}`):t}function pe(e,t=`Soft Assertion Failed`){e||w(new T(t))}function me(e){e()||(e(),w(new T(`Assertion Failed`)))}function he(e,t){let n=0;for(;n=0,Me=ze.indexOf(`Macintosh`)>=0,Ie=(ze.indexOf(`Macintosh`)>=0||ze.indexOf(`iPad`)>=0||ze.indexOf(`iPhone`)>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ne=ze.indexOf(`Linux`)>=0,Le=ze?.indexOf(`Mobi`)>=0,Fe=!0,Re=n()||`en`,navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);var Ue=0;Me?Ue=1:je?Ue=3:Ne&&(Ue=2);var We=je,Ge=Me,Ke=Ne,qe=Pe,Je=Fe,Ye=Fe&&typeof Be.importScripts==`function`?Be.origin:void 0,Xe=Ie,Ze=Le,Qe=Ue,$e=ze,et=Re,tt=typeof Be.postMessage==`function`&&!Be.importScripts,nt=(()=>{if(tt){let e=[];Be.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n{let r=++t;e.push({id:r,callback:n}),Be.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})(),rt=Me||Ie?2:je?1:3,it=!0,at=!1;function ot(){if(!at){at=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2,it=new Uint16Array(e.buffer)[0]===513}return it}var st=!!($e&&$e.indexOf(`Chrome`)>=0),ct=!!($e&&$e.indexOf(`Firefox`)>=0),lt=!!(!st&&$e&&$e.indexOf(`Safari`)>=0),ut=!!($e&&$e.indexOf(`Edg/`)>=0),dt=!!($e&&$e.indexOf(`Android`)>=0),ft={clipboard:{writeText:qe||document.queryCommandSupported&&document.queryCommandSupported(`copy`)||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:qe||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:qe||x()?0:navigator.keyboard||_?1:2,touch:`ontouchstart`in l||navigator.maxTouchPoints>0,pointerEvents:l.PointerEvent&&(`ontouchstart`in l||navigator.maxTouchPoints>0)},pt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},mt=new pt,ht=new pt,gt=new pt,_t=Array(230),vt={},yt=[],bt=Object.create(null),xt=Object.create(null),St=[],Ct=[];for(let e=0;e<=193;e++)St[e]=-1;for(let e=0;e<=132;e++)Ct[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,yt[i]=a,bt[a]=i,xt[a.toLowerCase()]=i,e&&(St[i]=o,o!==0&&o!==3&&o!==5&&o!==4&&o!==6&&o!==57&&(Ct[o]=i))),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);mt.define(o,s),ht.define(o,u||s),gt.define(o,d||u||s)}c&&(_t[c]=o),l&&(vt[l]=o)}Ct[3]=46})();var wt;(function(e){function t(e){return mt.keyCodeToStr(e)}e.toString=t;function n(e){return mt.strToKeyCode(e)}e.fromString=n;function r(e){return ht.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return gt.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return ht.strToKeyCode(e)||gt.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return mt.keyCodeToStr(e)}e.toElectronAccelerator=o})(wt||={});function Tt(e,t){return(e|(t&65535)<<16>>>0)>>>0}function Et(e,t){if(typeof e==`number`){if(e===0)return null;let n=(e&65535)>>>0,r=(e&4294901760)>>>16;return r===0?new kt([Dt(n,t)]):new kt([Dt(n,t),Dt(r,t)])}else{let n=[];for(let r=0;r=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){let n=0;for(let r of e)if(!t(r,n++))return!1;return!0}e.every=d;function f(e,t){for(let n of e)if(t(n))return n}e.find=f;function*p(e,t){for(let n of e)t(n)&&(yield n)}e.filter=p;function*m(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=m;function*h(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=h;function*g(...e){for(let t of e)be(t)?yield*t:yield t}e.concat=g;function _(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=_;function v(e){let t=0;for(let n of e)t++;return t}e.length=v;function*y(e,t,n=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Qt(...e){return E(()=>Zt(e))}function E(e){let t=Kt({dispose:Ut(()=>{qt(t),e()})});return t}var D=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,Kt(this)}dispose(){this._isDisposed||(qt(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Zt(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===O.None)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return Jt(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}},O=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new D,Kt(this),Jt(this._store,this)}dispose(){qt(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},$t=class{constructor(){this._isDisposed=!1,Kt(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Jt(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,qt(this),this._value?.dispose(),this._value=void 0}},en=class{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}},tn=class{constructor(e){this.object=e}dispose(){}},nn=class{constructor(){this._store=new Map,this._isDisposed=!1,Kt(this)}dispose(){qt(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Zt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(Error(`Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!`).stack),n||this._store.get(e)?.dispose(),this._store.set(e,t),Jt(t,this)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}},rn=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},an=class{constructor(){this._first=rn.Undefined,this._last=rn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===rn.Undefined}clear(){let e=this._first;for(;e!==rn.Undefined;){let t=e.next;e.prev=rn.Undefined,e.next=rn.Undefined,e=t}this._first=rn.Undefined,this._last=rn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new rn(e);if(this._first===rn.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==rn.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==rn.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==rn.Undefined&&e.next!==rn.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===rn.Undefined&&e.next===rn.Undefined?(this._first=rn.Undefined,this._last=rn.Undefined):e.next===rn.Undefined?(this._last=this._last.prev,this._last.next=rn.Undefined):e.prev===rn.Undefined&&(this._first=this._first.next,this._first.prev=rn.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==rn.Undefined;)yield e.element,e=e.next}},on=globalThis.performance.now.bind(globalThis.performance),sn=class e{static create(t){return new e(t)}constructor(e){this._now=e===!1?Date.now:on,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},k;(function(e){e.None=()=>O.None;function t(e,t){return f(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(t,n){return e.once(e.filter(t,n))}e.onceIf=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(Qt(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,t){let n,r=new A({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new A({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(l&&clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=null,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=f;function p(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=p;function m(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=m;function h(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=h;function g(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new A({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=g;function _(e,t){return(n,r,i)=>{let a=t(new y);return e(function(e){let t=a.evaluate(e);t!==v&&n.call(r,t)},void 0,i)}}e.chain=_;let v=Symbol(`HaltChainable`);class y{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:v),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:v}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===v)break;return e}}function b(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new A({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=b;function x(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new A({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=x;function S(e,t){let r,i=new Promise((i,a)=>{let o=n(e)(i,null,t);r=()=>o.dispose()});return i.cancel=r,i}e.toPromise=S;function C(e,t){return e(e=>t.fire(e))}e.forward=C;function w(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=w;class ee{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new A(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function te(e,t){return new ee(e,t).emitter.event}e.fromObservable=te;function ne(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof D?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=ne})(k||={});var cn=class e{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new sn,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},eee=-1,ln=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new fn(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||w)(n),O.None}if(this._disposed)return O.None;t&&(e=e.bind(t));let r=new pn(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=un.create(),i=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof pn?(this._deliveryQueue??=new gn,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let a=E(()=>{i?.(),this._removeListener(r)});return n instanceof D?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*mn<=t.length){let e=0;for(let n=0;n0}},hn=()=>new gn,gn=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},_n=class extends A{constructor(e){super(e),this._isPaused=0,this._eventQueue=new an,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused===0?super.fire(e):this._eventQueue.push(e))}},vn=class extends _n{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||=(this.pause(),setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}},tee=class extends A{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}},nee=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new A({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){let t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),E(Ut(()=>{this.hasListeners&&this.unhook(t);let e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(let e of this.events)e.listener?.dispose();this.events=[]}},yn=class{constructor(){this.data=[]}wrapEvent(e,t,n){return(r,i,a)=>e(e=>{let a=this.data[this.data.length-1];if(!t){a?a.buffers.push(()=>r.call(i,e)):r.call(i,e);return}let o=a;if(!o){r.call(i,t(n,e));return}o.items??=[],o.items.push(e),o.buffers.length===0&&a.buffers.push(()=>{o.reducedResult??=n?o.items.reduce(t,n):o.items.reduce(t),r.call(i,o.reducedResult)})},void 0,a)}bufferEvents(e){let t={buffers:[]};this.data.push(t);let n=e();return this.data.pop(),t.buffers.forEach(e=>e()),n}},bn=class{constructor(){this.listening=!1,this.inputEvent=k.None,this.inputEventListener=O.None,this.emitter=new A({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}},xn=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),Sn;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Cn?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:k.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:xn})})(Sn||={});var Cn=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?xn:(this._emitter||=new A,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},wn=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Cn,this._token}cancel(){this._token?this._token instanceof Cn&&this._token.cancel():this._token=Sn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Cn&&this._token.dispose():this._token=Sn.None}};function Tn(e){let t=new wn;return e.add({dispose(){t.cancel()}}),t.token}var En=Symbol(`MicrotaskDelay`);function Dn(e){return!!e&&typeof e.then==`function`}function On(e){let t=new wn,n=e(t.token),r=!1,i=new Promise((e,i)=>{let a=t.token.onCancellationRequested(()=>{r=!0,a.dispose(),i(new ie)});Promise.resolve(n).then(n=>{a.dispose(),t.dispose(),r?Xt(n)&&n.dispose():e(n)},e=>{a.dispose(),t.dispose(),i(e)})});return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return i.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return i.finally(e)}}}function kn(e,t,n){return new Promise((r,i)=>{let a=t.onCancellationRequested(()=>{a.dispose(),r(n)});e.then(r,i).finally(()=>a.dispose())})}function An(e,t){return new Promise((n,r)=>{let i=t.onCancellationRequested(()=>{i.dispose(),r(new ie)});e.then(n,r).finally(()=>i.dispose())})}var jn=class{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(Error(`Throttler is disposed`));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{if(this.queuedPromise=null,this.isDisposed)return;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}dispose(){this.isDisposed=!0}},Mn=(e,t)=>{let n=!0,r=setTimeout(()=>{n=!1,t()},e);return{isTriggered:()=>n,dispose:()=>{clearTimeout(r),n=!1}}},Nn=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},Pn=class{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}});let n=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===En?Nn(n):Mn(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&=(this.doReject?.(new ie),null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}},Fn=class{constructor(e){this.delayer=new Pn(e),this.throttler=new jn}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}};function In(e,t){return t?new Promise((n,r)=>{let i=setTimeout(()=>{a.dispose(),n()},e),a=t.onCancellationRequested(()=>{clearTimeout(i),a.dispose(),r(new ie)})}):On(t=>In(e,t))}function Ln(e,t=0,n){let r=setTimeout(()=>{e(),n&&i.dispose()},t),i=E(()=>{clearTimeout(r),n?.delete(i)});return n?.add(i),i}function Rn(e,t=e=>!!e,n=null){let r=0,i=e.length,a=()=>{if(r>=i)return Promise.resolve(n);let o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):a())};return a()}var zn=class{constructor(){this._runningTask=void 0,this._pendingTasks=[]}schedule(e){let t=new Kn;return this._pendingTasks.push({task:e,deferred:t,setUndefinedWhenCleared:!1}),this._runIfNotRunning(),t.p}_runIfNotRunning(){this._runningTask===void 0&&this._processQueue()}async _processQueue(){if(this._pendingTasks.length===0)return;let e=this._pendingTasks.shift();if(e){if(this._runningTask)throw new T;this._runningTask=e.task;try{let t=await e.task();e.deferred.complete(t)}catch(t){e.deferred.error(t)}finally{this._runningTask=void 0,this._processQueue()}}}clearPending(){let e=this._pendingTasks;this._pendingTasks=[];for(let t of e)t.setUndefinedWhenCleared?t.deferred.complete(void 0):t.deferred.error(new ie)}},Bn=class{constructor(e,t){this._isDisposed=!1,this._token=void 0,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==void 0&&(clearTimeout(this._token),this._token=void 0)}cancelAndSet(e,t){if(this._isDisposed)throw new T(`Calling 'cancelAndSet' on a disposed TimeoutTimer`);this.cancel(),this._token=setTimeout(()=>{this._token=void 0,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new T(`Calling 'setIfNotSet' on a disposed TimeoutTimer`);this._token===void 0&&(this._token=setTimeout(()=>{this._token=void 0,e()},t))}},Vn=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new T(`Calling 'cancelAndSet' on a disposed IntervalTimer`);this.cancel();let r=n.setInterval(()=>{e()},t);this.disposable=E(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},Hn=class{constructor(e,t){this.timeoutToken=void 0,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=void 0)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==void 0}onTimeout(){this.timeoutToken=void 0,this.runner&&this.doRun()}doRun(){this.runner?.()}},Un,Wn;(function(){let e=globalThis;Wn=typeof e.requestIdleCallback!=`function`||typeof e.cancelIdleCallback!=`function`?(e,t,n)=>{nt(()=>{if(r)return;let e=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,e-Date.now())}}))});let r=!1;return{dispose(){r||=!0}}}:(e,t,n)=>{let r=e.requestIdleCallback(t,typeof n==`number`?{timeout:n}:void 0),i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},Un=(e,t)=>Wn(globalThis,e,t)})();var Gn=class{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=Wn(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},ree=class extends Gn{constructor(e){super(globalThis,e)}},Kn=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new ie)}},qn;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(qn||={});var Jn=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new A,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};function Yn(e){let t=new wn,n=e(t.token);return new iee(t,async e=>{let r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),e.reject(new ie)});try{for await(let r of n){if(t.token.isCancellationRequested)return;e.emitOne(r)}r.dispose(),t.dispose()}catch(n){r.dispose(),t.dispose(),e.reject(n)}})}var Xn=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new T(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new Kn;return this._unsatisfiedConsumers.push(e),e.p}}},Zn=class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new Xn,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}},iee=class extends Zn{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}};function Qn(e){return e}var $n=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=Qn):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},er=class{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e==`function`?(this._fn=e,this._computeKey=Qn):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);let n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}},tr;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(tr||={});var nr=class{constructor(e){this.executor=e,this._state=tr.Uninitialized}get value(){if(this._state===tr.Uninitialized){this._state=tr.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=tr.Completed}}else if(this._state===tr.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function rr(e){return!e||typeof e!=`string`||e.trim().length===0}var ir=/{(\d+)}/g;function ar(e,...t){return t.length===0?e:e.replace(ir,function(e,n){let r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})}function or(e){return e.replace(/[<>"'&]/g,e=>{switch(e){case`<`:return`<`;case`>`:return`>`;case`"`:return`"`;case`'`:return`'`;case`&`:return`&`}return e})}function sr(e){return e.replace(/[<>&]/g,function(e){switch(e){case`<`:return`<`;case`>`:return`>`;case`&`:return`&`;default:return e}})}function cr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function lr(e,t=` `){return dr(ur(e,t),t)}function ur(e,t){if(!e||!t)return e;let n=t.length;if(n===0||e.length===0)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function dr(e,t){if(!e||!t)return e;let n=t.length,r=e.length;if(n===0||r===0)return e;let i=r,a=-1;for(;a=e.lastIndexOf(t,i-1),!(a===-1||a+n!==i);){if(a===0)return``;i=a}return e.substring(0,i)}function fr(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`).replace(/[\*]/g,`.*`)}function pr(e){return e.replace(/\*/g,``)}function mr(e,t,n={}){if(!e)throw Error(`Cannot create regex from empty string`);t||(e=cr(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e=`\\b`+e),/\B/.test(e.charAt(e.length-1))||(e+=`\\b`));let r=``;return n.global&&(r+=`g`),n.matchCase||(r+=`i`),n.multiline&&(r+=`m`),n.unicode&&(r+=`u`),new RegExp(e,r)}function hr(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function gr(e){return e.split(/\r\n|\r|\n/)}function _r(e){for(let t=0,n=e.length;t=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function br(e,t){return et)}function xr(e,t,n=0,r=e.length,i=0,a=t.length){for(;na)return 1}let o=r-n,s=a-i;return os)}function Sr(e,t){return Cr(e,t,0,e.length,0,t.length)}function Cr(e,t,n=0,r=e.length,i=0,a=t.length){for(;n=128||s>=128)return xr(e.toLowerCase(),t.toLowerCase(),n,r,i,a);Tr(o)&&(o-=32),Tr(s)&&(s-=32);let c=o-s;if(c!==0)return c}let o=r-n,s=a-i;return os)}function wr(e){return e>=48&&e<=57}function Tr(e){return e>=97&&e<=122}function Er(e){return e>=65&&e<=90}function Dr(e,t){return e.length===t.length&&Cr(e,t)===0}function Or(e,t){let n=t.length;return t.length>e.length?!1:Cr(e,t,0,n)===0}function kr(e,t){let n=Math.min(e.length,t.length),r;for(r=0;r1){let r=e.charCodeAt(t-2);if(jr(r))return Nr(r,n)}return n}var Ir=class{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){let e=Fr(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=Pr(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}},Lr=class{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new Ir(e,t)}nextGraphemeLength(){let e=ei.getInstance(),t=this._iterator,n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());if($r(r,i)){t.setOffset(n);break}r=i}return t.offset-n}prevGraphemeLength(){let e=ei.getInstance(),t=this._iterator,n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());if($r(i,r)){t.setOffset(n);break}r=i}return n-t.offset}eol(){return this._iterator.eol()}};function Rr(e,t){return new Lr(e,t).nextGraphemeLength()}function zr(e,t){return new Lr(e,t).prevGraphemeLength()}function Br(e,t){t>0&&Mr(e.charCodeAt(t))&&t--;let n=t+Rr(e,t);return[n-zr(e,n),n]}var Vr=void 0;function Hr(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function Ur(e){return Vr||=Hr(),Vr.test(e)}var Wr=/^[\t\n\r\x20-\x7E]*$/;function Gr(e){return Wr.test(e)}var Kr=/[\u2028\u2029]/;function qr(e){return Kr.test(e)}function Jr(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Yr(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}RegExp(`(?:`+[`(?:\\x1b\\[|\\x9b)[=?>!]?[\\d;:]*["$#'* ]?[a-zA-Z@^\`{}|~]`,`(?:\\x1b\\]|\\x9d).*?(?:\\x1b\\\\|\\x07|\\x9c)`,`\\x1b(?:[ #%\\(\\)\\*\\+\\-\\.\\/]?[a-zA-Z0-9\\|}~@])`].join(`|`)+`)`,`g`);function Xr(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function Zr(e,t=!1){return e?(t&&(e=e.replace(/\\./g,``)),e.toLowerCase()!==e):!1}function Qr(e){return e%=52,e<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function $r(e,t){return e===0?t!==5&&t!==7:e===2&&t===3?!1:e===4||e===2||e===3||t===4||t===2||t===3||!(e===8&&(t===8||t===9||t===11||t===12)||(e===11||e===9)&&(t===9||t===10)||(e===12||e===10)&&t===10||t===5||t===13||t===7||e===1||e===13&&t===14||e===6&&t===6)}var ei=class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||=new e,e._INSTANCE}constructor(){this._data=ti()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,n=t.length/3,r=1;for(;r<=n;)if(et[3*r+1])r=2*r+1;else return t[3*r+2];return 0}};function ti(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}function ni(e,t){if(e===0)return 0;let n=ri(e,t);if(n!==void 0)return n;let r=new Ir(t,e);return r.prevCodePoint(),r.offset}function ri(e,t){let n=new Ir(t,e),r=n.prevCodePoint();for(;ii(r)||r===65039||r===8419;){if(n.offset===0)return;r=n.prevCodePoint()}if(!Yr(r))return;let i=n.offset;return i>0&&n.prevCodePoint()===8205&&(i=n.offset),i}function ii(e){return 127995<=e&&e<=127999}var ai=class e{static{this.ambiguousCharacterData=new nr(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}`))}static{this.cache=new $n({getCacheKey:JSON.stringify},t=>{function n(e){let t=new Map;for(let n=0;n!e.startsWith(`_`)&&e in a);o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new nr(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},oi=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}},si,ci=globalThis.vscode;if(ci!==void 0&&ci.process!==void 0){let e=ci.process;si={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else si=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return We?`win32`:Ge?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};var li=si.cwd,ui=si.env,di=si.platform,fi=65,pi=97,mi=90,hi=122,gi=46,_i=47,vi=92,yi=58,bi=63,xi=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function Si(e,t){if(typeof e!=`object`||!e)throw new xi(t,`Object`,e)}function Ci(e,t){if(typeof e!=`string`)throw new xi(t,`string`,e)}var wi=di===`win32`;function Ti(e){return e===_i||e===vi}function Ei(e){return e===_i}function Di(e){return e>=fi&&e<=mi||e>=pi&&e<=hi}function Oi(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===gi&&s!==-1?++s:s=-1}return i}function ki(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function Ai(e,t){Si(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${ki(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var ji={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],Ci(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=li():(a=ui[`=${t}`]||li(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===vi)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)Ti(u)&&(s=1,l=!0);else if(Ti(u))if(l=!0,Ti(a.charCodeAt(1))){let e=2,t=e;for(;e2&&Ti(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=Oi(n,!r,`\\`,Ti),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){Ci(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return Ei(a)?`\\`:e;if(Ti(a))if(i=!0,Ti(e.charCodeAt(1))){let i=2,a=i;for(;i2&&Ti(e.charCodeAt(2))&&(i=!0,n=3));let o=n0&&Ti(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&Di(o.charCodeAt(0))&&o.charCodeAt(1)===yi)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||Ti(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){Ci(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return Ti(n)||t>2&&Di(n)&&e.charCodeAt(1)===yi&&Ti(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&Ti(n.charCodeAt(0))){++i;let e=n.length;e>1&&Ti(n.charCodeAt(1))&&(++i,e>2&&(Ti(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return ji.normalize(t)},relative(e,t){if(Ci(e,`from`),Ci(t,`to`),e===t)return``;let n=ji.resolve(e),r=ji.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=io?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;ii&&e.charCodeAt(a-1)===vi;)a--;let o=a-i,s=0;for(;ss&&t.charCodeAt(c-1)===vi;)c--;let l=c-s,u=ou){if(t.charCodeAt(s+f)===vi)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===vi?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===vi)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===vi&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=ji.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===vi){if(t.charCodeAt(1)===vi){let e=t.charCodeAt(2);if(e!==bi&&e!==gi)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Di(t.charCodeAt(0))&&t.charCodeAt(1)===yi&&t.charCodeAt(2)===vi)return`\\\\?\\${t}`;return t},dirname(e){Ci(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return Ti(i)?e:`.`;if(Ti(i)){if(n=r=1,Ti(e.charCodeAt(1))){let i=2,a=i;for(;i2&&Ti(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(Ti(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&Ci(t,`suffix`),Ci(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&Di(e.charCodeAt(0))&&e.charCodeAt(1)===yi&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(Ti(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(Ti(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Ci(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===yi&&Di(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(Ti(t)){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),t===gi?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:Ai.bind(null,`\\`),parse(e){Ci(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return Ti(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Ti(i)){if(r=1,Ti(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Ti(i)){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),i===gi?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},Mi=(()=>{if(wi){let e=/\\/g;return()=>{let t=li().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>li()})(),Ni={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];Ci(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===_i)}if(!n){let e=Mi();t=`${e}/${t}`,n=e.charCodeAt(0)===_i}return t=Oi(t,!n,`/`,Ei),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(Ci(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===_i,n=e.charCodeAt(e.length-1)===_i;return e=Oi(e,!t,`/`,Ei),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return Ci(e,`path`),e.length>0&&e.charCodeAt(0)===_i},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n0&&t.push(r)}return t.length===0?`.`:Ni.normalize(t.join(`/`))},relative(e,t){if(Ci(e,`from`),Ci(t,`to`),e===t||(e=Ni.resolve(e),t=Ni.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(t.charCodeAt(1+s)===_i)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===_i?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===_i)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(Ci(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===_i,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===_i){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&Ci(t,`suffix`),Ci(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===_i){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===_i){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Ci(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:Ai.bind(null,`/`),parse(e){Ci(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===_i,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===_i){if(!s){a=c+1;break}continue}o===-1&&(s=!1,o=c+1),t===gi?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};Ni.win32=ji.win32=ji,Ni.posix=ji.posix=Ni;var Pi=wi?ji.normalize:Ni.normalize,aee=wi?ji.resolve:Ni.resolve,oee=wi?ji.relative:Ni.relative,Fi=wi?ji.dirname:Ni.dirname,Ii=wi?ji.basename:Ni.basename,Li=wi?ji.extname:Ni.extname,Ri=wi?ji.sep:Ni.sep,zi=/^\w[\w\d+.-]*$/,Bi=/^\//,Vi=/^\/\//;function Hi(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!zi.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!Bi.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(Vi.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function Ui(e,t){return!e&&!t?`file`:e}function Wi(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==Ki&&(t=Ki+t):t=Ki;break}return t}var Gi=``,Ki=`/`,qi=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ji=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1:typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||Gi,this.authority=e.authority||Gi,this.path=e.path||Gi,this.query=e.query||Gi,this.fragment=e.fragment||Gi):(this.scheme=Ui(e,a),this.authority=t||Gi,this.path=Wi(this.scheme,n||Gi),this.query=r||Gi,this.fragment=i||Gi,Hi(this,a))}get fsPath(){return ea(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=Gi),n===void 0?n=this.authority:n===null&&(n=Gi),r===void 0?r=this.path:r===null&&(r=Gi),i===void 0?i=this.query:i===null&&(i=Gi),a===void 0?a=this.fragment:a===null&&(a=Gi),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new Xi(t,n,r,i,a)}static parse(e,t=!1){let n=qi.exec(e);return n?new Xi(n[2]||Gi,ia(n[4]||Gi),ia(n[5]||Gi),ia(n[7]||Gi),ia(n[9]||Gi),t):new Xi(Gi,Gi,Gi,Gi,Gi)}static file(e){let t=Gi;if(We&&(e=e.replace(/\\/g,Ki)),e[0]===Ki&&e[1]===Ki){let n=e.indexOf(Ki,2);n===-1?(t=e.substring(2),e=Ki):(t=e.substring(2,n),e=e.substring(n)||Ki)}return new Xi(`file`,t,e,Gi,Gi)}static from(e,t){return new Xi(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=We&&t.scheme===`file`?e.file(ji.join(ea(t,!0),...n)).path:Ni.join(t.path,...n),t.with({path:r})}toString(e=!1){return ta(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new Xi(t);return e._formatted=t.external??null,e._fsPath=t._sep===Yi?t.fsPath??null:null,e}}},Yi=We?1:void 0,Xi=class extends Ji{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=ea(this,!1),this._fsPath}toString(e=!1){return e?ta(this,!0):(this._formatted||=ta(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Yi),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},Zi={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function Qi(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=Zi[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function $i(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,We&&(n=n.replace(/\//g,`\\`)),n}function ta(e,t){let n=t?$i:Qi,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=Ki,r+=Ki),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:Qi(c,!1,!1)),r}function na(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+na(e.substr(3)):e}}var ra=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ia(e){return e.match(ra)?e.replace(ra,e=>na(e)):e}var j;(function(e){e.inMemory=`inmemory`,e.vscode=`vscode`,e.internal=`private`,e.walkThrough=`walkThrough`,e.walkThroughSnippet=`walkThroughSnippet`,e.http=`http`,e.https=`https`,e.file=`file`,e.mailto=`mailto`,e.untitled=`untitled`,e.data=`data`,e.command=`command`,e.vscodeRemote=`vscode-remote`,e.vscodeRemoteResource=`vscode-remote-resource`,e.vscodeManagedRemoteResource=`vscode-managed-remote-resource`,e.vscodeUserData=`vscode-userdata`,e.vscodeCustomEditor=`vscode-custom-editor`,e.vscodeNotebookCell=`vscode-notebook-cell`,e.vscodeNotebookCellMetadata=`vscode-notebook-cell-metadata`,e.vscodeNotebookCellMetadataDiff=`vscode-notebook-cell-metadata-diff`,e.vscodeNotebookCellOutput=`vscode-notebook-cell-output`,e.vscodeNotebookCellOutputDiff=`vscode-notebook-cell-output-diff`,e.vscodeNotebookMetadata=`vscode-notebook-metadata`,e.vscodeInteractiveInput=`vscode-interactive-input`,e.vscodeSettings=`vscode-settings`,e.vscodeWorkspaceTrust=`vscode-workspace-trust`,e.vscodeTerminal=`vscode-terminal`,e.vscodeChatCodeBlock=`vscode-chat-code-block`,e.vscodeChatCodeCompareBlock=`vscode-chat-code-compare-block`,e.vscodeChatEditor=`vscode-chat-editor`,e.vscodeChatInput=`chatSessionInput`,e.vscodeChatSession=`vscode-chat-session`,e.webviewPanel=`webview-panel`,e.vscodeWebview=`vscode-webview`,e.extension=`extension`,e.vscodeFileResource=`vscode-file`,e.tmp=`tmp`,e.vsls=`vsls`,e.vscodeSourceControl=`vscode-scm`,e.commentsInput=`comment`,e.codeSetting=`code-setting`,e.outputChannel=`output`,e.accessibleView=`accessible-view`,e.chatEditingSnapshotScheme=`chat-editing-snapshot-text-model`,e.chatEditingModel=`chat-editing-text-model`})(j||={});function aa(e,t){return Ji.isUri(e)?Dr(e.scheme,t):Or(e,t+`:`)}function oa(e,...t){return t.some(t=>aa(e,t))}var sa=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema=`http`,this._delegate=null,this._serverRootPath=`/`}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Ni.join(this._serverRootPath,j.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return w(t),e}let t=e.authority,n=this._hosts[t];n&&n.indexOf(`:`)!==-1&&n.indexOf(`[`)===-1&&(n=`[${n}]`);let r=this._ports[t],i=this._connectionTokens[t],a=`path=${encodeURIComponent(e.path)}`;return typeof i==`string`&&(a+=`&tkn=${encodeURIComponent(i)}`),Ji.from({scheme:Je?this._preferredWebSchema:j.vscodeRemoteResource,authority:`${n}:${r}`,path:this._remoteResourcesPath,query:a})}},ca=`vscode-app`,la=new class e{static{this.FALLBACK_AUTHORITY=ca}uriToBrowserUri(t){return t.scheme===j.vscodeRemote?sa.rewrite(t):t.scheme===j.file&&(qe||Ye===`${j.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`)?t.with({scheme:j.vscodeFileResource,authority:t.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):t}};Object.freeze({"Cache-Control":`no-cache, no-store`}),Object.freeze({"Document-Policy":`include-js-call-stacks-in-crash-reports`});var ua;(function(e){let t=new Map([[`1`,{"Cross-Origin-Opener-Policy":`same-origin`}],[`2`,{"Cross-Origin-Embedder-Policy":`require-corp`}],[`3`,{"Cross-Origin-Opener-Policy":`same-origin`,"Cross-Origin-Embedder-Policy":`require-corp`}]]);e.CoopAndCoep=Object.freeze(t.get(`3`));let n=`vscode-coi`;function r(e){let r;typeof e==`string`?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:Ji.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);let i=r?.get(n);if(i)return t.get(i)}e.getHeadersFromQuery=r;function i(e,t,r){if(!globalThis.crossOriginIsolated)return;let i=t&&r?`3`:r?`2`:`1`;e instanceof URLSearchParams?e.set(n,i):e[n]=i}e.addSearchParam=i})(ua||={});var da=typeof Buffer<`u`;new nr(()=>new Uint8Array(256));var fa,pa=class e{static wrap(t){return da&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return da?this.buffer.toString():(fa||=new TextDecoder,fa.decode(this.buffer))}};function ma(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function ha(e,t,n){e[n+0]=t&255,t>>>=8,e[n+1]=t&255}function ga(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function _a(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function va(e,t){return e[t]}function ya(e,t,n){e[n]=t}var ba=`0123456789abcdef`;function see({buffer:e}){let t=``;for(let n=0;n>>4],t+=ba[r&15]}return t}function xa(e){return Sa(e,0)}function Sa(e,t){switch(typeof e){case`object`:return e===null?Ca(349,t):Array.isArray(e)?Ea(e,t):Da(e,t);case`string`:return Ta(e,t);case`boolean`:return wa(e,t);case`number`:return Ca(e,t);case`undefined`:return Ca(937,t);default:return Ca(617,t)}}function Ca(e,t){return(t<<5)-t+e|0}function wa(e,t){return Ca(e?433:863,t)}function Ta(e,t){t=Ca(149417,t);for(let n=0,r=e.length;nSa(t,e),t)}function Da(e,t){return t=Ca(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=Ta(n,t),Sa(e[n],t)),t)}function Oa(e,t,n=32){let r=n-t,i=~((1<>>r)>>>0}function ka(e,t=32){return e instanceof ArrayBuffer?see(pa.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}var Aa=class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(jr(a))if(o+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),ka(this._h0)+ka(this._h1)+ka(this._h2)+ka(this._h3)+ka(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,Oa(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=Oa(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=Oa(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}},ja=class{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return Pa(e,this)}},Ma=new Map,Na=new WeakMap;function Pa(e,t){let n=Na.get(e);if(n)return n;let r=Fa(e,t);if(r){let t=Ma.get(r)??0;t++,Ma.set(r,t);let n=t===1?r:`${r}#${t}`;return Na.set(e,n),n}}function Fa(e,t){let n=Na.get(e);if(n)return n;let r=t.owner?za(t.owner)+`.`:``,i,a=t.debugNameSource;if(a!==void 0)if(typeof a==`function`){if(i=a(),i!==void 0)return r+i}else return r+a;let o=t.referenceFn;if(o!==void 0&&(i=Va(o),i!==void 0))return r+i;if(t.owner!==void 0){let n=Ia(t.owner,e);if(n!==void 0)return r+n}}function Ia(e,t){for(let n in e)if(e[n]===t)return n}var La=new Map,Ra=new WeakMap;function za(e){let t=Ra.get(e);if(t)return t;let n=Ba(e)??`Object`,r=La.get(n)??0;r++,La.set(n,r);let i=r===1?n:`${n}#${r}`;return Ra.set(e,i),i}function Ba(e){let t=e.constructor;if(t)return t.name===`Object`?void 0:t.name}function Va(e){let t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t);return(n?n[1]:void 0)?.trim()}function Ha(e){if(e.length===0)throw Error(`Invalid tail call`);return[e.slice(0,e.length-1),e[e.length-1]]}function Ua(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;rn(e[r],t))}function Ka(e,t){let n=0,r=e-1;for(;n<=r;){let e=(n+r)/2|0,i=t(e);if(i<0)n=e+1;else if(i>0)r=e-1;else return e}return-(n+1)}function qa(e,t,n){if(e|=0,e>=t.length)throw TypeError(`invalid index`);let r=t[Math.floor(t.length*Math.random())],i=[],a=[],o=[];for(let e of t){let t=n(e,r);t<0?i.push(e):t>0?a.push(e):o.push(e)}return e!!e)}function $a(e){let t=0;for(let n=0;n0}function no(e,t=e=>e){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function ro(e,t){let n=typeof t==`number`?e:0;typeof t==`number`?n=e:(n=0,t=e);let r=[];if(n<=t)for(let e=n;et;e--)r.push(e);return r}function io(e,t,n){let r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function ao(e,t){let n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function oo(e,t){let n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function so(e,t){for(let n of t)e.push(n)}function co(e){return Array.isArray(e)?e:[e]}function lo(e,t,n){let r=fo(e,t),i=e.length,a=n.length;e.length=i+a;for(let t=i-1;t>=r;t--)e[t+a]=e[t];for(let t=0;t0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(po||={});function mo(e,t){return(n,r)=>t(e(n),e(r))}function ho(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(!po.isNeitherLessOrGreaterThan(e))return e}return po.neitherLessOrGreaterThan}}var go=(e,t)=>e-t,_o=(e,t)=>go(+!!e,+!!t);function vo(e){return(t,n)=>-e(t,n)}function yo(e){return(t,n)=>t===void 0?n===void 0?po.neitherLessOrGreaterThan:po.lessThan:n===void 0?po.greaterThan:e(t,n)}var bo=class{constructor(e){this.firstIdx=0,this.items=e,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},xo=class e{static{this.empty=new e(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||po.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}},So=class e{constructor(e){this._indexMap=e}static createSortPermutation(t,n){let r=Array.from(t.keys()).sort((e,r)=>n(t[e],t[r]));return new e(r)}apply(e){return e.map((t,n)=>e[this._indexMap[n]])}inverse(){let t=this._indexMap.slice();for(let e=0;ee+t,0)}var wo=(e,t)=>e===t;function To(e=wo){return(t,n)=>Ua(t,n,e)}function Eo(){return(e,t)=>e.equals(t)}function Do(e,t,n){if(n!==void 0){let r=e;return r==null||t==null?t===r:n(r,t)}else{let t=e;return(e,n)=>e==null||n==null?n===e:t(e,n)}}function Oo(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n{n.updateObserver(e,t)});return}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){let e=this._updatingObservers;if(!e){ko(`transaction.finish() has already been called!`);return}for(let t=0;t{let e=Va(i);if(e!==void 0)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());if(t)return`${this.debugName}.${t[2]}`;if(!r)return`${this.debugName} (mapped)`},debugReferenceFn:i},e=>i(this.read(e),e),n)}flatten(){return Uo({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(Go(this,t)),this}},Jo=class extends qo{constructor(e){super(),this._observers=new Set,Mo()?.handleObservableCreated(this,e)}addObserver(e){let t=this._observers.size;this._observers.add(e),t===0&&this.onFirstObserverAdded(),t!==this._observers.size&&Mo()?.handleOnListenerCountChanged(this,this._observers.size)}removeObserver(e){let t=this._observers.delete(e);t&&this._observers.size===0&&this.onLastObserverRemoved(),t&&Mo()?.handleOnListenerCountChanged(this,this._observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers}};function Yo(e,t,n=Bo.ofCaller()){let r;return r=typeof e==`string`?new ja(void 0,e,void 0):new ja(e,void 0,void 0),new Xo(r,t,wo,n)}var Xo=class extends Jo{get debugName(){return this._debugNameData.getDebugName(this)??`ObservableValue`}constructor(e,t,n,r){super(r),this._debugNameData=e,this._equalityComparator=n,this._value=t,Mo()?.handleObservableUpdated(this,{hadValue:!1,newValue:t,change:void 0,didChange:!0,oldValue:void 0})}get(){return this._value}set(e,t,n){if(n===void 0&&this._equalityComparator(this._value,e))return;let r;t||=r=new zo(()=>{},()=>`Setting ${this.debugName}`);try{let r=this._value;this._setValue(e),Mo()?.handleObservableUpdated(this,{oldValue:r,newValue:e,change:n,didChange:!0,hadValue:!0});for(let e of this._observers)t.updateObserver(e,this),e.handleChange(this,n)}finally{r&&r.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}debugGetState(){return{value:this._value}}debugSetValue(e){this._value=e}};function Zo(e,t,n=Bo.ofCaller()){let r;return r=typeof e==`string`?new ja(void 0,e,void 0):new ja(e,void 0,void 0),new Qo(r,t,wo,n)}var Qo=class extends Xo{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}},$o=class extends Jo{get debugName(){return this._debugNameData.getDebugName(this)??`LazyObservableValue`}constructor(e,t,n,r){super(r),this._debugNameData=e,this._equalityComparator=n,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(let e of this._deltas){Mo()?.handleObservableUpdated(this,{change:e,didChange:!0,oldValue:`(unknown)`,newValue:this._value,hadValue:!0});for(let t of this._observers)t.handleChange(this,e)}this._deltas.length=0}else{Mo()?.handleObservableUpdated(this,{change:void 0,didChange:!0,oldValue:`(unknown)`,newValue:this._value,hadValue:!0});for(let e of this._observers)e.handleChange(this,void 0)}}_beginUpdate(){if(this._updateCounter++,this._updateCounter===1)for(let e of this._observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){this._update();let e=[...this._observers];for(let t of e)t.endUpdate(this)}}addObserver(e){let t=!this._observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){let t=this._observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,n){if(n===void 0&&this._equalityComparator(this._value,e))return;let r;t||=r=new zo(()=>{},()=>`Setting ${this.debugName}`);try{if(this._isUpToDate=!1,this._setValue(e),n!==void 0&&this._deltas.push(n),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(let e of this._observers)e.handlePossibleChange(this)}finally{r&&r.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}};function es(e,t,n=Bo.ofCaller()){return e.lazy?new $o(new ja(e.owner,e.debugName,void 0),t,e.equalsFn??wo,n):new Xo(new ja(e.owner,e.debugName,void 0),t,e.equalsFn??wo,n)}var ts=class{get debugName(){return this._debugNameData.getDebugName(this)??`(anonymous)`}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this._changeTracker=n,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._isRunning=!1,this._store=void 0,this._delayedStore=void 0,this._changeSummary=this._changeTracker?.createChangeSummary(void 0),Mo()?.handleAutorunCreated(this,r),this._run(),Kt(this)}dispose(){if(!this._disposed){this._disposed=!0;for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&this._store.dispose(),this._delayedStore!==void 0&&this._delayedStore.dispose(),Mo()?.handleAutorunDisposed(this),qt(this)}}_run(){let e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){Mo()?.handleAutorunStarted(this);let e=this._changeSummary,t=this._delayedStore;t!==void 0&&(this._delayedStore=void 0);try{this._isRunning=!0,this._changeTracker&&(this._changeTracker.beforeUpdate?.(this,e),this._changeSummary=this._changeTracker.createChangeSummary(e)),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._runFn(this,e)}catch(e){C(e)}finally{this._isRunning=!1,t!==void 0&&t.dispose()}}}finally{this._disposed||Mo()?.handleAutorunFinished(this);for(let e of this._dependenciesToBeRemoved)e.removeObserver(this);this._dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(e){this._state===3&&(this._state=1),this._updateCount++}endUpdate(e){try{if(this._updateCount===1)do{if(this._state===1){this._state=3;for(let e of this._dependencies)if(e.reportChanges(),this._state===2)break}this._state!==3&&this._run()}while(this._state!==3)}finally{this._updateCount--}me(()=>this._updateCount>=0)}handlePossibleChange(e){this._state===3&&this._isDependency(e)&&(this._state=1)}handleChange(e,t){if(this._isDependency(e)){Mo()?.handleAutorunDependencyChanged(this,e,t);try{(!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:t,didChange:t=>t===e},this._changeSummary))&&(this._state=2)}catch(e){C(e)}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)}_ensureNoRunning(){if(!this._isRunning)throw new T(`The reader object cannot be used outside its compute function!`)}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){if(this._ensureNoRunning(),this._disposed)throw new T(`Cannot access store after dispose`);return this._store===void 0&&(this._store=new D),this._store}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state}}debugRerun(){this._isRunning?this._state=2:this._run()}};function ns(e,t=Bo.ofCaller()){return new ts(new ja(void 0,void 0,e),e,void 0,t)}function rs(e,t,n=Bo.ofCaller()){return new ts(new ja(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,n)}function is(e,t,n=Bo.ofCaller()){return new ts(new ja(e.owner,e.debugName,e.debugReferenceFn??t),t,e.changeTracker,n)}function as(e,t){let n=new D,r=is({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,changeTracker:e.changeTracker},(e,r)=>{n.clear(),t(e,r,n)});return E(()=>{r.dispose(),n.dispose()})}function os(e){let t=new D,n=rs({owner:void 0,debugName:void 0,debugReferenceFn:e},n=>{t.clear(),e(n,t)});return E(()=>{n.dispose(),t.dispose()})}function ss(e,t){let n;return rs({debugReferenceFn:t},r=>{let i=e.read(r),a=n;n=i,t({lastValue:a,newValue:i})})}var cs=class extends Jo{get debugName(){return this._debugNameData.getDebugName(this)??`(anonymous)`}constructor(e,t,n,r=void 0,i,a){super(a),this._debugNameData=e,this._computeFn=t,this._changeTracker=n,this._handleLastObserverRemoved=r,this._equalityComparator=i,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set,this._dependenciesToBeRemoved=new Set,this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=this._changeTracker?.createChangeSummary(void 0)}onLastObserverRemoved(){this._state=0,this._value=void 0,Mo()?.handleDerivedCleared(this);for(let e of this._dependencies)e.removeObserver(this);this._dependencies.clear(),this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._delayedStore!==void 0&&(this._delayedStore.dispose(),this._delayedStore=void 0),this._handleLastObserverRemoved?.()}get(){if(this._isComputing,this._observers.size===0){let e;try{this._isReaderValid=!0;let t;this._changeTracker&&(t=this._changeTracker.createChangeSummary(void 0),this._changeTracker.beforeUpdate?.(this,t)),e=this._computeFn(this,t)}finally{this._isReaderValid=!1}return this.onLastObserverRemoved(),e}else{do{if(this._state===1){for(let e of this._dependencies)if(e.reportChanges(),this._state===2)break}this._state===1&&(this._state=3),this._state!==3&&this._recompute()}while(this._state!==3);return this._value}}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;let t=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=t;try{let t=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,this._changeTracker.beforeUpdate?.(this,t),this._isInBeforeUpdate=!1,this._changeSummary=this._changeTracker?.createChangeSummary(t));let n=this._state!==0,r=this._value;this._state=3;let i=this._delayedStore;i!==void 0&&(this._delayedStore=void 0);try{this._store!==void 0&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,t)}finally{this._isReaderValid=!1;for(let e of this._dependenciesToBeRemoved)e.removeObserver(this);this._dependenciesToBeRemoved.clear(),i!==void 0&&i.dispose()}e=this._didReportChange||n&&!this._equalityComparator(r,this._value),Mo()?.handleObservableUpdated(this,{oldValue:r,newValue:this._value,change:void 0,didChange:e,hadValue:n})}catch(e){C(e)}if(this._isComputing=!1,!this._didReportChange&&e)for(let e of this._observers)e.handleChange(this,void 0);else this._didReportChange=!1}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){if(this._isUpdating)throw new T(`Cyclic deriveds are not supported yet!`);this._updateCount++,this._isUpdating=!0;try{let e=this._updateCount===1;if(this._state===3&&(this._state=1,!e))for(let e of this._observers)e.handlePossibleChange(this);if(e)for(let e of this._observers)e.beginUpdate(this)}finally{this._isUpdating=!1}}endUpdate(e){if(this._updateCount--,this._updateCount===0){let e=[...this._observers];for(let t of e)t.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let e=[...this._removedObserverToCallEndUpdateOn];this._removedObserverToCallEndUpdateOn=null;for(let t of e)t.endUpdate(this)}}me(()=>this._updateCount>=0)}handlePossibleChange(e){if(this._state===3&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)){this._state=1;for(let e of this._observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){Mo()?.handleDerivedDependencyChanged(this,e,t);let n=!1;try{n=!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:t,didChange:t=>t===e},this._changeSummary)}catch(e){C(e)}let r=this._state===3;if(n&&(this._state===1||r)&&(this._state=2,r))for(let e of this._observers)e.handlePossibleChange(this)}}_ensureReaderValid(){if(!this._isReaderValid)throw new T(`The reader object cannot be used outside its compute function!`)}readObservable(e){this._ensureReaderValid(),e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t}get store(){return this._ensureReaderValid(),this._store===void 0&&(this._store=new D),this._store}addObserver(e){let t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&(this._removedObserverToCallEndUpdateOn&&this._removedObserverToCallEndUpdateOn.has(e)?this._removedObserverToCallEndUpdateOn.delete(e):e.beginUpdate(this))}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||=new Set,this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e)}debugGetState(){return{state:this._state,updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value}}debugSetValue(e){this._value=e}debugRecompute(){this._isComputing?this._state=2:this._recompute()}setValue(e,t,n){this._value=e;let r=this._observers;t.updateObserver(this,this);for(let e of r)e.handleChange(this,n)}},ls=class extends cs{constructor(e,t,n,r=void 0,i,a,o){super(e,t,n,r,i,o),this.set=a}};function M(e,t,n=Bo.ofCaller()){return t===void 0?new cs(new ja(void 0,void 0,e),e,void 0,void 0,wo,n):new cs(new ja(e,void 0,t),t,void 0,void 0,wo,n)}function us(e,t,n,r=Bo.ofCaller()){return new ls(new ja(e,void 0,t),t,void 0,void 0,wo,n,r)}function ds(e,t,n=Bo.ofCaller()){return new cs(new ja(e.owner,e.debugName,e.debugReferenceFn),t,void 0,e.onLastObserverRemoved,e.equalsFn??wo,n)}Wo(ds);function fs(e,t,n=Bo.ofCaller()){return new cs(new ja(e.owner,e.debugName,void 0),t,e.changeTracker,void 0,e.equalityComparer??wo,n)}function ps(e,t,n=Bo.ofCaller()){let r,i;t===void 0?(r=e,i=void 0):(i=e,r=t);let a;return new cs(new ja(i,void 0,r),e=>{a?a.clear():a=new D;let t=r(e);return t&&a.add(t),t},void 0,()=>{a&&=(a.dispose(),void 0)},wo,n)}var cee=class{constructor(e){this._value=Yo(this,void 0),this.promiseResult=this._value,this.promise=e.then(e=>(Po(t=>{this._value.set(new ms(e,void 0),t)}),e),e=>{throw Po(t=>{this._value.set(new ms(void 0,e),t)}),e})}},ms=class{constructor(e,t){this.data=e,this.error=t}getDataOrThrow(){if(this.error)throw this.error;return this.data}};function hs(e,t,n,r){return t||=e=>e!=null,new Promise((i,a)=>{let o=!0,s=!1,c=e.map(e=>({isFinished:t(e),error:n?n(e):!1,state:e})),l=ns(e=>{let{isFinished:t,error:n,state:r}=c.read(e);(t||n)&&(o?s=!0:l.dispose(),n?a(n===!0?r:n):i(r))});if(r){let e=r.onCancellationRequested(()=>{l.dispose(),e.dispose(),a(new ie)});if(r.isCancellationRequested){l.dispose(),e.dispose(),a(new ie);return}}o=!1,s&&l.dispose()})}function gs(...e){let t,n,r,i;return e.length===2?[n,r]=e:[t,n,r,i]=e,new vs(new ja(t,void 0,r),n,r,()=>vs.globalTransaction,wo,i??Bo.ofCaller())}function _s(e,t,n,r=Bo.ofCaller()){return new vs(new ja(e.owner,e.debugName,e.debugReferenceFn??n),t,n,()=>vs.globalTransaction,e.equalsFn??wo,r)}var vs=class extends Jo{constructor(e,t,n,r,i,a){super(a),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=i,this._hasValue=!1,this.handleEvent=e=>{let t=this._getValue(e),n=this._value,r=!this._hasValue||!this._equalityComparator(n,t),i=!1;r&&(this._value=t,this._hasValue&&(i=!0,Ro(this._getTransaction(),e=>{Mo()?.handleObservableUpdated(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this._hasValue});for(let t of this._observers)e.updateObserver(t,this),t.handleChange(this,void 0)},()=>{let e=this.getDebugName();return`Event fired`+(e?`: ${e}`:``)})),this._hasValue=!0),i||Mo()?.handleObservableUpdated(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this._hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let e=this.getDebugName();return`From Event`+(e?`: ${e}`:``)}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0)}debugSetValue(e){this._value=e}};(function(e){e.Observer=vs;function t(e,t){let n=!1;vs.globalTransaction===void 0&&(vs.globalTransaction=e,n=!0);try{t()}finally{n&&(vs.globalTransaction=void 0)}}e.batchEventsGlobally=t})(gs||={});function ys(e,t=Bo.ofCaller()){return typeof e==`string`?new bs(e,void 0,t):new bs(void 0,e,t)}var bs=class extends Jo{get debugName(){return new ja(this._owner,this._debugName,void 0).getDebugName(this)??`Observable Signal`}toString(){return this.debugName}constructor(e,t,n){super(n),this._debugName=e,this._owner=t}trigger(e,t){if(!e){Po(e=>{this.trigger(e,t)},()=>`Trigger signal ${this.debugName}`);return}for(let n of this._observers)e.updateObserver(n,this),n.handleChange(this,t)}get(){}};function xs(e,t){let n=!1,r,i;return gs(a=>{let o=ns(o=>{let s=e.read(o);n?(i&&clearTimeout(i),i=setTimeout(()=>{r=s,a()},t)):(n=!0,r=s)});return{dispose(){o.dispose(),n=!1,r=void 0}}},()=>n?r:e.get())}function Ss(e,t){let n=new lee(!0,t);e.addObserver(n);try{n.beginUpdate(e)}finally{n.endUpdate(e)}return E(()=>{e.removeObserver(n)})}Ko(Ss);var lee=class{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter===1&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--}handlePossibleChange(e){}handleChange(e,t){}};function Cs(e,t){let n;return ds({owner:e,debugReferenceFn:t},e=>(n=t(e,n),n))}function ws(e,t,n,r){let i=new Ts(n,r);return ds({debugReferenceFn:n,owner:e,onLastObserverRemoved:()=>{i.dispose(),i=new Ts(n)}},e=>(i.setItems(t.read(e)),i.getItems()))}var Ts=class{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){let t=[],n=new Set(this._cache.keys());for(let r of e){let e=this._keySelector?this._keySelector(r):r,i=this._cache.get(e);if(i)n.delete(e);else{let t=new D;i={out:this._map(r,t),store:t},this._cache.set(e,i)}t.push(i.out)}for(let e of n)this._cache.get(e).store.dispose(),this._cache.delete(e);this._items=t}getItems(){return this._items}};function uee(e){return{createChangeSummary:e=>({changes:[]}),handleChange(t,n){for(let r in e)t.didChange(e[r])&&n.changes.push({key:r,change:t.change});return!0},beforeUpdate(t,n){for(let r in e){if(r===`changes`)throw new T(`property name "changes" is reserved for change tracking`);n[r]=e[r].read(t)}}}}function Es(e){let t;return{createChangeSummary:e=>({changes:[]}),handleChange(n,r){t||=e();for(let e in t)n.didChange(t[e])&&r.changes.push({key:e,change:n.change});return!0},beforeUpdate(n,r){t||=e();for(let e in t){if(e===`changes`)throw new T(`property name "changes" is reserved for change tracking`);r[e]=t[e].read(n)}}}}function Ds(e){return new Os(e)}var Os=class extends qo{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}};function ks(e,t,n=Bo.ofCaller()){return new As(typeof e==`string`?e:new ja(e,void 0,void 0),t,n)}var As=class extends Jo{constructor(e,t,n){super(n),this.event=t,this.handleEvent=()=>{Po(e=>{for(let t of this._observers)e.updateObserver(t,this),t.handleChange(this,void 0)},()=>this.debugName)},this.debugName=typeof e==`string`?e:e.getDebugName(this)??`Observable Signal From Event`}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}};function js(e,t){let n,r=!0;return as({changeTracker:{createChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,n)=>{if(t.didChange(e)){let e=t.change;e!==void 0&&n.deltas.push(e),n.didChange=!0}return!0}}},(i,a)=>{let o=e.read(i),s=n;a.didChange&&(n=o,t(o,s,a.deltas)),r&&(r=!1,n=o)})}function Ms(e,t){let n=new D,r=js(e,(e,r,i)=>{n.clear(),t(e,r,i,n)});return{dispose(){r.dispose(),n.dispose()}}}function Ns(e,t){return Ms(e,(e,n,r,i)=>{t(e,n,r,Tn(i))})}function Ps(e,t){return Cs(e,(e,n)=>n??t(e))}function Fs(e,t){switch(typeof e){case`number`:return``+e;case`string`:return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case`boolean`:return e?`true`:`false`;case`undefined`:return`undefined`;case`object`:return e===null?`null`:Array.isArray(e)?Is(e,t):Ls(e,t);case`symbol`:return e.toString();case`function`:return`[[Function${e.name?` `+e.name:``}]]`;default:return``+e}}function Is(e,t){let n=`[ `,r=!0;for(let i of e){if(r||(n+=`, `),n.length-5>t){n+=`...`;break}r=!1,n+=`${Fs(i,t-n.length)}`}return n+=` ]`,n}function Ls(e,t){if(typeof e.toString==`function`&&e.toString!==Object.prototype.toString){let n=e.toString();return n.length<=t?n:n.substring(0,t-3)+`...`}let n=Ba(e),r=n?n+`(`:`{ `,i=!0;for(let[n,a]of Object.entries(e)){if(i||(r+=`, `),r.length-5>t){r+=`...`;break}i=!1,r+=`${n}: ${Fs(a,t-r.length)}`}return r+=n?`)`:` }`,r}var Rs=class e{static createClient(t,n){return new e(t,n)}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:e=>{let t=e,n=this._getHandler().notifications[t[0]];if(!n)throw Error(`Unknown notification "${t[0]}"!`);n(...t[1])},handleRequest:e=>{let t=e;try{return{type:`result`,value:this._getHandler().requests[t[0]](...t[1])}}catch(e){return{type:`error`,value:e}}}});let n=new Proxy({},{get:(e,t)=>async(...e)=>{let n=await this._channel.sendRequest([t,e]);if(n.type===`error`)throw n.value;return n.value}}),r=new Proxy({},{get:(e,t)=>(...e)=>{this._channel.sendNotification([t,e])}});this.api={notifications:r,requests:n}}};function zs(e,t){let n=globalThis,r=[],i,{channel:a,handler:o}=Bs({sendNotification:e=>{i?i.sendNotification(e):r.push(e)}}),s;return(n.$$debugValueEditor_debugChannels??={})[e]=e=>{s=t(),i=e;for(let t of r)e.sendNotification(t);return r=[],o},Rs.createClient(a,()=>{if(!s)throw Error(`Not supported`);return s})}function Bs(e){let t;return{channel:n=>(t=n,{sendNotification:t=>{e.sendNotification(t)},sendRequest:e=>{throw Error(`not supported`)}}),handler:{handleRequest:e=>e.type===`notification`?t?.handleNotification(e.data):t?.handleRequest(e.data)}}}var Vs=class{constructor(){this._timeout=void 0}throttle(e,t){this._timeout===void 0&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e()},t))}dispose(){this._timeout!==void 0&&clearTimeout(this._timeout)}};function Hs(e,t){for(let n in t)e[n]&&typeof e[n]==`object`&&t[n]&&typeof t[n]==`object`?Hs(e[n],t[n]):e[n]=t[n]}function Us(e,t){for(let n in t)t[n]===null?delete e[n]:e[n]&&typeof e[n]==`object`&&t[n]&&typeof t[n]==`object`?Us(e[n],t[n]):e[n]=t[n]}var dee=class e{static{this._instance=void 0}static getInstance(){return e._instance===void 0&&(e._instance=new e),e._instance}getTransactionState(){let e=[],t=[...this._activeTransactions];if(t.length===0)return;let n=t.flatMap(e=>e.debugGetUpdatingObservers()??[]).map(e=>e.observer),r=new Set;for(;n.length>0;){let t=n.shift();if(r.has(t))continue;r.add(t);let i=this._getInfo(t,e=>{r.has(e)||n.push(e)});i&&e.push(i)}return{names:t.map(e=>e.getDebugName()??`tx`),affected:e}}_getObservableInfo(e){let t=this._instanceInfos.get(e);if(!t){w(new T(`No info found`));return}return t}_getAutorunInfo(e){let t=this._instanceInfos.get(e);if(!t){w(new T(`No info found`));return}return t}_getInfo(e,t){if(e instanceof cs){let n=[...e.debugGetObservers()];for(let e of n)t(e);let r=this._getObservableInfo(e);if(!r)return;let i=e.debugGetState(),a={name:e.debugName,instanceId:r.instanceId,updateCount:i.updateCount},o=[...r.changedObservables].map(e=>this._instanceInfos.get(e)?.instanceId).filter(Ce);if(i.isComputing)return{...a,type:`observable/derived`,state:`updating`,changedDependencies:o,initialComputation:!1};switch(i.state){case 0:return{...a,type:`observable/derived`,state:`noValue`};case 3:return{...a,type:`observable/derived`,state:`upToDate`};case 2:return{...a,type:`observable/derived`,state:`stale`,changedDependencies:o};case 1:return{...a,type:`observable/derived`,state:`possiblyStale`}}}else if(e instanceof ts){let t=this._getAutorunInfo(e);if(!t)return;let n={name:e.debugName,instanceId:t.instanceId,updateCount:t.updateCount},r=[...t.changedObservables].map(e=>this._instanceInfos.get(e).instanceId);if(e.debugGetState().isRunning)return{...n,type:`autorun`,state:`updating`,changedDependencies:r};switch(e.debugGetState().state){case 3:return{...n,type:`autorun`,state:`upToDate`};case 2:return{...n,type:`autorun`,state:`stale`,changedDependencies:r};case 1:return{...n,type:`autorun`,state:`possiblyStale`}}}}_formatObservable(e){let t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId}}_formatObserver(e){if(e instanceof cs)return{name:e.toString(),instanceId:this._getObservableInfo(e)?.instanceId};let t=this._getAutorunInfo(e);if(t)return{name:e.toString(),instanceId:t.instanceId}}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map,this._instanceInfos=new WeakMap,this._aliveInstances=new Map,this._activeTransactions=new Set,this._channel=zs(`observableDevTools`,()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log(`logObservableValue`,e)},flushUpdates:()=>{this._flushUpdates()},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0)}},requests:{getDeclarations:()=>{let e={};for(let t of this._declarations.values())e[t.id]=t;return{decls:e}},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(e=>this._formatObserver(e)).filter(Ce)}),getDerivedInfo:e=>{let t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(Ce),observers:[...t.debugGetObservers()].map(e=>this._formatObserver(e)).filter(Ce)}},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(Ce)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{let n=this._aliveInstances.get(e);if(n instanceof cs)n.debugSetValue(t);else if(n instanceof Xo)n.debugSetValue(t);else if(n instanceof vs)n.debugSetValue(t);else throw new T(`Observable is not supported`);let r=[...n.debugGetObservers()];for(let e of r)e.beginUpdate(n);for(let e of r)e.handleChange(n,void 0);for(let e of r)e.endUpdate(n)},getValue:e=>{let t=this._aliveInstances.get(e);if(t instanceof cs||t instanceof Xo)return Fs(t.debugGetState().value,200)},logValue:e=>{let t=this._aliveInstances.get(e);if(t&&`get`in t)console.log(`Logged Value:`,t.get());else throw new T(`Observable is not supported`)},rerun:e=>{let t=this._aliveInstances.get(e);if(t instanceof cs)t.debugRecompute();else if(t instanceof ts)t.debugRerun();else throw new T(`Observable is not supported`)}}})),this._pendingChanges=null,this._changeThrottler=new Vs,this._fullState={},this._flushUpdates=()=>{this._pendingChanges!==null&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null)},Bo.enable()}_handleChange(e){Us(this._fullState,e),this._pendingChanges===null?this._pendingChanges=e:Hs(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10)}_getDeclarationId(e,t){if(!t)return-1;let n=this._declarations.get(t.id);return n===void 0&&(n={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,n),this._handleChange({decls:{[n.id]:n}})),n.id}handleObservableCreated(e,t){let n={declarationId:this._getDeclarationId(`observable/value`,t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n)}handleOnListenerCountChanged(e,t){let n=this._getObservableInfo(e);if(n){if(n.listenerCount===0&&t>0){let t=e instanceof cs?`observable/derived`:`observable/value`;this._aliveInstances.set(n.instanceId,e),this._handleChange({instances:{[n.instanceId]:{instanceId:n.instanceId,declarationId:n.declarationId,formattedValue:n.lastValue,type:t,name:e.debugName}}})}else n.listenerCount>0&&t===0&&(this._handleChange({instances:{[n.instanceId]:null}}),this._aliveInstances.delete(n.instanceId));n.listenerCount=t}}handleObservableUpdated(e,t){if(e instanceof cs){this._handleDerivedRecomputed(e,t);return}let n=this._getObservableInfo(e);n&&t.didChange&&(n.lastValue=Fs(t.newValue,30),n.listenerCount>0&&this._handleChange({instances:{[n.instanceId]:{formattedValue:n.lastValue}}}))}handleAutorunCreated(e,t){let n={declarationId:this._getDeclarationId(`autorun`,t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set};this._instanceInfos.set(e,n),this._aliveInstances.set(n.instanceId,e),n&&this._handleChange({instances:{[n.instanceId]:{instanceId:n.instanceId,declarationId:n.declarationId,runCount:0,type:`autorun`,name:e.debugName}}})}handleAutorunDisposed(e){let t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId))}handleAutorunDependencyChanged(e,t,n){let r=this._getAutorunInfo(e);r&&r.changedObservables.add(t)}handleAutorunStarted(e){}handleAutorunFinished(e){let t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}))}handleDerivedDependencyChanged(e,t,n){let r=this._getObservableInfo(e);r&&r.changedObservables.add(t)}_handleDerivedRecomputed(e,t){let n=this._getObservableInfo(e);if(!n)return;let r=Fs(t.newValue,30);n.updateCount++,n.changedObservables.clear(),n.lastValue=r,n.listenerCount>0&&this._handleChange({instances:{[n.instanceId]:{formattedValue:r,recomputationCount:n.updateCount}}})}handleDerivedCleared(e){let t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}))}handleBeginTransaction(e){this._activeTransactions.add(e)}handleEndTransaction(e){this._activeTransactions.delete(e)}};ui&&ui.VSCODE_DEV_DEBUG_OBSERVABLES&&jo(dee.getInstance());var{registerWindow:fee,getWindow:N,getDocument:pee,getWindows:Ws,getWindowsCount:Gs,getWindowId:Ks,getWindowById:qs,hasWindow:mee,onDidRegisterWindow:Js,onWillUnregisterWindow:Ys,onDidUnregisterWindow:Xs}=(function(){let e=new Map;c(l,1);let t={window:l,disposables:new D};e.set(l.vscodeWindowId,t);let n=new A,r=new A,i=new A;function a(n,r){return(typeof n==`number`?e.get(n):void 0)??(r?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(t){if(e.has(t.vscodeWindowId))return O.None;let a=new D,o={window:t,disposables:a.add(new D)};return e.set(t.vscodeWindowId,o),a.add(E(()=>{e.delete(t.vscodeWindowId),r.fire(t)})),a.add(P(t,F.BEFORE_UNLOAD,()=>{i.fire(t)})),n.fire(o),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:a,getWindow(e){let t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;let n=e;return n?.view?n.view.window:l},getDocument(e){return N(e).document}}})();function Zs(e){for(;e.firstChild;)e.firstChild.remove()}var Qs=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&=(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,null)}};function P(e,t,n,r){return new Qs(e,t,n,r)}function $s(e,t){return function(n){return t(new Vt(e,n))}}function ec(e){return function(t){return e(new Lt(t))}}var tc=function(e,t,n,r){let i=n;return t===`click`||t===`mousedown`||t===`contextmenu`?i=$s(N(e),n):(t===`keydown`||t===`keypress`||t===`keyup`)&&(i=ec(n)),P(e,t,i,r)},nc=function(e,t,n){return rc(e,$s(N(e),t),n)};function rc(e,t,n){return P(e,Xe&&ft.pointerEvents?F.POINTER_DOWN:F.MOUSE_DOWN,t,n)}function ic(e,t,n){return P(e,Xe&&ft.pointerEvents?F.POINTER_MOVE:F.MOUSE_MOVE,t,n)}function ac(e,t,n){return P(e,Xe&&ft.pointerEvents?F.POINTER_UP:F.MOUSE_UP,t,n)}function oc(e,t,n){return Wn(e,t,n)}var sc=class extends Gn{constructor(e,t){super(e,t)}},cc,lc,uc=class extends Vn{constructor(e){super(),this.defaultTarget=e&&N(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}},dc=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){w(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,n=new Map,r=new Map,i=i=>{n.set(i,!1);let a=e.get(i)??[];for(t.set(i,a),e.set(i,[]),r.set(i,!0);a.length>0;)a.sort(dc.sort),a.shift().execute();r.set(i,!1)};lc=(t,r,a=0)=>{let o=Ks(t),s=new dc(r,a),c=e.get(o);return c||(c=[],e.set(o,c)),c.push(s),n.get(o)||(n.set(o,!0),t.requestAnimationFrame(()=>i(o))),s},cc=(e,n,i)=>{let a=Ks(e);if(r.get(a)){let e=new dc(n,i),r=t.get(a);return r||(r=[],t.set(a,r)),r.push(e),e}else return lc(e,n,i)}})();function fc(e){return N(e).getComputedStyle(e,null)}function pc(e,t,n){let r=N(e),i=r.document;if(e!==i.body)return new hc(e.clientWidth,e.clientHeight);if(Xe&&r?.visualViewport)return new hc(r.visualViewport.width,r.visualViewport.height);if(r?.innerWidth&&r.innerHeight)return new hc(r.innerWidth,r.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new hc(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new hc(i.documentElement.clientWidth,i.documentElement.clientHeight);if(n)return pc(n,t);if(t)return t;throw Error(`Unable to figure out browser width and height`)}var mc=class e{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(t,n){let r=fc(t),i=r?r.getPropertyValue(n):`0`;return e.convertToPixels(t,i)}static getBorderLeftWidth(t){return e.getDimension(t,`border-left-width`)}static getBorderRightWidth(t){return e.getDimension(t,`border-right-width`)}static getBorderTopWidth(t){return e.getDimension(t,`border-top-width`)}static getBorderBottomWidth(t){return e.getDimension(t,`border-bottom-width`)}static getPaddingLeft(t){return e.getDimension(t,`padding-left`)}static getPaddingRight(t){return e.getDimension(t,`padding-right`)}static getPaddingTop(t){return e.getDimension(t,`padding-top`)}static getPaddingBottom(t){return e.getDimension(t,`padding-bottom`)}static getMarginLeft(t){return e.getDimension(t,`margin-left`)}static getMarginTop(t){return e.getDimension(t,`margin-top`)}static getMarginRight(t){return e.getDimension(t,`margin-right`)}static getMarginBottom(t){return e.getDimension(t,`margin-bottom`)}},hc=class e{static{this.None=new e(0,0)}constructor(e,t){this.width=e,this.height=t}with(t=this.width,n=this.height){return t!==this.width||n!==this.height?new e(t,n):this}static is(e){return typeof e==`object`&&typeof e.height==`number`&&typeof e.width==`number`}static lift(t){return t instanceof e?t:new e(t.width,t.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};function gc(e){let t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;for(;(e=e.parentNode)!==null&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){n-=e.scrollTop;let i=Dc(e)?null:fc(e);i&&(r-=i.direction===`rtl`?-e.scrollLeft:e.scrollLeft),e===t&&(r+=mc.getBorderLeftWidth(e),n+=mc.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function _c(e,t,n){typeof t==`number`&&(e.style.width=`${t}px`),typeof n==`number`&&(e.style.height=`${n}px`)}function vc(e){let t=e.getBoundingClientRect(),n=N(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}function yc(e){let t=e,n=1;do{let e=fc(t).zoom;e!=null&&e!==`1`&&(n*=e),t=t.parentElement}while(t!==null&&t!==t.ownerDocument.documentElement);return n}function bc(e){let t=mc.getMarginLeft(e)+mc.getMarginRight(e);return e.offsetWidth+t}function xc(e){let t=mc.getBorderLeftWidth(e)+mc.getBorderRightWidth(e),n=mc.getPaddingLeft(e)+mc.getPaddingRight(e);return e.offsetWidth-t-n}function Sc(e){let t=mc.getBorderTopWidth(e)+mc.getBorderBottomWidth(e),n=mc.getPaddingTop(e)+mc.getPaddingBottom(e);return e.offsetHeight-t-n}function Cc(e){let t=mc.getMarginTop(e)+mc.getMarginBottom(e);return e.offsetHeight+t}function wc(e,t){return!!t?.contains(e)}function Tc(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(n){if(typeof n==`string`){if(e.classList.contains(n))return null}else if(e===n)return null}e=e.parentNode}return null}function Ec(e,t,n){return!!Tc(e,t,n)}function Dc(e){return e&&!!e.host&&!!e.mode}function Oc(e){return!!kc(e)}function kc(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return Dc(e)?e:null}function Ac(){let e=Nc().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function jc(e){return Ac()===e}function Mc(e){return wc(Ac(),e)}function Nc(){return Gs()<=1?l.document:Array.from(Ws()).map(({window:e})=>e.document).find(e=>e.hasFocus())??l.document}function Pc(){return Nc().defaultView?.window??l}var Fc=new class{constructor(){this.mutationObservers=new Map}observe(e,t,n){let r=this.mutationObservers.get(e);r||(r=new Map,this.mutationObservers.set(e,r));let i=xa(n),a=r.get(i);if(a)a.users+=1;else{let o=new A,s=new MutationObserver(e=>o.fire(e));s.observe(e,n);let c=a={users:1,observer:s,onDidMutate:o.event};t.add(E(()=>{--c.users,c.users===0&&(o.dispose(),s.disconnect(),r?.delete(i),r?.size===0&&this.mutationObservers.delete(e))})),r.set(i,a)}return a.onDidMutate}};function Ic(e){return e instanceof HTMLElement||e instanceof N(e).HTMLElement}function Lc(e){return e instanceof HTMLAnchorElement||e instanceof N(e).HTMLAnchorElement}function Rc(e){return e instanceof SVGElement||e instanceof N(e).SVGElement}function zc(e){return e instanceof MouseEvent||e instanceof N(e).MouseEvent}function Bc(e){return e instanceof KeyboardEvent||e instanceof N(e).KeyboardEvent}var F={CLICK:`click`,AUXCLICK:`auxclick`,DBLCLICK:`dblclick`,MOUSE_UP:`mouseup`,MOUSE_DOWN:`mousedown`,MOUSE_OVER:`mouseover`,MOUSE_MOVE:`mousemove`,MOUSE_OUT:`mouseout`,MOUSE_ENTER:`mouseenter`,MOUSE_LEAVE:`mouseleave`,MOUSE_WHEEL:`wheel`,POINTER_UP:`pointerup`,POINTER_DOWN:`pointerdown`,POINTER_MOVE:`pointermove`,POINTER_LEAVE:`pointerleave`,CONTEXT_MENU:`contextmenu`,WHEEL:`wheel`,KEY_DOWN:`keydown`,KEY_PRESS:`keypress`,KEY_UP:`keyup`,LOAD:`load`,BEFORE_UNLOAD:`beforeunload`,UNLOAD:`unload`,PAGE_SHOW:`pageshow`,PAGE_HIDE:`pagehide`,PASTE:`paste`,ABORT:`abort`,ERROR:`error`,RESIZE:`resize`,SCROLL:`scroll`,FULLSCREEN_CHANGE:`fullscreenchange`,WK_FULLSCREEN_CHANGE:`webkitfullscreenchange`,SELECT:`select`,CHANGE:`change`,SUBMIT:`submit`,RESET:`reset`,FOCUS:`focus`,FOCUS_IN:`focusin`,FOCUS_OUT:`focusout`,BLUR:`blur`,INPUT:`input`,STORAGE:`storage`,DRAG_START:`dragstart`,DRAG:`drag`,DRAG_ENTER:`dragenter`,DRAG_LEAVE:`dragleave`,DRAG_OVER:`dragover`,DROP:`drop`,DRAG_END:`dragend`,ANIMATION_START:h?`webkitAnimationStart`:`animationstart`,ANIMATION_END:h?`webkitAnimationEnd`:`animationend`,ANIMATION_ITERATION:h?`webkitAnimationIteration`:`animationiteration`};function Vc(e){let t=e;return!!(t&&typeof t.preventDefault==`function`&&typeof t.stopPropagation==`function`)}var Hc={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Uc(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Wc(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var Gc=class e extends O{get onDidFocus(){return this._onDidFocus.event}get onDidBlur(){return this._onDidBlur.event}static hasFocusWithin(e){if(Ic(e)){let t=kc(e);return wc(t?t.activeElement:e.ownerDocument.activeElement,e)}else{let t=e;return wc(t.document.activeElement,t.document)}}constructor(t){super(),this._onDidFocus=this._register(new A),this._onDidBlur=this._register(new A);let n=e.hasFocusWithin(t),r=!1,i=()=>{r=!1,n||(n=!0,this._onDidFocus.fire())},a=()=>{n&&(r=!0,(Ic(t)?N(t):t).setTimeout(()=>{r&&(r=!1,n=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{e.hasFocusWithin(t)!==n&&(n?a():i())},this._register(P(t,F.FOCUS,i,!0)),this._register(P(t,F.BLUR,a,!0)),Ic(t)&&(this._register(P(t,F.FOCUS_IN,()=>this._refreshStateHandler())),this._register(P(t,F.FOCUS_OUT,()=>this._refreshStateHandler())))}};function Kc(e){return new Gc(e)}function qc(e,t){return e.after(t),t}function I(e,...t){if(e.append(...t),t.length===1&&typeof t[0]!=`string`)return t[0]}function Jc(e,t){return e.insertBefore(t,e.firstChild),t}function Yc(e,...t){e.textContent=``,I(e,...t)}var Xc=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/,Zc;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.SVG=`http://www.w3.org/2000/svg`})(Zc||={});function Qc(e,t,n,...r){let i=Xc.exec(t);if(!i)throw Error(`Bad use of emmet`);let a=i[1]||`div`,o;return o=e===Zc.HTML?document.createElement(a):document.createElementNS(e,a),i[3]&&(o.id=i[3]),i[4]&&(o.className=i[4].replace(/\./g,` `).trim()),n&&Object.entries(n).forEach(([e,t])=>{t!==void 0&&(/^on\w+$/.test(e)?o[e]=t:e===`selected`?t&&o.setAttribute(e,`true`):o.setAttribute(e,t))}),o.append(...r),o}function L(e,t,...n){return Qc(Zc.HTML,e,t,...n)}L.SVG=function(e,t,...n){return Qc(Zc.SVG,e,t,...n)};function $c(e,...t){e?el(...t):tl(...t)}function el(...e){for(let t of e)t.style.display=``,t.removeAttribute(`aria-hidden`)}function tl(...e){for(let t of e)t.style.display=`none`,t.setAttribute(`aria-hidden`,`true`)}function nl(e,t){let n=e.devicePixelRatio*t;return Math.max(1,Math.floor(n))/e.devicePixelRatio}function rl(e){l.open(e,`_blank`,`noopener`)}function il(e,t){let n=()=>{t(),r=lc(e,n)},r=lc(e,n);return E(()=>r.dispose())}sa.setPreferredWebSchema(/^https:/.test(l.location.href)?`https`:`http`);var al=class e extends A{constructor(){super(),this._subscriptions=new D,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(k.runAndSubscribe(Js,({window:e,disposables:t})=>this.registerListeners(e,t),{window:l,disposables:this._subscriptions}))}registerListeners(e,t){t.add(P(e,`keydown`,e=>{if(e.defaultPrevented)return;let t=new Lt(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed=`alt`;else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed=`ctrl`;else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed=`meta`;else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed=`shift`;else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(P(e,`keyup`,e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased=`alt`:!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased=`ctrl`:!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased=`meta`:!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased=`shift`:this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(P(e.document.body,`mousedown`,()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(P(e.document.body,`mouseup`,()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(P(e.document.body,`mousemove`,e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(P(e,`blur`,()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return e.instance||=new e,e.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},ol=class extends O{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(P(this.element,F.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(P(this.element,F.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(P(this.element,F.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(P(this.element,F.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(P(this.element,F.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(P(this.element,F.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(P(this.element,F.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}},sl=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function cl(e,...t){let n,r;Array.isArray(t[0])?(n={},r=t[0]):(n=t[0]||{},r=t[1]);let i=sl.exec(e);if(!i||!i.groups)throw Error(`Bad use of h`);let a=i.groups.tag||`div`,o=document.createElement(a);i.groups.id&&(o.id=i.groups.id);let s=[];if(i.groups.class)for(let e of i.groups.class.split(`.`))e!==``&&s.push(e);if(n.className!==void 0)for(let e of n.className.split(`.`))e!==``&&s.push(e);s.length>0&&(o.className=s.join(` `));let c={};if(i.groups.name&&(c[i.groups.name]=o),r)for(let e of r)Ic(e)?o.appendChild(e):typeof e==`string`?o.append(e):`root`in e&&(Object.assign(c,e),o.appendChild(e.root));for(let[e,t]of Object.entries(n))if(e===`className`)continue;else if(e===`style`)for(let[e,n]of Object.entries(t))o.style.setProperty(ll(e),typeof n==`number`?n+`px`:``+n);else e===`tabIndex`?o.tabIndex=t:o.setAttribute(ll(e),t.toString());return c.root=o,c}function ll(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function ul(e){return e.tagName.toLowerCase()===`input`||e.tagName.toLowerCase()===`textarea`||Ic(e)&&!!e.editContext}var dl;(function(e){function t(e=void 0){return(t,n,r)=>{let i=n.class;delete n.class;let a=n.ref;delete n.ref;let o=n.obsRef;return delete n.obsRef,new gee(t,a,o,e,i,n,r)}}function n(e,n=void 0){let r=t(n);return(t,n)=>r(e,t,n)}e.div=n(`div`),e.elem=t(void 0),e.svg=n(`svg`,`http://www.w3.org/2000/svg`),e.svgElem=t(`http://www.w3.org/2000/svg`);function r(){let e,t=function(t){e=t};return Object.defineProperty(t,"element",{get(){if(!e)throw new T(`Make sure the ref is set before accessing the element. Maybe wrong initialization order?`);return e}}),t}e.ref=r})(dl||={});var fl=class e{constructor(t,n,r,i,a,o,s){this._deriveds=[],this._element=i?document.createElementNS(i,t):document.createElement(t),n&&n(this._element),r&&this._deriveds.push(M(e=>{r(this),e.store.add({dispose:()=>{r(null)}})})),a&&(gl(a)?this._deriveds.push(M(this,e=>{pl(this._element,hl(a,e))})):pl(this._element,hl(a,void 0)));for(let[e,t]of Object.entries(o))if(e===`style`)for(let[e,n]of Object.entries(t)){let t=ll(e);bl(n)?this._deriveds.push(ds({owner:this,debugName:()=>`set.style.${t}`},e=>{this._element.style.setProperty(t,_l(n.read(e)))})):this._element.style.setProperty(t,_l(n))}else e===`tabIndex`?bl(t)?this._deriveds.push(M(this,e=>{this._element.tabIndex=t.read(e)})):this._element.tabIndex=t:e.startsWith(`on`)?this._element[e]=t:bl(t)?this._deriveds.push(ds({owner:this,debugName:()=>`set.${e}`},n=>{yl(this._element,e,t.read(n))})):yl(this._element,e,t);if(s){function t(n,r){return bl(r)?t(n,r.read(n)):Array.isArray(r)?r.flatMap(e=>t(n,e)):r instanceof e?(n&&r.readEffect(n),[r._element]):r?[r]:[]}let n=M(this,e=>{this._element.replaceChildren(...t(e,s))});this._deriveds.push(n),vl(s)||n.get()}}readEffect(e){for(let t of this._deriveds)t.read(e)}keepUpdated(e){return M(e=>{this.readEffect(e)}).recomputeInitiallyAndOnChange(e),this}toDisposableLiveElement(){let e=new D;return this.keepUpdated(e),new hee(this._element,e)}};function pl(e,t){Rc(e)?e.setAttribute(`class`,t):e.className=t}function ml(e,t,n){if(bl(e)){n(e.read(t));return}if(Array.isArray(e)){for(let r of e)ml(r,t,n);return}n(e)}function hl(e,t){let n=``;return ml(e,t,e=>{e&&(n.length===0?n=e:n+=` `+e)}),n}function gl(e){return bl(e)?!0:Array.isArray(e)?e.some(e=>gl(e)):!1}function _l(e){return typeof e==`number`?e+`px`:e}function vl(e){return bl(e)?!0:Array.isArray(e)?e.some(e=>vl(e)):!1}var hee=class{constructor(e,t){this.element=e,this._disposable=t}dispose(){this._disposable.dispose()}},gee=class extends fl{constructor(){super(...arguments),this._isHovered=void 0,this._didMouseMoveDuringHover=void 0}get element(){return this._element}get isHovered(){if(!this._isHovered){let e=Yo(`hovered`,!1);this._element.addEventListener(`mouseenter`,t=>e.set(!0,void 0)),this._element.addEventListener(`mouseleave`,t=>e.set(!1,void 0)),this._isHovered=e}return this._isHovered}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=Yo(`didMouseMoveDuringHover`,!1);this._element.addEventListener(`mouseenter`,t=>{e=!0}),this._element.addEventListener(`mousemove`,n=>{e&&t.set(!0,void 0)}),this._element.addEventListener(`mouseleave`,n=>{e=!1,t.set(!1,void 0)}),this._didMouseMoveDuringHover=t}return this._didMouseMoveDuringHover}};function yl(e,t,n){n==null?e.removeAttribute(ll(t)):e.setAttribute(ll(t),String(n))}function bl(e){return!!e&&e.read!==void 0&&e.reportChanges!==void 0}var xl=2e4,Sl,Cl,wl,Tl,El;function _ee(e){Sl=document.createElement(`div`),Sl.className=`monaco-aria-container`;let t=()=>{let e=document.createElement(`div`);return e.className=`monaco-alert`,e.setAttribute(`role`,`alert`),e.setAttribute(`aria-atomic`,`true`),Sl.appendChild(e),e};Cl=t(),wl=t();let n=()=>{let e=document.createElement(`div`);return e.className=`monaco-status`,e.setAttribute(`aria-live`,`polite`),e.setAttribute(`aria-atomic`,`true`),Sl.appendChild(e),e};Tl=n(),El=n(),e.appendChild(Sl)}function Dl(e){Sl&&(Cl.textContent===e?(Zs(Cl),kl(wl,e)):(Zs(wl),kl(Cl,e)))}function Ol(e){Sl&&(Tl.textContent===e?(Zs(Tl),kl(El,e)):(Zs(El),kl(Tl,e)))}function kl(e,t){Zs(e),t.length>xl&&(t=t.substr(0,xl)),e.textContent=t,e.style.visibility=`hidden`,e.style.visibility=`visible`}var Al;(function(e){e.serviceIds=new Map,e.DI_TARGET=`$di$target`,e.DI_DEPENDENCIES=`$di$dependencies`;function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(Al||={});var jl=Nl(`instantiationService`);function Ml(e,t,n){t[Al.DI_TARGET]===t?t[Al.DI_DEPENDENCIES].push({id:e,index:n}):(t[Al.DI_DEPENDENCIES]=[{id:e,index:n}],t[Al.DI_TARGET]=t)}function Nl(e){if(Al.serviceIds.has(e))return Al.serviceIds.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);Ml(t,e,r)};return t.toString=()=>e,Al.serviceIds.set(e,t),t}var Pl=Nl(`codeEditorService`),R=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumbere.run(...t)}}var Ul=Object.create(null);function z(e,t){if(ge(t)){let n=Ul[t];if(n===void 0)throw Error(`${e} references an unknown codicon: ${t}`);t=n}return Ul[e]=t,{id:e}}function Wl(){return Ul}var Gl={add:z(`add`,6e4),plus:z(`plus`,6e4),gistNew:z(`gist-new`,6e4),repoCreate:z(`repo-create`,6e4),lightbulb:z(`lightbulb`,60001),lightBulb:z(`light-bulb`,60001),repo:z(`repo`,60002),repoDelete:z(`repo-delete`,60002),gistFork:z(`gist-fork`,60003),repoForked:z(`repo-forked`,60003),gitPullRequest:z(`git-pull-request`,60004),gitPullRequestAbandoned:z(`git-pull-request-abandoned`,60004),recordKeys:z(`record-keys`,60005),keyboard:z(`keyboard`,60005),tag:z(`tag`,60006),gitPullRequestLabel:z(`git-pull-request-label`,60006),tagAdd:z(`tag-add`,60006),tagRemove:z(`tag-remove`,60006),person:z(`person`,60007),personFollow:z(`person-follow`,60007),personOutline:z(`person-outline`,60007),personFilled:z(`person-filled`,60007),gitBranch:z(`git-branch`,60008),gitBranchCreate:z(`git-branch-create`,60008),gitBranchDelete:z(`git-branch-delete`,60008),sourceControl:z(`source-control`,60008),mirror:z(`mirror`,60009),mirrorPublic:z(`mirror-public`,60009),star:z(`star`,60010),starAdd:z(`star-add`,60010),starDelete:z(`star-delete`,60010),starEmpty:z(`star-empty`,60010),comment:z(`comment`,60011),commentAdd:z(`comment-add`,60011),alert:z(`alert`,60012),warning:z(`warning`,60012),search:z(`search`,60013),searchSave:z(`search-save`,60013),logOut:z(`log-out`,60014),signOut:z(`sign-out`,60014),logIn:z(`log-in`,60015),signIn:z(`sign-in`,60015),eye:z(`eye`,60016),eyeUnwatch:z(`eye-unwatch`,60016),eyeWatch:z(`eye-watch`,60016),circleFilled:z(`circle-filled`,60017),primitiveDot:z(`primitive-dot`,60017),closeDirty:z(`close-dirty`,60017),debugBreakpoint:z(`debug-breakpoint`,60017),debugBreakpointDisabled:z(`debug-breakpoint-disabled`,60017),debugHint:z(`debug-hint`,60017),terminalDecorationSuccess:z(`terminal-decoration-success`,60017),primitiveSquare:z(`primitive-square`,60018),edit:z(`edit`,60019),pencil:z(`pencil`,60019),info:z(`info`,60020),issueOpened:z(`issue-opened`,60020),gistPrivate:z(`gist-private`,60021),gitForkPrivate:z(`git-fork-private`,60021),lock:z(`lock`,60021),mirrorPrivate:z(`mirror-private`,60021),close:z(`close`,60022),removeClose:z(`remove-close`,60022),x:z(`x`,60022),repoSync:z(`repo-sync`,60023),sync:z(`sync`,60023),clone:z(`clone`,60024),desktopDownload:z(`desktop-download`,60024),beaker:z(`beaker`,60025),microscope:z(`microscope`,60025),vm:z(`vm`,60026),deviceDesktop:z(`device-desktop`,60026),file:z(`file`,60027),fileText:z(`file-text`,60027),more:z(`more`,60028),ellipsis:z(`ellipsis`,60028),kebabHorizontal:z(`kebab-horizontal`,60028),mailReply:z(`mail-reply`,60029),reply:z(`reply`,60029),organization:z(`organization`,60030),organizationFilled:z(`organization-filled`,60030),organizationOutline:z(`organization-outline`,60030),newFile:z(`new-file`,60031),fileAdd:z(`file-add`,60031),newFolder:z(`new-folder`,60032),fileDirectoryCreate:z(`file-directory-create`,60032),trash:z(`trash`,60033),trashcan:z(`trashcan`,60033),history:z(`history`,60034),clock:z(`clock`,60034),folder:z(`folder`,60035),fileDirectory:z(`file-directory`,60035),symbolFolder:z(`symbol-folder`,60035),logoGithub:z(`logo-github`,60036),markGithub:z(`mark-github`,60036),github:z(`github`,60036),terminal:z(`terminal`,60037),console:z(`console`,60037),repl:z(`repl`,60037),zap:z(`zap`,60038),symbolEvent:z(`symbol-event`,60038),error:z(`error`,60039),stop:z(`stop`,60039),variable:z(`variable`,60040),symbolVariable:z(`symbol-variable`,60040),array:z(`array`,60042),symbolArray:z(`symbol-array`,60042),symbolModule:z(`symbol-module`,60043),symbolPackage:z(`symbol-package`,60043),symbolNamespace:z(`symbol-namespace`,60043),symbolObject:z(`symbol-object`,60043),symbolMethod:z(`symbol-method`,60044),symbolFunction:z(`symbol-function`,60044),symbolConstructor:z(`symbol-constructor`,60044),symbolBoolean:z(`symbol-boolean`,60047),symbolNull:z(`symbol-null`,60047),symbolNumeric:z(`symbol-numeric`,60048),symbolNumber:z(`symbol-number`,60048),symbolStructure:z(`symbol-structure`,60049),symbolStruct:z(`symbol-struct`,60049),symbolParameter:z(`symbol-parameter`,60050),symbolTypeParameter:z(`symbol-type-parameter`,60050),symbolKey:z(`symbol-key`,60051),symbolText:z(`symbol-text`,60051),symbolReference:z(`symbol-reference`,60052),goToFile:z(`go-to-file`,60052),symbolEnum:z(`symbol-enum`,60053),symbolValue:z(`symbol-value`,60053),symbolRuler:z(`symbol-ruler`,60054),symbolUnit:z(`symbol-unit`,60054),activateBreakpoints:z(`activate-breakpoints`,60055),archive:z(`archive`,60056),arrowBoth:z(`arrow-both`,60057),arrowDown:z(`arrow-down`,60058),arrowLeft:z(`arrow-left`,60059),arrowRight:z(`arrow-right`,60060),arrowSmallDown:z(`arrow-small-down`,60061),arrowSmallLeft:z(`arrow-small-left`,60062),arrowSmallRight:z(`arrow-small-right`,60063),arrowSmallUp:z(`arrow-small-up`,60064),arrowUp:z(`arrow-up`,60065),bell:z(`bell`,60066),bold:z(`bold`,60067),book:z(`book`,60068),bookmark:z(`bookmark`,60069),debugBreakpointConditionalUnverified:z(`debug-breakpoint-conditional-unverified`,60070),debugBreakpointConditional:z(`debug-breakpoint-conditional`,60071),debugBreakpointConditionalDisabled:z(`debug-breakpoint-conditional-disabled`,60071),debugBreakpointDataUnverified:z(`debug-breakpoint-data-unverified`,60072),debugBreakpointData:z(`debug-breakpoint-data`,60073),debugBreakpointDataDisabled:z(`debug-breakpoint-data-disabled`,60073),debugBreakpointLogUnverified:z(`debug-breakpoint-log-unverified`,60074),debugBreakpointLog:z(`debug-breakpoint-log`,60075),debugBreakpointLogDisabled:z(`debug-breakpoint-log-disabled`,60075),briefcase:z(`briefcase`,60076),broadcast:z(`broadcast`,60077),browser:z(`browser`,60078),bug:z(`bug`,60079),calendar:z(`calendar`,60080),caseSensitive:z(`case-sensitive`,60081),check:z(`check`,60082),checklist:z(`checklist`,60083),chevronDown:z(`chevron-down`,60084),chevronLeft:z(`chevron-left`,60085),chevronRight:z(`chevron-right`,60086),chevronUp:z(`chevron-up`,60087),chromeClose:z(`chrome-close`,60088),chromeMaximize:z(`chrome-maximize`,60089),chromeMinimize:z(`chrome-minimize`,60090),chromeRestore:z(`chrome-restore`,60091),circleOutline:z(`circle-outline`,60092),circle:z(`circle`,60092),debugBreakpointUnverified:z(`debug-breakpoint-unverified`,60092),terminalDecorationIncomplete:z(`terminal-decoration-incomplete`,60092),circleSlash:z(`circle-slash`,60093),circuitBoard:z(`circuit-board`,60094),clearAll:z(`clear-all`,60095),clippy:z(`clippy`,60096),closeAll:z(`close-all`,60097),cloudDownload:z(`cloud-download`,60098),cloudUpload:z(`cloud-upload`,60099),code:z(`code`,60100),collapseAll:z(`collapse-all`,60101),colorMode:z(`color-mode`,60102),commentDiscussion:z(`comment-discussion`,60103),creditCard:z(`credit-card`,60105),dash:z(`dash`,60108),dashboard:z(`dashboard`,60109),database:z(`database`,60110),debugContinue:z(`debug-continue`,60111),debugDisconnect:z(`debug-disconnect`,60112),debugPause:z(`debug-pause`,60113),debugRestart:z(`debug-restart`,60114),debugStart:z(`debug-start`,60115),debugStepInto:z(`debug-step-into`,60116),debugStepOut:z(`debug-step-out`,60117),debugStepOver:z(`debug-step-over`,60118),debugStop:z(`debug-stop`,60119),debug:z(`debug`,60120),deviceCameraVideo:z(`device-camera-video`,60121),deviceCamera:z(`device-camera`,60122),deviceMobile:z(`device-mobile`,60123),diffAdded:z(`diff-added`,60124),diffIgnored:z(`diff-ignored`,60125),diffModified:z(`diff-modified`,60126),diffRemoved:z(`diff-removed`,60127),diffRenamed:z(`diff-renamed`,60128),diff:z(`diff`,60129),diffSidebyside:z(`diff-sidebyside`,60129),discard:z(`discard`,60130),editorLayout:z(`editor-layout`,60131),emptyWindow:z(`empty-window`,60132),exclude:z(`exclude`,60133),extensions:z(`extensions`,60134),eyeClosed:z(`eye-closed`,60135),fileBinary:z(`file-binary`,60136),fileCode:z(`file-code`,60137),fileMedia:z(`file-media`,60138),filePdf:z(`file-pdf`,60139),fileSubmodule:z(`file-submodule`,60140),fileSymlinkDirectory:z(`file-symlink-directory`,60141),fileSymlinkFile:z(`file-symlink-file`,60142),fileZip:z(`file-zip`,60143),files:z(`files`,60144),filter:z(`filter`,60145),flame:z(`flame`,60146),foldDown:z(`fold-down`,60147),foldUp:z(`fold-up`,60148),fold:z(`fold`,60149),folderActive:z(`folder-active`,60150),folderOpened:z(`folder-opened`,60151),gear:z(`gear`,60152),gift:z(`gift`,60153),gistSecret:z(`gist-secret`,60154),gist:z(`gist`,60155),gitCommit:z(`git-commit`,60156),gitCompare:z(`git-compare`,60157),compareChanges:z(`compare-changes`,60157),gitMerge:z(`git-merge`,60158),githubAction:z(`github-action`,60159),githubAlt:z(`github-alt`,60160),globe:z(`globe`,60161),grabber:z(`grabber`,60162),graph:z(`graph`,60163),gripper:z(`gripper`,60164),heart:z(`heart`,60165),home:z(`home`,60166),horizontalRule:z(`horizontal-rule`,60167),hubot:z(`hubot`,60168),inbox:z(`inbox`,60169),issueReopened:z(`issue-reopened`,60171),issues:z(`issues`,60172),italic:z(`italic`,60173),jersey:z(`jersey`,60174),json:z(`json`,60175),kebabVertical:z(`kebab-vertical`,60176),key:z(`key`,60177),law:z(`law`,60178),lightbulbAutofix:z(`lightbulb-autofix`,60179),linkExternal:z(`link-external`,60180),link:z(`link`,60181),listOrdered:z(`list-ordered`,60182),listUnordered:z(`list-unordered`,60183),liveShare:z(`live-share`,60184),loading:z(`loading`,60185),location:z(`location`,60186),mailRead:z(`mail-read`,60187),mail:z(`mail`,60188),markdown:z(`markdown`,60189),megaphone:z(`megaphone`,60190),mention:z(`mention`,60191),milestone:z(`milestone`,60192),gitPullRequestMilestone:z(`git-pull-request-milestone`,60192),mortarBoard:z(`mortar-board`,60193),move:z(`move`,60194),multipleWindows:z(`multiple-windows`,60195),mute:z(`mute`,60196),noNewline:z(`no-newline`,60197),note:z(`note`,60198),octoface:z(`octoface`,60199),openPreview:z(`open-preview`,60200),package:z(`package`,60201),paintcan:z(`paintcan`,60202),pin:z(`pin`,60203),play:z(`play`,60204),run:z(`run`,60204),plug:z(`plug`,60205),preserveCase:z(`preserve-case`,60206),preview:z(`preview`,60207),project:z(`project`,60208),pulse:z(`pulse`,60209),question:z(`question`,60210),quote:z(`quote`,60211),radioTower:z(`radio-tower`,60212),reactions:z(`reactions`,60213),references:z(`references`,60214),refresh:z(`refresh`,60215),regex:z(`regex`,60216),remoteExplorer:z(`remote-explorer`,60217),remote:z(`remote`,60218),remove:z(`remove`,60219),replaceAll:z(`replace-all`,60220),replace:z(`replace`,60221),repoClone:z(`repo-clone`,60222),repoForcePush:z(`repo-force-push`,60223),repoPull:z(`repo-pull`,60224),repoPush:z(`repo-push`,60225),report:z(`report`,60226),requestChanges:z(`request-changes`,60227),rocket:z(`rocket`,60228),rootFolderOpened:z(`root-folder-opened`,60229),rootFolder:z(`root-folder`,60230),rss:z(`rss`,60231),ruby:z(`ruby`,60232),saveAll:z(`save-all`,60233),saveAs:z(`save-as`,60234),save:z(`save`,60235),screenFull:z(`screen-full`,60236),screenNormal:z(`screen-normal`,60237),searchStop:z(`search-stop`,60238),server:z(`server`,60240),settingsGear:z(`settings-gear`,60241),settings:z(`settings`,60242),shield:z(`shield`,60243),smiley:z(`smiley`,60244),sortPrecedence:z(`sort-precedence`,60245),splitHorizontal:z(`split-horizontal`,60246),splitVertical:z(`split-vertical`,60247),squirrel:z(`squirrel`,60248),starFull:z(`star-full`,60249),starHalf:z(`star-half`,60250),symbolClass:z(`symbol-class`,60251),symbolColor:z(`symbol-color`,60252),symbolConstant:z(`symbol-constant`,60253),symbolEnumMember:z(`symbol-enum-member`,60254),symbolField:z(`symbol-field`,60255),symbolFile:z(`symbol-file`,60256),symbolInterface:z(`symbol-interface`,60257),symbolKeyword:z(`symbol-keyword`,60258),symbolMisc:z(`symbol-misc`,60259),symbolOperator:z(`symbol-operator`,60260),symbolProperty:z(`symbol-property`,60261),wrench:z(`wrench`,60261),wrenchSubaction:z(`wrench-subaction`,60261),symbolSnippet:z(`symbol-snippet`,60262),tasklist:z(`tasklist`,60263),telescope:z(`telescope`,60264),textSize:z(`text-size`,60265),threeBars:z(`three-bars`,60266),thumbsdown:z(`thumbsdown`,60267),thumbsup:z(`thumbsup`,60268),tools:z(`tools`,60269),triangleDown:z(`triangle-down`,60270),triangleLeft:z(`triangle-left`,60271),triangleRight:z(`triangle-right`,60272),triangleUp:z(`triangle-up`,60273),twitter:z(`twitter`,60274),unfold:z(`unfold`,60275),unlock:z(`unlock`,60276),unmute:z(`unmute`,60277),unverified:z(`unverified`,60278),verified:z(`verified`,60279),versions:z(`versions`,60280),vmActive:z(`vm-active`,60281),vmOutline:z(`vm-outline`,60282),vmRunning:z(`vm-running`,60283),watch:z(`watch`,60284),whitespace:z(`whitespace`,60285),wholeWord:z(`whole-word`,60286),window:z(`window`,60287),wordWrap:z(`word-wrap`,60288),zoomIn:z(`zoom-in`,60289),zoomOut:z(`zoom-out`,60290),listFilter:z(`list-filter`,60291),listFlat:z(`list-flat`,60292),listSelection:z(`list-selection`,60293),selection:z(`selection`,60293),listTree:z(`list-tree`,60294),debugBreakpointFunctionUnverified:z(`debug-breakpoint-function-unverified`,60295),debugBreakpointFunction:z(`debug-breakpoint-function`,60296),debugBreakpointFunctionDisabled:z(`debug-breakpoint-function-disabled`,60296),debugStackframeActive:z(`debug-stackframe-active`,60297),circleSmallFilled:z(`circle-small-filled`,60298),debugStackframeDot:z(`debug-stackframe-dot`,60298),terminalDecorationMark:z(`terminal-decoration-mark`,60298),debugStackframe:z(`debug-stackframe`,60299),debugStackframeFocused:z(`debug-stackframe-focused`,60299),debugBreakpointUnsupported:z(`debug-breakpoint-unsupported`,60300),symbolString:z(`symbol-string`,60301),debugReverseContinue:z(`debug-reverse-continue`,60302),debugStepBack:z(`debug-step-back`,60303),debugRestartFrame:z(`debug-restart-frame`,60304),debugAlt:z(`debug-alt`,60305),callIncoming:z(`call-incoming`,60306),callOutgoing:z(`call-outgoing`,60307),menu:z(`menu`,60308),expandAll:z(`expand-all`,60309),feedback:z(`feedback`,60310),gitPullRequestReviewer:z(`git-pull-request-reviewer`,60310),groupByRefType:z(`group-by-ref-type`,60311),ungroupByRefType:z(`ungroup-by-ref-type`,60312),account:z(`account`,60313),gitPullRequestAssignee:z(`git-pull-request-assignee`,60313),bellDot:z(`bell-dot`,60314),debugConsole:z(`debug-console`,60315),library:z(`library`,60316),output:z(`output`,60317),runAll:z(`run-all`,60318),syncIgnored:z(`sync-ignored`,60319),pinned:z(`pinned`,60320),githubInverted:z(`github-inverted`,60321),serverProcess:z(`server-process`,60322),serverEnvironment:z(`server-environment`,60323),pass:z(`pass`,60324),issueClosed:z(`issue-closed`,60324),stopCircle:z(`stop-circle`,60325),playCircle:z(`play-circle`,60326),record:z(`record`,60327),debugAltSmall:z(`debug-alt-small`,60328),vmConnect:z(`vm-connect`,60329),cloud:z(`cloud`,60330),merge:z(`merge`,60331),export:z(`export`,60332),graphLeft:z(`graph-left`,60333),magnet:z(`magnet`,60334),notebook:z(`notebook`,60335),redo:z(`redo`,60336),checkAll:z(`check-all`,60337),pinnedDirty:z(`pinned-dirty`,60338),passFilled:z(`pass-filled`,60339),circleLargeFilled:z(`circle-large-filled`,60340),circleLarge:z(`circle-large`,60341),circleLargeOutline:z(`circle-large-outline`,60341),combine:z(`combine`,60342),gather:z(`gather`,60342),table:z(`table`,60343),variableGroup:z(`variable-group`,60344),typeHierarchy:z(`type-hierarchy`,60345),typeHierarchySub:z(`type-hierarchy-sub`,60346),typeHierarchySuper:z(`type-hierarchy-super`,60347),gitPullRequestCreate:z(`git-pull-request-create`,60348),runAbove:z(`run-above`,60349),runBelow:z(`run-below`,60350),notebookTemplate:z(`notebook-template`,60351),debugRerun:z(`debug-rerun`,60352),workspaceTrusted:z(`workspace-trusted`,60353),workspaceUntrusted:z(`workspace-untrusted`,60354),workspaceUnknown:z(`workspace-unknown`,60355),terminalCmd:z(`terminal-cmd`,60356),terminalDebian:z(`terminal-debian`,60357),terminalLinux:z(`terminal-linux`,60358),terminalPowershell:z(`terminal-powershell`,60359),terminalTmux:z(`terminal-tmux`,60360),terminalUbuntu:z(`terminal-ubuntu`,60361),terminalBash:z(`terminal-bash`,60362),arrowSwap:z(`arrow-swap`,60363),copy:z(`copy`,60364),personAdd:z(`person-add`,60365),filterFilled:z(`filter-filled`,60366),wand:z(`wand`,60367),debugLineByLine:z(`debug-line-by-line`,60368),inspect:z(`inspect`,60369),layers:z(`layers`,60370),layersDot:z(`layers-dot`,60371),layersActive:z(`layers-active`,60372),compass:z(`compass`,60373),compassDot:z(`compass-dot`,60374),compassActive:z(`compass-active`,60375),azure:z(`azure`,60376),issueDraft:z(`issue-draft`,60377),gitPullRequestClosed:z(`git-pull-request-closed`,60378),gitPullRequestDraft:z(`git-pull-request-draft`,60379),debugAll:z(`debug-all`,60380),debugCoverage:z(`debug-coverage`,60381),runErrors:z(`run-errors`,60382),folderLibrary:z(`folder-library`,60383),debugContinueSmall:z(`debug-continue-small`,60384),beakerStop:z(`beaker-stop`,60385),graphLine:z(`graph-line`,60386),graphScatter:z(`graph-scatter`,60387),pieChart:z(`pie-chart`,60388),bracket:z(`bracket`,60175),bracketDot:z(`bracket-dot`,60389),bracketError:z(`bracket-error`,60390),lockSmall:z(`lock-small`,60391),azureDevops:z(`azure-devops`,60392),verifiedFilled:z(`verified-filled`,60393),newline:z(`newline`,60394),layout:z(`layout`,60395),layoutActivitybarLeft:z(`layout-activitybar-left`,60396),layoutActivitybarRight:z(`layout-activitybar-right`,60397),layoutPanelLeft:z(`layout-panel-left`,60398),layoutPanelCenter:z(`layout-panel-center`,60399),layoutPanelJustify:z(`layout-panel-justify`,60400),layoutPanelRight:z(`layout-panel-right`,60401),layoutPanel:z(`layout-panel`,60402),layoutSidebarLeft:z(`layout-sidebar-left`,60403),layoutSidebarRight:z(`layout-sidebar-right`,60404),layoutStatusbar:z(`layout-statusbar`,60405),layoutMenubar:z(`layout-menubar`,60406),layoutCentered:z(`layout-centered`,60407),target:z(`target`,60408),indent:z(`indent`,60409),recordSmall:z(`record-small`,60410),errorSmall:z(`error-small`,60411),terminalDecorationError:z(`terminal-decoration-error`,60411),arrowCircleDown:z(`arrow-circle-down`,60412),arrowCircleLeft:z(`arrow-circle-left`,60413),arrowCircleRight:z(`arrow-circle-right`,60414),arrowCircleUp:z(`arrow-circle-up`,60415),layoutSidebarRightOff:z(`layout-sidebar-right-off`,60416),layoutPanelOff:z(`layout-panel-off`,60417),layoutSidebarLeftOff:z(`layout-sidebar-left-off`,60418),blank:z(`blank`,60419),heartFilled:z(`heart-filled`,60420),map:z(`map`,60421),mapHorizontal:z(`map-horizontal`,60421),foldHorizontal:z(`fold-horizontal`,60421),mapFilled:z(`map-filled`,60422),mapHorizontalFilled:z(`map-horizontal-filled`,60422),foldHorizontalFilled:z(`fold-horizontal-filled`,60422),circleSmall:z(`circle-small`,60423),bellSlash:z(`bell-slash`,60424),bellSlashDot:z(`bell-slash-dot`,60425),commentUnresolved:z(`comment-unresolved`,60426),gitPullRequestGoToChanges:z(`git-pull-request-go-to-changes`,60427),gitPullRequestNewChanges:z(`git-pull-request-new-changes`,60428),searchFuzzy:z(`search-fuzzy`,60429),commentDraft:z(`comment-draft`,60430),send:z(`send`,60431),sparkle:z(`sparkle`,60432),insert:z(`insert`,60433),mic:z(`mic`,60434),thumbsdownFilled:z(`thumbsdown-filled`,60435),thumbsupFilled:z(`thumbsup-filled`,60436),coffee:z(`coffee`,60437),snake:z(`snake`,60438),game:z(`game`,60439),vr:z(`vr`,60440),chip:z(`chip`,60441),piano:z(`piano`,60442),music:z(`music`,60443),micFilled:z(`mic-filled`,60444),repoFetch:z(`repo-fetch`,60445),copilot:z(`copilot`,60446),lightbulbSparkle:z(`lightbulb-sparkle`,60447),robot:z(`robot`,60448),sparkleFilled:z(`sparkle-filled`,60449),diffSingle:z(`diff-single`,60450),diffMultiple:z(`diff-multiple`,60451),surroundWith:z(`surround-with`,60452),share:z(`share`,60453),gitStash:z(`git-stash`,60454),gitStashApply:z(`git-stash-apply`,60455),gitStashPop:z(`git-stash-pop`,60456),vscode:z(`vscode`,60457),vscodeInsiders:z(`vscode-insiders`,60458),codeOss:z(`code-oss`,60459),runCoverage:z(`run-coverage`,60460),runAllCoverage:z(`run-all-coverage`,60461),coverage:z(`coverage`,60462),githubProject:z(`github-project`,60463),mapVertical:z(`map-vertical`,60464),foldVertical:z(`fold-vertical`,60464),mapVerticalFilled:z(`map-vertical-filled`,60465),foldVerticalFilled:z(`fold-vertical-filled`,60465),goToSearch:z(`go-to-search`,60466),percentage:z(`percentage`,60467),sortPercentage:z(`sort-percentage`,60467),attach:z(`attach`,60468),goToEditingSession:z(`go-to-editing-session`,60469),editSession:z(`edit-session`,60470),codeReview:z(`code-review`,60471),copilotWarning:z(`copilot-warning`,60472),python:z(`python`,60473),copilotLarge:z(`copilot-large`,60474),copilotWarningLarge:z(`copilot-warning-large`,60475),keyboardTab:z(`keyboard-tab`,60476),copilotBlocked:z(`copilot-blocked`,60477),copilotNotConnected:z(`copilot-not-connected`,60478),flag:z(`flag`,60479),lightbulbEmpty:z(`lightbulb-empty`,60480),symbolMethodArrow:z(`symbol-method-arrow`,60481),copilotUnavailable:z(`copilot-unavailable`,60482),repoPinned:z(`repo-pinned`,60483),keyboardTabAbove:z(`keyboard-tab-above`,60484),keyboardTabBelow:z(`keyboard-tab-below`,60485),gitPullRequestDone:z(`git-pull-request-done`,60486),mcp:z(`mcp`,60487),extensionsLarge:z(`extensions-large`,60488),layoutPanelDock:z(`layout-panel-dock`,60489),layoutSidebarLeftDock:z(`layout-sidebar-left-dock`,60490),layoutSidebarRightDock:z(`layout-sidebar-right-dock`,60491),copilotInProgress:z(`copilot-in-progress`,60492),copilotError:z(`copilot-error`,60493),copilotSuccess:z(`copilot-success`,60494),chatSparkle:z(`chat-sparkle`,60495),searchSparkle:z(`search-sparkle`,60496),editSparkle:z(`edit-sparkle`,60497),copilotSnooze:z(`copilot-snooze`,60498),sendToRemoteAgent:z(`send-to-remote-agent`,60499),commentDiscussionSparkle:z(`comment-discussion-sparkle`,60500),chatSparkleWarning:z(`chat-sparkle-warning`,60501),chatSparkleError:z(`chat-sparkle-error`,60502)},Kl={dialogError:z(`dialog-error`,`error`),dialogWarning:z(`dialog-warning`,`warning`),dialogInfo:z(`dialog-info`,`info`),dialogClose:z(`dialog-close`,`close`),treeItemExpanded:z(`tree-item-expanded`,`chevron-down`),treeFilterOnTypeOn:z(`tree-filter-on-type-on`,`list-filter`),treeFilterOnTypeOff:z(`tree-filter-on-type-off`,`list-selection`),treeFilterClear:z(`tree-filter-clear`,`close`),treeItemLoading:z(`tree-item-loading`,`loading`),menuSelection:z(`menu-selection`,`check`),menuSubmenu:z(`menu-submenu`,`chevron-right`),menuBarMore:z(`menubar-more`,`more`),scrollbarButtonLeft:z(`scrollbar-button-left`,`triangle-left`),scrollbarButtonRight:z(`scrollbar-button-right`,`triangle-right`),scrollbarButtonUp:z(`scrollbar-button-up`,`triangle-up`),scrollbarButtonDown:z(`scrollbar-button-down`,`triangle-down`),toolBarMore:z(`toolbar-more`,`more`),quickInputBack:z(`quick-input-back`,`arrow-left`),dropDownButton:z(`drop-down-button`,60084),symbolCustomColor:z(`symbol-customcolor`,60252),exportIcon:z(`export`,60332),workspaceUnspecified:z(`workspace-unspecified`,60355),newLine:z(`newline`,60394),thumbsDownFilled:z(`thumbsdown-filled`,60435),thumbsUpFilled:z(`thumbsup-filled`,60436),gitFetch:z(`git-fetch`,60445),lightbulbSparkleAutofix:z(`lightbulb-sparkle-autofix`,60447),debugBreakpointPending:z(`debug-breakpoint-pending`,60377)},B={...Gl,...Kl},ql;(function(e){function t(e){return!!e&&typeof e==`object`&&typeof e.id==`string`}e.isThemeColor=t})(ql||={});var Jl;(function(e){e.iconNameSegment=`[A-Za-z0-9]+`,e.iconNameExpression=`[A-Za-z0-9-]+`,e.iconModifierExpression=`~[A-Za-z]+`,e.iconNameCharacter=`[A-Za-z0-9~-]`;let t=RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){let r=t.exec(e.id);if(!r)return n(B.error);let[,i,a]=r,o=[`codicon`,`codicon-`+i];return a&&o.push(`codicon-modifier-`+a.substring(1)),o}e.asClassNameArray=n;function r(e){return n(e).join(` `)}e.asClassName=r;function i(e){return`.`+n(e).join(`.`)}e.asCSSSelector=i;function a(e){return!!e&&typeof e==`object`&&typeof e.id==`string`&&(e.color===void 0||ql.isThemeColor(e.color))}e.isThemeIcon=a;let o=RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function s(e){let t=o.exec(e);if(!t)return;let[,n]=t;return{id:n}}e.fromString=s;function c(e){return{id:e}}e.fromId=c;function l(e,t){let n=e.id,r=n.lastIndexOf(`~`);return r!==-1&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}}e.modify=l;function u(e){let t=e.id.lastIndexOf(`~`);if(t!==-1)return e.id.substring(t+1)}e.getModifier=u;function d(e,t){return e.id===t.id&&e.color?.id===t.color?.id}e.isEqual=d})(Jl||={});var Yl=Nl(`commandService`),Xl=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new A,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw Error(`invalid command`);if(typeof e==`string`){if(!t)throw Error(`invalid command`);return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){let t=[];for(let n of e.metadata.args)t.push(n.constraint);let n=e.handler;e.handler=function(e,...r){return Oe(r,t),n(e,...r)}}let{id:n}=e,r=this._commands.get(n);r||(r=new an,this._commands.set(n,r));let i=r.unshift(e),a=E(()=>{i(),this._commands.get(n)?.isEmpty()&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),Yt(a)}registerCommandAlias(e,t){return Xl.registerCommand(e,(e,...n)=>e.get(Yl).executeCommand(t,...n))}getCommand(e){let t=this._commands.get(e);if(!(!t||t.isEmpty()))return Wt.first(t)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let n=this.getCommand(t);n&&e.set(t,n)}return e}};Xl.registerCommand(`noop`,()=>{});function Zl(...e){switch(e.length){case 1:return a(1676,`Did you mean {0}?`,e[0]);case 2:return a(1677,`Did you mean {0} or {1}?`,e[0],e[1]);case 3:return a(1678,`Did you mean {0}, {1} or {2}?`,e[0],e[1],e[2]);default:return}}var Ql=a(1679,`Did you forget to open or close the quote?`),$l=a(1680,`Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.`),eu=class e{constructor(){this._input=``,this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return`(`;case 1:return`)`;case 2:return`!`;case 3:return e.isTripleEq?`===`:`==`;case 4:return e.isTripleEq?`!==`:`!=`;case 5:return`<`;case 6:return`<=`;case 7:return`>=`;case 8:return`>=`;case 9:return`=~`;case 10:return e.lexeme;case 11:return`true`;case 12:return`false`;case 13:return`in`;case 14:return`not`;case 15:return`&&`;case 16:return`||`;case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return`EOF`;default:throw se(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set([`i`,`g`,`s`,`m`,`y`,`u`].map(e=>e.charCodeAt(0)))}static{this._keywords=new Map([[`not`,14],[`in`,13],[`false`,12],[`true`,11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(Zl(`==`,`=~`));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Zl(`&&`));break;case 124:this._match(124)?this._addToken(16):this._error(Zl(`||`));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;let t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;let n=this._input.substring(this._start,this._current),r=e._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(Ql);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let t=this._current,n=!1,r=!1;for(;;){if(t>=this._input.length){this._current=t,this._error($l);return}let e=this._input.charCodeAt(t);if(n)n=!1;else if(e===47&&!r){t++;break}else e===91?r=!0:e===92?n=!0:e===93&&(r=!1);t++}for(;t=this._input.length}},tu=new Map;tu.set(`false`,!1),tu.set(`true`,!0),tu.set(`isMac`,Ge),tu.set(`isLinux`,Ke),tu.set(`isWindows`,We),tu.set(`isWeb`,Je),tu.set(`isMacNative`,Ge&&!Je),tu.set(`isEdge`,ut),tu.set(`isFirefox`,ct),tu.set(`isChrome`,st),tu.set(`isSafari`,lt);var nu=Object.prototype.hasOwnProperty,ru={regexParsingWithErrorRecovery:!0},iu=a(1657,`Empty context key expression`),au=a(1658,`Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.`),ou=a(1659,`'in' after 'not'.`),su=a(1660,`closing parenthesis ')'`),cu=a(1661,`Unexpected token`),lu=a(1662,`Did you forget to put && or || before the token?`),uu=a(1663,`Unexpected end of expression`),du=a(1664,`Did you forget to put a context key?`),fu=class e{static{this._parseError=Error()}constructor(e=ru){this._config=e,this._scanner=new eu,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(t){if(t===``){this._parsingErrors.push({message:iu,offset:0,lexeme:``,additionalInfo:au});return}this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let t=this._peek(),n=t.type===17?lu:void 0;throw this._parsingErrors.push({message:cu,offset:t.offset,lexeme:eu.getLexeme(t),additionalInfo:n}),e._parseError}return t}catch(t){if(t!==e._parseError)throw t;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:pu.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:pu.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),gu.INSTANCE;case 12:return this._advance(),_u.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,su),e?.negate()}case 17:return this._advance(),Cu.create(e.lexeme);default:throw this._errExpectedButGot(`KEY | true | false | '(' expression ')'`,e)}}return this._primary()}_primary(){let t=this._peek();switch(t.type){case 11:return this._advance(),pu.true();case 12:return this._advance(),pu.false();case 0:{this._advance();let e=this._expr();return this._consume(1,su),e}case 17:{let e=t.lexeme;if(this._advance(),this._matchOne(9)){let t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),t.type!==10)throw this._errExpectedButGot(`REGEX`,t);let n=t.lexeme,r=n.lastIndexOf(`/`),i=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1)),a;try{a=new RegExp(n.substring(1,r),i)}catch{throw this._errExpectedButGot(`REGEX`,t)}return ku.create(e,a)}switch(t.type){case 10:case 19:{let n=[t.lexeme];this._advance();let r=this._peek(),i=0;for(let e=0;e=0){let a=n.slice(e+1,i),o=n[i+1]===`i`?`i`:``;try{r=new RegExp(a,o)}catch{throw this._errExpectedButGot(`REGEX`,t)}}}if(r===null)throw this._errExpectedButGot(`REGEX`,t);return ku.create(e,r)}default:throw this._errExpectedButGot(`REGEX`,this._peek())}}if(this._matchOne(14)){this._consume(13,ou);let t=this._value();return pu.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();let t=this._value();if(this._previous().type===18)return pu.equals(e,t);switch(t){case`true`:return pu.has(e);case`false`:return pu.not(e);default:return pu.equals(e,t)}}case 4:{this._advance();let t=this._value();if(this._previous().type===18)return pu.notEquals(e,t);switch(t){case`true`:return pu.not(e);case`false`:return pu.has(e);default:return pu.notEquals(e,t)}}case 5:return this._advance(),Du.create(e,this._value());case 6:return this._advance(),Ou.create(e,this._value());case 7:return this._advance(),Tu.create(e,this._value());case 8:return this._advance(),Eu.create(e,this._value());case 13:return this._advance(),pu.in(e,this._value());default:return pu.has(e)}}case 20:throw this._parsingErrors.push({message:uu,offset:t.offset,lexeme:``,additionalInfo:du}),e._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),`true`;case 12:return this._advance(),`false`;case 13:return this._advance(),`in`;default:return``}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,``)}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(t,n,r){let i=a(1665,`Expected: {0} Received: '{1}'.`,t,eu.getLexeme(n)),o=n.offset,s=eu.getLexeme(n);return this._parsingErrors.push({message:i,offset:o,lexeme:s,additionalInfo:r}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},pu=class{static false(){return gu.INSTANCE}static true(){return _u.INSTANCE}static has(e){return vu.create(e)}static equals(e,t){return yu.create(e,t)}static notEquals(e,t){return Su.create(e,t)}static regex(e,t){return ku.create(e,t)}static in(e,t){return bu.create(e,t)}static notIn(e,t){return xu.create(e,t)}static not(e){return Cu.create(e)}static and(...e){return Mu.create(e,null,!0)}static or(...e){return Nu.create(e,null,!0)}static{this._parser=new fu({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(e!=null)return this._parser.parse(e)}};function mu(e,t){let n=e?e.substituteConstants():void 0,r=t?t.substituteConstants():void 0;return!n&&!r?!0:!n||!r?!1:n.equals(r)}function hu(e,t){return e.cmp(t)}var gu=class e{static{this.INSTANCE=new e}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return`false`}keys(){return[]}negate(){return _u.INSTANCE}},_u=class e{static{this.INSTANCE=new e}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return`true`}keys(){return[]}negate(){return gu.INSTANCE}},vu=class e{static create(t,n=null){let r=tu.get(t);return typeof r==`boolean`?r?_u.INSTANCE:gu.INSTANCE:new e(t,n)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type===this.type?Fu(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=tu.get(this.key);return typeof e==`boolean`?e?_u.INSTANCE:gu.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||=Cu.create(this.key,this),this.negated}},yu=class e{static create(t,n,r=null){if(typeof n==`boolean`)return n?vu.create(t,r):Cu.create(t,r);let i=tu.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?_u.INSTANCE:gu.INSTANCE:new e(t,n,r)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=tu.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?_u.INSTANCE:gu.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||=Su.create(this.key,this.value,this),this.negated}},bu=class e{static create(t,n){return new e(t,n)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type===this.type?Iu(this.key,this.valueKey,e.key,e.valueKey):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n==`string`&&typeof t==`object`&&t?nu.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||=xu.create(this.key,this.valueKey),this.negated}},xu=class e{static create(t,n){return new e(t,n)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=bu.create(e,t)}cmp(e){return e.type===this.type?this._negated.cmp(e._negated):this.type-e.type}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}},Su=class e{static create(t,n,r=null){if(typeof n==`boolean`)return n?Cu.create(t,r):vu.create(t,r);let i=tu.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?gu.INSTANCE:_u.INSTANCE:new e(t,n,r)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=tu.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?gu.INSTANCE:_u.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||=yu.create(this.key,this.value,this),this.negated}},Cu=class e{static create(t,n=null){let r=tu.get(t);return typeof r==`boolean`?r?gu.INSTANCE:_u.INSTANCE:new e(t,n)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type===this.type?Fu(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=tu.get(this.key);return typeof e==`boolean`?e?gu.INSTANCE:_u.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||=vu.create(this.key,this),this.negated}};function wu(e,t){if(typeof e==`string`){let t=parseFloat(e);isNaN(t)||(e=t)}return typeof e==`string`||typeof e==`number`?t(e):gu.INSTANCE}var Tu=class e{static create(t,n,r=null){return wu(n,n=>new e(t,n,r))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||=Ou.create(this.key,this.value,this),this.negated}},Eu=class e{static create(t,n,r=null){return wu(n,n=>new e(t,n,r))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||=Du.create(this.key,this.value,this),this.negated}},Du=class e{static create(t,n,r=null){return wu(n,n=>new e(t,n,r))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))new e(t,n,r))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type===this.type?Iu(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||=Tu.create(this.key,this.value,this),this.negated}},ku=class e{static create(t,n){return new e(t,n)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return tn)}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:`/invalid/`;return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||=Au.create(this),this.negated}},Au=class e{static create(t){return new e(t)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type===this.type?this._actual.cmp(e._actual):this.type-e.type}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}};function ju(e){let t=null;for(let n=0,r=e.length;ne.expr.length)return 1;for(let t=0,n=this.expr.length;t1;){let t=i[i.length-1];if(t.type!==9)break;i.pop();let n=i.pop(),a=i.length===0,o=Nu.create(t.expr.map(t=>e.create([t,n],null,r)),null,a);o&&(i.push(o),i.sort(hu))}if(i.length===1)return i[0];if(r){for(let e=0;ee.serialize()).join(` && `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=Nu.create(e,this,!0)}return this.negated}},Nu=class e{static create(t,n,r){return e._normalizeArr(t,n,r)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,n=this.expr.length;te.serialize()).join(` || `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){let n=t.shift(),r=t.shift(),i=[];for(let e of zu(n))for(let t of zu(r))i.push(Mu.create([e,t],null,!1));t.unshift(e.create(i,null,!1))}this.negated=e.create(t,this,!0)}return this.negated}},V=class e extends vu{static{this._info=[]}static all(){return e._info.values()}constructor(t,n,r){super(t,null),this._defaultValue=n,typeof r==`object`?e._info.push({...r,key:t}):r!==!0&&e._info.push({key:t,description:r,type:n==null?void 0:typeof n})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return yu.create(this.key,e)}},Pu=Nl(`contextKeyService`);function Fu(e,t){return et)}function Iu(e,t,n,r){return en?1:tr)}function Lu(e,t){if(e.type===0||t.type===1)return!0;if(e.type===9)return t.type===9&&Ru(e.expr,t.expr);if(t.type===9){for(let n of t.expr)if(Lu(e,n))return!0;return!1}if(e.type===6){if(t.type===6)return Ru(t.expr,e.expr);for(let n of e.expr)if(Lu(n,t))return!0;return!1}return e.equals(t)}function Ru(e,t){let n=0,r=0;for(;n{De(e.dispose)&&e.dispose()}),this.data.clear()}},Vu=new class e{constructor(){this._coreKeybindings=new an,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(rt===1){if(e&&e.win)return e.win}else if(rt===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(t){let n=e.bindToCurrentPlatform(t),r=new D;if(n&&n.primary){let e=Et(n.primary,rt);e&&r.add(this._registerDefaultKeybinding(e,t.id,t.args,t.weight,0,t.when))}if(n&&Array.isArray(n.secondary))for(let e=0,i=n.secondary.length;e{o(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Hu)),this._cachedMergedKeybindings.slice(0)}};Bu.add({EditorModes:`platform.keybindingsRegistry`}.EditorModes,Vu);function Hu(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}var Uu=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wu=function(e,t){return function(n,r){t(n,r,e)}},Gu;function Ku(e){return e.command!==void 0}function qu(e){return e.submenu!==void 0}var Ju=class e{static{this._instances=new Map}static{this.CommandPalette=new e(`CommandPalette`)}static{this.DebugBreakpointsContext=new e(`DebugBreakpointsContext`)}static{this.DebugCallStackContext=new e(`DebugCallStackContext`)}static{this.DebugConsoleContext=new e(`DebugConsoleContext`)}static{this.DebugVariablesContext=new e(`DebugVariablesContext`)}static{this.NotebookVariablesContext=new e(`NotebookVariablesContext`)}static{this.DebugHoverContext=new e(`DebugHoverContext`)}static{this.DebugWatchContext=new e(`DebugWatchContext`)}static{this.DebugToolBar=new e(`DebugToolBar`)}static{this.DebugToolBarStop=new e(`DebugToolBarStop`)}static{this.DebugDisassemblyContext=new e(`DebugDisassemblyContext`)}static{this.DebugCallStackToolbar=new e(`DebugCallStackToolbar`)}static{this.DebugCreateConfiguration=new e(`DebugCreateConfiguration`)}static{this.EditorContext=new e(`EditorContext`)}static{this.SimpleEditorContext=new e(`SimpleEditorContext`)}static{this.EditorContent=new e(`EditorContent`)}static{this.EditorLineNumberContext=new e(`EditorLineNumberContext`)}static{this.EditorContextCopy=new e(`EditorContextCopy`)}static{this.EditorContextPeek=new e(`EditorContextPeek`)}static{this.EditorContextShare=new e(`EditorContextShare`)}static{this.EditorTitle=new e(`EditorTitle`)}static{this.CompactWindowEditorTitle=new e(`CompactWindowEditorTitle`)}static{this.EditorTitleRun=new e(`EditorTitleRun`)}static{this.EditorTitleContext=new e(`EditorTitleContext`)}static{this.EditorTitleContextShare=new e(`EditorTitleContextShare`)}static{this.EmptyEditorGroup=new e(`EmptyEditorGroup`)}static{this.EmptyEditorGroupContext=new e(`EmptyEditorGroupContext`)}static{this.EditorTabsBarContext=new e(`EditorTabsBarContext`)}static{this.EditorTabsBarShowTabsSubmenu=new e(`EditorTabsBarShowTabsSubmenu`)}static{this.EditorTabsBarShowTabsZenModeSubmenu=new e(`EditorTabsBarShowTabsZenModeSubmenu`)}static{this.EditorActionsPositionSubmenu=new e(`EditorActionsPositionSubmenu`)}static{this.EditorSplitMoveSubmenu=new e(`EditorSplitMoveSubmenu`)}static{this.ExplorerContext=new e(`ExplorerContext`)}static{this.ExplorerContextShare=new e(`ExplorerContextShare`)}static{this.ExtensionContext=new e(`ExtensionContext`)}static{this.ExtensionEditorContextMenu=new e(`ExtensionEditorContextMenu`)}static{this.GlobalActivity=new e(`GlobalActivity`)}static{this.CommandCenter=new e(`CommandCenter`)}static{this.CommandCenterCenter=new e(`CommandCenterCenter`)}static{this.LayoutControlMenuSubmenu=new e(`LayoutControlMenuSubmenu`)}static{this.LayoutControlMenu=new e(`LayoutControlMenu`)}static{this.MenubarMainMenu=new e(`MenubarMainMenu`)}static{this.MenubarAppearanceMenu=new e(`MenubarAppearanceMenu`)}static{this.MenubarDebugMenu=new e(`MenubarDebugMenu`)}static{this.MenubarEditMenu=new e(`MenubarEditMenu`)}static{this.MenubarCopy=new e(`MenubarCopy`)}static{this.MenubarFileMenu=new e(`MenubarFileMenu`)}static{this.MenubarGoMenu=new e(`MenubarGoMenu`)}static{this.MenubarHelpMenu=new e(`MenubarHelpMenu`)}static{this.MenubarLayoutMenu=new e(`MenubarLayoutMenu`)}static{this.MenubarNewBreakpointMenu=new e(`MenubarNewBreakpointMenu`)}static{this.PanelAlignmentMenu=new e(`PanelAlignmentMenu`)}static{this.PanelPositionMenu=new e(`PanelPositionMenu`)}static{this.ActivityBarPositionMenu=new e(`ActivityBarPositionMenu`)}static{this.MenubarPreferencesMenu=new e(`MenubarPreferencesMenu`)}static{this.MenubarRecentMenu=new e(`MenubarRecentMenu`)}static{this.MenubarSelectionMenu=new e(`MenubarSelectionMenu`)}static{this.MenubarShare=new e(`MenubarShare`)}static{this.MenubarSwitchEditorMenu=new e(`MenubarSwitchEditorMenu`)}static{this.MenubarSwitchGroupMenu=new e(`MenubarSwitchGroupMenu`)}static{this.MenubarTerminalMenu=new e(`MenubarTerminalMenu`)}static{this.MenubarTerminalSuggestStatusMenu=new e(`MenubarTerminalSuggestStatusMenu`)}static{this.MenubarViewMenu=new e(`MenubarViewMenu`)}static{this.MenubarHomeMenu=new e(`MenubarHomeMenu`)}static{this.OpenEditorsContext=new e(`OpenEditorsContext`)}static{this.OpenEditorsContextShare=new e(`OpenEditorsContextShare`)}static{this.ProblemsPanelContext=new e(`ProblemsPanelContext`)}static{this.SCMInputBox=new e(`SCMInputBox`)}static{this.SCMChangeContext=new e(`SCMChangeContext`)}static{this.SCMResourceContext=new e(`SCMResourceContext`)}static{this.SCMResourceContextShare=new e(`SCMResourceContextShare`)}static{this.SCMResourceFolderContext=new e(`SCMResourceFolderContext`)}static{this.SCMResourceGroupContext=new e(`SCMResourceGroupContext`)}static{this.SCMSourceControl=new e(`SCMSourceControl`)}static{this.SCMSourceControlInline=new e(`SCMSourceControlInline`)}static{this.SCMSourceControlTitle=new e(`SCMSourceControlTitle`)}static{this.SCMHistoryTitle=new e(`SCMHistoryTitle`)}static{this.SCMHistoryItemContext=new e(`SCMHistoryItemContext`)}static{this.SCMHistoryItemChangeContext=new e(`SCMHistoryItemChangeContext`)}static{this.SCMHistoryItemHover=new e(`SCMHistoryItemHover`)}static{this.SCMHistoryItemRefContext=new e(`SCMHistoryItemRefContext`)}static{this.SCMQuickDiffDecorations=new e(`SCMQuickDiffDecorations`)}static{this.SCMTitle=new e(`SCMTitle`)}static{this.SearchContext=new e(`SearchContext`)}static{this.SearchActionMenu=new e(`SearchActionContext`)}static{this.StatusBarWindowIndicatorMenu=new e(`StatusBarWindowIndicatorMenu`)}static{this.StatusBarRemoteIndicatorMenu=new e(`StatusBarRemoteIndicatorMenu`)}static{this.StickyScrollContext=new e(`StickyScrollContext`)}static{this.TestItem=new e(`TestItem`)}static{this.TestItemGutter=new e(`TestItemGutter`)}static{this.TestProfilesContext=new e(`TestProfilesContext`)}static{this.TestMessageContext=new e(`TestMessageContext`)}static{this.TestMessageContent=new e(`TestMessageContent`)}static{this.TestPeekElement=new e(`TestPeekElement`)}static{this.TestPeekTitle=new e(`TestPeekTitle`)}static{this.TestCallStack=new e(`TestCallStack`)}static{this.TestCoverageFilterItem=new e(`TestCoverageFilterItem`)}static{this.TouchBarContext=new e(`TouchBarContext`)}static{this.TitleBar=new e(`TitleBar`)}static{this.TitleBarContext=new e(`TitleBarContext`)}static{this.TitleBarTitleContext=new e(`TitleBarTitleContext`)}static{this.TunnelContext=new e(`TunnelContext`)}static{this.TunnelPrivacy=new e(`TunnelPrivacy`)}static{this.TunnelProtocol=new e(`TunnelProtocol`)}static{this.TunnelPortInline=new e(`TunnelInline`)}static{this.TunnelTitle=new e(`TunnelTitle`)}static{this.TunnelLocalAddressInline=new e(`TunnelLocalAddressInline`)}static{this.TunnelOriginInline=new e(`TunnelOriginInline`)}static{this.ViewItemContext=new e(`ViewItemContext`)}static{this.ViewContainerTitle=new e(`ViewContainerTitle`)}static{this.ViewContainerTitleContext=new e(`ViewContainerTitleContext`)}static{this.ViewTitle=new e(`ViewTitle`)}static{this.ViewTitleContext=new e(`ViewTitleContext`)}static{this.CommentEditorActions=new e(`CommentEditorActions`)}static{this.CommentThreadTitle=new e(`CommentThreadTitle`)}static{this.CommentThreadActions=new e(`CommentThreadActions`)}static{this.CommentThreadAdditionalActions=new e(`CommentThreadAdditionalActions`)}static{this.CommentThreadTitleContext=new e(`CommentThreadTitleContext`)}static{this.CommentThreadCommentContext=new e(`CommentThreadCommentContext`)}static{this.CommentTitle=new e(`CommentTitle`)}static{this.CommentActions=new e(`CommentActions`)}static{this.CommentsViewThreadActions=new e(`CommentsViewThreadActions`)}static{this.InteractiveToolbar=new e(`InteractiveToolbar`)}static{this.InteractiveCellTitle=new e(`InteractiveCellTitle`)}static{this.InteractiveCellDelete=new e(`InteractiveCellDelete`)}static{this.InteractiveCellExecute=new e(`InteractiveCellExecute`)}static{this.InteractiveInputExecute=new e(`InteractiveInputExecute`)}static{this.InteractiveInputConfig=new e(`InteractiveInputConfig`)}static{this.ReplInputExecute=new e(`ReplInputExecute`)}static{this.IssueReporter=new e(`IssueReporter`)}static{this.NotebookToolbar=new e(`NotebookToolbar`)}static{this.NotebookToolbarContext=new e(`NotebookToolbarContext`)}static{this.NotebookStickyScrollContext=new e(`NotebookStickyScrollContext`)}static{this.NotebookCellTitle=new e(`NotebookCellTitle`)}static{this.NotebookCellDelete=new e(`NotebookCellDelete`)}static{this.NotebookCellInsert=new e(`NotebookCellInsert`)}static{this.NotebookCellBetween=new e(`NotebookCellBetween`)}static{this.NotebookCellListTop=new e(`NotebookCellTop`)}static{this.NotebookCellExecute=new e(`NotebookCellExecute`)}static{this.NotebookCellExecuteGoTo=new e(`NotebookCellExecuteGoTo`)}static{this.NotebookCellExecutePrimary=new e(`NotebookCellExecutePrimary`)}static{this.NotebookDiffCellInputTitle=new e(`NotebookDiffCellInputTitle`)}static{this.NotebookDiffDocumentMetadata=new e(`NotebookDiffDocumentMetadata`)}static{this.NotebookDiffCellMetadataTitle=new e(`NotebookDiffCellMetadataTitle`)}static{this.NotebookDiffCellOutputsTitle=new e(`NotebookDiffCellOutputsTitle`)}static{this.NotebookOutputToolbar=new e(`NotebookOutputToolbar`)}static{this.NotebookOutlineFilter=new e(`NotebookOutlineFilter`)}static{this.NotebookOutlineActionMenu=new e(`NotebookOutlineActionMenu`)}static{this.NotebookEditorLayoutConfigure=new e(`NotebookEditorLayoutConfigure`)}static{this.NotebookKernelSource=new e(`NotebookKernelSource`)}static{this.BulkEditTitle=new e(`BulkEditTitle`)}static{this.BulkEditContext=new e(`BulkEditContext`)}static{this.TimelineItemContext=new e(`TimelineItemContext`)}static{this.TimelineTitle=new e(`TimelineTitle`)}static{this.TimelineTitleContext=new e(`TimelineTitleContext`)}static{this.TimelineFilterSubMenu=new e(`TimelineFilterSubMenu`)}static{this.AccountsContext=new e(`AccountsContext`)}static{this.SidebarTitle=new e(`SidebarTitle`)}static{this.PanelTitle=new e(`PanelTitle`)}static{this.AuxiliaryBarTitle=new e(`AuxiliaryBarTitle`)}static{this.TerminalInstanceContext=new e(`TerminalInstanceContext`)}static{this.TerminalEditorInstanceContext=new e(`TerminalEditorInstanceContext`)}static{this.TerminalNewDropdownContext=new e(`TerminalNewDropdownContext`)}static{this.TerminalTabContext=new e(`TerminalTabContext`)}static{this.TerminalTabEmptyAreaContext=new e(`TerminalTabEmptyAreaContext`)}static{this.TerminalStickyScrollContext=new e(`TerminalStickyScrollContext`)}static{this.WebviewContext=new e(`WebviewContext`)}static{this.InlineCompletionsActions=new e(`InlineCompletionsActions`)}static{this.InlineEditsActions=new e(`InlineEditsActions`)}static{this.NewFile=new e(`NewFile`)}static{this.MergeInput1Toolbar=new e(`MergeToolbar1Toolbar`)}static{this.MergeInput2Toolbar=new e(`MergeToolbar2Toolbar`)}static{this.MergeBaseToolbar=new e(`MergeBaseToolbar`)}static{this.MergeInputResultToolbar=new e(`MergeToolbarResultToolbar`)}static{this.InlineSuggestionToolbar=new e(`InlineSuggestionToolbar`)}static{this.InlineEditToolbar=new e(`InlineEditToolbar`)}static{this.ChatContext=new e(`ChatContext`)}static{this.ChatCodeBlock=new e(`ChatCodeblock`)}static{this.ChatCompareBlock=new e(`ChatCompareBlock`)}static{this.ChatMessageTitle=new e(`ChatMessageTitle`)}static{this.ChatMessageFooter=new e(`ChatMessageFooter`)}static{this.ChatExecute=new e(`ChatExecute`)}static{this.ChatExecuteSecondary=new e(`ChatExecuteSecondary`)}static{this.ChatInput=new e(`ChatInput`)}static{this.ChatInputSide=new e(`ChatInputSide`)}static{this.ChatModePicker=new e(`ChatModePicker`)}static{this.ChatEditingWidgetToolbar=new e(`ChatEditingWidgetToolbar`)}static{this.ChatEditingEditorContent=new e(`ChatEditingEditorContent`)}static{this.ChatEditingEditorHunk=new e(`ChatEditingEditorHunk`)}static{this.ChatEditingDeletedNotebookCell=new e(`ChatEditingDeletedNotebookCell`)}static{this.ChatInputAttachmentToolbar=new e(`ChatInputAttachmentToolbar`)}static{this.ChatEditingWidgetModifiedFilesToolbar=new e(`ChatEditingWidgetModifiedFilesToolbar`)}static{this.ChatInputResourceAttachmentContext=new e(`ChatInputResourceAttachmentContext`)}static{this.ChatInputSymbolAttachmentContext=new e(`ChatInputSymbolAttachmentContext`)}static{this.ChatInlineResourceAnchorContext=new e(`ChatInlineResourceAnchorContext`)}static{this.ChatInlineSymbolAnchorContext=new e(`ChatInlineSymbolAnchorContext`)}static{this.ChatMessageCheckpoint=new e(`ChatMessageCheckpoint`)}static{this.ChatMessageRestoreCheckpoint=new e(`ChatMessageRestoreCheckpoint`)}static{this.ChatEditingCodeBlockContext=new e(`ChatEditingCodeBlockContext`)}static{this.ChatTitleBarMenu=new e(`ChatTitleBarMenu`)}static{this.ChatAttachmentsContext=new e(`ChatAttachmentsContext`)}static{this.ChatToolOutputResourceToolbar=new e(`ChatToolOutputResourceToolbar`)}static{this.ChatTextEditorMenu=new e(`ChatTextEditorMenu`)}static{this.ChatToolOutputResourceContext=new e(`ChatToolOutputResourceContext`)}static{this.ChatMultiDiffContext=new e(`ChatMultiDiffContext`)}static{this.ChatSessionsMenu=new e(`ChatSessionsMenu`)}static{this.ChatConfirmationMenu=new e(`ChatConfirmationMenu`)}static{this.AccessibleView=new e(`AccessibleView`)}static{this.MultiDiffEditorFileToolbar=new e(`MultiDiffEditorFileToolbar`)}static{this.DiffEditorHunkToolbar=new e(`DiffEditorHunkToolbar`)}static{this.DiffEditorSelectionToolbar=new e(`DiffEditorSelectionToolbar`)}constructor(t){if(e._instances.has(t))throw TypeError(`MenuId with identifier '${t}' already exists. Use MenuId.for(ident) or a unique identifier`);e._instances.set(t,this),this.id=t}},Yu=Nl(`menuService`),Xu=class e{static{this._all=new Map}static for(t){let n=this._all.get(t);return n||(n=new e(t),this._all.set(t,n)),n}static merge(t){let n=new Set;for(let r of t)r instanceof e&&n.add(r.id);return n}constructor(e){this.id=e,this.has=t=>t===e}},Zu=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new tee({merge:Xu.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(Xu.for(Ju.CommandPalette)),Yt(E(()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(Xu.for(Ju.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;return this._commands.forEach((t,n)=>e.set(n,t)),e}appendMenuItem(e,t){let n=this._menuItems.get(e);n||(n=new an,this._menuItems.set(e,n));let r=n.push(t);return this._onDidChangeMenu.fire(Xu.for(e)),Yt(E(()=>{r(),this._onDidChangeMenu.fire(Xu.for(e))}))}appendMenuItems(e){let t=new D;for(let{id:n,item:r}of e)t.add(this.appendMenuItem(n,r));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===Ju.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){let t=new Set;for(let n of e)Ku(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach((n,r)=>{t.has(r)||e.push({command:n})})}},Qu=class extends Bl{constructor(e,t,n){super(`submenuitem.${e.submenu.id}`,typeof e.title==`string`?e.title:e.title.value,n,`submenu`),this.item=e,this.hideActions=t}},$u=Gu=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?typeof e.shortTitle==`string`?e.shortTitle:e.shortTitle.value:typeof e.title==`string`?e.title:e.title.value}constructor(e,t,n,r,i,a,o){this.hideActions=r,this.menuKeybinding=i,this._commandService=o,this.id=e.id,this.label=Gu.label(e,n),this.tooltip=(typeof e.tooltip==`string`?e.tooltip:e.tooltip?.value)??``,this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0;let s;if(e.toggled){let t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip=typeof t.tooltip==`string`?t.tooltip:t.tooltip.value),this.checked&&Jl.isThemeIcon(t.icon)&&(s=t.icon),this.checked&&t.title&&(this.label=typeof t.title==`string`?t.title:t.title.value)}s||=Jl.isThemeIcon(e.icon)?e.icon:void 0,this.item=e,this.alt=t?new Gu(t,void 0,n,r,void 0,a,o):void 0,this._options=n,this.class=s&&Jl.asClassName(s)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};$u=Gu=Uu([Wu(5,Pu),Wu(6,Yl)],$u);var ed=class{constructor(e){this.desc=e}};function td(e){let t=[],n=new e,{f1:r,menu:i,keybinding:a,...o}=n.desc;if(Xl.getCommand(o.id))throw Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(Xl.registerCommand({id:o.id,handler:(e,...t)=>n.run(e,...t),metadata:o.metadata??{description:n.desc.title}})),Array.isArray(i))for(let e of i)t.push(Zu.appendMenuItem(e.id,{command:{...o,precondition:e.precondition===null?void 0:o.precondition},...e}));else i&&t.push(Zu.appendMenuItem(i.id,{command:{...o,precondition:i.precondition===null?void 0:o.precondition},...i}));if(r&&(t.push(Zu.appendMenuItem(Ju.CommandPalette,{command:o,when:o.precondition})),t.push(Zu.addCommand(o))),Array.isArray(a))for(let e of a)t.push(Vu.registerKeybindingRule({...e,id:o.id,when:o.precondition?pu.and(o.precondition,e.when):e.when}));else a&&t.push(Vu.registerKeybindingRule({...a,id:o.id,when:o.precondition?pu.and(o.precondition,a.when):a.when}));return{dispose(){Zt(t)}}}var nd=Nl(`telemetryService`),rd,id,ad,od=class{constructor(e,t){this.uri=e,this.value=t}};function sd(e){return Array.isArray(e)}var cd=class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[rd]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(sd(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new od(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(rd=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}},ld=class{constructor(e,t){this[id]=`ResourceSet`,!e||typeof e==`function`?this._map=new cd(e):(this._map=new cd(t),e.forEach(this.add,this))}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((n,r)=>e.call(t,r,r,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(id=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},ud=class{constructor(){this[ad]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}[(ad=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},dd=class extends ud{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},fd=class extends dd{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},pd=class{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){let t=this._m1.get(e);return t===void 0?!1:(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},md=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}},hd=class{constructor(){this._data=new Map}set(e,...t){let n=this._data;for(let e=0;e{let r=``;for(let[i,a]of t)r+=`${` `.repeat(n)}${i}: `,a instanceof Map?r+=` `+e(a,n+1):r+=`${a}\n`;return r};return e(this._data,0)}};function gd(e){return e===47||e===92}function _d(e){return e.replace(/[\\/]/g,Ni.sep)}function vd(e){return e.indexOf(`/`)===-1&&(e=_d(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e=`/`+e),e}function yd(e,t=Ni.sep){if(!e)return``;let n=e.length,r=e.charCodeAt(0);if(gd(r)){if(gd(e.charCodeAt(1))&&!gd(e.charCodeAt(2))){let r=3,i=r;for(;re.length)return!1;if(n){if(!Or(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===r&&n--,e.charAt(n)===r}return t.charAt(t.length-1)!==r&&(t+=r),e.indexOf(t)===0}function xd(e){return e>=65&&e<=90||e>=97&&e<=122}function Sd(e,t=We){return t?xd(e.charCodeAt(0))&&e.charCodeAt(1)===58:!1}function Cd(e){return ea(e,!0)}var wd=class{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:br(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===j.file)return bd(Cd(e),Cd(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(Fd(e.authority,t.authority))return bd(e.path,t.path,this._ignorePathCasing(e),`/`)&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return Ji.joinPath(e,...t)}basenameOrAuthority(e){return Od(e)||e.authority}basename(e){return Ni.basename(e.path)}extname(e){return Ni.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===j.file?t=Ji.file(Fi(Cd(e))).path:(t=Ni.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t=`/`)),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===j.file?Ji.file(Pi(Cd(e))).path:Ni.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Fd(e.authority,t.authority))return;if(e.scheme===j.file){let n=oee(Cd(e),Cd(t));return We?_d(n):n}let n=e.path||`/`,r=t.path||`/`;if(this._ignorePathCasing(e)){let e=0;for(let t=Math.min(n.length,r.length);eyd(n).length&&n[n.length-1]===t}else{let t=e.path;return t.length>1&&t.charCodeAt(t.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Ri){return Id(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Ri){let n=!1;if(e.scheme===j.file){let r=Cd(e);n=r!==void 0&&r.length===yd(r).length&&r[r.length-1]===t}else{t=`/`;let r=e.path;n=r.length===1&&r.charCodeAt(r.length-1)===47}return!n&&!Id(e,t)?e.with({path:e.path+`/`}):e}},Td=new wd(()=>!1);new wd(e=>e.scheme!==j.file||!Ke),new wd(e=>!0);var Ed=Td.isEqual.bind(Td);Td.isEqualOrParent.bind(Td),Td.getComparisonKey.bind(Td);var Dd=Td.basenameOrAuthority.bind(Td),Od=Td.basename.bind(Td),kd=Td.extname.bind(Td),Ad=Td.dirname.bind(Td),jd=Td.joinPath.bind(Td),Md=Td.normalizePath.bind(Td),Nd=Td.relativePath.bind(Td),Pd=Td.resolvePath.bind(Td);Td.isAbsolutePath.bind(Td);var Fd=Td.isEqualAuthority.bind(Td),Id=Td.hasTrailingPathSeparator.bind(Td);Td.removeTrailingPathSeparator.bind(Td),Td.addTrailingPathSeparator.bind(Td);var Ld;(function(e){e.META_DATA_LABEL=`label`,e.META_DATA_DESCRIPTION=`description`,e.META_DATA_SIZE=`size`,e.META_DATA_MIME=`mime`;function t(t){let n=new Map;t.path.substring(t.path.indexOf(`;`)+1,t.path.lastIndexOf(`;`)).split(`;`).forEach(e=>{let[t,r]=e.split(`:`);t&&r&&n.set(t,r)});let r=t.path.substring(0,t.path.indexOf(`;`));return r&&n.set(e.META_DATA_MIME,r),n}e.parseMetaData=t})(Ld||={});var Rd=Nl(`logService`),zd=Nl(`loggerService`),Bd;(function(e){e[e.Off=0]=`Off`,e[e.Trace=1]=`Trace`,e[e.Debug=2]=`Debug`,e[e.Info=3]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=5]=`Error`})(Bd||={});var Vd=Bd.Info;function Hd(e,t){return e!==Bd.Off&&e<=t}var Ud=class extends O{constructor(){super(...arguments),this.level=Vd,this._onDidChangeLogLevel=this._register(new A)}get onDidChangeLogLevel(){return this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return Hd(this.level,e)}canLog(e){return!this._store.isDisposed&&this.checkLogLevel(e)}},Wd=class extends Ud{constructor(e=Vd,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.canLog(Bd.Trace)&&(this.useColors?console.log(`%cTRACE`,`color: #888`,e,...t):console.log(e,...t))}debug(e,...t){this.canLog(Bd.Debug)&&(this.useColors?console.log(`%cDEBUG`,`background: #eee; color: #888`,e,...t):console.log(e,...t))}info(e,...t){this.canLog(Bd.Info)&&(this.useColors?console.log(`%c INFO`,`color: #33f`,e,...t):console.log(e,...t))}warn(e,...t){this.canLog(Bd.Warning)&&(this.useColors?console.warn(`%c WARN`,`color: #993`,e,...t):console.log(e,...t))}error(e,...t){this.canLog(Bd.Error)&&(this.useColors?console.error(`%c ERR`,`color: #f33`,e,...t):console.error(e,...t))}},Gd=class extends Ud{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(let t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(let n of this.loggers)n.trace(e,...t)}debug(e,...t){for(let n of this.loggers)n.debug(e,...t)}info(e,...t){for(let n of this.loggers)n.info(e,...t)}warn(e,...t){for(let n of this.loggers)n.warn(e,...t)}error(e,...t){for(let n of this.loggers)n.error(e,...t)}dispose(){for(let e of this.loggers)e.dispose();super.dispose()}},Kd=class extends O{constructor(e,t,n){if(super(),this.logLevel=e,this.logsHome=t,this._loggers=new cd,this._onDidChangeLoggers=this._register(new A),this._onDidChangeVisibility=this._register(new A),n)for(let e of n)this._loggers.set(e.resource,{logger:void 0,info:e})}getLoggerEntry(e){return ge(e)?[...this._loggers.values()].find(t=>t.info.id===e):this._loggers.get(e)}createLogger(e,t){let n=this.toResource(e),r=ge(e)?e:t?.id??xa(n.toString()).toString(16),i=this._loggers.get(n)?.logger,a=t?.logLevel===`always`?Bd.Trace:t?.logLevel;i||=this.doCreateLogger(n,a??this.getLogLevel(n)??this.logLevel,{...t,id:r});let o={logger:i,info:{resource:n,id:r,logLevel:a,name:t?.name,hidden:t?.hidden,group:t?.group,extensionId:t?.extensionId,when:t?.when}};return this.registerLogger(o.info),this._loggers.set(n,o),i}toResource(e){return ge(e)?jd(this.logsHome,`${e}.log`):e}setVisibility(e,t){let n=this.getLoggerEntry(e);n&&t!==!n.info.hidden&&(n.info.hidden=!t,this._loggers.set(n.info.resource,n),this._onDidChangeVisibility.fire([n.info.resource,t]))}getLogLevel(e){let t;return e&&(t=this._loggers.get(e)?.info.logLevel),t??this.logLevel}registerLogger(e){let t=this._loggers.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this._loggers.set(e.resource,{info:e,logger:void 0}),this._onDidChangeLoggers.fire({added:[e],removed:[]}))}dispose(){this._loggers.forEach(e=>e.logger?.dispose()),this._loggers.clear(),super.dispose()}},qd=class{constructor(){this.onDidChangeLogLevel=new A().event}setLevel(e){}getLevel(){return Bd.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}dispose(){}},Jd=class extends Kd{constructor(){super(Bd.Off,Ji.parse(`log:///log`))}doCreateLogger(e,t,n){return new qd}};function Yd(e){switch(e){case Bd.Trace:return`trace`;case Bd.Debug:return`debug`;case Bd.Info:return`info`;case Bd.Warning:return`warn`;case Bd.Error:return`error`;case Bd.Off:return`off`}}new V(`logLevel`,Yd(Bd.Info));var Xd=class{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){let e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(let t of e){let e=t.kbExpr;this.precondition&&(e=e?pu.and(e,this.precondition):this.precondition);let n={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};Vu.registerKeybindingRule(n)}}Xl.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){Zu.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})}},Zd=class extends Xd{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,n,r){return this._implementations.push({priority:e,name:t,implementation:n,when:r}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e{if(e.get(Pu).contextMatchesRules(n??void 0))return r(e,a,t)})}runCommand(t,n){return e.runEditorCommand(t,n,this.precondition,(e,t,n)=>this.runEditorCommand(e,t,n))}},ef=class e extends $d{static convertOptions(e){let t;t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[];function n(t){return t.menuId||=Ju.EditorContext,t.title||=typeof e.label==`string`?e.label:e.label.value,t.when=pu.and(e.precondition,t.when),t}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e}constructor(t){super(e.convertOptions(t)),typeof t.label==`string`?(this.label=t.label,this.alias=t.alias??t.label):(this.label=t.label.value,this.alias=t.alias??t.label.original)}runEditorCommand(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})}reportTelemetry(e,t){e.get(nd).publicLog2(`editorActionInvoked`,{name:this.label,id:this.id})}},tf=class extends ef{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{let n=e.get(Pu),i=e.get(Rd);if(!n.contextMatchesRules(this.desc.precondition??void 0)){i.debug(`[EditorAction2] NOT running command because its precondition is FALSE`,this.desc.id,this.desc.precondition?.serialize());return}return this.runEditorCommand(e,r,...t)})}};function rf(e,t){Xl.registerCommand(e,function(e,...n){let r=e.get(jl),[i,a]=n;Te(Ji.isUri(i)),Te(R.isIPosition(a));let o=e.get(Fl).getModel(i);if(o){let e=R.lift(a);return r.invokeFunction(t,o,e,...n.slice(2))}return e.get(Il).createModelReference(i).then(e=>new Promise((i,o)=>{try{i(r.invokeFunction(t,e.object.textEditorModel,R.lift(a),n.slice(2)))}catch(e){o(e)}}).finally(()=>{e.dispose()}))})}function af(e){return ff.INSTANCE.registerEditorCommand(e),e}function of(e){let t=new e;return ff.INSTANCE.registerEditorAction(t),t}function sf(e){return ff.INSTANCE.registerEditorAction(e),e}function cf(e){ff.INSTANCE.registerEditorAction(e)}function lf(e,t,n){ff.INSTANCE.registerEditorContribution(e,t,n)}var uf;(function(e){function t(e){return ff.INSTANCE.getEditorCommand(e)}e.getEditorCommand=t;function n(){return ff.INSTANCE.getEditorActions()}e.getEditorActions=n;function r(){return ff.INSTANCE.getEditorContributions()}e.getEditorContributions=r;function i(e){return ff.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)}e.getSomeEditorContributions=i;function a(){return ff.INSTANCE.getDiffEditorContributions()}e.getDiffEditorContributions=a})(uf||={});var df={EditorCommonContributions:`editor.contributions`},ff=class e{static{this.INSTANCE=new e}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,n){this.editorContributions.push({id:e,ctor:t,instantiation:n})}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}};Bu.add(df.EditorCommonContributions,ff.INSTANCE);function pf(e){return e.register(),e}var mf=pf(new Zd({id:`undo`,precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:Ju.MenubarEditMenu,group:`1_do`,title:a(64,`&&Undo`),order:1},{menuId:Ju.CommandPalette,group:``,title:a(65,`Undo`),order:1},{menuId:Ju.SimpleEditorContext,group:`1_do`,title:a(66,`Undo`),order:1}]}));pf(new Qd(mf,{id:`default:undo`,precondition:void 0}));var hf=pf(new Zd({id:`redo`,precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:Ju.MenubarEditMenu,group:`1_do`,title:a(67,`&&Redo`),order:2},{menuId:Ju.CommandPalette,group:``,title:a(68,`Redo`),order:1},{menuId:Ju.SimpleEditorContext,group:`1_do`,title:a(69,`Redo`),order:2}]}));pf(new Qd(hf,{id:`default:redo`,precondition:void 0}));var gf=pf(new Zd({id:`editor.action.selectAll`,precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:Ju.MenubarSelectionMenu,group:`1_basic`,title:a(70,`&&Select All`),order:1},{menuId:Ju.CommandPalette,group:``,title:a(71,`Select All`),order:1},{menuId:Ju.SimpleEditorContext,group:`9_select`,title:a(72,`Select All`),order:1}]})),H=class e{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumbert.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return rl?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new R(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new R(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},_f=class e extends H{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new R(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new R(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&e.getLanguageId(o-1)===i;)o--;return new yf(e,i,o,a+1,e.getStartOffset(o),e.getEndOffset(a))}var yf=class{constructor(e,t,n,r,i,a){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=i,this._lastCharOffset=a,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}};function bf(e){return(e&3)!=0}var xf=class e{static _nextVisibleColumn(t,n,r){return t===9?e.nextRenderTabStop(n,r):Jr(t)||Yr(t)?n+2:n+1}static visibleColumnFromColumn(e,t,n){let r=Math.min(t-1,e.length),i=e.substring(0,r),a=new Lr(i),o=0;for(;!a.eol();){let e=Pr(i,r,a.offset);a.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;let r=e.length,i=new Lr(e),a=0,o=1;for(;!i.eol();){let s=Pr(e,r,i.offset);i.nextGraphemeLength();let c=this._nextVisibleColumn(s,a,n),l=i.offset+1;if(c>=t){let e=t-a;return c-t!0,Ef=()=>!1,Df=e=>e===` `||e===` `,Of=class{static shouldRecreate(e){return e.hasChanged(164)||e.hasChanged(147)||e.hasChanged(45)||e.hasChanged(85)||e.hasChanged(87)||e.hasChanged(88)||e.hasChanged(10)||e.hasChanged(11)||e.hasChanged(15)||e.hasChanged(13)||e.hasChanged(14)||e.hasChanged(20)||e.hasChanged(144)||e.hasChanged(140)||e.hasChanged(59)||e.hasChanged(103)||e.hasChanged(146)||e.hasChanged(92)}constructor(e,t,n,r){this.languageConfigurationService=r,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;let i=n.options,a=i.get(164),o=i.get(59);this.readOnly=i.get(103),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=i.get(131),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(a.height/this.lineHeight)-2),this.useTabStops=i.get(144),this.trimWhitespaceOnDelete=i.get(140),this.wordSeparators=i.get(147),this.emptySelectionClipboard=i.get(45),this.copyWithSyntaxHighlighting=i.get(31),this.multiCursorMergeOverlapping=i.get(85),this.multiCursorPaste=i.get(87),this.multiCursorLimit=i.get(88),this.autoClosingBrackets=i.get(10),this.autoClosingComments=i.get(11),this.autoClosingQuotes=i.get(15),this.autoClosingDelete=i.get(13),this.autoClosingOvertype=i.get(14),this.autoSurround=i.get(20),this.autoIndent=i.get(16),this.wordSegmenterLocales=i.get(146),this.overtypeOnPaste=i.get(92),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();let s=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(s)for(let e of s)this.surroundingPairs[e.open]=e.close;let c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=c?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};let e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(let t of e)this._electricChars[t]=!0}return this._electricChars}get inputMode(){return wf.getInputMode()}onElectricCharacter(e,t,n){let r=vf(t,n-1),i=this.languageConfigurationService.getLanguageConfiguration(r.languageId).electricCharacter;return i?i.onElectricCharacter(e,r,n-r.firstCharOffset):null}normalizeIndentation(e){return Cf(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,n){switch(t){case`beforeWhitespace`:return Df;case`languageDefined`:return this._getLanguageDefinedShouldAutoClose(e,n);case`always`:return Tf;case`never`:return Ef}}_getLanguageDefinedShouldAutoClose(e,t){let n=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>n.indexOf(e)!==-1}visibleColumnFromColumn(e,t){return xf.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,n){let r=xf.columnFromVisibleColumn(e.getLineContent(t),n,this.tabSize),i=e.getLineMinColumn(t);if(ra?a:r}},kf=class e{static fromModelState(e){return new Af(e)}static fromViewState(e){return new jf(e)}static fromModelSelection(t){let n=_f.liftSelection(t),r=new Mf(H.fromPositions(n.getSelectionStart()),0,0,n.getPosition(),0);return e.fromModelState(r)}static fromModelSelections(e){let t=[];for(let n=0,r=e.length;ni,c=r>a,l=ra||mr||p0&&i--,e.columnSelect(t,n,r.fromViewLineNumber,r.fromViewVisualColumn,r.toViewLineNumber,i)}static columnSelectRight(e,t,n){let r=0,i=Math.min(n.fromViewLineNumber,n.toViewLineNumber),a=Math.max(n.fromViewLineNumber,n.toViewLineNumber);for(let n=i;n<=a;n++){let i=t.getLineMaxColumn(n),a=e.visibleColumnFromColumn(t,new R(n,i));r=Math.max(r,a)}let o=n.toViewVisualColumn;return oi&&(a=new R(i,e.getLineMaxColumn(i)));let o=H.fromPositions(n,a);t.addTrackedEditOperation(o,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return _f.fromPositions(n.getEndPosition())}},vee=class{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return _f.fromRange(n,0)}},Rf=class{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return _f.fromPositions(n.getStartPosition())}},zf=class{constructor(e,t,n,r,i=!1){this._range=e,this._text=t,this._columnDeltaOffset=r,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return _f.fromPositions(n.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}},yee=class{constructor(e){this._range=e}getEditOperations(e,t){let n=e.getValueInRange(this._range),r=this._range.getEndPosition(),i=r.lineNumber,a=Vf(e,r,n.length);a.lineNumber>i&&(a=new R(i,e.getLineMaxColumn(i)));let o=H.fromPositions(r,a);t.addTrackedEditOperation(o,``)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return _f.fromPositions(n.getEndPosition())}},Bf=class{constructor(e,t,n,r=!1){this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=r,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}};function Vf(e,t,n){if(n<0)throw Error(`Unexpected negative delta`);let r=e.getLineCount(),i=new R(r,e.getLineMaxColumn(r));for(let a=t.lineNumber;a<=r;a++)if(a===t.lineNumber){let r=n-e.getLineMaxColumn(t.lineNumber)+t.column;if(r<=0){i=new R(t.lineNumber,t.column+n);break}n=r}else{let t=n-e.getLineMaxColumn(a);if(t<=0){i=new R(a,n);break}n=t}return i}var Hf=class e{static whitespaceVisibleColumn(e,t,n){let r=e.length,i=0,a=-1,o=-1;for(let s=0;se.getLineMinColumn(t.lineNumber))return t.delta(void 0,-zr(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){let n=t.lineNumber-1;return new R(n,e.getLineMaxColumn(n))}else return t}static leftPositionAtomicSoftTabs(e,t,n){if(t.column<=e.getLineIndentColumn(t.lineNumber)){let r=e.getLineMinColumn(t.lineNumber),i=e.getLineContent(t.lineNumber),a=Hf.atomicPosition(i,t.column-1,n,0);if(a!==-1&&a+1>=r)return new R(t.lineNumber,a+1)}return this.leftPosition(e,t)}static left(t,n,r){let i=t.stickyTabStops?e.leftPositionAtomicSoftTabs(n,r,t.tabSize):e.leftPosition(n,r);return new Uf(i.lineNumber,i.column,0)}static moveLeft(t,n,r,i,a){let o,s;if(r.hasSelection()&&!i)o=r.selection.startLineNumber,s=r.selection.startColumn;else{let i=r.position.delta(void 0,-(a-1)),c=n.normalizePosition(e.clipPositionColumn(i,n),0),l=e.left(t,n,c);o=l.lineNumber,s=l.column}return r.move(i,o,s,0)}static clipPositionColumn(t,n){return new R(t.lineNumber,e.clipRange(t.column,n.getLineMinColumn(t.lineNumber),n.getLineMaxColumn(t.lineNumber)))}static clipRange(e,t,n){return en?n:e}static rightPosition(e,t,n){return nl?(n=l,r=o?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=e.columnFromVisibleColumn(t,n,c),i=f?0:c-xf.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),s!==void 0){let e=new R(n,r),a=t.normalizePosition(e,s);i+=r-a.column,n=a.lineNumber,r=a.column}return new Uf(n,r,i)}static down(e,t,n,r,i,a,o){return this.vertical(e,t,n,r,i,n+a,o,4)}static moveDown(t,n,r,i,a){let o,s;r.hasSelection()&&!i?(o=r.selection.endLineNumber,s=r.selection.endColumn):(o=r.position.lineNumber,s=r.position.column);let c=0,l;do if(l=e.down(t,n,o+c,s,r.leftoverVisibleColumns,a,!0),n.normalizePosition(new R(l.lineNumber,l.column),2).lineNumber>o)break;while(c++<10&&o+c1&&this._isBlankLine(t,i);)i--;for(;i>1&&!this._isBlankLine(t,i);)i--;return n.move(r,i,t.getLineMinColumn(i),0)}static moveToNextBlankLine(e,t,n,r){let i=t.getLineCount(),a=n.position.lineNumber;for(;a0,n=t.getLineFirstNonWhitespaceColumn(i.lineNumber);if(e&&n>0)return new H(i.lineNumber,n,r.lineNumber,r.column)}return new H(i.lineNumber,i.column,r.lineNumber,r.column)}static isAutoClosingPairDelete(e,t,n,r,i,a,o){if(t===`never`&&n===`never`||e===`never`)return!1;for(let s=0,c=a.length;s=u.length+1)return!1;let d=u.charAt(l.column-2),f=r.get(d);if(!f)return!1;if(Pf(d)){if(n===`never`)return!1}else if(t===`never`)return!1;let p=u.charAt(l.column-1),m=!1;for(let e of f)e.open===d&&e.close===p&&(m=!0);if(!m)return!1;if(e===`auto`){let e=!1;for(let t=0,n=o.length;t1){let e=n.getLineContent(i.lineNumber),t=_r(e),a=t===-1?e.length+1:t+1;if(i.column<=a){let e=r.visibleColumnFromColumn(n,i),t=xf.prevIndentTabStop(e,r.indentSize),a=r.columnFromVisibleColumn(n,i.lineNumber,t);return new H(i.lineNumber,a,i.lineNumber,i.column)}}return H.fromPositions(e.getPositionAfterDeleteLeft(i,n),i)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){let n=ni(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,n+1)}else if(e.lineNumber>1){let n=e.lineNumber-1;return new R(n,t.getLineMaxColumn(n))}else return e}static cut(e,t,n){let r=[],i=null;n.sort((e,t)=>R.compare(e.getStartPosition(),t.getEndPosition()));for(let a=0,o=n.length;a1&&i?.endLineNumber!==e.lineNumber?(n=e.lineNumber-1,s=t.getLineMaxColumn(e.lineNumber-1),c=e.lineNumber,l=t.getLineMaxColumn(e.lineNumber)):(n=e.lineNumber,s=1,c=e.lineNumber,l=t.getLineMaxColumn(e.lineNumber));let u=new H(n,s,c,l);i=u,u.isEmpty()?r[a]=null:r[a]=new If(u,``)}else r[a]=null;else r[a]=new If(o,``)}return new Nf(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},Kf={DateTimeFormat(e,t){return new nr(()=>{try{return new Intl.DateTimeFormat(e,t)}catch{return new Intl.DateTimeFormat(void 0,t)}})},Collator(e,t){return new nr(()=>{try{return new Intl.Collator(e,t)}catch{return new Intl.Collator(void 0,t)}})},Segmenter(e,t){return new nr(()=>{try{return new Intl.Segmenter(e,t)}catch{return new Intl.Segmenter(void 0,t)}})},Locale(e,t){return new nr(()=>{try{return new Intl.Locale(e,t)}catch{return new Intl.Locale(`en`,t)}})},NumberFormat(e,t){return new nr(()=>{try{return new Intl.NumberFormat(e,t)}catch{return new Intl.NumberFormat(void 0,t)}})}};function qf(e){return e<0?0:e>255?255:e|0}function Jf(e){return e<0?0:e>4294967295?4294967295:e|0}var Yf=class e{constructor(t){let n=qf(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let n=qf(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},bee=class{constructor(){this._actual=new Yf(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}},xee=class extends Yf{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=Kf.Segmenter(this.intlSegmenterLocales,{granularity:`word`}):this._segmenter=null;for(let t=0,n=e.length;tt)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(let n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index=0;a--){let n=e.charCodeAt(a),o=t.get(n);if(i&&a===i.index)return this._createIntlWord(i,o);if(o===0){if(r===2)return this._createWord(e,r,o,a+1,this._findEndOfWord(e,t,r,a+1));r=1}else if(o===2){if(r===1)return this._createWord(e,r,o,a+1,this._findEndOfWord(e,t,r,a+1));r=2}else if(o===1&&r!==0)return this._createWord(e,r,o,a+1,this._findEndOfWord(e,t,r,a+1))}return r===0?null:this._createWord(e,r,1,0,this._findEndOfWord(e,t,r,0))}static _findEndOfWord(e,t,n,r){let i=t.findNextIntlWordAtOrAfterOffset(e,r),a=e.length;for(let o=r;o=0;a--){let r=e.charCodeAt(a),o=t.get(r);if(i&&a===i.index)return a;if(o===1||n===1&&o===2||n===2&&o===0)return a+1}return 0}static moveWordLeft(t,n,r,i,a){let o=r.lineNumber,s=r.column;s===1&&o>1&&(--o,s=n.getLineMaxColumn(o));let c=e._findPreviousWordOnLine(t,n,new R(o,s));if(i===0)return new R(o,c?c.start+1:1);if(i===1)return!a&&c&&c.wordType===2&&c.end-c.start===1&&c.nextCharClass===0&&(c=e._findPreviousWordOnLine(t,n,new R(o,c.start+1))),new R(o,c?c.start+1:1);if(i===3){for(;c&&c.wordType===2;)c=e._findPreviousWordOnLine(t,n,new R(o,c.start+1));return new R(o,c?c.start+1:1)}return c&&s<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new R(o,c.start+1))),new R(o,c?c.end+1:1)}static _moveWordPartLeft(e,t){let n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===1)return n>1?new R(n-1,e.getLineMaxColumn(n-1)):t;let i=e.getLineContent(n);for(let e=t.column-1;e>1;e--){let t=i.charCodeAt(e-2),a=i.charCodeAt(e-1);if(t===95&&a!==95||t===45&&a!==45||(Tr(t)||wr(t))&&Er(a))return new R(n,e);if(Er(t)&&Er(a)&&e+1=c.start+1&&(c=e._findNextWordOnLine(t,n,new R(a,c.end+1))),o=c?c.start+1:n.getLineMaxColumn(a);return new R(a,o)}static _moveWordPartRight(e,t){let n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n1?l=1:(c--,l=i.getLineMaxColumn(c)):(u&&l<=u.end+1&&(u=e._findPreviousWordOnLine(r,i,new R(c,u.start+1))),u?l=u.end+1:l>1?l=1:(c--,l=i.getLineMaxColumn(c))),new H(c,l,s.lineNumber,s.column)}static deleteInsideWord(e,t,n){if(!n.isEmpty())return n;let r=new R(n.positionLineNumber,n.positionColumn);return this._deleteInsideWordWhitespace(t,r)||this._deleteInsideWordDetermineDeleteRange(e,t,r)}static _charAtIsWhitespace(e,t){let n=e.charCodeAt(t);return n===32||n===9}static _deleteInsideWordWhitespace(e,t){let n=e.getLineContent(t.lineNumber),r=n.length;if(r===0)return null;let i=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(n,i))return null;let a=Math.min(t.column-1,r-1);if(!this._charAtIsWhitespace(n,a))return null;for(;i>0&&this._charAtIsWhitespace(n,i-1);)i--;for(;a+11?new H(r.lineNumber-1,n.getLineMaxColumn(r.lineNumber-1),r.lineNumber,1):r.lineNumbere.start+1<=r.column&&r.column<=e.end+1,s=(e,t)=>(e=Math.min(e,r.column),t=Math.max(t,r.column),new H(r.lineNumber,e,r.lineNumber,t)),c=e=>{let t=e.start+1,n=e.end+1,r=!1;for(;n-11&&this._charAtIsWhitespace(i,t-2);)t--;return s(t,n)},l=e._findPreviousWordOnLine(t,n,r);if(l&&o(l))return c(l);let u=e._findNextWordOnLine(t,n,r);return u&&o(u)?c(u):l&&u?s(l.end+1,u.start+1):l?s(l.start+1,l.end+1):u?s(u.start+1,u.end+1):s(1,a+1)}static _deleteWordPartLeft(t,n){if(!n.isEmpty())return n;let r=n.getPosition(),i=e._moveWordPartLeft(t,r);return new H(r.lineNumber,r.column,i.lineNumber,i.column)}static _findFirstNonWhitespaceChar(e,t){let n=e.length;for(let r=t;r=f.start+1&&(f=e._findNextWordOnLine(r,i,new R(c,f.end+1))),f?l=f.start+1:l!!e)}function tp(e){if(!e||typeof e!=`object`||e instanceof RegExp)return e;let t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([e,n])=>{t[e]=n&&typeof n==`object`?tp(n):n}),t}function np(e){if(!e||typeof e!=`object`)return e;let t=[e];for(;t.length>0;){let e=t.shift();Object.freeze(e);for(let n in e)if(rp.call(e,n)){let r=e[n];typeof r==`object`&&!Object.isFrozen(r)&&!ve(r)&&t.push(r)}}return e}var rp=Object.prototype.hasOwnProperty;function ip(e,t){return ap(e,t,new Set)}function ap(e,t,n){if(we(e))return e;let r=t(e);if(r!==void 0)return r;if(Array.isArray(e)){let r=[];for(let i of e)r.push(ap(i,t,n));return r}if(_e(e)){if(n.has(e))throw Error(`Cannot clone recursive data-structure`);n.add(e);let r={};for(let i in e)rp.call(e,i)&&(r[i]=ap(e[i],t,n));return n.delete(e),r}return e}function op(e,t,n=!0){return _e(e)?(_e(t)&&Object.keys(t).forEach(r=>{r in e?n&&(_e(e[r])&&_e(t[r])?op(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]}),e):t}function sp(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;nt&&(n=t,r=e.model.getLineMaxColumn(n)),kf.fromModelState(new Mf(new H(a.lineNumber,1,n,r),2,0,new R(n,r),0))}let s=t.modelState.selectionStart.getStartPosition().lineNumber;if(a.lineNumbers){let n=e.getLineCount(),r=o.lineNumber+1,i=1;return r>n&&(r=n,i=e.getLineMaxColumn(r)),kf.fromViewState(t.viewState.move(!0,r,i,0))}else{let e=t.modelState.selectionStart.getEndPosition();return kf.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,n,r){let i=e.model.validatePosition(r);return kf.fromModelState(Qf.word(e.cursorConfig,e.model,t.modelState,n,i))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new kf(t.modelState,t.viewState);let n=t.viewState.position.lineNumber,r=t.viewState.position.column;return kf.fromViewState(new Mf(new H(n,r,n,r),0,0,new R(n,r),0))}static moveTo(e,t,n,r,i){if(n){if(t.modelState.selectionStartKind===1)return this.word(e,t,n,r);if(t.modelState.selectionStartKind===2)return this.line(e,t,n,r,i)}let a=e.model.validatePosition(r),o=i?e.coordinatesConverter.validateViewPosition(new R(i.lineNumber,i.column),a):e.coordinatesConverter.convertModelPositionToViewPosition(a);return kf.fromViewState(t.viewState.move(n,o.lineNumber,o.column,0))}static simpleMove(e,t,n,r,i,a){switch(n){case 0:return a===4?this._moveHalfLineLeft(e,t,r):this._moveLeft(e,t,r,i);case 1:return a===4?this._moveHalfLineRight(e,t,r):this._moveRight(e,t,r,i);case 2:return a===2?this._moveUpByViewLines(e,t,r,i):this._moveUpByModelLines(e,t,r,i);case 3:return a===2?this._moveDownByViewLines(e,t,r,i):this._moveDownByModelLines(e,t,r,i);case 4:return a===2?t.map(t=>kf.fromViewState(Wf.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,r))):t.map(t=>kf.fromModelState(Wf.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,r)));case 5:return a===2?t.map(t=>kf.fromViewState(Wf.moveToNextBlankLine(e.cursorConfig,e,t.viewState,r))):t.map(t=>kf.fromModelState(Wf.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,r)));case 6:return this._moveToViewMinColumn(e,t,r);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,r);case 8:return this._moveToViewCenterColumn(e,t,r);case 9:return this._moveToViewMaxColumn(e,t,r);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,r);default:return null}}static viewportMove(e,t,n,r,i){let a=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(a);switch(n){case 11:{let n=this._firstLineNumberInRange(e.model,o,i),a=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],r,n,a)]}case 13:{let n=this._lastLineNumberInRange(e.model,o,i),a=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],r,n,a)]}case 12:{let n=Math.round((o.startLineNumber+o.endLineNumber)/2),i=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],r,n,i)]}case 14:{let n=[];for(let i=0,o=t.length;in.endLineNumber-1?n.endLineNumber-1:i{let i=e.getTextDirection(t.viewState.position.lineNumber)===up.RTL;return kf.fromViewState(i?Wf.moveRight(e.cursorConfig,e,t.viewState,n,r):Wf.moveLeft(e.cursorConfig,e,t.viewState,n,r))})}static _moveHalfLineLeft(e,t,n){let r=[];for(let i=0,a=t.length;i{let i=e.getTextDirection(t.viewState.position.lineNumber)===up.RTL;return kf.fromViewState(i?Wf.moveLeft(e.cursorConfig,e,t.viewState,n,r):Wf.moveRight(e.cursorConfig,e,t.viewState,n,r))})}static _moveHalfLineRight(e,t,n){let r=[];for(let i=0,a=t.length;i/?`;function Tp(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of wp)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}var Ep=Tp();function Dp(e){let t=Ep;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var Op=new an;Op.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function kp(e,t,n,r,i){if(t=Dp(t),i||=Wt.first(Op),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),kp(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=Ap(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function Ap(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var jp=class e{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> `}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> `}constructor(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(e=>new xp(e)):t.brackets?this._autoClosingPairs=t.brackets.map(e=>new xp({open:e[0],close:e[1]})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){let e=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new xp({open:e.open,close:e.close||``}))}this._autoCloseBeforeForQuotes=typeof t.autoCloseBefore==`string`?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof t.autoCloseBefore==`string`?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}},Mp;function Np(){return Mp||=new TextDecoder(`UTF-16LE`),Mp}var Pp;function Fp(){return Pp||=new TextDecoder(`UTF-16BE`),Pp}var Ip;function Lp(){return Ip||=ot()?Np():Fp(),Ip}function Rp(e,t,n){let r=new Uint16Array(e.buffer,t,n);return n>0&&(r[0]===65279||r[0]===65534)?zp(e,t,n):Np().decode(r)}function zp(e,t,n){let r=[],i=0;for(let a=0;a=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n[e[0].toLowerCase(),e[1].toLowerCase()]);let n=[];for(let e=0;e{let[n,r]=e,[i,a]=t;return n===i||n===a||r===i||r===a},i=(e,r)=>{let i=Math.min(e,r),a=Math.max(e,r);for(let e=0;e0&&a.push({open:i,close:o})}return a}var Up=class{constructor(e,t){this._richEditBracketsBrand=void 0;let n=Hp(t);this.brackets=n.map((t,r)=>new Vp(e,r,t.open,t.close,qp(t.open,t.close,n,r),Jp(t.open,t.close,n,r))),this.forwardRegex=Yp(this.brackets),this.reversedRegex=Xp(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(let e of this.brackets){for(let t of e.open)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,t.length);for(let t of e.close)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,t.length)}}};function Wp(e,t,n,r){for(let i=0,a=t.length;i=0&&r.push(t);for(let t of a.close)t.indexOf(e)>=0&&r.push(t)}}function Gp(e,t){return e.length-t.length}function Kp(e){if(e.length<=1)return e;let t=[],n=new Set;for(let r of e)n.has(r)||(t.push(r),n.add(r));return t}function qp(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let e=0,t=i.length;e=0;r--)t[n++]=e.charCodeAt(r);return Lp().decode(t)}let t=null,n=null;return function(r){return t!==r&&(t=r,n=e(t)),n}})(),em=class{static _findPrevBracketInText(e,t,n,r){let i=n.match(e);if(!i)return null;let a=n.length-(i.index||0),o=i[0].length,s=r+a;return new H(t,s-o+1,t,s+1)}static findPrevBracketInRange(e,t,n,r,i){let a=$p(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,a,r)}static findNextBracketInText(e,t,n,r){let i=n.match(e);if(!i)return null;let a=i.index||0,o=i[0].length;if(o===0)return null;let s=r+a;return new H(t,s+1,t,s+1+o)}static findNextBracketInRange(e,t,n,r,i){let a=n.substring(r,i);return this.findNextBracketInText(e,t,a,r)}},tm=class{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let n of t.close){let t=n.charAt(n.length-1);e.push(t)}return no(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;let r=t.findTokenIndexAtOffset(n-1);if(bf(t.getStandardTokenType(r)))return null;let i=this._richEditBrackets.reversedRegex,a=t.getLineContent().substring(0,n-1)+e,o=em.findPrevBracketInRange(i,1,a,0,a.length);if(!o)return null;let s=a.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;let c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:s}:null}};function nm(e){return e.global&&(e.lastIndex=0),!0}var rm=class{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&nm(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&nm(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&nm(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&nm(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}},im=class e{constructor(t){t||={},t.brackets=t.brackets||[[`(`,`)`],[`{`,`}`],[`[`,`]`]],this._brackets=[],t.brackets.forEach(t=>{let n=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);n&&r&&this._brackets.push({open:t[0],openRegExp:n,close:t[1],closeRegExp:r})}),this._regExpRules=t.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let e=0,i=this._regExpRules.length;ee.reg?(e.reg.lastIndex=0,e.reg.test(e.text)):!0))return i.action}if(e>=2&&n.length>0&&r.length>0)for(let e=0,t=this._brackets.length;e=2&&n.length>0){for(let e=0,t=this._brackets.length;e0&&e.charAt(e.length-1)===`#`?e.substring(0,e.length-1):e}var wee=new class extends O{constructor(){super(...arguments),this.schemasById={},this._onDidChangeSchema=this._register(new A)}registerSchema(e,t,n){let r=Cee(e);this.schemasById[r]=t,this._onDidChangeSchema.fire(e),n&&n.add(E(()=>{delete this.schemasById[r],this._onDidChangeSchema.fire(e)}))}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};Bu.add(vm.JSONContribution,wee);var ym={Configuration:`base.contributions.configuration`},bm={properties:{},patternProperties:{}},xm={properties:{},patternProperties:{}},Sm={properties:{},patternProperties:{}},Cm={properties:{},patternProperties:{}},wm={properties:{},patternProperties:{}},Tm={properties:{},patternProperties:{}},Em={properties:{},patternProperties:{}},Dm=`vscode://schemas/settings/resourceLanguage`,Om=Bu.as(vm.JSONContribution),km=class extends O{constructor(){super(),this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=this._register(new A),this._onDidUpdateConfiguration=this._register(new A),this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:`defaultOverrides`,title:a(1646,`Default Language Configuration Overrides`),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},Om.registerSchema(Dm,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){return this.registerConfigurations([e],t),e}registerConfigurations(e,t=!0){let n=new Set;this.doRegisterConfigurations(e,t,n),Om.registerSchema(Dm,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){let t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);let n=[];for(let{overrides:r,source:i}of e)for(let e in r){t.add(e);let a=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=r[e];if(a.configurationDefaultOverrides.push({value:o,source:i}),Nm.test(e)){let t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,i,a.configurationDefaultOverrideValue);if(!t)continue;a.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,i),n.push(...Pm(e))}else{let t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,i,a.configurationDefaultOverrideValue);if(!t)continue;a.configurationDefaultOverrideValue=t;let n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){let r={type:`object`,default:t.value,description:a(1647,`Configure settings to be overridden for {0}.`,dm(e)),$ref:Dm,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){let i=r?.value||{},a=r?.source??new Map;if(!(a instanceof Map)){console.error(`objectConfigurationSources is not a Map`);return}for(let e of Object.keys(t)){let r=t[e];if(_e(r)&&(Se(i[e])||_e(i[e]))){if(i[e]={...i[e]??{},...r},n)for(let t in r)a.set(`${e}.${t}`,n)}else i[e]=r,n?a.set(e,n):a.delete(e)}return{value:i,source:a}}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){let i=this.configurationProperties[e],a=r?.value??i?.defaultDefaultValue,o=n;if(_e(t)&&(i!==void 0&&i.type===`object`||i===void 0&&(Se(a)||_e(a)))){if(o=r?.source??new Map,!(o instanceof Map)){console.error(`defaultValueSource is not a Map`);return}for(let r in t)n&&o.set(`${e}.${r}`,n);t={..._e(a)?a:{},...t}}return{value:t,source:o}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})}validateAndRegisterProperties(e,t=!0,n,r,i=4,a){i=we(e.scope)?i:e.scope;let o=e.properties;if(o)for(let e in o){let s=o[e];if(t&&Lm(e,s)){delete o[e];continue}s.source=n,s.defaultDefaultValue=o[e].default,this.updatePropertyDefaultValue(e,s),Nm.test(e)?s.scope=void 0:(s.scope=we(s.scope)?i:s.scope,s.restricted=we(s.restricted)?!!r?.includes(e):s.restricted),s.experiment?s.tags?.some(e=>e.toLowerCase()===`onexp`)||(s.tags=s.tags??[],s.tags.push(`onExP`)):s.tags?.some(e=>e.toLowerCase()===`onexp`)&&(console.error(`Invalid tag 'onExP' found for property '${e}'. Please use 'experiment' property instead.`),s.experiment={mode:`startup`});let c=o[e].hasOwnProperty(`included`)&&!o[e].included,l=o[e].policy?.name;c?(this.excludedConfigurationProperties[e]=o[e],l&&(this.policyConfigurations.set(l,e),a.add(e)),delete o[e]):(a.add(e),l&&this.policyConfigurations.set(l,e),this.configurationProperties[e]=o[e],!o[e].deprecationMessage&&o[e].markdownDeprecationMessage&&(o[e].deprecationMessage=o[e].markdownDeprecationMessage))}let s=e.allOf;if(s)for(let e of s)this.validateAndRegisterProperties(e,t,n,r,i,a)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}registerJSONConfiguration(e){let t=e=>{let n=e.properties;if(n)for(let e in n)this.updateSchema(e,n[e]);e.allOf?.forEach(t)};t(e)}updateSchema(e,t){switch(bm.properties[e]=t,t.scope){case 1:xm.properties[e]=t;break;case 2:Cm.properties[e]=t;break;case 3:Sm.properties[e]=t;break;case 7:wm.properties[e]=t;break;case 4:Tm.properties[e]=t;break;case 5:Em.properties[e]=t;break;case 6:Em.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,n={type:`object`,description:a(1648,`Configure editor settings to be overridden for a language.`),errorMessage:a(1649,`This setting does not support per-language configuration.`),$ref:Dm};this.updatePropertyDefaultValue(t,n),bm.properties[t]=n,xm.properties[t]=n,Sm.properties[t]=n,Cm.properties[t]=n,wm.properties[t]=n,Tm.properties[t]=n,Em.properties[t]=n}}registerOverridePropertyPatternKey(){let e={type:`object`,description:a(1650,`Configure editor settings to be overridden for a language.`),errorMessage:a(1651,`This setting does not support per-language configuration.`),$ref:Dm};bm.patternProperties[Mm]=e,xm.patternProperties[Mm]=e,Sm.patternProperties[Mm]=e,Cm.patternProperties[Mm]=e,wm.patternProperties[Mm]=e,Tm.patternProperties[Mm]=e,Em.patternProperties[Mm]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue,r,i;n&&(!t.disallowConfigurationDefault||!n.source)&&(r=n.value,i=n.source),Se(r)&&(r=t.defaultDefaultValue,i=void 0),Se(r)&&(r=Fm(t.type)),t.default=r,t.defaultValueSource=i}},Am=`\\[([^\\]]+)\\]`,jm=new RegExp(Am,`g`),Mm=`^(${Am})+$`,Nm=new RegExp(Mm);function Pm(e){let t=[];if(Nm.test(e)){let n=jm.exec(e);for(;n?.length;){let r=n[1].trim();r&&t.push(r),n=jm.exec(e)}}return no(t)}function Fm(e){switch(Array.isArray(e)?e[0]:e){case`boolean`:return!1;case`integer`:case`number`:return 0;case`string`:return``;case`array`:return[];case`object`:return{};default:return null}}var Im=new km;Bu.add(ym.Configuration,Im);function Lm(e,t){return e.trim()?Nm.test(e)?a(1653,`Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.`,e):Im.getConfigurationProperties()[e]===void 0?t.policy?.name&&Im.getPolicyConfigurations().get(t.policy?.name)!==void 0?a(1655,`Cannot register '{0}'. The associated policy {1} is already registered with {2}.`,e,t.policy?.name,Im.getPolicyConfigurations().get(t.policy?.name)):null:a(1654,`Cannot register '{0}'. This property is already registered.`,e):a(1652,`Cannot register an empty property`)}var Rm={ModesRegistry:`editor.modesRegistry`},zm=new class extends O{constructor(){super(),this._onDidChangeLanguages=this._register(new A),this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t{let t=new Set;return{info:new Wm(this,e,t),closing:t}}),i=new er(e=>{let t=new Set,n=new Set;return{info:new Gm(this,e,t,n),opening:t,openingColorized:n}});for(let[e,t]of n){let n=r.get(e),a=i.get(t);n.closing.add(a.info),a.opening.add(n.info)}let a=t.colorizedBracketPairs?Hm(t.colorizedBracketPairs):n.filter(e=>!(e[0]===`<`&&e[1]===`>`));for(let[e,t]of a){let n=r.get(e),a=i.get(t);n.closing.add(a.info),a.openingColorized.add(n.info),a.opening.add(n.info)}this._openingBrackets=new Map([...r.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...i.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return Qp(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}};function Hm(e){return e.filter(([e,t])=>e!==``&&t!==``)}var Um=class{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}},Wm=class extends Um{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}},Gm=class extends Um{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}},Km=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qm=function(e,t){return function(n,r){t(n,r,e)}},Jm=class{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}},Ym=Nl(`languageConfigurationService`),Xm=class extends O{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new oh),this.onDidChangeEmitter=this._register(new A),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let n=new Set(Object.values(Qm));this._register(this.configurationService.onDidChangeConfiguration(e=>{let t=e.change.keys.some(e=>n.has(e)),r=e.change.overrides.filter(([e,t])=>t.some(e=>n.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new Jm(void 0));else for(let e of r)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new Jm(e)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new Jm(e.languageId))}))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=Zm(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};Xm=Km([qm(0,am),qm(1,fm)],Xm);function Zm(e,t,n,r){let i=t.getLanguageConfiguration(e);if(!i){if(!r.isRegisteredLanguageId(e))return new sh(e,{});i=new sh(e,{})}let a=$m(i.languageId,n),o=rh([i.underlyingConfig,a]);return new sh(i.languageId,o)}var Qm={brackets:`editor.language.brackets`,colorizedBracketPairs:`editor.language.colorizedBracketPairs`};function $m(e,t){let n=t.getValue(Qm.brackets,{overrideIdentifier:e}),r=t.getValue(Qm.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:eh(n),colorizedBracketPairs:eh(r)}}function eh(e){if(Array.isArray(e))return e.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function th(e,t,n){let r=vr(e.getLineContent(t));return r.length>n-1&&(r=r.substring(0,n-1)),r}var nh=class{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){let n=new ih(e,t,++this._order);return this._entries.push(n),this._resolved=null,Yt(E(()=>{for(let e=0;ee.configuration)))}};function rh(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}var ih=class{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}},ah=class{constructor(e){this.languageId=e}},oh=class extends O{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new A),this.onDidChange=this._onDidChange.event,this._register(this.register(Bm,{brackets:[[`(`,`)`],[`[`,`]`],[`{`,`}`]],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new nh(e),this._entries.set(e,r));let i=r.register(t,n);return this._onDidChange.fire(new ah(e)),Yt(E(()=>{i.dispose(),this._onDidChange.fire(new ah(e))}))}getLanguageConfiguration(e){return this._entries.get(e)?.getResolvedConfiguration()||null}},sh=class e{constructor(t,n){this.languageId=t,this.underlyingConfig=n,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new im(this.underlyingConfig):null,this.comments=e._handleComments(this.underlyingConfig),this.characterPair=new jp(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||Ep,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new rm(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Vm(t,this.underlyingConfig)}getWordDefinition(){return Dp(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new Up(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||=new tm(this.brackets),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new Sp(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){let t=e.comments;if(!t)return null;let n={};if(t.lineComment&&(typeof t.lineComment==`string`?n.lineCommentToken=t.lineComment:(n.lineCommentToken=t.lineComment.comment,n.lineCommentNoIndent=t.lineComment.noIndent)),t.blockComment){let[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}};hm(Ym,Xm,1);var ch=class{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let t=`mtk`+this.getForeground(e),n=this.getFontStyle(e);return n&1&&(t+=` mtki`),n&2&&(t+=` mtkb`),n&4&&(t+=` mtku`),n&8&&(t+=` mtks`),t}static getInlineStyleFromMetadata(e,t){let n=this.getForeground(e),r=this.getFontStyle(e),i=`color: ${t[n]};`;r&1&&(i+=`font-style: italic;`),r&2&&(i+=`font-weight: bold;`);let a=``;return r&4&&(a+=` underline`),r&8&&(a+=` line-through`),a&&(i+=`text-decoration:${a};`),i}static getPresentationFromMetadata(e){let t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}},U=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;rn))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new T(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new T(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new T(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.toString()).join(`, `)}intersectsStrict(e){let t=0;for(;te+t.length,0)}},uh=class e{static createEmpty(t,n){let r=e.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=t.length,i[1]=r,new e(i,t,n)}static createFromTextAndMetadata(t,n){let r=0,i=``,a=[];for(let{text:e,metadata:n}of t)a.push(r+e.length,n),r+=e.length,i+=e;return new e(new Uint32Array(a),i,n)}static convertToEndOffset(e,t){let n=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;nt&&(r=i)}return n}static{this.defaultTokenMetadata=33587200}constructor(e,t,n){this._lineTokensBrand=void 0,(e.length>1?e[e.length-2]:0)!==t.length&&w(Error(`Token length and text length do not match!`)),this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}getTextLength(){return this._text.length}equals(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let r=t<<1,i=r+(n<<1);for(let t=r;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){let t=this._tokens[(e<<1)+1],n=ch.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){let t=this._tokens[(e<<1)+1];return ch.getTokenType(t)}getForeground(e){let t=this._tokens[(e<<1)+1];return ch.getForeground(t)}getClassName(e){let t=this._tokens[(e<<1)+1];return ch.getClassNameFromMetadata(t)}getInlineStyle(e,t){let n=this._tokens[(e<<1)+1];return ch.getInlineStyleFromMetadata(n,t)}getPresentation(e){let t=this._tokens[(e<<1)+1];return ch.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(t){return e.findIndexInTokensArray(this._tokens,t)}inflate(){return this}sliceAndInflate(e,t,n){return new dh(this,e,t,n)}sliceZeroCopy(e){return this.sliceAndInflate(e.start,e.endExclusive,0)}withInserted(t){if(t.length===0)return this;let n=0,r=0,i=``,a=[],o=0;for(;;){let e=no){i+=this._text.substring(o,s.offset);let e=this._tokens[(n<<1)+1];a.push(i.length,e),o=s.offset}i+=s.text,a.push(i.length,s.tokenMetadata),r++}else break}return new e(new Uint32Array(a),i,this.languageIdCodec)}getTokensInRange(e){let t=new hh,n=this.findTokenIndexAtOffset(e.start),r=this.findTokenIndexAtOffset(e.endExclusive);for(let i=n;i<=r;i++){let n=new U(this.getStartOffset(i),this.getEndOffset(i)).intersectionLength(e);n>0&&t.add(n,this.getMetadata(i))}return t.build()}getTokenText(e){let t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){let t=this.getCount();for(let n=0;n{e+=`[${this.getTokenText(t)}]{${this.getClassName(t)}}`}),e}},dh=class e{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let t=this._firstTokenIndex,r=e.getCount();t=n);t++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(t){return t instanceof e&&this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){let t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){let t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t),i=this._source.getTokenText(t);return nthis._endOffset&&(i=i.substring(0,i.length-(r-this._endOffset))),i}forEach(e){for(let t=0;t({text:t.substring(e),metadata:n.metadata})),t)}forEach(e){let t=0;for(let n of this._tokenInfo)e(new U(t,t+n.length),n),t+=n.length}map(e){let t=[],n=0;for(let r of this._tokenInfo){let i=new U(n,n+r.length);t.push(e(i,r)),n+=r.length}return t}slice(t){let n=[],r=0;for(let e of this._tokenInfo){let i=r,a=i+e.length;if(a>t.start){if(i>=t.endExclusive)break;let r=Math.max(0,t.start-i),o=Math.max(0,a-t.endExclusive);n.push(new mh(e.length-r-o,e.metadata))}r+=e.length}return e.create(n)}},mh=class{constructor(e,t){this.length=e,this.metadata=t}},hh=class{constructor(){this._tokens=[]}add(e,t){this._tokens.push(new mh(e,t))}build(){return ph.create(this._tokens)}},gh=class{constructor(e,t,n){this._indentRulesSupport=t,this._indentationLineProcessor=new vh(e,n)}shouldIncrease(e,t){let n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(n)}shouldDecrease(e,t){let n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(n)}shouldIgnore(e,t){let n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(n)}shouldIndentNextLine(e,t){let n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(n)}},_h=class{constructor(e,t){this.model=e,this.indentationLineProcessor=new vh(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);let t=this.model.tokenization.getLineTokens(e.startLineNumber),n=vf(t,e.startColumn-1),r;if(yh(this.model,e.getStartPosition())){let i=e.startColumn-1-n.firstCharOffset,a=n.firstCharOffset,o=a+i;r=t.sliceAndInflate(a,o,0)}else{let n=e.startColumn-1;r=t.sliceAndInflate(0,n,0)}return this.indentationLineProcessor.getProcessedTokens(r)}_getProcessedTokensAfterRange(e){let t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);let n=this.model.tokenization.getLineTokens(t.lineNumber),r=vf(n,t.column-1),i=t.column-1-r.firstCharOffset,a=r.firstCharOffset+i,o=r.firstCharOffset+r.getLineLength(),s=n.sliceAndInflate(a,o,0);return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedPreviousLineTokens(e){let t=e=>(this.model.tokenization.forceTokenization(e),vf(this.model.tokenization.getLineTokens(e),this.model.getLineMaxColumn(e)-1));this.model.tokenization.forceTokenization(e.startLineNumber);let n=vf(this.model.tokenization.getLineTokens(e.startLineNumber),e.startColumn-1),r=uh.createEmpty(``,n.languageIdCodec),i=e.startLineNumber-1;if(i===0||n.firstCharOffset!==0)return r;let a=t(i);if(n.languageId!==a.languageId)return r;let o=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(o)}},vh=class{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){let n=(e,t)=>{let n=vr(e);return t+e.substring(n.length)};this.model.tokenization.forceTokenization?.(e);let r=this.model.tokenization.getLineTokens(e),i=this.getProcessedTokens(r).getLineContent();return t!==void 0&&(i=n(i,t)),i}getProcessedTokens(e){let t=e=>e===2||e===3||e===1,n=e.getLanguageId(0),r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getBracketRegExp({global:!0}),i=[];return e.forEach(n=>{let a=e.getStandardTokenType(n),o=e.getTokenText(n);t(a)&&(o=o.replace(r,``));let s=e.getMetadata(n);i.push({text:o,metadata:s})}),uh.createFromTextAndMetadata(i,e.languageIdCodec)}};function yh(e,t){e.tokenization.forceTokenization(t.lineNumber);let n=e.tokenization.getLineTokens(t.lineNumber),r=vf(n,t.column-1),i=r.firstCharOffset===0,a=n.getLanguageId(0)===r.languageId;return!i&&!a}function bh(e,t,n,r){t.tokenization.forceTokenization(n.startLineNumber);let i=t.getLanguageIdAtPosition(n.startLineNumber,n.startColumn),a=r.getLanguageConfiguration(i);if(!a)return null;let o=new _h(t,r).getProcessedTokenContextAroundRange(n),s=o.previousLineProcessedTokens.getLineContent(),c=o.beforeRangeProcessedTokens.getLineContent(),l=o.afterRangeProcessedTokens.getLineContent(),u=a.onEnter(e,s,c,l);if(!u)return null;let d=u.indentAction,f=u.appendText,p=u.removeText||0;f?d===bp.Indent&&(f=` `+f):f=d===bp.Indent||d===bp.IndentOutdent?` `:``;let m=th(t,n.startLineNumber,n.startColumn);return p&&(m=m.substring(0,m.length-p)),{indentAction:d,appendText:f,removeText:p,indentation:m}}var xh=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sh=function(e,t){return function(n,r){t(n,r,e)}},Ch,wh=Object.create(null);function Th(e,t){if(t<=0)return``;wh[e]||(wh[e]=[``,e]);let n=wh[e];for(let r=n.length;r<=t;r++)n[r]=n[r-1]+e;return n[t]}var Eh=Ch=class{static unshiftIndent(e,t,n,r,i){let a=xf.visibleColumnFromColumn(e,t,n);return i?Th(Th(` `,r),xf.prevIndentTabStop(a,r)/r):Th(` `,xf.prevRenderTabStop(a,n)/n)}static shiftIndent(e,t,n,r,i){let a=xf.visibleColumnFromColumn(e,t,n);return i?Th(Th(` `,r),xf.nextIndentTabStop(a,r)/r):Th(` `,xf.nextRenderTabStop(a,n)/n)}constructor(e,t,n){this._languageConfigurationService=n,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)}getEditOperations(e,t){let n=this._selection.startLineNumber,r=this._selection.endLineNumber;this._selection.endColumn===1&&n!==r&&--r;let{tabSize:i,indentSize:a,insertSpaces:o}=this._opts,s=n===r;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,l=0;for(let u=n;u<=r;u++,c=l){l=0;let r=e.getLineContent(u),d=_r(r);if(this._opts.isUnshift&&(r.length===0||d===0)||!s&&!this._opts.isUnshift&&r.length===0)continue;if(d===-1&&(d=r.length),u>1&&xf.visibleColumnFromColumn(r,d+1,i)%a!==0&&e.tokenization.isCheapToTokenize(u-1)){let t=bh(this._opts.autoIndent,e,new H(u-1,e.getLineMaxColumn(u-1),u-1,e.getLineMaxColumn(u-1)),this._languageConfigurationService);if(t){if(l=c,t.appendText)for(let e=0,n=t.appendText.length;e1){let i,a=-1;for(i=t-1;i>=1;i--){if(e.tokenization.getLanguageIdAtPosition(i,0)!==r)return a;let t=e.getLineContent(i);if(n.shouldIgnore(i)||/^\s+$/.test(t)||t===``){a=i;continue}return i}}return-1}function Ah(e,t,n,r=!0,i){if(e<4)return null;let a=i.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!a)return null;let o=new gh(t,a,i);if(n<=1)return{indentation:``,action:null};for(let e=n-1;e>0&&t.getLineContent(e)===``;e--)if(e===1)return{indentation:``,action:null};let s=kh(t,n,o);if(s<0)return null;if(s<1)return{indentation:``,action:null};if(o.shouldIncrease(s)||o.shouldIndentNextLine(s))return{indentation:vr(t.getLineContent(s)),action:bp.Indent,line:s};if(o.shouldDecrease(s))return{indentation:vr(t.getLineContent(s)),action:null,line:s};{if(s===1)return{indentation:vr(t.getLineContent(s)),action:null,line:s};let e=s-1,n=a.getIndentMetadata(t.getLineContent(e));if(!(n&3)&&n&4){let n=0;for(let t=e-1;t>0;t--)if(!o.shouldIndentNextLine(t)){n=t;break}return{indentation:vr(t.getLineContent(n+1)),action:null,line:n+1}}if(r)return{indentation:vr(t.getLineContent(s)),action:null,line:s};for(let e=s;e>0;e--)if(o.shouldIncrease(e))return{indentation:vr(t.getLineContent(e)),action:bp.Indent,line:e};else if(o.shouldIndentNextLine(e)){let n=0;for(let t=e-1;t>0;t--)if(!o.shouldIndentNextLine(e)){n=t;break}return{indentation:vr(t.getLineContent(n+1)),action:null,line:n+1}}else if(o.shouldDecrease(e))return{indentation:vr(t.getLineContent(e)),action:null,line:e};return{indentation:vr(t.getLineContent(1)),action:null,line:1}}}function jh(e,t,n,r,i,a){if(e<4)return null;let o=a.getLanguageConfiguration(n);if(!o)return null;let s=a.getLanguageConfiguration(n).indentRulesSupport;if(!s)return null;let c=new gh(t,s,a),l=Ah(e,t,r,void 0,a);if(l){let n=l.line;if(n!==void 0){let a=!0;for(let e=n;e0){let s=t.getLineContent(m);if(c.shouldIndentNextLine(s)&&c.shouldIncrease(p)){let s=Ah(o,t,n.startLineNumber,!1,a)?.indentation;if(s!==void 0){let a=vr(t.getLineContent(n.startLineNumber)),o=i.shiftIndent(s)===a,c=/^\s*$/.test(f),l=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(r),u=l&&l.length>0&&c;if(o&&u)return s}}}return null}function Dee(e,t,n){let r=n.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return!r||t<1||t>e.getLineCount()?null:r.getIndentMetadata(e.getLineContent(t))}function Oee(e,t,n){return{tokenization:{getLineTokens:r=>r===t?n:e.tokenization.getLineTokens(r),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,n)=>e.getLanguageIdAtPosition(t,n)},getLineContent:r=>r===t?n.getLineContent():e.getLineContent(r)}}var kee=class{static getEdits(e,t,n,r,i){if(!i&&this._isAutoIndentType(e,t,n)){let i=[];for(let a of n){let n=this._findActualIndentationForSelection(e,t,a,r);if(n===null)return;i.push({selection:a,indentation:n})}let a=Mh.getAutoClosingPairClose(e,t,n,r,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,i,r,a)}}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let e=0,r=n.length;eJh(e,t),unshiftIndent:t=>Yh(e,t)},e.languageConfigurationService);if(i===null)return null;let a=th(t,n.startLineNumber,n.startColumn);return i===e.normalizeIndentation(a)?null:i}static _getIndentationAndAutoClosingPairEdits(e,t,n,r,i){return new Nf(4,n.map(({selection:n,indentation:a})=>{if(i!==null)return new Vh(this._getEditFromIndentationAndSelection(e,t,a,n,r,!1),n,r,i);{let i=this._getEditFromIndentationAndSelection(e,t,a,n,r,!0);return qh(i.range,i.text,!1)}}),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,n,r,i,a=!0){let o=r.startLineNumber,s=t.getLineFirstNonWhitespaceColumn(o),c=e.normalizeIndentation(n);if(s!==0){let e=t.getLineContent(o);c+=e.substring(s-1,r.startColumn-1)}return c+=a?i:``,{range:new H(o,1,r.endLineNumber,r.endColumn),text:c}}},Aee=class{static getEdits(e,t,n,r,i,a){if(Kh(t,n,r,i,a))return this._runAutoClosingOvertype(e,r,a)}static _runAutoClosingOvertype(e,t,n){let r=[];for(let e=0,i=t.length;enew If(new H(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),``,!1)),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}},Mh=class{static getEdits(e,t,n,r,i,a){if(!a){let a=this.getAutoClosingPairClose(e,t,n,r,i);if(a!==null)return this._runAutoClosingOpenCharType(n,r,i,a)}}static _runAutoClosingOpenCharType(e,t,n,r){let i=[];for(let a=0,o=e.length;a{let t=e.getPosition();return i?{lineNumber:t.lineNumber,beforeColumn:t.column-r.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),o=this._findAutoClosingPairOpen(e,t,a.map(e=>new R(e.lineNumber,e.beforeColumn)),r);if(!o)return null;let s,c;if(Pf(r)?(s=e.autoClosingQuotes,c=e.shouldAutoCloseBefore.quote):e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(s=e.autoClosingComments,c=e.shouldAutoCloseBefore.comment):(s=e.autoClosingBrackets,c=e.shouldAutoCloseBefore.bracket),s===`never`)return null;let l=this._findContainedAutoClosingPair(e,o),u=l?l.close:``,d=!0;for(let n of a){let{lineNumber:i,beforeColumn:a,afterColumn:l}=n,f=t.getLineContent(i),p=f.substring(0,a-1),m=f.substring(l-1);if(m.startsWith(u)||(d=!1),m.length>0){let t=m.charAt(0);if(!this._isBeforeClosingBrace(e,m)&&!c(t))return null}if(o.open.length===1&&(r===`'`||r===`"`)&&s!==`always`){let t=Zf(e.wordSeparators,[]);if(p.length>0){let e=p.charCodeAt(p.length-1);if(t.get(e)===0)return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);let h=vf(t.tokenization.getLineTokens(i),a-1);if(!o.shouldAutoClose(h,a-h.firstCharOffset))return null;let g=o.findNeutralCharacter();if(g){let e=t.tokenization.getTokenTypeIfInsertingCharacter(i,a,g);if(!o.isOK(e))return null}}return d?o.close.substring(0,o.close.length-u.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;let n=t.close.charAt(t.close.length-1),r=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(n)||[],i=null;for(let e of r)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!i||e.open.length>i.open.length)&&(i=e);return i}static _findAutoClosingPairOpen(e,t,n,r){let i=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(r);if(!i)return null;let a=null;for(let e of i)if(a===null||e.open.length>a.open.length){let i=!0;for(let a of n)if(t.getValueInRange(new H(a.lineNumber,a.column-e.open.length+1,a.lineNumber,a.column))+r!==e.open){i=!1;break}i&&(a=e)}return a}static _isBeforeClosingBrace(e,t){let n=t.charAt(0),r=e.autoClosingPairs.autoClosingPairsOpenByStart.get(n)||[],i=e.autoClosingPairs.autoClosingPairsCloseByStart.get(n)||[],a=r.some(e=>t.startsWith(e.open)),o=i.some(e=>t.startsWith(e.close));return!a&&o}},Nh=class{static getEdits(e,t){return e.inputMode===`overtype`?new Nf(4,t.map(e=>new yee(e.insertedTextRange)),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1}):null}},Ph=class{static getEdits(e,t,n,r,i){if(!i&&this._isSurroundSelectionType(e,t,n,r))return this._runSurroundSelectionType(e,n,r)}static _runSurroundSelectionType(e,t,n){let r=[];for(let i=0,a=t.length;i=4){let i=Tee(e.autoIndent,t,r,{unshiftIndent:t=>Yh(e,t),shiftIndent:t=>Jh(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(i){let a=e.visibleColumnFromColumn(t,r.getEndPosition()),o=r.endColumn,s=_r(t.getLineContent(r.endLineNumber));if(r=s>=0?r.setEndPosition(r.endLineNumber,Math.max(r.endColumn,s+1)):r.setEndPosition(r.endLineNumber,t.getLineMaxColumn(r.endLineNumber)),n)return new Rf(r,` `+e.normalizeIndentation(i.afterEnter),!0);{let t=0;return o<=s+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(i.afterEnter).length-1,0)),new zf(r,` `+e.normalizeIndentation(i.afterEnter),0,t,!0)}}}return qh(r,` `+e.normalizeIndentation(a),n)}static lineInsertBefore(e,t,n){if(t===null||n===null)return[];let r=[];for(let i=0,a=n.length;ithis._compositionType(n,e,i,a,o,s)),{shouldPushStackElementBefore:Uh(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,n,r,i,a){if(!t.isEmpty())return null;let o=t.getPosition(),s=Math.max(1,o.column-r),c=Math.min(e.getLineMaxColumn(o.lineNumber),o.column+i);return new zf(new H(o.lineNumber,s,o.lineNumber,c),n,0,a)}},Nee=class{static getEdits(e,t,n){let r=[];for(let e=0,i=t.length;e1){let r;for(r=n-1;r>=1&&!(yr(t.getLineContent(r))>=0);r--);if(r<1)return null;let a=t.getLineMaxColumn(r),o=bh(e.autoIndent,t,new H(r,a,r,a),e.languageConfigurationService);o&&(i=o.indentation+o.appendText)}return r&&(r===bp.Indent&&(i=Jh(e,i)),r===bp.Outdent&&(i=Yh(e,i)),i=e.normalizeIndentation(i)),i||null}static _replaceJumpToNextIndent(e,t,n,r){let i=``,a=n.getStartPosition();if(e.insertSpaces){let n=e.visibleColumnFromColumn(t,a),r=e.indentSize,o=r-n%r;for(let e=0;e2?c.charCodeAt(s.column-2):0)===92&&l)return!1;if(e.autoClosingOvertype===`auto`){let e=!1;for(let t=0,n=r.length;t{let n=e.get(Pl).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(e,n,t):!1}),e.addImplementation(1e3,`generic-dom-input-textarea`,(e,t)=>{let n=Ac();return n&&ul(n)?(this.runDOMCommand(n),!0):!1}),e.addImplementation(0,`generic-dom`,(e,t)=>{let n=e.get(Pl).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(e,n,t)):!1})}_runEditorCommand(e,t,n){return this.runEditorCommand(e,t,n)||!0}},ig;(function(e){class t extends eg{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[vp.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&t.revealType!==2&&e.revealAllCursors(t.source,!0,!0))}}e.MoveTo=af(new t({id:`_moveTo`,inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=af(new t({id:`_moveToSelect`,inSelectionMode:!0,precondition:void 0}));class n extends eg{runCoreEditorCommand(e,t){e.model.pushStackElement();let n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);n!==null&&(e.setCursorStates(t.source,3,n.viewStates.map(e=>kf.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=af(new class extends n{constructor(){super({id:`columnSelect`,precondition:void 0})}_getColumnSelectResult(e,t,n,r){if(r.position===void 0||r.viewPosition===void 0||r.mouseColumn===void 0)return null;let i=e.model.validatePosition(r.position),a=e.coordinatesConverter.validateViewPosition(new R(r.viewPosition.lineNumber,r.viewPosition.column),i),o=r.doColumnSelect?n.fromViewLineNumber:a.lineNumber,s=r.doColumnSelect?n.fromViewVisualColumn:r.mouseColumn-1;return Ff.columnSelect(e.cursorConfig,e,o,s,a.lineNumber,r.mouseColumn-1)}}),e.CursorColumnSelectLeft=af(new class extends n{constructor(){super({id:`cursorColumnSelectLeft`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,r){return Ff.columnSelectLeft(e.cursorConfig,e,n)}}),e.CursorColumnSelectRight=af(new class extends n{constructor(){super({id:`cursorColumnSelectRight`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,r){return Ff.columnSelectRight(e.cursorConfig,e,n)}});class r extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,r){return Ff.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectUp=af(new r({isPaged:!1,id:`cursorColumnSelectUp`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=af(new r({isPaged:!0,id:`cursorColumnSelectPageUp`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3595,linux:{primary:0}}}));class i extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,r){return Ff.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectDown=af(new i({isPaged:!1,id:`cursorColumnSelectDown`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=af(new i({isPaged:!0,id:`cursorColumnSelectPageDown`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:3596,linux:{primary:0}}}));class o extends eg{constructor(){super({id:`cursorMove`,precondition:void 0,metadata:yp.metadata})}runCoreEditorCommand(e,t){let n=yp.parse(t);n&&this._runCursorMove(e,t.source,n)}_runCursorMove(e,t,n){e.model.pushStackElement(),e.setCursorStates(t,3,o._move(e,e.getCursorStates(),n)),e.revealAllCursors(t,!0)}static _move(e,t,n){let r=n.select,i=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return vp.simpleMove(e,t,n.direction,r,i,n.unit);case 11:case 13:case 12:case 14:return vp.viewportMove(e,t,n.direction,r,i);default:return null}}}e.CursorMoveImpl=o,e.CursorMove=af(new o);class s extends eg{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let n=this._staticArgs;this._staticArgs.value===-1&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,vp.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=af(new s({args:{direction:0,unit:0,select:!1,value:1},id:`cursorLeft`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=af(new s({args:{direction:0,unit:0,select:!0,value:1},id:`cursorLeftSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1039}})),e.CursorRight=af(new s({args:{direction:1,unit:0,select:!1,value:1},id:`cursorRight`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=af(new s({args:{direction:1,unit:0,select:!0,value:1},id:`cursorRightSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1041}})),e.CursorUp=af(new s({args:{direction:2,unit:2,select:!1,value:1},id:`cursorUp`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=af(new s({args:{direction:2,unit:2,select:!0,value:1},id:`cursorUpSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=af(new s({args:{direction:2,unit:2,select:!1,value:-1},id:`cursorPageUp`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:11}})),e.CursorPageUpSelect=af(new s({args:{direction:2,unit:2,select:!0,value:-1},id:`cursorPageUpSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1035}})),e.CursorDown=af(new s({args:{direction:3,unit:2,select:!1,value:1},id:`cursorDown`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=af(new s({args:{direction:3,unit:2,select:!0,value:1},id:`cursorDownSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=af(new s({args:{direction:3,unit:2,select:!1,value:-1},id:`cursorPageDown`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:12}})),e.CursorPageDownSelect=af(new s({args:{direction:3,unit:2,select:!0,value:-1},id:`cursorPageDownSelect`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1036}})),e.CreateCursor=af(new class extends eg{constructor(){super({id:`createCursor`,precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let n;n=t.wholeLine?vp.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):vp.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);let r=e.getCursorStates();if(r.length>1){let i=n.modelState?n.modelState.position:null,a=n.viewState?n.viewState.position:null;for(let n=0,o=r.length;na&&(i=a);let o=new H(i,1,i,e.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case ng.RawAtArgument.Top:s=3;break;case ng.RawAtArgument.Center:s=1;break;case ng.RawAtArgument.Bottom:s=4;break;default:break}let c=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,c,s,0)}}),e.SelectAll=new class extends rg{constructor(){super(gf)}runDOMCommand(e){m&&(e.focus(),e.select()),e.ownerDocument.execCommand(`selectAll`)}runEditorCommand(e,t,n){let r=t._getViewModel();r&&this.runCoreEditorCommand(r,n)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(`keyboard`,3,[vp.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=af(new class extends eg{constructor(){super({id:`setSelection`,precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[kf.fromModelSelection(t.selection)]))}})})(ig||={});var ag=pu.and(W.textInputFocus,W.columnSelection);function og(e,t){Vu.registerKeybindingRule({id:e,primary:t,when:ag,weight:1})}og(ig.CursorColumnSelectLeft.id,1039),og(ig.CursorColumnSelectRight.id,1041),og(ig.CursorColumnSelectUp.id,1040),og(ig.CursorColumnSelectPageUp.id,1035),og(ig.CursorColumnSelectDown.id,1042),og(ig.CursorColumnSelectPageDown.id,1036);function sg(e){return e.register(),e}var cg;(function(e){class t extends $d{runEditorCommand(e,t,n){let r=t._getViewModel();r&&this.runCoreEditingCommand(t,r,n||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=af(new class extends t{constructor(){super({id:`lineBreakInsert`,precondition:W.writable,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Lh.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=af(new class extends t{constructor(){super({id:`outdent`,precondition:W.writable,kbOpts:{weight:$h,kbExpr:pu.and(W.editorTextFocus,W.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Zh.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=af(new class extends t{constructor(){super({id:`tab`,precondition:W.writable,kbOpts:{weight:$h,kbExpr:pu.and(W.editorTextFocus,W.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Zh.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=af(new class extends t{constructor(){super({id:`deleteLeft`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,n){let[r,i]=Gf.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());r&&e.pushUndoStop(),e.executeCommands(this.id,i),t.setPrevEditOperationType(2)}}),e.DeleteRight=af(new class extends t{constructor(){super({id:`deleteRight`,precondition:void 0,kbOpts:{weight:$h,kbExpr:W.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,n){let[r,i]=Gf.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));r&&e.pushUndoStop(),e.executeCommands(this.id,i),t.setPrevEditOperationType(3)}}),e.Undo=new class extends rg{constructor(){super(mf)}runDOMCommand(e){e.ownerDocument.execCommand(`undo`)}runEditorCommand(e,t,n){if(!(!t.hasModel()||t.getOption(103)===!0))return t.getModel().undo()}},e.Redo=new class extends rg{constructor(){super(hf)}runDOMCommand(e){e.ownerDocument.execCommand(`redo`)}runEditorCommand(e,t,n){if(!(!t.hasModel()||t.getOption(103)===!0))return t.getModel().redo()}}})(cg||={});var lg=class extends Xd{constructor(e,t,n){super({id:e,precondition:void 0,metadata:n}),this._handlerId=t}runCommand(e,t){let n=e.get(Pl).getFocusedCodeEditor();n&&n.trigger(`keyboard`,this._handlerId,t)}};function ug(e,t){sg(new lg(`default:`+e,e)),sg(new lg(e,e,t))}ug(`type`,{description:`Type`,args:[{name:`args`,schema:{type:`object`,required:[`text`],properties:{text:{type:`string`}}}}]}),ug(`replacePreviousChar`),ug(`compositionType`),ug(`compositionStart`),ug(`compositionEnd`),ug(`paste`),ug(`cut`);var dg=Nl(`markerDecorationsService`),fg=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pg=function(e,t){return function(n,r){t(n,r,e)}},mg=class{static{this.ID=`editor.contrib.markerDecorations`}constructor(e,t){}dispose(){}};mg=fg([pg(1,dg)],mg),lf(mg.ID,mg,0);var hg=class{constructor(e){this.domNode=e,this._maxWidth=``,this._width=``,this._height=``,this._top=``,this._left=``,this._bottom=``,this._right=``,this._paddingLeft=``,this._fontFamily=``,this._fontWeight=``,this._fontSize=``,this._fontStyle=``,this._fontFeatureSettings=``,this._fontVariationSettings=``,this._textDecoration=``,this._lineHeight=``,this._letterSpacing=``,this._className=``,this._display=``,this._position=``,this._visibility=``,this._color=``,this._backgroundColor=``,this._layerHint=!1,this._contain=`none`,this._boxShadow=``}focus(){this.domNode.focus()}setMaxWidth(e){let t=gg(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=gg(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=gg(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=gg(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=gg(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=gg(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=gg(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=gg(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=gg(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=gg(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=gg(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?`translate3d(0px, 0px, 0px)`:``)}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function gg(e){return typeof e==`number`?`${e}px`:e}function _g(e){return new hg(e)}function vg(e,t){e instanceof hg?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+`px`,e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+`px`,e.style.letterSpacing=t.letterSpacing+`px`)}var yg=class extends O{constructor(e,t){super(),this._onDidChange=this._register(new A),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null,t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()},n=!1,r=!1,i=()=>{if(n&&!r)try{n=!1,r=!0,t()}finally{lc(N(this._referenceDomElement),()=>{r=!1,i()})}};this._resizeObserver=new ResizeObserver(t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,n=!0,i()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&=(this._resizeObserver.disconnect(),null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let n=0,r=0;t?(n=t.width,r=t.height):this._referenceDomElement&&(n=this._referenceDomElement.clientWidth,r=this._referenceDomElement.clientHeight),n=Math.max(5,n),r=Math.max(5,r),(this._width!==n||this._height!==r)&&(this._width=n,this._height=r,e&&this._onDidChange.fire())}},bg=class extends O{constructor(e){super(),this._onDidChange=this._register(new A),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener(`change`,this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener(`change`,this._listener),t&&this._onDidChange.fire()}},xg=class extends O{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new A),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);let t=this._register(new bg(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){let t=document.createElement(`canvas`).getContext(`2d`);return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},Sg=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){let t=Ks(e),n=this.mapWindowIdToPixelRatioMonitor.get(t);return n||(n=Yt(new xg(e)),this.mapWindowIdToPixelRatioMonitor.set(t,n),Yt(k.once(Xs)(({vscodeWindowId:e})=>{e===t&&(n?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),n}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}},Cg=class{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}},wg=class e{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){let t=document.createElement(`div`);t.style.position=`absolute`,t.style.top=`-50000px`,t.style.width=`50000px`;let n=document.createElement(`div`);vg(n,this._bareFontInfo),t.appendChild(n);let r=document.createElement(`div`);vg(r,this._bareFontInfo),r.style.fontWeight=`bold`,t.appendChild(r);let i=document.createElement(`div`);vg(i,this._bareFontInfo),i.style.fontStyle=`italic`,t.appendChild(i);let a=[];for(let t of this._requests){let o;t.type===0&&(o=n),t.type===2&&(o=r),t.type===1&&(o=i),o.appendChild(document.createElement(`br`));let s=document.createElement(`span`);e._render(s,t),o.appendChild(s),a.push(s)}this._container=t,this._testElements=a}static _render(e,t){if(t.chr===` `){let t=`\xA0`;for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let n=t.chr;for(let e=0;e<8;e++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;en?n:e}static float(e,t){if(typeof e==`number`)return e;if(e===void 0)return t;let n=parseFloat(e);return isNaN(n)?t:n}constructor(e,t,n,r,i,a,o){i!==void 0&&(i.type=`number`,i.default=n,i.minimum=a,i.maximum=o),super(e,t,n,i),this.validationFn=r,this.minimum=a,this.maximum=o}validate(t){return this.validationFn(e.float(t,this.defaultValue))}},zg=class e extends Ng{static string(e,t){return typeof e==`string`?e:t}constructor(e,t,n,r=void 0){r!==void 0&&(r.type=`string`,r.default=n),super(e,t,n,r)}validate(t){return e.string(t,this.defaultValue)}};function Bg(e,t,n,r){return typeof e==`string`?r&&e in r?r[e]:n.indexOf(e)===-1?t:e:t}var Vg=class extends Ng{constructor(e,t,n,r,i=void 0){i!==void 0&&(i.type=`string`,i.enum=r,i.default=n),super(e,t,n,i),this._allowedValues=r}validate(e){return Bg(e,this.defaultValue,this._allowedValues)}},Hg=class extends kg{constructor(e,t,n,r,i,a,o=void 0){o!==void 0&&(o.type=`string`,o.enum=i,o.default=r),super(e,t,n,o),this._allowedValues=i,this._convert=a}validate(e){return typeof e!=`string`||this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}};function Ug(e){switch(e){case`none`:return 0;case`keep`:return 1;case`brackets`:return 2;case`advanced`:return 3;case`full`:return 4}}var Wg=class extends kg{constructor(){super(2,`accessibilitySupport`,0,{type:`string`,enum:[`auto`,`on`,`off`],enumDescriptions:[a(198,`Use platform APIs to detect when a Screen Reader is attached.`),a(199,`Optimize for usage with a Screen Reader.`),a(200,`Assume a screen reader is not attached.`)],default:`auto`,tags:[`accessibility`],description:a(201,`Controls if the UI should run in a mode where it is optimized for screen readers.`)})}validate(e){switch(e){case`auto`:return 0;case`off`:return 1;case`on`:return 2}return this.defaultValue}compute(e,t,n){return n===0?e.accessibilitySupport:n}},Gg=class extends kg{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(29,`comments`,e,{"editor.comments.insertSpace":{type:`boolean`,default:e.insertSpace,description:a(202,`Controls whether a space character is inserted when commenting.`)},"editor.comments.ignoreEmptyLines":{type:`boolean`,default:e.ignoreEmptyLines,description:a(203,`Controls if empty lines should be ignored with toggle, add or remove actions for line comments.`)}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return{insertSpace:G(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:G(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}};function Kg(e){switch(e){case`blink`:return 1;case`smooth`:return 2;case`phase`:return 3;case`expand`:return 4;case`solid`:return 5}}var qg;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(qg||={});function Jg(e){switch(e){case`line`:return qg.Line;case`block`:return qg.Block;case`underline`:return qg.Underline;case`line-thin`:return qg.LineThin;case`block-outline`:return qg.BlockOutline;case`underline-thin`:return qg.UnderlineThin}}var Yg=class extends Mg{constructor(){super(161)}compute(e,t,n){let r=[`monaco-editor`];return t.get(48)&&r.push(t.get(48)),e.extraEditorClassName&&r.push(e.extraEditorClassName),t.get(82)==="default"?r.push(`mouse-default`):t.get(82)===`copy`&&r.push(`mouse-copy`),t.get(126)&&r.push(`showUnused`),t.get(156)&&r.push(`showDeprecated`),r.join(` `)}},Xg=class extends Pg{constructor(){super(45,`emptySelectionClipboard`,!0,{description:a(204,`Controls whether copying without a selection copies the current line.`)})}compute(e,t,n){return n&&e.emptySelectionClipboard}},Zg=class extends kg{constructor(){let e={cursorMoveOnType:!0,findOnType:!0,seedSearchStringFromSelection:`always`,autoFindInSelection:`never`,globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0,history:`workspace`,replaceHistory:`workspace`};super(50,`find`,e,{"editor.find.cursorMoveOnType":{type:`boolean`,default:e.cursorMoveOnType,description:a(205,`Controls whether the cursor should jump to find matches while typing.`)},"editor.find.seedSearchStringFromSelection":{type:`string`,enum:[`never`,`always`,`selection`],default:e.seedSearchStringFromSelection,enumDescriptions:[a(206,`Never seed search string from the editor selection.`),a(207,`Always seed search string from the editor selection, including word at cursor position.`),a(208,`Only seed search string from the editor selection.`)],description:a(209,`Controls whether the search string in the Find Widget is seeded from the editor selection.`)},"editor.find.autoFindInSelection":{type:`string`,enum:[`never`,`always`,`multiline`],default:e.autoFindInSelection,enumDescriptions:[a(210,`Never turn on Find in Selection automatically (default).`),a(211,`Always turn on Find in Selection automatically.`),a(212,`Turn on Find in Selection automatically when multiple lines of content are selected.`)],description:a(213,`Controls the condition for turning on Find in Selection automatically.`)},"editor.find.globalFindClipboard":{type:`boolean`,default:e.globalFindClipboard,description:a(214,`Controls whether the Find Widget should read or modify the shared find clipboard on macOS.`),included:Ge},"editor.find.addExtraSpaceOnTop":{type:`boolean`,default:e.addExtraSpaceOnTop,description:a(215,`Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.`)},"editor.find.loop":{type:`boolean`,default:e.loop,description:a(216,`Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.`)},"editor.find.history":{type:`string`,enum:[`never`,`workspace`],default:`workspace`,enumDescriptions:[a(217,`Do not store search history from the find widget.`),a(218,`Store search history across the active workspace`)],description:a(219,`Controls how the find widget history should be stored`)},"editor.find.replaceHistory":{type:`string`,enum:[`never`,`workspace`],default:`workspace`,enumDescriptions:[a(220,`Do not store history from the replace widget.`),a(221,`Store replace history across the active workspace`)],description:a(222,`Controls how the replace widget history should be stored`)},"editor.find.findOnType":{type:`boolean`,default:e.findOnType,description:a(223,`Controls whether the Find Widget should search as you type.`)}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return{cursorMoveOnType:G(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),findOnType:G(t.findOnType,this.defaultValue.findOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection==`boolean`?e.seedSearchStringFromSelection?`always`:`never`:Bg(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,[`never`,`always`,`selection`]),autoFindInSelection:typeof e.autoFindInSelection==`boolean`?e.autoFindInSelection?`always`:`never`:Bg(t.autoFindInSelection,this.defaultValue.autoFindInSelection,[`never`,`always`,`multiline`]),globalFindClipboard:G(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:G(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:G(t.loop,this.defaultValue.loop),history:Bg(t.history,this.defaultValue.history,[`never`,`workspace`]),replaceHistory:Bg(t.replaceHistory,this.defaultValue.replaceHistory,[`never`,`workspace`])}}},Qg=class e extends kg{static{this.OFF=`"liga" off, "calt" off`}static{this.ON=`"liga" on, "calt" on`}constructor(){super(60,`fontLigatures`,e.OFF,{anyOf:[{type:`boolean`,description:a(224,`Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.`)},{type:`string`,description:a(225,`Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.`)}],description:a(226,`Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property.`),default:!1})}validate(t){return t===void 0?this.defaultValue:typeof t==`string`?t===`false`||t.length===0?e.OFF:t===`true`?e.ON:t:t?e.ON:e.OFF}},$g=class e extends kg{static{this.OFF=`normal`}static{this.TRANSLATE=`translate`}constructor(){super(63,`fontVariations`,e.OFF,{anyOf:[{type:`boolean`,description:a(227,`Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.`)},{type:`string`,description:a(228,`Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.`)}],description:a(229,`Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property.`),default:!1})}validate(t){return t===void 0?this.defaultValue:typeof t==`string`?t===`false`?e.OFF:t===`true`?e.TRANSLATE:t:t?e.TRANSLATE:e.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}},e_=class extends Mg{constructor(){super(59)}compute(e,t,n){return e.fontInfo}},t_=class extends Mg{constructor(){super(160)}compute(e,t,n){return e.inputMode===`overtype`?t.get(91):t.get(34)}},n_=class extends Mg{constructor(){super(169)}compute(e,t){return e.editContextSupported&&t.get(44)}},r_=class extends Mg{constructor(){super(171)}compute(e,t){return e.accessibilitySupport===2?t.get(7):t.get(6)}},i_=class extends Ng{constructor(){super(61,`fontSize`,W_.fontSize,{type:`number`,minimum:6,maximum:100,default:W_.fontSize,description:a(230,`Controls the font size in pixels.`)})}validate(e){let t=Rg.float(e,this.defaultValue);return t===0?W_.fontSize:Rg.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}},a_=class e extends kg{static{this.SUGGESTION_VALUES=[`normal`,`bold`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(62,`fontWeight`,W_.fontWeight,{anyOf:[{type:`number`,minimum:e.MINIMUM_VALUE,maximum:e.MAXIMUM_VALUE,errorMessage:a(231,`Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.`)},{type:`string`,pattern:`^(normal|bold|1000|[1-9][0-9]{0,2})$`},{enum:e.SUGGESTION_VALUES}],default:W_.fontWeight,description:a(232,`Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.`)})}validate(t){return t===`normal`||t===`bold`?t:String(Ig.clampedInt(t,W_.fontWeight,e.MINIMUM_VALUE,e.MAXIMUM_VALUE))}},o_=class extends kg{constructor(){let e={multiple:`peek`,multipleDefinitions:`peek`,multipleTypeDefinitions:`peek`,multipleDeclarations:`peek`,multipleImplementations:`peek`,multipleReferences:`peek`,multipleTests:`peek`,alternativeDefinitionCommand:`editor.action.goToReferences`,alternativeTypeDefinitionCommand:`editor.action.goToReferences`,alternativeDeclarationCommand:`editor.action.goToReferences`,alternativeImplementationCommand:``,alternativeReferenceCommand:``,alternativeTestsCommand:``},t={type:`string`,enum:[`peek`,`gotoAndPeek`,`goto`],default:e.multiple,enumDescriptions:[a(233,`Show Peek view of the results (default)`),a(234,`Go to the primary result and show a Peek view`),a(235,`Go to the primary result and enable Peek-less navigation to others`)]},n=[``,`editor.action.referenceSearch.trigger`,`editor.action.goToReferences`,`editor.action.peekImplementation`,`editor.action.goToImplementation`,`editor.action.peekTypeDefinition`,`editor.action.goToTypeDefinition`,`editor.action.peekDeclaration`,`editor.action.revealDeclaration`,`editor.action.peekDefinition`,`editor.action.revealDefinitionAside`,`editor.action.revealDefinition`];super(67,`gotoLocation`,e,{"editor.gotoLocation.multiple":{deprecationMessage:a(236,`This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.`)},"editor.gotoLocation.multipleDefinitions":{description:a(237,`Controls the behavior the 'Go to Definition'-command when multiple target locations exist.`),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:a(238,`Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.`),...t},"editor.gotoLocation.multipleDeclarations":{description:a(239,`Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.`),...t},"editor.gotoLocation.multipleImplementations":{description:a(240,`Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.`),...t},"editor.gotoLocation.multipleReferences":{description:a(241,`Controls the behavior the 'Go to References'-command when multiple target locations exist.`),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:`string`,default:e.alternativeDefinitionCommand,enum:n,description:a(242,`Alternative command id that is being executed when the result of 'Go to Definition' is the current location.`)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:`string`,default:e.alternativeTypeDefinitionCommand,enum:n,description:a(243,`Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.`)},"editor.gotoLocation.alternativeDeclarationCommand":{type:`string`,default:e.alternativeDeclarationCommand,enum:n,description:a(244,`Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.`)},"editor.gotoLocation.alternativeImplementationCommand":{type:`string`,default:e.alternativeImplementationCommand,enum:n,description:a(245,`Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.`)},"editor.gotoLocation.alternativeReferenceCommand":{type:`string`,default:e.alternativeReferenceCommand,enum:n,description:a(246,`Alternative command id that is being executed when the result of 'Go to Reference' is the current location.`)}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return{multiple:Bg(t.multiple,this.defaultValue.multiple,[`peek`,`gotoAndPeek`,`goto`]),multipleDefinitions:t.multipleDefinitions??Bg(t.multipleDefinitions,`peek`,[`peek`,`gotoAndPeek`,`goto`]),multipleTypeDefinitions:t.multipleTypeDefinitions??Bg(t.multipleTypeDefinitions,`peek`,[`peek`,`gotoAndPeek`,`goto`]),multipleDeclarations:t.multipleDeclarations??Bg(t.multipleDeclarations,`peek`,[`peek`,`gotoAndPeek`,`goto`]),multipleImplementations:t.multipleImplementations??Bg(t.multipleImplementations,`peek`,[`peek`,`gotoAndPeek`,`goto`]),multipleReferences:t.multipleReferences??Bg(t.multipleReferences,`peek`,[`peek`,`gotoAndPeek`,`goto`]),multipleTests:t.multipleTests??Bg(t.multipleTests,`peek`,[`peek`,`gotoAndPeek`,`goto`]),alternativeDefinitionCommand:zg.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:zg.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:zg.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:zg.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:zg.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:zg.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}},s_=class extends kg{constructor(){let e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(69,`hover`,e,{"editor.hover.enabled":{type:`boolean`,default:e.enabled,description:a(247,`Controls whether the hover is shown.`)},"editor.hover.delay":{type:`number`,default:e.delay,minimum:0,maximum:1e4,description:a(248,`Controls the delay in milliseconds after which the hover is shown.`)},"editor.hover.sticky":{type:`boolean`,default:e.sticky,description:a(249,`Controls whether the hover should remain visible when mouse is moved over it.`)},"editor.hover.hidingDelay":{type:`integer`,minimum:0,default:e.hidingDelay,markdownDescription:a(250,"Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")},"editor.hover.above":{type:`boolean`,default:e.above,description:a(251,`Prefer showing hovers above the line, if there's space.`)}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return{enabled:G(t.enabled,this.defaultValue.enabled),delay:Ig.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:G(t.sticky,this.defaultValue.sticky),hidingDelay:Ig.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:G(t.above,this.defaultValue.above)}}},c_=class e extends Mg{constructor(){super(164)}compute(t,n,r){return e.computeLayout(n,{memory:t.memory,outerWidth:t.outerWidth,outerHeight:t.outerHeight,isDominatedByLongLines:t.isDominatedByLongLines,lineHeight:t.fontInfo.lineHeight,viewLineCount:t.viewLineCount,lineNumbersDigitCount:t.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:t.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:t.fontInfo.maxDigitWidth,pixelRatio:t.pixelRatio,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){let t=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight),r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,t-1));let i=(n+e.viewLineCount+r)/(e.pixelRatio*e.height),a=Math.floor(e.viewLineCount/i);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:r,desiredRatio:i,minimapLineCount:a}}static _computeMinimapLayout(t,n){let r=t.outerWidth,i=t.outerHeight,a=t.pixelRatio;if(!t.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(a*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};let o=n.stableMinimapLayoutInput,s=o&&t.outerHeight===o.outerHeight&&t.lineHeight===o.lineHeight&&t.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&t.pixelRatio===o.pixelRatio&&t.scrollBeyondLastLine===o.scrollBeyondLastLine&&t.paddingTop===o.paddingTop&&t.paddingBottom===o.paddingBottom&&t.minimap.enabled===o.minimap.enabled&&t.minimap.side===o.minimap.side&&t.minimap.size===o.minimap.size&&t.minimap.showSlider===o.minimap.showSlider&&t.minimap.renderCharacters===o.minimap.renderCharacters&&t.minimap.maxColumn===o.minimap.maxColumn&&t.minimap.scale===o.minimap.scale&&t.verticalScrollbarWidth===o.verticalScrollbarWidth&&t.isViewportWrapping===o.isViewportWrapping,c=t.lineHeight,l=t.typicalHalfwidthCharacterWidth,u=t.scrollBeyondLastLine,d=t.minimap.renderCharacters,f=a>=2?Math.round(t.minimap.scale*2):t.minimap.scale,p=t.minimap.maxColumn,m=t.minimap.size,h=t.minimap.side,g=t.verticalScrollbarWidth,_=t.viewLineCount,v=t.remainingWidth,y=t.isViewportWrapping,b=d?2:3,x=Math.floor(a*i),S=x/a,C=!1,w=!1,ee=b*f,te=f/a,ne=1;if(m===`fill`||m===`fit`){let{typicalViewportLineCount:r,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:p}=e.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:u,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,height:i,lineHeight:c,pixelRatio:a});if(_/p>1)C=!0,w=!0,f=1,ee=1,te=f/a;else{let e=!1,i=f+1;if(m===`fit`){let t=Math.ceil((o+_+l)*ee);y&&s&&v<=n.stableFitRemainingWidth?(e=!0,i=n.stableFitMaxMinimapScale):e=t>x}if(m===`fill`||e){C=!0;let e=f;ee=Math.min(c*a,Math.max(1,Math.floor(1/d))),y&&s&&v<=n.stableFitRemainingWidth&&(i=n.stableFitMaxMinimapScale),f=Math.min(i,Math.max(1,Math.floor(ee/b))),f>e&&(ne=Math.min(2,f/e)),te=f/a/ne,x=Math.ceil(Math.max(r,o+_+l)*ee),y?(n.stableMinimapLayoutInput=t,n.stableFitRemainingWidth=v,n.stableFitMaxMinimapScale=f):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}let re=Math.floor(p*te),ie=Math.min(re,Math.max(0,Math.floor((v-g-2)*te/(l+te)))+8),ae=Math.floor(a*ie),oe=ae/a;return ae=Math.floor(ae*ne),{renderMinimap:d?1:2,minimapLeft:h===`left`?0:r-ie-g,minimapWidth:ie,minimapHeightIsEditorHeight:C,minimapIsSampling:w,minimapScale:f,minimapLineHeight:ee,minimapCanvasInnerWidth:ae,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:oe,minimapCanvasOuterHeight:S}}static computeLayout(t,n){let r=n.outerWidth|0,i=n.outerHeight|0,a=n.lineHeight|0,o=n.lineNumbersDigitCount|0,s=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,u=n.viewLineCount,d=t.get(153),f=d===`inherit`?t.get(152):d,p=f===`inherit`?t.get(148):f,m=t.get(151),h=n.isDominatedByLongLines,g=t.get(66),_=t.get(76).renderType!==0,v=t.get(77),y=t.get(118),b=t.get(95),x=t.get(81),S=t.get(116),C=S.verticalScrollbarSize,w=S.verticalHasArrows,ee=S.arrowSize,te=S.horizontalScrollbarSize,ne=t.get(52),re=t.get(125)!==`never`,ie=t.get(74);ne&&re&&(ie+=16);let ae=0;_&&(ae=Math.round(Math.max(o,v)*c));let oe=0;g&&(oe=a*n.glyphMarginDecorationLaneCount);let se=0,ce=se+oe,le=ce+ae,T=le+ie,ue=r-oe-ae-ie,de=!1,fe=!1,pe=-1;t.get(2)===2&&f===`inherit`&&h?(de=!0,fe=!0):p===`on`||p===`bounded`?fe=!0:p===`wordWrapColumn`&&(pe=m);let me=e._computeMinimapLayout({outerWidth:r,outerHeight:i,lineHeight:a,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:y,paddingTop:b.top,paddingBottom:b.bottom,minimap:x,verticalScrollbarWidth:C,viewLineCount:u,remainingWidth:ue,isViewportWrapping:fe},n.memory||new Og);me.renderMinimap!==0&&me.minimapLeft===0&&(se+=me.minimapWidth,ce+=me.minimapWidth,le+=me.minimapWidth,T+=me.minimapWidth);let he=ue-me.minimapWidth,ge=Math.max(1,Math.floor((he-C-2)/s)),_e=w?ee:0;return fe&&(pe=Math.max(1,ge),p===`bounded`&&(pe=Math.min(pe,m))),{width:r,height:i,glyphMarginLeft:se,glyphMarginWidth:oe,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:ce,lineNumbersWidth:ae,decorationsLeft:le,decorationsWidth:ie,contentLeft:T,contentWidth:he,minimap:me,viewportColumn:ge,isWordWrapMinified:de,isViewportWrapping:fe,wrappingColumn:pe,verticalScrollbarWidth:C,horizontalScrollbarHeight:te,overviewRuler:{top:_e,width:C,height:i-2*_e,right:0}}}},l_=class extends kg{constructor(){super(155,`wrappingStrategy`,`simple`,{"editor.wrappingStrategy":{enumDescriptions:[a(252,`Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width.`),a(253,`Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.`)],type:`string`,enum:[`simple`,`advanced`],default:`simple`,description:a(254,`Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.`)}})}validate(e){return Bg(e,`simple`,[`simple`,`advanced`])}compute(e,t,n){return t.get(2)===2?`advanced`:n}},u_;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(u_||={});var d_=class extends kg{constructor(){let e={enabled:u_.OnCode};super(73,`lightbulb`,e,{"editor.lightbulb.enabled":{type:`string`,enum:[u_.Off,u_.OnCode,u_.On],default:e.enabled,enumDescriptions:[a(255,`Disable the code action menu.`),a(256,`Show the code action menu when the cursor is on lines with code.`),a(257,`Show the code action menu when the cursor is on lines with code or on empty lines.`)],description:a(258,`Enables the Code Action lightbulb in the editor.`)}})}validate(e){return!e||typeof e!=`object`?this.defaultValue:{enabled:Bg(e.enabled,this.defaultValue.enabled,[u_.Off,u_.OnCode,u_.On])}}},f_=class extends kg{constructor(){let e={enabled:!0,maxLineCount:5,defaultModel:`outlineModel`,scrollWithEditor:!0};super(130,`stickyScroll`,e,{"editor.stickyScroll.enabled":{type:`boolean`,default:e.enabled,description:a(259,`Shows the nested current scopes during the scroll at the top of the editor.`)},"editor.stickyScroll.maxLineCount":{type:`number`,default:e.maxLineCount,minimum:1,maximum:20,description:a(260,`Defines the maximum number of sticky lines to show.`)},"editor.stickyScroll.defaultModel":{type:`string`,enum:[`outlineModel`,`foldingProviderModel`,`indentationModel`],default:e.defaultModel,description:a(261,`Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.`)},"editor.stickyScroll.scrollWithEditor":{type:`boolean`,default:e.scrollWithEditor,description:a(262,`Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.`)}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return{enabled:G(t.enabled,this.defaultValue.enabled),maxLineCount:Ig.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Bg(t.defaultModel,this.defaultValue.defaultModel,[`outlineModel`,`foldingProviderModel`,`indentationModel`]),scrollWithEditor:G(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}},p_=class extends kg{constructor(){let e={enabled:`on`,fontSize:0,fontFamily:``,padding:!1,maximumLength:43};super(158,`inlayHints`,e,{"editor.inlayHints.enabled":{type:`string`,default:e.enabled,description:a(263,`Enables the inlay hints in the editor.`),enum:[`on`,`onUnlessPressed`,`offUnlessPressed`,`off`],markdownEnumDescriptions:[a(264,`Inlay hints are enabled`),a(265,`Inlay hints are showing by default and hide when holding {0}`,Ge?`Ctrl+Option`:`Ctrl+Alt`),a(266,`Inlay hints are hidden by default and show when holding {0}`,Ge?`Ctrl+Option`:`Ctrl+Alt`),a(267,`Inlay hints are disabled`)]},"editor.inlayHints.fontSize":{type:`number`,default:e.fontSize,markdownDescription:a(268,`Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.`,"`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:`string`,default:e.fontFamily,markdownDescription:a(269,`Controls font family of inlay hints in the editor. When set to empty, the {0} is used.`,"`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:`boolean`,default:e.padding,description:a(270,`Enables the padding around the inlay hints in the editor.`)},"editor.inlayHints.maximumLength":{type:`number`,default:e.maximumLength,markdownDescription:a(271,"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")}})}validate(e){if(!e||typeof e!=`object`)return this.defaultValue;let t=e;return typeof t.enabled==`boolean`&&(t.enabled=t.enabled?`on`:`off`),{enabled:Bg(t.enabled,this.defaultValue.enabled,[`on`,`off`,`offUnlessPressed`,`onUnlessPressed`]),fontSize:Ig.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:zg.string(t.fontFamily,this.defaultValue.fontFamily),padding:G(t.padding,this.defaultValue.padding),maximumLength:Ig.clampedInt(t.maximumLength,this.defaultValue.maximumLength,0,2**53-1)}}},m_=class extends kg{constructor(){super(74,`lineDecorationsWidth`,10)}validate(e){return typeof e==`string`&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Ig.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Ig.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}},h_=class extends Rg{constructor(){super(75,`lineHeight`,W_.lineHeight,e=>Rg.clamp(e,0,150),{markdownDescription:a(272,`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)},0,150)}compute(e,t,n){return e.fontInfo.lineHeight}},g_=class extends kg{constructor(){let e={enabled:!0,size:`proportional`,side:`right`,showSlider:`mouseover`,autohide:`none`,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,markSectionHeaderRegex:`\\bMARK:\\s*(?-?)\\s*(?