/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(async function(){performance.mark("code/didStartRenderer");const c=window.vscode,d=c.process;function p(o){performance.mark("code/willShowPartsSplash");const e="vs-dark",n="#191A1B",i="#CCCCCC",a=document.createElement("style");a.className="initialShellColors",window.document.head.appendChild(a),a.textContent=`body { background-color: ${n}; color: ${i}; margin: 0; padding: 0; }`,typeof o.partsSplash?.zoomLevel=="number"&&typeof c?.webFrame?.setZoomLevel=="function"&&c.webFrame.setZoomLevel(o.partsSplash.zoomLevel);const s=document.createElement("div");s.id="monaco-parts-splash",s.className=e,window.document.body.appendChild(s),performance.mark("code/didShowPartsSplash")}async function m(o){const e=await f();o?.beforeImport?.(e);const{enableDeveloperKeybindings:n,removeDeveloperKeybindingsAfterLoad:i,developerDeveloperKeybindingsDisposable:a,forceDisableShowDevtoolsOnError:s}=u(e,o);v(e);const r=new URL(`${w(e.appRoot,{isWindows:d.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out/`);globalThis._VSCODE_FILE_ROOT=r.toString(),g(e,r);try{let t;d.env.VSCODE_DEV&&globalThis._VSCODE_USE_RELATIVE_IMPORTS?t="./sessions.desktop.main.js":t=new URL("vs/sessions/sessions.desktop.main.js",r).href;const l=await import(t);return a&&i&&a(),{result:l,configuration:e}}catch(t){throw b(t,n&&!s),t}}async function f(){const o=setTimeout(()=>{console.error("[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...")},1e4);performance.mark("code/willWaitForWindowConfig");const e=await c.context.resolveConfiguration();return performance.mark("code/didWaitForWindowConfig"),clearTimeout(o),e}function u(o,e){const{forceEnableDeveloperKeybindings:n,disallowReloadKeybinding:i,removeDeveloperKeybindingsAfterLoad:a,forceDisableShowDevtoolsOnError:s}=typeof e?.configureDeveloperSettings=="function"?e.configureDeveloperSettings(o):{forceEnableDeveloperKeybindings:!1,disallowReloadKeybinding:!1,removeDeveloperKeybindingsAfterLoad:!1,forceDisableShowDevtoolsOnError:!1},t=!!(!!d.env.VSCODE_DEV||n);let l;return t&&(l=h(i)),{enableDeveloperKeybindings:t,removeDeveloperKeybindingsAfterLoad:a,developerDeveloperKeybindingsDisposable:l,forceDisableShowDevtoolsOnError:s}}function h(o){const e=c.ipcRenderer,n=function(t){return[t.ctrlKey?"ctrl-":"",t.metaKey?"meta-":"",t.altKey?"alt-":"",t.shiftKey?"shift-":"",t.keyCode].join("")},i=d.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",a="123",s=d.platform==="darwin"?"meta-82":"ctrl-82";let r=function(t){const l=n(t);l===i||l===a?e.send("vscode:toggleDevTools"):l===s&&!o&&e.send("vscode:reloadWindow")};return window.addEventListener("keydown",r),function(){r&&(window.removeEventListener("keydown",r),r=void 0)}}function v(o){globalThis._VSCODE_NLS_MESSAGES=o.nls.messages,globalThis._VSCODE_NLS_LANGUAGE=o.nls.language;let e=o.nls.language||"en";e==="zh-tw"?e="zh-Hant":e==="zh-cn"&&(e="zh-Hans"),window.document.documentElement.setAttribute("lang",e)}function b(o,e){e&&c.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${o}`),o&&typeof o!="string"&&o.stack&&console.error(o.stack)}function w(o,e){let n=o.replace(/\\/g,"/");n.length>0&&n.charAt(0)!=="/"&&(n=`/${n}`);let i;return e.isWindows&&n.startsWith("//")?i=encodeURI(`${e.scheme||"file"}:${n}`):i=encodeURI(`${e.scheme||"file"}://${e.fallbackAuthority||""}${n}`),i.replace(/#/g,"%23")}function g(o,e){if(!globalThis._VSCODE_DISABLE_CSS_IMPORT_MAP&&Array.isArray(o.cssModules)&&o.cssModules.length>0){performance.mark("code/willAddCssLoader"),globalThis._VSCODE_CSS_LOAD=function(r){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",r),window.document.head.appendChild(t)};const n={imports:{}};for(const r of o.cssModules){const t=new URL(r,e).href,l=`globalThis._VSCODE_CSS_LOAD('${t}');
`,D=new Blob([l],{type:"application/javascript"});n.imports[t]=URL.createObjectURL(D)}const i=window.trustedTypes?.createPolicy("vscode-bootstrapImportMap",{createScript(r){return r}}),a=JSON.stringify(n,void 0,2),s=document.createElement("script");s.type="importmap",s.setAttribute("nonce","0c6a828f1297"),s.textContent=i?.createScript(a)??a,window.document.head.appendChild(s),performance.mark("code/didAddCssLoader")}}const{result:y,configuration:S}=await m({configureDeveloperSettings:function(o){return{forceDisableShowDevtoolsOnError:typeof o.extensionTestsPath=="string"||o["enable-smoke-test-driver"]===!0,forceEnableDeveloperKeybindings:Array.isArray(o.extensionDevelopmentPath)&&o.extensionDevelopmentPath.length>0,removeDeveloperKeybindingsAfterLoad:!0}},beforeImport:function(o){p(o),Object.defineProperty(window,"vscodeWindowId",{get:()=>o.windowId}),window.requestIdleCallback(()=>{const e=document.createElement("canvas");e.getContext("2d")?.clearRect(0,0,e.width,e.height),e.remove()},{timeout:50}),performance.mark("code/willLoadWorkbenchMain")}});performance.mark("code/didLoadWorkbenchMain"),y.main(S)})();

//# sourceMappingURL=https://github.com/VSCodium/sourcemaps/releases/download/stable-e2b23bbd5646cc28aaa6f26ee53b257c290b6be1/core-vs-sessions-electron-browser-sessions.js.map
