"use strict";(function(m,a){typeof exports=="object"?module.exports=a():m.MonacoBootstrapWindow=a()})(this,function(){const m=R(),a=h(),v=a.context.sandbox,x=a.webFrame,d=a.process,t=D(),b=v||typeof d.env.ENABLE_VSCODE_BROWSER_CODE_LOADING=="string",E=d.resolveEnv(t.userEnv);function _(r,o,e){var y;const l=t.zoomLevel;typeof l=="number"&&l!==0&&x.setZoomLevel(l),d.on("uncaughtException",function(s){g(s,f)});const f=(d.env.VSCODE_DEV||!!t.extensionDevelopmentPath)&&!t.extensionTestsPath;let u;(f||e&&e.forceEnableDeveloperKeybindings)&&(u=L(e&&e.disallowReloadKeybinding)),globalThis.MonacoBootstrap.enableASARSupport(t.appRoot),e&&typeof e.canModifyDOM=="function"&&e.canModifyDOM(t);const i=globalThis.MonacoBootstrap.setupNLS();let n=i.availableLanguages["*"]||"en";n==="zh-tw"?n="zh-Hant":n==="zh-cn"&&(n="zh-Hans"),window.document.documentElement.setAttribute("lang",n),b||(window.define=void 0),v||require.define("fs",[],function(){return require.__$__nodeRequire("original-fs")}),window.MonacoEnvironment={};const c={baseUrl:b?`${m.fileUriFromPath(t.appRoot,{isWindows:d.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out`:`${m.fileUriFromPath(t.appRoot,{isWindows:d.platform==="win32"})}/out`,"vs/nls":i,preferScriptTags:b};c.preferScriptTags&&(c.trustedTypesPolicy=(y=window.trustedTypes)==null?void 0:y.createPolicy("amdLoader",{createScriptURL(s){if(s.startsWith(window.location.origin))return s;throw new Error(`Invalid script url: ${s}`)}})),v?c.paths={"vscode-textmate":"../node_modules/vscode-textmate/release/main","vscode-oniguruma":"../node_modules/vscode-oniguruma/release/main",xterm:"../node_modules/xterm/lib/xterm.js","xterm-addon-search":"../node_modules/xterm-addon-search/lib/xterm-addon-search.js","xterm-addon-unicode11":"../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js","xterm-addon-webgl":"../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js","iconv-lite-umd":"../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js",jschardet:"../node_modules/jschardet/dist/jschardet.min.js"}:c.amdModulesPattern=/^vs\//,t.nodeCachedDataDir&&(c.nodeCachedData={path:t.nodeCachedDataDir,seed:r.join("")}),e&&typeof e.beforeLoaderConfig=="function"&&e.beforeLoaderConfig(t,c),require.config(c),i.pseudo&&require(["vs/nls"],function(s){s.setPseudoTranslation(i.pseudo)}),e&&typeof e.beforeRequire=="function"&&e.beforeRequire(),require(r,async s=>{try{performance.mark("code/willWaitForShellEnv"),await E,performance.mark("code/didWaitForShellEnv");const w=o(s,t);w instanceof Promise&&(await w,u&&e&&e.removeDeveloperKeybindingsAfterLoad&&u())}catch(w){g(w,f)}},g)}function D(){const r=(window.location.search||"").split(/[?&]/).filter(function(o){return!!o}).map(function(o){return o.split("=")}).filter(function(o){return o.length===2}).reduce(function(o,e){return o[e[0]]=decodeURIComponent(e[1]),o},{});return JSON.parse(r.config||"{}")||{}}function L(r){const o=a.ipcRenderer,e=function(n){return[n.ctrlKey?"ctrl-":"",n.metaKey?"meta-":"",n.altKey?"alt-":"",n.shiftKey?"shift-":"",n.keyCode].join("")},l=d.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",f="123",u=d.platform==="darwin"?"meta-82":"ctrl-82";let i=function(n){const p=e(n);p===l||p===f?o.send("vscode:toggleDevTools"):p===u&&!r&&o.send("vscode:reloadWindow")};return window.addEventListener("keydown",i),function(){i&&(window.removeEventListener("keydown",i),i=void 0)}}function g(r,o){o&&a.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${r}`),r&&typeof r!="string"&&r.stack&&console.error(r.stack)}function R(){return window.MonacoBootstrap}function h(){return window.vscode}return{load:_,globals:h}});

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/core/bootstrap-window.js.map
