"use strict";(function(v,i){typeof exports=="object"?module.exports=i():v.MonacoBootstrapWindow=i()})(this,function(){const v=j(),i=D(),d=i.process;async function $(n,r,o){const g=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 a=await i.context.resolveConfiguration();performance.mark("code/didWaitForWindowConfig"),clearTimeout(g),typeof o?.canModifyDOM=="function"&&o.canModifyDOM(a);const{forceEnableDeveloperKeybindings:b,disallowReloadKeybinding:c,removeDeveloperKeybindingsAfterLoad:t}=typeof o?.configureDeveloperSettings=="function"?o.configureDeveloperSettings(a):{forceEnableDeveloperKeybindings:!1,disallowReloadKeybinding:!1,removeDeveloperKeybindingsAfterLoad:!1},l=!!d.env.VSCODE_DEV,y=l||b;let w;y&&(w=h(c)),d.sandboxed||globalThis.MonacoBootstrap.enableASARSupport(a.appRoot);const m=globalThis.MonacoBootstrap.setupNLS();let u=m.availableLanguages["*"]||"en";u==="zh-tw"?u="zh-Hant":u==="zh-cn"&&(u="zh-Hans"),window.document.documentElement.setAttribute("lang",u),window.MonacoEnvironment={};const f={baseUrl:`${v.fileUriFromPath(a.appRoot,{isWindows:d.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out`,"vs/nls":m,preferScriptTags:!0};f.trustedTypesPolicy=window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(s){if(s.startsWith(window.location.origin))return s;throw new Error(`Invalid script url: ${s}`)}});const e=l?"../node_modules":"../node_modules.asar";f.paths={"vscode-textmate":`${e}/vscode-textmate/release/main.js`,"vscode-oniguruma":`${e}/vscode-oniguruma/release/main.js`,vsda:`${e}/vsda/index.js`,xterm:`${e}/xterm/lib/xterm.js`,"xterm-addon-canvas":`${e}/xterm-addon-canvas/lib/xterm-addon-canvas.js`,"xterm-addon-image":`${e}/xterm-addon-image/lib/xterm-addon-image.js`,"xterm-addon-search":`${e}/xterm-addon-search/lib/xterm-addon-search.js`,"xterm-addon-serialize":`${e}/xterm-addon-serialize/lib/xterm-addon-serialize.js`,"xterm-addon-unicode11":`${e}/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`,"xterm-addon-webgl":`${e}/xterm-addon-webgl/lib/xterm-addon-webgl.js`,"iconv-lite-umd":`${e}/iconv-lite-umd/lib/iconv-lite-umd.js`,"@vscode/iconv-lite-umd":`${e}/@vscode/iconv-lite-umd/lib/iconv-lite-umd.js`,jschardet:`${e}/jschardet/dist/jschardet.min.js`,"@vscode/vscode-languagedetection":`${e}/@vscode/vscode-languagedetection/dist/lib/index.js`,"vscode-regexp-languagedetection":`${e}/vscode-regexp-languagedetection/dist/index.js`,"tas-client-umd":`${e}/tas-client-umd/lib/tas-client-umd.js`,ansi_up:`${e}/ansi_up/ansi_up.js`,azdataGraph:`${e}/azdataGraph/dist/build.js`},d.sandboxed||(f.amdModulesPattern=/(vs|sql)\/|(^vscode-textmate$)|(^vscode-oniguruma$)|(^xterm$)|(^xterm-addon-search$)|(^xterm-addon-unicode11$)|(^xterm-addon-webgl$)|(^iconv-lite-umd$)|(^jschardet$)|(^@vscode\/vscode-languagedetection$)|(^tas-client-umd$)|(^ansi_up$)|(^azdataGraph$)/),typeof o?.beforeLoaderConfig=="function"&&o.beforeLoaderConfig(f),require.config(f),m.pseudo&&require(["vs/nls"],function(s){s.setPseudoTranslation(m.pseudo)}),typeof o?.beforeRequire=="function"&&o.beforeRequire(),require(n,async s=>{try{const p=r(s,a);p instanceof Promise&&(await p,w&&t&&w())}catch(p){x(p,y)}},x)}function h(n){const r=i.ipcRenderer,o=function(t){return[t.ctrlKey?"ctrl-":"",t.metaKey?"meta-":"",t.altKey?"alt-":"",t.shiftKey?"shift-":"",t.keyCode].join("")},g=d.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",a="123",b=d.platform==="darwin"?"meta-82":"ctrl-82";let c=function(t){const l=o(t);l===g||l===a?r.send("vscode:toggleDevTools"):l===b&&!n&&r.send("vscode:reloadWindow")};return window.addEventListener("keydown",c),function(){c&&(window.removeEventListener("keydown",c),c=void 0)}}function x(n,r){r&&i.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${n}`),n&&typeof n!="string"&&n.stack&&console.error(n.stack)}function j(){return window.MonacoBootstrap}function D(){return window.vscode}return{load:$}});

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/2456f20f53a71b39191908aea4f3e7b3aec8e0b1/core/bootstrap-window.js.map
