Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/out/main.js
T
2025-05-09 16:55:09 +08:00

11 lines
54 KiB
JavaScript

"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(g,h)=>function(){return h||(0,g[__getOwnPropNames(g)[0]])((h={exports:{}}).exports,h),h.exports},require_performance=__commonJS({"out-build/vs/base/common/performance.js"(g,h){"use strict";(function(){function S(u){const m=[];typeof u=="number"&&m.push("code/timeOrigin",u);function d(c){m.push(c,Date.now())}function v(){const c=[];for(let o=0;o<m.length;o+=2)c.push({name:m[o],startTime:m[o+1]});return c}return{mark:d,getMarks:v}}function P(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?S():{mark(u){performance.mark(u)},getMarks(){let u=performance.timeOrigin;typeof u!="number"&&(u=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const m=[{name:"code/timeOrigin",startTime:Math.round(u)}];for(const d of performance.getEntriesByType("mark"))m.push({name:d.name,startTime:Math.round(u+d.startTime)});return m}};if(typeof process=="object"){const u=Math.round((require.__$__nodeRequire||require)("perf_hooks").performance.timeOrigin);return S(u)}else return console.trace("perf-util loaded in UNKNOWN environment"),S()}function w(u){return u.MonacoPerformanceMarks||(u.MonacoPerformanceMarks=P()),u.MonacoPerformanceMarks}var y;typeof global=="object"?y=global:typeof self=="object"?y=self:y={},typeof define=="function"?define([],function(){return w(y)}):typeof h=="object"&&typeof h.exports=="object"?h.exports=w(y):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),y.perf=w(y))})()}}),require_bootstrap=__commonJS({"out-build/bootstrap.js"(g,h){"use strict";(function(S,P){typeof g=="object"?h.exports=P():S.MonacoBootstrap=P()})(g,function(){const S=typeof require=="function"?require("module"):void 0,P=typeof require=="function"?require("path"):void 0,w=typeof require=="function"?require("fs"):void 0;Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE&&process.on("SIGPIPE",()=>{console.error(new Error("Unexpected SIGPIPE"))});function y(i){if(!P||!S||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const t=i?P.join(i,"node_modules"):P.join(__dirname,"../node_modules");let e;if(i&&process.platform==="win32"){const a=i.substr(0,1);let l;a.toLowerCase()!==a?l=a.toLowerCase():l=a.toUpperCase(),e=l+t.substr(1)}else e=void 0;const r=`${t}.asar`,s=e?`${e}.asar`:void 0,n=S._resolveLookupPaths;S._resolveLookupPaths=function(a,l){const f=n(a,l);if(Array.isArray(f)){let p=!1;for(let b=0,C=f.length;b<C;b++)if(f[b]===t){p=!0,f.splice(b,0,r);break}else if(f[b]===e){p=!0,f.splice(b,0,s);break}!p&&i&&f.push(r)}return f}}function u(i,t){let e=i.replace(/\\/g,"/");e.length>0&&e.charAt(0)!=="/"&&(e=`/${e}`);let r;return t.isWindows&&e.startsWith("//")?r=encodeURI(`${t.scheme||"file"}:${e}`):r=encodeURI(`${t.scheme||"file"}://${t.fallbackAuthority||""}${e}`),r.replace(/#/g,"%23")}function m(){const i=v();let t={availableLanguages:{}};if(i&&i.env.VSCODE_NLS_CONFIG)try{t=JSON.parse(i.env.VSCODE_NLS_CONFIG)}catch{}if(t._resolvedLanguagePackCoreLocation){const e=Object.create(null);t.loadBundle=function(r,s,n){const a=e[r];if(a){n(void 0,a);return}o(t._resolvedLanguagePackCoreLocation,`${r.replace(/\//g,"!")}.nls.json`).then(function(l){const f=JSON.parse(l);e[r]=f,n(void 0,f)}).catch(l=>{try{t._corruptedFile&&_(t._corruptedFile,"corrupted").catch(function(f){console.error(f)})}finally{n(l,void 0)}})}}return t}function d(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function v(){const i=d();if(i)return i.process;if(typeof process<"u")return process}function c(){const i=d();if(i)return i.ipcRenderer}async function o(...i){const t=c();if(t)return t.invoke("vscode:readNlsFile",...i);if(w&&P)return(await w.promises.readFile(P.join(...i))).toString();throw new Error("Unsupported operation (read NLS files)")}function _(i,t){const e=c();if(e)return e.invoke("vscode:writeNlsFile",i,t);if(w)return w.promises.writeFile(i,t);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:y,setupNLS:m,fileUriFromPath:u}})}}),require_bootstrap_node=__commonJS({"out-build/bootstrap-node.js"(g){"use strict";function h(){const S=require("path");try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(S.dirname(process.execPath))}catch(P){console.error(P)}}h(),g.injectNodeModuleLookupPath=function(S){if(!S)throw new Error("Missing injectPath");const P=require("module"),y=require("path").join(__dirname,"../node_modules"),u=P._resolveLookupPaths;P._resolveLookupPaths=function(m,d){const v=u(m,d);if(Array.isArray(v)){for(let c=0,o=v.length;c<o;c++)if(v[c]===y){v.splice(c,0,S);break}}return v}},g.removeGlobalNodeModuleLookupPaths=function(){const S=require("module"),P=S.globalPaths,w=S._resolveLookupPaths;S._resolveLookupPaths=function(y,u){const m=w(y,u);if(Array.isArray(m)){let d=0;for(;d<m.length&&m[m.length-1-d]===P[P.length-1-d];)d++;return m.slice(0,m.length-d)}return m}},g.configurePortable=function(S){const P=require("fs"),w=require("path"),y=w.dirname(__dirname);function u(_){return process.env.VSCODE_DEV?y:process.platform==="darwin"?_.dirname(_.dirname(_.dirname(y))):_.dirname(_.dirname(y))}function m(_){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return _.join(u(_),"data");const i=S.portable||`${S.applicationName}-portable-data`;return _.join(_.dirname(u(_)),i)}const d=m(w),v=!("target"in S)&&P.existsSync(d),c=w.join(d,"tmp"),o=v&&P.existsSync(c);return v?process.env.VSCODE_PORTABLE=d:delete process.env.VSCODE_PORTABLE,o&&(process.platform==="win32"?(process.env.TMP=c,process.env.TEMP=c):process.env.TMPDIR=c),{portableDataPath:d,isPortable:v}}}}),require_userDataPath=__commonJS({"out-build/vs/platform/environment/node/userDataPath.js"(g,h){"use strict";(function(){"use strict";function S(P,w,y){function u(d,v){const c=m(d,v),o=[c];return P.isAbsolute(c)||o.unshift(y),P.resolve(...o)}function m(d,v){process.env.VSCODE_DEV&&(v="code-oss-dev");const c=process.env.VSCODE_PORTABLE;if(c)return P.join(c,"user-data");let o=process.env.VSCODE_APPDATA;if(o)return P.join(o,v);const _=d["user-data-dir"];if(_)return _;switch(process.platform){case"win32":if(o=process.env.APPDATA,!o){const i=process.env.USERPROFILE;if(typeof i!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");o=P.join(i,"AppData","Roaming")}break;case"darwin":o=P.join(w.homedir(),"Library","Application Support");break;case"linux":o=process.env.XDG_CONFIG_HOME||P.join(w.homedir(),".config");break;default:throw new Error("Platform not supported")}return P.join(o,v)}return{getUserDataPath:u}}if(typeof define=="function")define(["path","os","vs/base/common/process"],function(P,w,y){return S(P,w,y.cwd())});else if(typeof h=="object"&&typeof h.exports=="object"){const P=require("path"),w=require("os");h.exports=S(P,w,process.env.VSCODE_CWD||process.cwd())}else throw new Error("Unknown context")})()}}),require_stripComments=__commonJS({"out-build/vs/base/common/stripComments.js"(g,h){"use strict";(function(){function S(P,w,y,u){const m=/("[^"\\]*(?:\\.[^"\\]*)*")|('[^'\\]*(?:\\.[^'\\]*)*')|(\/\*[^\/\*]*(?:(?:\*|\/)[^\/\*]*)*?\*\/)|(\/{2,}.*?(?:(?:\r?\n)|$))|(,\s*[}\]])/g;function d(v){return v.replace(m,function(c,o,_,i,t,e){if(i)return"";if(t){const r=t.length;return t[r-1]===`
`?t[r-2]==="\r"?`\r
`:`
`:""}else return e?c.substring(1):c})}return{stripComments:d}}typeof define=="function"?define([],function(){return S()}):typeof h=="object"&&typeof h.exports=="object"?h.exports=S():console.trace("strip comments defined in UNKNOWN context (neither requirejs or commonjs)")})()}}),require_languagePacks=__commonJS({"out-build/vs/base/node/languagePacks.js"(g,h){"use strict";(function(){"use strict";function S(P,w,y){function u(e){return new Promise(r=>w.exists(e,r))}function m(e){return new Promise((r,s)=>{const n=new Date;w.utimes(e,n,n,a=>a?s(a):r())})}function d(e){return new Promise((r,s)=>w.mkdir(e,{recursive:!0},n=>n&&n.code!=="EEXIST"?s(n):r(e)))}function v(e){return new Promise((r,s)=>w.rm(e,{recursive:!0,force:!0,maxRetries:3},n=>n?s(n):r()))}function c(e){return new Promise((r,s)=>w.readFile(e,"utf8",(n,a)=>n?s(n):r(a)))}function o(e,r){return new Promise((s,n)=>w.writeFile(e,r,"utf8",a=>a?n(a):s()))}async function _(e){const r=P.join(e,"languagepacks.json");try{return JSON.parse(await c(r))}catch{}}function i(e,r){try{for(;r;){if(e[r])return r;{const s=r.lastIndexOf("-");if(s>0)r=r.substring(0,s);else return}}}catch(s){console.error("Resolving language pack configuration failed.",s)}}function t(e,r,s,n){if(n==="pseudo")return Promise.resolve({locale:n,availableLanguages:{},pseudo:!0});if(process.env.VSCODE_DEV)return Promise.resolve({locale:n,availableLanguages:{}});if(n&&(n==="en"||n==="en-us"))return Promise.resolve({locale:n,availableLanguages:{}});const a=n;y.mark("code/willGenerateNls");const l=function(f){return y.mark("code/didGenerateNls"),Promise.resolve({locale:f,availableLanguages:{}})};try{return e?_(r).then(f=>{if(!f||(n=i(f,n),!n))return l(a);const p=f[n];let b;return!p||typeof p.hash!="string"||!p.translations||typeof(b=p.translations.vscode)!="string"?l(a):u(b).then(C=>{if(!C)return l(a);const E=p.hash+"."+n,O=P.join(r,"clp",E),D=P.join(O,e),I=P.join(O,"tcf.json"),R=P.join(O,"corrupted.info"),L={locale:a,availableLanguages:{"*":n},_languagePackId:E,_translationsConfigFile:I,_cacheRoot:O,_resolvedLanguagePackCoreLocation:D,_corruptedFile:R};return u(R).then(U=>{let k;return U?k=v(O):k=Promise.resolve(void 0),k.then(()=>u(D).then(A=>A?(m(D).catch(()=>{}),y.mark("code/didGenerateNls"),L):d(D).then(()=>Promise.all([c(s),c(b)])).then(N=>{const T=JSON.parse(N[0]),F=JSON.parse(N[1]).contents,X=Object.keys(T.bundles),j=[];for(const B of X){const J=T.bundles[B],$=Object.create(null);for(const q of J){const H=T.keys[q],G=T.messages[q],z=F[q];let x;if(z){x=[];for(let M=0;M<H.length;M++){const W=H[M],Q=typeof W=="string"?W:W.key;let V=z[Q];V===void 0&&(V=G[M]),x.push(V)}}else x=G;$[q]=x}j.push(o(P.join(D,B.replace(/\//g,"!")+".nls.json"),JSON.stringify($)))}return j.push(o(I,JSON.stringify(p.translations))),Promise.all(j)}).then(()=>(y.mark("code/didGenerateNls"),L)).catch(N=>(console.error("Generating translation files failed.",N),l(n)))))})})}):l(a)}catch(f){return console.error("Generating translation files failed.",f),l(n)}}return{getNLSConfiguration:t}}if(typeof define=="function")define(["path","fs","vs/base/common/performance"],function(P,w,y){return S(P,w,y)});else if(typeof h=="object"&&typeof h.exports=="object"){const P=require("path"),w=require("fs"),y=require_performance();h.exports=S(P,w,y)}else throw new Error("Unknown context")})()}}),require_loader=__commonJS({"out-build/vs/loader.js"(g,h){"use strict";var S=g,P=typeof global=="object"?global:{},y;(function(u){u.global=S;var m=function(){function d(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(d.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),d.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=d._isWindows(),this._isNode=typeof h<"u"&&!!h.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof u.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")},d._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},d}();u.Environment=m})(y||(y={}));var y;(function(u){var m=function(){function c(o,_,i){this.type=o,this.detail=_,this.timestamp=i}return c}();u.LoaderEvent=m;var d=function(){function c(o){this._events=[new m(1,"",o)]}return c.prototype.record=function(o,_){this._events.push(new m(o,_,u.Utilities.getHighPerformanceTimestamp()))},c.prototype.getEvents=function(){return this._events},c}();u.LoaderEventRecorder=d;var v=function(){function c(){}return c.prototype.record=function(o,_){},c.prototype.getEvents=function(){return[]},c.INSTANCE=new c,c}();u.NullLoaderEventRecorder=v})(y||(y={}));var y;(function(u){var m=function(){function d(){}return d.fileUriToFilePath=function(v,c){if(c=decodeURI(c).replace(/%23/g,"#"),v){if(/^file:\/\/\//.test(c))return c.substr(8);if(/^file:\/\//.test(c))return c.substr(5)}else if(/^file:\/\//.test(c))return c.substr(7);return c},d.startsWith=function(v,c){return v.length>=c.length&&v.substr(0,c.length)===c},d.endsWith=function(v,c){return v.length>=c.length&&v.substr(v.length-c.length)===c},d.containsQueryString=function(v){return/^[^\#]*\?/gi.test(v)},d.isAbsolutePath=function(v){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(v)},d.forEachProperty=function(v,c){if(v){var o=void 0;for(o in v)v.hasOwnProperty(o)&&c(o,v[o])}},d.isEmpty=function(v){var c=!0;return d.forEachProperty(v,function(){c=!1}),c},d.recursiveClone=function(v){if(!v||typeof v!="object"||v instanceof RegExp||!Array.isArray(v)&&Object.getPrototypeOf(v)!==Object.prototype)return v;var c=Array.isArray(v)?[]:{};return d.forEachProperty(v,function(o,_){_&&typeof _=="object"?c[o]=d.recursiveClone(_):c[o]=_}),c},d.generateAnonymousModule=function(){return"===anonymous"+d.NEXT_ANONYMOUS_ID+++"==="},d.isAnonymousModule=function(v){return d.startsWith(v,"===anonymous")},d.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=u.global.performance&&typeof u.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?u.global.performance.now():Date.now()},d.NEXT_ANONYMOUS_ID=1,d.PERFORMANCE_NOW_PROBED=!1,d.HAS_PERFORMANCE_NOW=!1,d}();u.Utilities=m})(y||(y={}));var y;(function(u){function m(c){if(c instanceof Error)return c;var o=new Error(c.message||String(c)||"Unknown Error");return c.stack&&(o.stack=c.stack),o}u.ensureError=m;var d=function(){function c(){}return c.validateConfigurationOptions=function(o){function _(t){if(t.phase==="loading"){console.error('Loading "'+t.moduleId+'" failed'),console.error(t),console.error("Here are the modules that depend on it:"),console.error(t.neededBy);return}if(t.phase==="factory"){console.error('The factory function of "'+t.moduleId+'" has thrown an exception'),console.error(t),console.error("Here are the modules that depend on it:"),console.error(t.neededBy);return}}if(o=o||{},typeof o.baseUrl!="string"&&(o.baseUrl=""),typeof o.isBuild!="boolean"&&(o.isBuild=!1),typeof o.paths!="object"&&(o.paths={}),typeof o.config!="object"&&(o.config={}),typeof o.catchError>"u"&&(o.catchError=!1),typeof o.recordStats>"u"&&(o.recordStats=!1),typeof o.urlArgs!="string"&&(o.urlArgs=""),typeof o.onError!="function"&&(o.onError=_),Array.isArray(o.ignoreDuplicateModules)||(o.ignoreDuplicateModules=[]),o.baseUrl.length>0&&(u.Utilities.endsWith(o.baseUrl,"/")||(o.baseUrl+="/")),typeof o.cspNonce!="string"&&(o.cspNonce=""),typeof o.preferScriptTags>"u"&&(o.preferScriptTags=!1),o.nodeCachedData&&typeof o.nodeCachedData=="object"&&(typeof o.nodeCachedData.seed!="string"&&(o.nodeCachedData.seed="seed"),(typeof o.nodeCachedData.writeDelay!="number"||o.nodeCachedData.writeDelay<0)&&(o.nodeCachedData.writeDelay=1e3*7),!o.nodeCachedData.path||typeof o.nodeCachedData.path!="string")){var i=m(new Error("INVALID cached data configuration, 'path' MUST be set"));i.phase="configuration",o.onError(i),o.nodeCachedData=void 0}return o},c.mergeConfigurationOptions=function(o,_){o===void 0&&(o=null),_===void 0&&(_=null);var i=u.Utilities.recursiveClone(_||{});return u.Utilities.forEachProperty(o,function(t,e){t==="ignoreDuplicateModules"&&typeof i.ignoreDuplicateModules<"u"?i.ignoreDuplicateModules=i.ignoreDuplicateModules.concat(e):t==="paths"&&typeof i.paths<"u"?u.Utilities.forEachProperty(e,function(r,s){return i.paths[r]=s}):t==="config"&&typeof i.config<"u"?u.Utilities.forEachProperty(e,function(r,s){return i.config[r]=s}):i[t]=u.Utilities.recursiveClone(e)}),c.validateConfigurationOptions(i)},c}();u.ConfigurationOptionsUtil=d;var v=function(){function c(o,_){if(this._env=o,this.options=d.mergeConfigurationOptions(_),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var i=this.options.nodeRequire.main.filename,t=Math.max(i.lastIndexOf("/"),i.lastIndexOf("\\"));this.options.baseUrl=i.substring(0,t+1)}}return c.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var o=0;o<this.options.ignoreDuplicateModules.length;o++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[o]]=!0},c.prototype._createSortedPathsRules=function(){var o=this;this.sortedPathsRules=[],u.Utilities.forEachProperty(this.options.paths,function(_,i){Array.isArray(i)?o.sortedPathsRules.push({from:_,to:i}):o.sortedPathsRules.push({from:_,to:[i]})}),this.sortedPathsRules.sort(function(_,i){return i.from.length-_.from.length})},c.prototype.cloneAndMerge=function(o){return new c(this._env,d.mergeConfigurationOptions(o,this.options))},c.prototype.getOptionsLiteral=function(){return this.options},c.prototype._applyPaths=function(o){for(var _,i=0,t=this.sortedPathsRules.length;i<t;i++)if(_=this.sortedPathsRules[i],u.Utilities.startsWith(o,_.from)){for(var e=[],r=0,s=_.to.length;r<s;r++)e.push(_.to[r]+o.substr(_.from.length));return e}return[o]},c.prototype._addUrlArgsToUrl=function(o){return u.Utilities.containsQueryString(o)?o+"&"+this.options.urlArgs:o+"?"+this.options.urlArgs},c.prototype._addUrlArgsIfNecessaryToUrl=function(o){return this.options.urlArgs?this._addUrlArgsToUrl(o):o},c.prototype._addUrlArgsIfNecessaryToUrls=function(o){if(this.options.urlArgs)for(var _=0,i=o.length;_<i;_++)o[_]=this._addUrlArgsToUrl(o[_]);return o},c.prototype.moduleIdToPaths=function(o){if(this._env.isNode){var _=this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(o);if(_)return this.isBuild()?["empty:"]:["node|"+o]}var i=o,t;if(!u.Utilities.endsWith(i,".js")&&!u.Utilities.isAbsolutePath(i)){t=this._applyPaths(i);for(var e=0,r=t.length;e<r;e++)this.isBuild()&&t[e]==="empty:"||(u.Utilities.isAbsolutePath(t[e])||(t[e]=this.options.baseUrl+t[e]),!u.Utilities.endsWith(t[e],".js")&&!u.Utilities.containsQueryString(t[e])&&(t[e]=t[e]+".js"))}else!u.Utilities.endsWith(i,".js")&&!u.Utilities.containsQueryString(i)&&(i=i+".js"),t=[i];return this._addUrlArgsIfNecessaryToUrls(t)},c.prototype.requireToUrl=function(o){var _=o;return u.Utilities.isAbsolutePath(_)||(_=this._applyPaths(_)[0],u.Utilities.isAbsolutePath(_)||(_=this.options.baseUrl+_)),this._addUrlArgsIfNecessaryToUrl(_)},c.prototype.isBuild=function(){return this.options.isBuild},c.prototype.shouldInvokeFactory=function(o){return!!(!this.options.isBuild||u.Utilities.isAnonymousModule(o)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[o])},c.prototype.isDuplicateMessageIgnoredFor=function(o){return this.ignoreDuplicateModulesMap.hasOwnProperty(o)},c.prototype.getConfigForModule=function(o){if(this.options.config)return this.options.config[o]},c.prototype.shouldCatchError=function(){return this.options.catchError},c.prototype.shouldRecordStats=function(){return this.options.recordStats},c.prototype.onError=function(o){this.options.onError(o)},c}();u.Configuration=v})(y||(y={}));var y;(function(u){var m=function(){function t(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}return t.prototype.load=function(e,r,s,n){var a=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new c;else if(this._env.isElectronRenderer){var l=e.getConfig().getOptionsLiteral().preferScriptTags;l?this._scriptLoader=new d:this._scriptLoader=new o(this._env)}else this._env.isNode?this._scriptLoader=new o(this._env):this._scriptLoader=new d;var f={callback:s,errorback:n};if(this._callbackMap.hasOwnProperty(r)){this._callbackMap[r].push(f);return}this._callbackMap[r]=[f],this._scriptLoader.load(e,r,function(){return a.triggerCallback(r)},function(p){return a.triggerErrorback(r,p)})},t.prototype.triggerCallback=function(e){var r=this._callbackMap[e];delete this._callbackMap[e];for(var s=0;s<r.length;s++)r[s].callback()},t.prototype.triggerErrorback=function(e,r){var s=this._callbackMap[e];delete this._callbackMap[e];for(var n=0;n<s.length;n++)s[n].errorback(r)},t}(),d=function(){function t(){}return t.prototype.attachListeners=function(e,r,s){var n=function(){e.removeEventListener("load",a),e.removeEventListener("error",l)},a=function(f){n(),r()},l=function(f){n(),s(f)};e.addEventListener("load",a),e.addEventListener("error",l)},t.prototype.load=function(e,r,s,n){if(/^node\|/.test(r)){var a=e.getConfig().getOptionsLiteral(),l=_(e.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=l(f[1])}catch(O){n(O);return}e.enqueueDefineAnonymousModule([],function(){return p}),s()}else{var b=document.createElement("script");b.setAttribute("async","async"),b.setAttribute("type","text/javascript"),this.attachListeners(b,s,n);var C=e.getConfig().getOptionsLiteral().trustedTypesPolicy;C&&(r=C.createScriptURL(r)),b.setAttribute("src",r);var E=e.getConfig().getOptionsLiteral().cspNonce;E&&b.setAttribute("nonce",E),document.getElementsByTagName("head")[0].appendChild(b)}},t}();function v(t){var e=t.getConfig().getOptionsLiteral().trustedTypesPolicy;try{var r=e?self.eval(e.createScript("","true")):new Function("true");return r.call(self),!0}catch{return!1}}var c=function(){function t(){this._cachedCanUseEval=null}return t.prototype._canUseEval=function(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=v(e)),this._cachedCanUseEval},t.prototype.load=function(e,r,s,n){if(/^node\|/.test(r)){var a=e.getConfig().getOptionsLiteral(),l=_(e.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=l(f[1])}catch(E){n(E);return}e.enqueueDefineAnonymousModule([],function(){return p}),s()}else{var b=e.getConfig().getOptionsLiteral().trustedTypesPolicy,C=/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin;if(!C&&this._canUseEval(e)){fetch(r).then(function(E){if(E.status!==200)throw new Error(E.statusText);return E.text()}).then(function(E){E=E+`
//# sourceURL=`+r;var O=b?self.eval(b.createScript("",E)):new Function(E);O.call(self),s()}).then(void 0,n);return}try{b&&(r=b.createScriptURL(r)),importScripts(r),s()}catch(E){n(E)}}},t}(),o=function(){function t(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}return t.prototype._init=function(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))},t.prototype._initNodeRequire=function(e,r){var s=r.getConfig().getOptionsLiteral().nodeCachedData;if(!s||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var n=this,a=e("module");function l(f){var p=f.constructor,b=function(E){try{return f.require(E)}finally{}};return b.resolve=function(E,O){return p._resolveFilename(E,f,!1,O)},b.resolve.paths=function(E){return p._resolveLookupPaths(E,f)},b.main=process.mainModule,b.extensions=p._extensions,b.cache=p._cache,b}a.prototype._compile=function(f,p){var b=a.wrap(f.replace(/^#!.*/,"")),C=r.getRecorder(),E=n._getCachedDataPath(s,p),O={filename:p},D;try{var I=n._fs.readFileSync(E);D=I.slice(0,16),O.cachedData=I.slice(16),C.record(60,E)}catch{C.record(61,E)}var R=new n._vm.Script(b,O),L=R.runInThisContext(O),U=n._path.dirname(p),k=l(this),A=[this.exports,k,this,p,U,process,P,Buffer],N=L.apply(this.exports,A);return n._handleCachedData(R,b,E,!O.cachedData,r),n._verifyCachedData(R,b,E,D,r),N}},t.prototype.load=function(e,r,s,n){var a=this,l=e.getConfig().getOptionsLiteral(),f=_(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),p=l.nodeInstrumenter||function(L){return L};this._init(f),this._initNodeRequire(f,e);var b=e.getRecorder();if(/^node\|/.test(r)){var C=r.split("|"),E=null;try{E=f(C[1])}catch(L){n(L);return}e.enqueueDefineAnonymousModule([],function(){return E}),s()}else{r=u.Utilities.fileUriToFilePath(this._env.isWindows,r);var O=this._path.normalize(r),D=this._getElectronRendererScriptPathOrUri(O),I=Boolean(l.nodeCachedData),R=I?this._getCachedDataPath(l.nodeCachedData,r):void 0;this._readSourceAndCachedData(O,R,b,function(L,U,k,A){if(L){n(L);return}var N;U.charCodeAt(0)===t._BOM?N=t._PREFIX+U.substring(1)+t._SUFFIX:N=t._PREFIX+U+t._SUFFIX,N=p(N,O);var T={filename:D,cachedData:k},F=a._createAndEvalScript(e,N,T,s,n);a._handleCachedData(F,N,R,I&&!k,e),a._verifyCachedData(F,N,R,A,e)})}},t.prototype._createAndEvalScript=function(e,r,s,n,a){var l=e.getRecorder();l.record(31,s.filename);var f=new this._vm.Script(r,s),p=f.runInThisContext(s),b=e.getGlobalAMDDefineFunc(),C=!1,E=function(){return C=!0,b.apply(null,arguments)};return E.amd=b.amd,p.call(u.global,e.getGlobalAMDRequireFunc(),E,s.filename,this._path.dirname(s.filename)),l.record(32,s.filename),C?n():a(new Error("Didn't receive define call in "+s.filename+"!")),f},t.prototype._getElectronRendererScriptPathOrUri=function(e){if(!this._env.isElectronRenderer)return e;var r=e.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+e},t.prototype._getCachedDataPath=function(e,r){var s=this._crypto.createHash("md5").update(r,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),n=this._path.basename(r).replace(/\.js$/,"");return this._path.join(e.path,n+"-"+s+".code")},t.prototype._handleCachedData=function(e,r,s,n,a){var l=this;e.cachedDataRejected?this._fs.unlink(s,function(f){a.getRecorder().record(62,s),l._createAndWriteCachedData(e,r,s,a),f&&a.getConfig().onError(f)}):n&&this._createAndWriteCachedData(e,r,s,a)},t.prototype._createAndWriteCachedData=function(e,r,s,n){var a=this,l=Math.ceil(n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),f=-1,p=0,b=void 0,C=function(){setTimeout(function(){b||(b=a._crypto.createHash("md5").update(r,"utf8").digest());var E=e.createCachedData();if(!(E.length===0||E.length===f||p>=5)){if(E.length<f){C();return}f=E.length,a._fs.writeFile(s,Buffer.concat([b,E]),function(O){O&&n.getConfig().onError(O),n.getRecorder().record(63,s),C()})}},l*Math.pow(4,p++))};C()},t.prototype._readSourceAndCachedData=function(e,r,s,n){if(!r)this._fs.readFile(e,{encoding:"utf8"},n);else{var a=void 0,l=void 0,f=void 0,p=2,b=function(C){C?n(C):--p===0&&n(void 0,a,l,f)};this._fs.readFile(e,{encoding:"utf8"},function(C,E){a=E,b(C)}),this._fs.readFile(r,function(C,E){!C&&E&&E.length>0?(f=E.slice(0,16),l=E.slice(16),s.record(60,r)):s.record(61,r),b()})}},t.prototype._verifyCachedData=function(e,r,s,n,a){var l=this;!n||e.cachedDataRejected||setTimeout(function(){var f=l._crypto.createHash("md5").update(r,"utf8").digest();n.equals(f)||(a.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+s+"' now, but a RESTART IS REQUIRED")),l._fs.unlink(s,function(p){p&&a.getConfig().onError(p)}))},Math.ceil(5e3*(1+Math.random())))},t._BOM=65279,t._PREFIX="(function (require, define, __filename, __dirname) { ",t._SUFFIX=`
});`,t}();function _(t,e){if(e.__$__isRecorded)return e;var r=function(n){t.record(33,n);try{return e(n)}finally{t.record(34,n)}};return r.__$__isRecorded=!0,r}u.ensureRecordedNodeRequire=_;function i(t){return new m(t)}u.createScriptLoader=i})(y||(y={}));var y;(function(u){var m=function(){function i(t){var e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}return i._normalizeModuleId=function(t){var e=t,r;for(r=/\/\.\//;r.test(e);)e=e.replace(r,"/");for(e=e.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(e);)e=e.replace(r,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e},i.prototype.resolveModule=function(t){var e=t;return u.Utilities.isAbsolutePath(e)||(u.Utilities.startsWith(e,"./")||u.Utilities.startsWith(e,"../"))&&(e=i._normalizeModuleId(this.fromModulePath+e)),e},i.ROOT=new i(""),i}();u.ModuleIdResolver=m;var d=function(){function i(t,e,r,s,n,a){this.id=t,this.strId=e,this.dependencies=r,this._callback=s,this._errorback=n,this.moduleIdResolver=a,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return i._safeInvokeFunction=function(t,e){try{return{returnedValue:t.apply(u.global,e),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},i._invokeFactory=function(t,e,r,s){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(r,s):{returnedValue:r.apply(u.global,s),producedError:null}:{returnedValue:null,producedError:null}},i.prototype.complete=function(t,e,r,s){this._isComplete=!0;var n=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);var a=i._invokeFactory(e,this.strId,this._callback,r);n=a.producedError,t.record(22,this.strId),!n&&typeof a.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=a.returnedValue)}else this.exports=this._callback;if(n){var l=u.ensureError(n);l.phase="factory",l.moduleId=this.strId,l.neededBy=s(this.id),this.error=l,e.onError(l)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},i.prototype.onDependencyError=function(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1},i.prototype.isComplete=function(){return this._isComplete},i}();u.Module=d;var v=function(){function i(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return i.prototype.getMaxModuleId=function(){return this._nextId},i.prototype.getModuleId=function(t){var e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e},i.prototype.getStrModuleId=function(t){return this._intModuleIdToStrModuleId[t]},i}(),c=function(){function i(t){this.id=t}return i.EXPORTS=new i(0),i.MODULE=new i(1),i.REQUIRE=new i(2),i}();u.RegularDependency=c;var o=function(){function i(t,e,r){this.id=t,this.pluginId=e,this.pluginParam=r}return i}();u.PluginDependency=o;var _=function(){function i(t,e,r,s,n){n===void 0&&(n=0),this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=n,this._defineFunc=r,this._requireFunc=s,this._moduleIdProvider=new v,this._config=new u.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}return i.prototype.reset=function(){return new i(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},i.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},i.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},i._findRelevantLocationInStack=function(t,e){for(var r=function(O){return O.replace(/\\/g,"/")},s=r(t),n=e.split(/\n/),a=0;a<n.length;a++){var l=n[a].match(/(.*):(\d+):(\d+)\)?$/);if(l){var f=l[1],p=l[2],b=l[3],C=Math.max(f.lastIndexOf(" ")+1,f.lastIndexOf("(")+1);if(f=f.substr(C),f=r(f),f===s){var E={line:parseInt(p,10),col:parseInt(b,10)};return E.line===1&&(E.col-=53),E}}}throw new Error("Could not correlate define call site for needle "+t)},i.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var t=[],e=0,r=0,s=this._modules2.length;r<s;r++){var n=this._modules2[r];if(!!n){var a=this._buildInfoPath[n.id]||null,l=this._buildInfoDefineStack[n.id]||null,f=this._buildInfoDependencies[n.id];t[e++]={id:n.strId,path:a,defineLocation:a&&l?i._findRelevantLocationInStack(a,l):null,dependencies:f,shim:null,exports:n.exports}}}return t},i.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder},i.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},i.prototype.enqueueDefineAnonymousModule=function(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:t,callback:e}},i.prototype.defineModule=function(t,e,r,s,n,a){var l=this;a===void 0&&(a=new m(t));var f=this._moduleIdProvider.getModuleId(t);if(this._modules2[f]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}var p=new d(f,t,this._normalizeDependencies(e,a),r,s,a);this._modules2[f]=p,this._config.isBuild()&&(this._buildInfoDefineStack[f]=n,this._buildInfoDependencies[f]=(p.dependencies||[]).map(function(b){return l._moduleIdProvider.getStrModuleId(b.id)})),this._resolve(p)},i.prototype._normalizeDependency=function(t,e){if(t==="exports")return c.EXPORTS;if(t==="module")return c.MODULE;if(t==="require")return c.REQUIRE;var r=t.indexOf("!");if(r>=0){var s=e.resolveModule(t.substr(0,r)),n=e.resolveModule(t.substr(r+1)),a=this._moduleIdProvider.getModuleId(s+"!"+n),l=this._moduleIdProvider.getModuleId(s);return new o(a,l,n)}return new c(this._moduleIdProvider.getModuleId(e.resolveModule(t)))},i.prototype._normalizeDependencies=function(t,e){for(var r=[],s=0,n=0,a=t.length;n<a;n++)r[s++]=this._normalizeDependency(t[n],e);return r},i.prototype._relativeRequire=function(t,e,r,s){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(u.Utilities.generateAnonymousModule(),e,r,s,null,t)},i.prototype.synchronousRequire=function(t,e){e===void 0&&(e=new m(t));var r=this._normalizeDependency(t,e),s=this._modules2[r.id];if(!s)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!s.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(s.error)throw s.error;return s.exports},i.prototype.configure=function(t,e){var r=this._config.shouldRecordStats();e?this._config=new u.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!r&&(this._recorder=null)},i.prototype.getConfig=function(){return this._config},i.prototype._onLoad=function(t){if(this._currentAnonymousDefineCall!==null){var e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}},i.prototype._createLoadError=function(t,e){var r=this,s=this._moduleIdProvider.getStrModuleId(t),n=(this._inverseDependencies2[t]||[]).map(function(l){return r._moduleIdProvider.getStrModuleId(l)}),a=u.ensureError(e);return a.phase="loading",a.moduleId=s,a.neededBy=n,a},i.prototype._onLoadError=function(t,e){var r=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new d(t,this._moduleIdProvider.getStrModuleId(t),[],function(){},null,null));for(var s=[],n=0,a=this._moduleIdProvider.getMaxModuleId();n<a;n++)s[n]=!1;var l=!1,f=[];for(f.push(t),s[t]=!0;f.length>0;){var p=f.shift(),b=this._modules2[p];b&&(l=b.onDependencyError(r)||l);var C=this._inverseDependencies2[p];if(C)for(var n=0,a=C.length;n<a;n++){var E=C[n];s[E]||(f.push(E),s[E]=!0)}}l||this._config.onError(r)},i.prototype._hasDependencyPath=function(t,e){var r=this._modules2[t];if(!r)return!1;for(var s=[],n=0,a=this._moduleIdProvider.getMaxModuleId();n<a;n++)s[n]=!1;var l=[];for(l.push(r),s[t]=!0;l.length>0;){var f=l.shift(),p=f.dependencies;if(p)for(var n=0,a=p.length;n<a;n++){var b=p[n];if(b.id===e)return!0;var C=this._modules2[b.id];C&&!s[b.id]&&(s[b.id]=!0,l.push(C))}}return!1},i.prototype._findCyclePath=function(t,e,r){if(t===e||r===50)return[t];var s=this._modules2[t];if(!s)return null;var n=s.dependencies;if(n)for(var a=0,l=n.length;a<l;a++){var f=this._findCyclePath(n[a].id,e,r+1);if(f!==null)return f.push(t),f}return null},i.prototype._createRequire=function(t){var e=this,r=function(s,n,a){return e._relativeRequire(t,s,n,a)};return r.toUrl=function(s){return e._config.requireToUrl(t.resolveModule(s))},r.getStats=function(){return e.getLoaderEvents()},r.hasDependencyCycle=function(){return e._hasDependencyCycle},r.config=function(s,n){n===void 0&&(n=!1),e.configure(s,n)},r.__$__nodeRequire=u.global.nodeRequire,r},i.prototype._loadModule=function(t){var e=this;if(!(this._modules2[t]||this._knownModules2[t])){this._knownModules2[t]=!0;var r=this._moduleIdProvider.getStrModuleId(t),s=this._config.moduleIdToPaths(r),n=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(r.indexOf("/")===-1||n.test(r))&&s.push("node|"+r);var a=-1,l=function(f){if(a++,a>=s.length)e._onLoadError(t,f);else{var p=s[a],b=e.getRecorder();if(e._config.isBuild()&&p==="empty:"){e._buildInfoPath[t]=p,e.defineModule(e._moduleIdProvider.getStrModuleId(t),[],null,null,null),e._onLoad(t);return}b.record(10,p),e._scriptLoader.load(e,p,function(){e._config.isBuild()&&(e._buildInfoPath[t]=p),b.record(11,p),e._onLoad(t)},function(C){b.record(12,p),l(C)})}};l(null)}},i.prototype._loadPluginDependency=function(t,e){var r=this;if(!(this._modules2[e.id]||this._knownModules2[e.id])){this._knownModules2[e.id]=!0;var s=function(n){r.defineModule(r._moduleIdProvider.getStrModuleId(e.id),[],n,null,null)};s.error=function(n){r._config.onError(r._createLoadError(e.id,n))},t.load(e.pluginParam,this._createRequire(m.ROOT),s,this._config.getOptionsLiteral())}},i.prototype._resolve=function(t){var e=this,r=t.dependencies;if(r)for(var s=0,n=r.length;s<n;s++){var a=r[s];if(a===c.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(a===c.MODULE){t.unresolvedDependenciesCount--;continue}if(a===c.REQUIRE){t.unresolvedDependenciesCount--;continue}var l=this._modules2[a.id];if(l&&l.isComplete()){if(l.error){t.onDependencyError(l.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(a.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(a.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");var f=this._findCyclePath(a.id,t.id,0)||[];f.reverse(),f.push(a.id),console.warn(f.map(function(C){return e._moduleIdProvider.getStrModuleId(C)}).join(` =>
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(t.id),a instanceof o){var p=this._modules2[a.pluginId];if(p&&p.isComplete()){this._loadPluginDependency(p.exports,a);continue}var b=this._inversePluginDependencies2.get(a.pluginId);b||(b=[],this._inversePluginDependencies2.set(a.pluginId,b)),b.push(a),this._loadModule(a.pluginId);continue}this._loadModule(a.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)},i.prototype._onModuleComplete=function(t){var e=this,r=this.getRecorder();if(!t.isComplete()){var s=t.dependencies,n=[];if(s)for(var a=0,l=s.length;a<l;a++){var f=s[a];if(f===c.EXPORTS){n[a]=t.exports;continue}if(f===c.MODULE){n[a]={id:t.strId,config:function(){return e._config.getConfigForModule(t.strId)}};continue}if(f===c.REQUIRE){n[a]=this._createRequire(t.moduleIdResolver);continue}var p=this._modules2[f.id];if(p){n[a]=p.exports;continue}n[a]=null}var b=function(I){return(e._inverseDependencies2[I]||[]).map(function(R){return e._moduleIdProvider.getStrModuleId(R)})};t.complete(r,this._config,n,b);var C=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,C)for(var a=0,l=C.length;a<l;a++){var E=C[a],O=this._modules2[E];O.unresolvedDependenciesCount--,O.unresolvedDependenciesCount===0&&this._onModuleComplete(O)}var D=this._inversePluginDependencies2.get(t.id);if(D){this._inversePluginDependencies2.delete(t.id);for(var a=0,l=D.length;a<l;a++)this._loadPluginDependency(t.exports,D[a])}}},i}();u.ModuleManager=_})(y||(y={}));var w,y;(function(u){var m=new u.Environment,d=null,v=function(i,t,e){typeof i!="string"&&(e=t,t=i,i=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),i?d.defineModule(i,t,e,null,null):d.enqueueDefineAnonymousModule(t,e)};v.amd={jQuery:!0};var c=function(i,t){t===void 0&&(t=!1),d.configure(i,t)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){c(arguments[0]);return}if(typeof arguments[0]=="string")return d.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){d.defineModule(u.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=c,o.getConfig=function(){return d.getConfig().getOptionsLiteral()},o.reset=function(){d=d.reset()},o.getBuildInfo=function(){return d.getBuildInfo()},o.getStats=function(){return d.getLoaderEvents()},o.define=v;function _(){if(typeof u.global.require<"u"||typeof require<"u"){var i=u.global.require||require;if(typeof i=="function"&&typeof i.resolve=="function"){var t=u.ensureRecordedNodeRequire(d.getRecorder(),i);u.global.nodeRequire=t,o.nodeRequire=t,o.__$__nodeRequire=t}}m.isNode&&!m.isElectronRenderer&&!m.isElectronNodeIntegrationWebWorker?h.exports=o:(m.isElectronRenderer||(u.global.define=v),u.global.require=o)}u.init=_,(typeof u.global.define!="function"||!u.global.define.amd)&&(d=new u.ModuleManager(m,u.createScriptLoader(m),v,o,u.Utilities.getHighPerformanceTimestamp()),typeof u.global.require<"u"&&typeof u.global.require!="function"&&o.config(u.global.require),w=function(){return v.apply(null,arguments)},w.amd=v.amd,typeof doNotInitLoader>"u"&&_())})(y||(y={})),w("vs/css",["require","exports"],function(u,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.load=void 0;function d(i,t,e,r){if(r=r||{},(r["vs/css"]||{}).disabled){e({});return}const n=t.toUrl(i+".css");v(i,n,()=>{e({})},a=>{typeof e.error=="function"&&e.error("Could not find "+n+".")})}m.load=d;function v(i,t,e,r){if(c(i,t)){e();return}o(i,t,e,r)}function c(i,t){const e=document.getElementsByTagName("link");for(let r=0,s=e.length;r<s;r++){const n=e[r].getAttribute("data-name"),a=e[r].getAttribute("href");if(n===i||a===t)return!0}return!1}function o(i,t,e,r){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("data-name",i),_(i,s,e,r),s.setAttribute("href",t),(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}function _(i,t,e,r){const s=()=>{t.removeEventListener("load",n),t.removeEventListener("error",a)},n=l=>{s(),e()},a=l=>{s(),r(l)};t.addEventListener("load",n),t.addEventListener("error",a)}}),w("vs/nls",["require","exports"],function(u,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.load=m.create=m.setPseudoTranslation=m.getConfiguredDefaultLocale=m.localize=void 0;let d=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const v="i-default";function c(l,f){let p;return f.length===0?p=l:p=l.replace(/\{(\d+)\}/g,(b,C)=>{const E=C[0],O=f[E];let D=b;return typeof O=="string"?D=O:(typeof O=="number"||typeof O=="boolean"||O===void 0||O===null)&&(D=String(O)),D}),d&&(p="\uFF3B"+p.replace(/[aouei]/g,"$&$&")+"\uFF3D"),p}function o(l,f){let p=l[f];return p||(p=l["*"],p)?p:null}function _(l){return l.charAt(l.length-1)==="/"?l:l+"/"}async function i(l,f,p){const b=_(l)+_(f)+"vscode/"+_(p),C=await fetch(b);if(C.ok)return await C.json();throw new Error(`${C.status} - ${C.statusText}`)}function t(l){return function(f,p){const b=Array.prototype.slice.call(arguments,2);return c(l[f],b)}}function e(l,f,...p){return c(f,p)}m.localize=e;function r(l){}m.getConfiguredDefaultLocale=r;function s(l){d=l}m.setPseudoTranslation=s;function n(l,f){return{localize:t(f[l]),getConfiguredDefaultLocale:f.getConfiguredDefaultLocale??(p=>{})}}m.create=n;function a(l,f,p,b){const C=b["vs/nls"]??{};if(!l||l.length===0)return p({localize:e,getConfiguredDefaultLocale:()=>C.availableLanguages?.["*"]});const E=C.availableLanguages?o(C.availableLanguages,l):null,O=E===null||E===v;let D=".nls";O||(D=D+"."+E);const I=R=>{Array.isArray(R)?R.localize=t(R):R.localize=t(R[l]),R.getConfiguredDefaultLocale=()=>C.availableLanguages?.["*"],p(R)};typeof C.loadBundle=="function"?C.loadBundle(l,E,(R,L)=>{R?f([l+".nls"],I):I(L)}):C.translationServiceUrl&&!O?(async()=>{try{const R=await i(C.translationServiceUrl,E,l);return I(R)}catch(R){if(!E.includes("-"))return console.error(R),f([l+".nls"],I);try{const L=E.split("-")[0],U=await i(C.translationServiceUrl,L,l);return C.availableLanguages??={},C.availableLanguages["*"]=L,I(U)}catch(L){return console.error(L),f([l+".nls"],I)}}})():f([l+D],I,R=>{if(D===".nls"){console.error("Failed trying to load default language strings",R);return}console.error(`Failed to load message bundle for language ${E}. Falling back to the default language:`,R),f([l+".nls"],I)})}m.load=a})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(g){"use strict";var h=require;globalThis._VSCODE_NODE_MODULES=new Proxy(Object.create(null),{get:(u,m)=>h(String(m))}),globalThis._VSCODE_PRODUCT_JSON=require("../product.json"),globalThis._VSCODE_PACKAGE_JSON=require("../package.json");var S=require_loader(),P=require_bootstrap(),w=require_performance(),y=P.setupNLS();S.config({baseUrl:P.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:h,"vs/nls":y,amdModulesPattern:/^vs\//,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&S.define("fs",["original-fs"],function(u){return u}),y&&y.pseudo&&S(["vs/nls"],function(u){u.setPseudoTranslation(y.pseudo)}),g.load=function(u,m,d){!u||(process.env.VSCODE_CODE_CACHE_PATH&&S.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:u}}),m=m||function(){},d=d||function(v){console.error(v)},w.mark("code/fork/willLoadCode"),S([u],m,d))}}}),perf=require_performance();perf.mark("code/didStartMain");var path=require("path"),fs=require("fs"),os=require("os"),bootstrap=require_bootstrap(),bootstrapNode=require_bootstrap_node(),{getUserDataPath}=require_userDataPath(),{stripComments}=require_stripComments(),product=require("../product.json"),{app,protocol,crashReporter,Menu}=require("electron"),portable=bootstrapNode.configurePortable(product);bootstrap.enableASARSupport();var args=parseCLIArgs(),userDataPath=getUserDataPath(args,product.nameShort??"code-oss-dev");app.setPath("userData",userDataPath);var codeCachePath=getCodeCachePath(),argvConfig=configureCommandlineSwitchesSync(args);Menu.setApplicationMenu(null),perf.mark("code/willStartCrashReporter"),(args["crash-reporter-directory"]||argvConfig["enable-crash-reporter"]&&!args["disable-crash-reporter"])&&configureCrashReporter(),perf.mark("code/didStartCrashReporter"),portable&&portable.isPortable&&app.setAppLogsPath(path.join(userDataPath,"logs")),protocol.registerSchemesAsPrivileged([{scheme:"vscode-webview",privileges:{standard:!0,secure:!0,supportFetchAPI:!0,corsEnabled:!0,allowServiceWorkers:!0}},{scheme:"vscode-file",privileges:{secure:!0,standard:!0,supportFetchAPI:!0,corsEnabled:!0}}]),registerListeners();var nlsConfigurationPromise=void 0,metaDataFile=path.join(__dirname,"nls.metadata.json"),locale=getUserDefinedLocale(argvConfig);if(locale){const{getNLSConfiguration:g}=require_languagePacks();nlsConfigurationPromise=g(product.commit,userDataPath,metaDataFile,locale)}if(process.platform==="win32"){const g=!locale||locale==="qps-ploc"?"en":locale;app.commandLine.appendSwitch("lang",g)}app.once("ready",function(){if(args.trace){const g=require("electron").contentTracing,h={categoryFilter:args["trace-category-filter"]||"*",traceOptions:args["trace-options"]||"record-until-full,enable-sampling"};g.startRecording(h).finally(()=>onReady())}else onReady()});function startup(g,h){h._languagePackSupport=!0,process.env.VSCODE_NLS_CONFIG=JSON.stringify(h),process.env.VSCODE_CODE_CACHE_PATH=g||"",perf.mark("code/willLoadMainBundle"),require_bootstrap_amd().load("vs/code/electron-main/main",()=>{perf.mark("code/didLoadMainBundle")})}async function onReady(){perf.mark("code/mainAppReady");try{const[,g]=await Promise.all([mkdirpIgnoreError(codeCachePath),resolveNlsConfiguration()]);startup(codeCachePath,g)}catch(g){console.error(g)}}function configureCommandlineSwitchesSync(g){const h=["disable-hardware-acceleration","force-color-profile"];process.platform==="linux"&&h.push("force-renderer-accessibility");const S=["enable-proposed-api","log-level"],P=readArgvConfigSync();Object.keys(P).forEach(y=>{const u=P[y];if(h.indexOf(y)!==-1)y==="force-color-profile"?u&&app.commandLine.appendSwitch(y,u):(u===!0||u==="true")&&(y==="disable-hardware-acceleration"?app.disableHardwareAcceleration():app.commandLine.appendSwitch(y));else if(S.indexOf(y)!==-1)switch(y){case"enable-proposed-api":Array.isArray(u)?u.forEach(m=>m&&typeof m=="string"&&process.argv.push("--enable-proposed-api",m)):console.error("Unexpected value for `enable-proposed-api` in argv.json. Expected array of extension ids.");break;case"log-level":typeof u=="string"&&process.argv.push("--log",u);break}}),app.commandLine.appendSwitch("disable-features","CalculateNativeWinOcclusion"),app.commandLine.appendSwitch("enable-features","AutoDisableAccessibility");const w=getJSFlags(g);return w&&app.commandLine.appendSwitch("js-flags",w),P}function readArgvConfigSync(){const g=getArgvConfigPath();let h;try{h=JSON.parse(stripComments(fs.readFileSync(g).toString()))}catch(S){S&&S.code==="ENOENT"?createDefaultArgvConfigSync(g):console.warn(`Unable to read argv.json configuration file in ${g}, falling back to defaults (${S})`)}return h||(h={}),h}function createDefaultArgvConfigSync(g){try{const h=path.dirname(g);fs.existsSync(h)||fs.mkdirSync(h);const S=["// This configuration file allows you to pass permanent command line arguments to VS Code.","// Only a subset of arguments is currently supported to reduce the likelihood of breaking","// the installation.","//","// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT","//","// NOTE: Changing this file requires a restart of VS Code.","{"," // Use software rendering instead of hardware accelerated rendering."," // This can help in cases where you see rendering issues in VS Code.",' // "disable-hardware-acceleration": true',"}"];fs.writeFileSync(g,S.join(`
`))}catch(h){console.error(`Unable to create argv.json configuration file in ${g}, falling back to defaults (${h})`)}}function getArgvConfigPath(){const g=process.env.VSCODE_PORTABLE;if(g)return path.join(g,"argv.json");let h=product.dataFolderName;return process.env.VSCODE_DEV&&(h=`${h}-dev`),path.join(os.homedir(),h,"argv.json")}function configureCrashReporter(){let g=args["crash-reporter-directory"],h="";if(g){if(g=path.normalize(g),path.isAbsolute(g)||(console.error(`The path '${g}' specified for --crash-reporter-directory must be absolute.`),app.exit(1)),!fs.existsSync(g))try{fs.mkdirSync(g,{recursive:!0})}catch{console.error(`The path '${g}' specified for --crash-reporter-directory does not seem to exist or cannot be created.`),app.exit(1)}console.log(`Found --crash-reporter-directory argument. Setting crashDumps directory to be '${g}'`),app.setPath("crashDumps",g)}else{const y=product.appCenter;if(y){const u=process.platform==="win32",m=process.platform==="linux",d=process.platform==="darwin",v=argvConfig["crash-reporter-id"];if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v)){if(u)switch(process.arch){case"ia32":h=y["win32-ia32"];break;case"x64":h=y["win32-x64"];break;case"arm64":h=y["win32-arm64"];break}else if(d)if(product.darwinUniversalAssetId)h=y["darwin-universal"];else switch(process.arch){case"x64":h=y.darwin;break;case"arm64":h=y["darwin-arm64"];break}else m&&(h=y["linux-x64"]);h=h.concat("&uid=",v,"&iid=",v,"&sid=",v);const o=process.argv,_=o.indexOf("--");_===-1?o.push("--crash-reporter-id",v):o.splice(_,0,"--crash-reporter-id",v)}}}const S=(product.crashReporter?product.crashReporter.productName:void 0)||product.nameShort,P=(product.crashReporter?product.crashReporter.companyName:void 0)||"Microsoft",w=Boolean(!process.env.VSCODE_DEV&&h&&!g);crashReporter.start({companyName:P,productName:process.env.VSCODE_DEV?`${S} Dev`:S,submitURL:h,uploadToServer:w,compress:!0})}function getJSFlags(g){const h=[];return g["js-flags"]&&h.push(g["js-flags"]),g["max-memory"]&&!/max_old_space_size=(\d+)/g.exec(g["js-flags"]??"")&&h.push(`--max_old_space_size=${g["max-memory"]}`),h.length>0?h.join(" "):null}function parseCLIArgs(){return require("minimist")(process.argv,{string:["user-data-dir","locale","js-flags","max-memory","crash-reporter-directory"]})}function registerListeners(){const g=[];global.macOpenFiles=g,app.on("open-file",function(P,w){g.push(w)});const h=[],S=function(P,w){P.preventDefault(),h.push(w)};app.on("will-finish-launching",function(){app.on("open-url",S)}),global.getOpenUrls=function(){return app.removeListener("open-url",S),h}}function getCodeCachePath(){if(process.argv.indexOf("--no-cached-data")>0||process.env.VSCODE_DEV)return;const g=product.commit;if(!!g)return path.join(userDataPath,"CachedData",g)}function mkdirp(g){return new Promise((h,S)=>{fs.mkdir(g,{recursive:!0},P=>P&&P.code!=="EEXIST"?S(P):h(g))})}async function mkdirpIgnoreError(g){if(typeof g=="string")try{return await mkdirp(g),g}catch{}}async function resolveNlsConfiguration(){let g=nlsConfigurationPromise?await nlsConfigurationPromise:void 0;if(!g){let h=app.getLocale();if("getPreferredSystemLanguages"in app&&typeof app.getPreferredSystemLanguages=="function"&&app.getPreferredSystemLanguages().length&&(h=app.getPreferredSystemLanguages()[0]),!h)g={locale:"en",availableLanguages:{}};else{h=h.toLowerCase();const{getNLSConfiguration:S}=require_languagePacks();g=await S(product.commit,userDataPath,metaDataFile,h),g||(g={locale:h,availableLanguages:{}})}}return g}function getUserDefinedLocale(g){const h=args.locale;return h?h.toLowerCase():g.locale&&typeof g.locale=="string"?g.locale.toLowerCase():void 0}
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5235c6bb189b60b01b1f49062f4ffa42384f8c91/core/main.js.map