Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/out/vs/loader.js
T

9 lines
35 KiB
JavaScript
Raw Normal View History

2025-05-09 16:55:09 +08:00
"use strict";/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/var _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{},AMDLoader;(function(c){c.global=_amdLoaderGlobal;var E=function(){function g(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(g.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),g.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=g._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof c.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")},g._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},g}();c.Environment=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){var E=function(){function f(o,_,s){this.type=o,this.detail=_,this.timestamp=s}return f}();c.LoaderEvent=E;var g=function(){function f(o){this._events=[new E(1,"",o)]}return f.prototype.record=function(o,_){this._events.push(new E(o,_,c.Utilities.getHighPerformanceTimestamp()))},f.prototype.getEvents=function(){return this._events},f}();c.LoaderEventRecorder=g;var y=function(){function f(){}return f.prototype.record=function(o,_){},f.prototype.getEvents=function(){return[]},f.INSTANCE=new f,f}();c.NullLoaderEventRecorder=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){var E=function(){function g(){}return g.fileUriToFilePath=function(y,f){if(f=decodeURI(f).replace(/%23/g,"#"),y){if(/^file:\/\/\//.test(f))return f.substr(8);if(/^file:\/\//.test(f))return f.substr(5)}else if(/^file:\/\//.test(f))return f.substr(7);return f},g.startsWith=function(y,f){return y.length>=f.length&&y.substr(0,f.length)===f},g.endsWith=function(y,f){return y.length>=f.length&&y.substr(y.length-f.length)===f},g.containsQueryString=function(y){return/^[^\#]*\?/gi.test(y)},g.isAbsolutePath=function(y){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(y)},g.forEachProperty=function(y,f){if(y){var o=void 0;for(o in y)y.hasOwnProperty(o)&&f(o,y[o])}},g.isEmpty=function(y){var f=!0;return g.forEachProperty(y,function(){f=!1}),f},g.recursiveClone=function(y){if(!y||typeof y!="object"||y instanceof RegExp||!Array.isArray(y)&&Object.getPrototypeOf(y)!==Object.prototype)return y;var f=Array.isArray(y)?[]:{};return g.forEachProperty(y,function(o,_){_&&typeof _=="object"?f[o]=g.recursiveClone(_):f[o]=_}),f},g.generateAnonymousModule=function(){return"===anonymous"+g.NEXT_ANONYMOUS_ID+++"==="},g.isAnonymousModule=function(y){return g.startsWith(y,"===anonymous")},g.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=c.global.performance&&typeof c.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?c.global.performance.now():Date.now()},g.NEXT_ANONYMOUS_ID=1,g.PERFORMANCE_NOW_PROBED=!1,g.HAS_PERFORMANCE_NOW=!1,g}();c.Utilities=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){function E(f){if(f instanceof Error)return f;v
//# sourceURL=`+r;var b=p?self.eval(p.createScript("",h)):new Function(h);b.call(self),n()}).then(void 0,i);return}try{p&&(r=p.createScriptURL(r)),importScripts(r),n()}catch(h){i(h)}}},e}(),o=function(){function e(t){this._env=t,this._didInitialize=!1,this._didPatchNodeRequire=!1}return e.prototype._init=function(t){this._didInitialize||(this._didInitialize=!0,this._fs=t("fs"),this._vm=t("vm"),this._path=t("path"),this._crypto=t("crypto"))},e.prototype._initNodeRequire=function(t,r){var n=r.getConfig().getOptionsLiteral().nodeCachedData;if(!n||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var i=this,u=t("module");function a(l){var d=l.constructor,p=function(h){try{return l.require(h)}finally{}};return p.resolve=function(h,b){return d._resolveFilename(h,l,!1,b)},p.resolve.paths=function(h){return d._resolveLookupPaths(h,l)},p.main=process.mainModule,p.extensions=d._extensions,p.cache=d._cache,p}u.prototype._compile=function(l,d){var p=u.wrap(l.replace(/^#!.*/,"")),v=r.getRecorder(),h=i._getCachedDataPath(n,d),b={filename:d},C;try{var R=i._fs.readFileSync(h);C=R.slice(0,16),b.cachedData=R.slice(16),v.record(60,h)}catch{v.record(61,h)}var m=new i._vm.Script(p,b),I=m.runInThisContext(b),U=i._path.dirname(d),w=a(this),O=[this.exports,w,this,d,U,process,_commonjsGlobal,Buffer],P=I.apply(this.exports,O);return i._handleCachedData(m,p,h,!b.cachedData,r),i._verifyCachedData(m,p,h,C,r),P}},e.prototype.load=function(t,r,n,i){var u=this,a=t.getConfig().getOptionsLiteral(),l=_(t.getRecorder(),a.nodeRequire||c.global.nodeRequire),d=a.nodeInstrumenter||function(I){return I};this._init(l),this._initNodeRequire(l,t);var p=t.getRecorder();if(/^node\|/.test(r)){var v=r.split("|"),h=null;try{h=l(v[1])}catch(I){i(I);return}t.enqueueDefineAnonymousModule([],function(){return h}),n()}else{r=c.Utilities.fileUriToFilePath(this._env.isWindows,r);var b=this._path.normalize(r),C=this._getElectronRendererScriptPathOrUri(b),R=Boolean(a.nodeCachedData),m=R?this._getCachedDataPath(a.nodeCachedData,r):void 0;this._readSourceAndCachedData(b,m,p,function(I,U,w,O){if(I){i(I);return}var P;U.charCodeAt(0)===e._BOM?P=e._PREFIX+U.substring(1)+e._SUFFIX:P=e._PREFIX+U+e._SUFFIX,P=d(P,b);var S={filename:C,cachedData:w},D=u._createAndEvalScript(t,P,S,n,i);u._handleCachedData(D,P,m,R&&!w,t),u._verifyCachedData(D,P,m,O,t)})}},e.prototype._createAndEvalScript=function(t,r,n,i,u){var a=t.getRecorder();a.record(31,n.filename);var l=new this._vm.Script(r,n),d=l.runInThisContext(n),p=t.getGlobalAMDDefineFunc(),v=!1,h=function(){return v=!0,p.apply(null,arguments)};return h.amd=p.amd,d.call(c.global,t.getGlobalAMDRequireFunc(),h,n.filename,this._path.dirname(n.filename)),a.record(32,n.filename),v?i():u(new Error("Didn't receive define call in "+n.filename+"!")),l},e.prototype._getElectronRendererScriptPathOrUri=function(t){if(!this._env.isElectronRenderer)return t;var r=t.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+t},e.prototype._getCachedDataPath=function(t,r){var n=this._crypto.createHash("md5").update(r,"utf8").update(t.seed,"utf8").update(process.arch,"").digest("hex"),i=this._path.basename(r).replace(/\.js$/,"");return this._path.join(t.path,i+"-"+n+".code")},e.prototype._handleCachedData=function(t,r,n,i,u){var a=this;t.cachedDataRejected?this._fs.unlink(n,function(l){u.getRecorder().record(62,n),a._createAndWriteCachedData(t,r,n,u),l&&u.getConfig().onError(l)}):i&&this._createAndWriteCachedData(t,r,n,u)},e.prototype._createAndWriteCachedData=function(t,r,n,i){var u=this,a=Math.ceil(i.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),l=-1,d=0,p=void 0,v=function(){setTimeout(function(){p||(p=u._crypto.createHash("md5").update(r,"utf8").digest());var h=t.createCachedData();if(!(h.length===0||h.length===l||d>=5)){if(h.length<l){v();return}l=h.length,u._fs.writeFile(n,Buffer.concat([p,h]),function(b){b&&i.getConfig().onError(b),i.getRecorder().record(63,n),v()})}},a*Math.pow(4,d++))};v()},e.prototype._readSourceAndCachedData=function(t,r,n,i){if(!r)this._fs.readFile
});`,e}();function _(e,t){if(t.__$__isRecorded)return t;var r=function(i){e.record(33,i);try{return t(i)}finally{e.record(34,i)}};return r.__$__isRecorded=!0,r}c.ensureRecordedNodeRequire=_;function s(e){return new E(e)}c.createScriptLoader=s})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){var E=function(){function s(e){var t=e.lastIndexOf("/");t!==-1?this.fromModulePath=e.substr(0,t+1):this.fromModulePath=""}return s._normalizeModuleId=function(e){var t=e,r;for(r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),t},s.prototype.resolveModule=function(e){var t=e;return c.Utilities.isAbsolutePath(t)||(c.Utilities.startsWith(t,"./")||c.Utilities.startsWith(t,"../"))&&(t=s._normalizeModuleId(this.fromModulePath+t)),t},s.ROOT=new s(""),s}();c.ModuleIdResolver=E;var g=function(){function s(e,t,r,n,i,u){this.id=e,this.strId=t,this.dependencies=r,this._callback=n,this._errorback=i,this.moduleIdResolver=u,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return s._safeInvokeFunction=function(e,t){try{return{returnedValue:e.apply(c.global,t),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},s._invokeFactory=function(e,t,r,n){return e.shouldInvokeFactory(t)?e.shouldCatchError()?this._safeInvokeFunction(r,n):{returnedValue:r.apply(c.global,n),producedError:null}:{returnedValue:null,producedError:null}},s.prototype.complete=function(e,t,r,n){this._isComplete=!0;var i=null;if(this._callback)if(typeof this._callback=="function"){e.record(21,this.strId);var u=s._invokeFactory(t,this.strId,this._callback,r);i=u.producedError,e.record(22,this.strId),!i&&typeof u.returnedValue<"u"&&(!this.exportsPassedIn||c.Utilities.isEmpty(this.exports))&&(this.exports=u.returnedValue)}else this.exports=this._callback;if(i){var a=c.ensureError(i);a.phase="factory",a.moduleId=this.strId,a.neededBy=n(this.id),this.error=a,t.onError(a)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},s.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,this._errorback?(this._errorback(e),!0):!1},s.prototype.isComplete=function(){return this._isComplete},s}();c.Module=g;var y=function(){function s(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return s.prototype.getMaxModuleId=function(){return this._nextId},s.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return typeof t>"u"&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},s.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},s}(),f=function(){function s(e){this.id=e}return s.EXPORTS=new s(0),s.MODULE=new s(1),s.REQUIRE=new s(2),s}();c.RegularDependency=f;var o=function(){function s(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}return s}();c.PluginDependency=o;var _=function(){function s(e,t,r,n,i){i===void 0&&(i=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=i,this._defineFunc=r,this._requireFunc=n,this._moduleIdProvider=new y,this._config=new c.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 s.prototype.reset=function(){return new s(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},s.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},s.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},s._findRelevantLocationInStack=function(e,
`)),e.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[u.id]=this._inverseDependencies2[u.id]||[],this._inverseDependencies2[u.id].push(e.id),u instanceof o){var d=this._modules2[u.pluginId];if(d&&d.isComplete()){this._loadPluginDependency(d.exports,u);continue}var p=this._inversePluginDependencies2.get(u.pluginId);p||(p=[],this._inversePluginDependencies2.set(u.pluginId,p)),p.push(u),this._loadModule(u.pluginId);continue}this._loadModule(u.id)}e.unresolvedDependenciesCount===0&&this._onModuleComplete(e)},s.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var n=e.dependencies,i=[];if(n)for(var u=0,a=n.length;u<a;u++){var l=n[u];if(l===f.EXPORTS){i[u]=e.exports;continue}if(l===f.MODULE){i[u]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}};continue}if(l===f.REQUIRE){i[u]=this._createRequire(e.moduleIdResolver);continue}var d=this._modules2[l.id];if(d){i[u]=d.exports;continue}i[u]=null}var p=function(R){return(t._inverseDependencies2[R]||[]).map(function(m){return t._moduleIdProvider.getStrModuleId(m)})};e.complete(r,this._config,i,p);var v=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,v)for(var u=0,a=v.length;u<a;u++){var h=v[u],b=this._modules2[h];b.unresolvedDependenciesCount--,b.unresolvedDependenciesCount===0&&this._onModuleComplete(b)}var C=this._inversePluginDependencies2.get(e.id);if(C){this._inversePluginDependencies2.delete(e.id);for(var u=0,a=C.length;u<a;u++)this._loadPluginDependency(e.exports,C[u])}}},s}();c.ModuleManager=_})(AMDLoader||(AMDLoader={}));var define,AMDLoader;(function(c){var E=new c.Environment,g=null,y=function(s,e,t){typeof s!="string"&&(t=e,e=s,s=null),(typeof e!="object"||!Array.isArray(e))&&(t=e,e=null),e||(e=["require","exports","module"]),s?g.defineModule(s,e,t,null,null):g.enqueueDefineAnonymousModule(e,t)};y.amd={jQuery:!0};var f=function(s,e){e===void 0&&(e=!1),g.configure(s,e)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){f(arguments[0]);return}if(typeof arguments[0]=="string")return g.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){g.defineModule(c.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=f,o.getConfig=function(){return g.getConfig().getOptionsLiteral()},o.reset=function(){g=g.reset()},o.getBuildInfo=function(){return g.getBuildInfo()},o.getStats=function(){return g.getLoaderEvents()},o.define=y;function _(){if(typeof c.global.require<"u"||typeof require<"u"){var s=c.global.require||require;if(typeof s=="function"&&typeof s.resolve=="function"){var e=c.ensureRecordedNodeRequire(g.getRecorder(),s);c.global.nodeRequire=e,o.nodeRequire=e,o.__$__nodeRequire=e}}E.isNode&&!E.isElectronRenderer&&!E.isElectronNodeIntegrationWebWorker?module.exports=o:(E.isElectronRenderer||(c.global.define=y),c.global.require=o)}c.init=_,(typeof c.global.define!="function"||!c.global.define.amd)&&(g=new c.ModuleManager(E,c.createScriptLoader(E),y,o,c.Utilities.getHighPerformanceTimestamp()),typeof c.global.require<"u"&&typeof c.global.require!="function"&&o.config(c.global.require),define=function(){return y.apply(null,arguments)},define.amd=y.amd,typeof doNotInitLoader>"u"&&_())})(AMDLoader||(AMDLoader={})),define("vs/css",["require","exports"],function(c,E){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.load=void 0;function g(s,e,t,r){if(r=r||{},(r["vs/css"]||{}).disabled){t({});return}const i=e.toUrl(s+".css");y(s,i,()=>{t({})},u=>{typeof t.error=="function"&&t.error("Could not find "+i+".")})}E.load=g;function y(s,e,t,r){if(f(s,e)){t();return}o(s,e,t,r)}function f(s,e){const t=document.getElementsByTagName("link");for(let r=0,n=t.length;r<n;r++){const i=t[r].getAttribute("data-name"),u=t[r].getAttribute("href");if(i===s||u===e)return!0}return!1}function o(s,e,t,r){const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5235c6bb189b60b01b1f49062f4ffa42384f8c91/core/vs/loader.js.map