homebridge-config-ui-x 5.10.1-beta.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +3 -3
- package/dist/core/auth/auth.controller.d.ts +0 -4
- package/dist/core/config/config.interfaces.d.ts +0 -14
- package/dist/core/config/config.service.d.ts +0 -6
- package/dist/core/config/config.service.js +0 -8
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.js +17 -48
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/feature-flags/feature-flags.registry.js +0 -5
- package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +0 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/core/spa/spa.filter.d.ts +0 -3
- package/dist/core/spa/spa.filter.js +2 -22
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/globalDefaults.js +0 -3
- package/dist/globalDefaults.js.map +1 -1
- package/dist/main.js +4 -18
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.d.ts +1 -1
- package/dist/modules/accessories/accessories.module.js +0 -2
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +3 -21
- package/dist/modules/accessories/accessories.service.js +17 -280
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.interfaces.d.ts +0 -9
- package/dist/modules/config-editor/config-editor.controller.d.ts +0 -4
- package/dist/modules/config-editor/config-editor.controller.js +0 -64
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +1 -6
- package/dist/modules/config-editor/config-editor.service.js +1 -45
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.js +2 -16
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +0 -50
- package/dist/modules/server/server.controller.js +2 -201
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +0 -48
- package/dist/modules/server/server.service.js +14 -502
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +0 -2
- package/dist/modules/status/status.interfaces.d.ts +0 -11
- package/dist/modules/status/status.service.d.ts +1 -4
- package/dist/modules/status/status.service.js +2 -21
- package/dist/modules/status/status.service.js.map +1 -1
- package/package.json +9 -14
- package/public/3rdpartylicenses.txt +52 -52
- package/public/assets/monaco/min/vs/assets/editor.worker-Be8ye1pW.js +26 -0
- package/public/assets/monaco/min/vs/assets/json.worker-DKiEKt88.js +58 -0
- package/public/assets/monaco/min/vs/basic-languages/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/editor/editor.main.css +1 -8
- package/public/assets/monaco/min/vs/editor/editor.main.js +4 -797
- package/public/assets/monaco/min/vs/editor.api-CalNCsUg.js +903 -0
- package/public/assets/monaco/min/vs/jsonMode-DULH5oaX.js +7 -0
- package/public/assets/monaco/min/vs/language/json/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/loader.js +1364 -7
- package/public/assets/monaco/min/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
- package/public/assets/monaco/min/vs/monaco.contribution-D2OdxNBt.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-DO3azKX8.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-EcChJV6a.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-qLAYrEOP.js +1 -0
- package/public/assets/monaco/min/vs/nls.messages-loader.js +1 -0
- package/public/assets/monaco/min/vs/workers-DcJshg-q.js +1 -0
- package/public/{chunk-ZUYIWQNV.js → chunk-227QDXDT.js} +1 -1
- package/public/{chunk-WTSUWA7S.js → chunk-2AF3WD4J.js} +1 -1
- package/public/chunk-3WJDQQZL.js +4 -0
- package/public/{chunk-PYAOOAFS.js → chunk-4EKX3Z76.js} +1 -1
- package/public/{chunk-OJ37C3YB.js → chunk-53KE3XPC.js} +1 -1
- package/public/{chunk-HUESZB2Q.js → chunk-53KNB3HO.js} +1 -1
- package/public/chunk-5KQ5PHZY.js +1 -0
- package/public/chunk-5RSQ3VKF.js +1 -0
- package/public/{chunk-4C4OAXTJ.js → chunk-7G4CXD2O.js} +1 -1
- package/public/{chunk-JXLJRPJS.js → chunk-A6U6HYY3.js} +1 -1
- package/public/{chunk-BZZVKG3V.js → chunk-APMBCXUH.js} +1 -1
- package/public/{chunk-K3PIHMRS.js → chunk-AW3MY6EQ.js} +1 -1
- package/public/{chunk-7RBF5X4H.js → chunk-C46IEABJ.js} +1 -1
- package/public/{chunk-ICS7ZICH.js → chunk-DEAIAR5T.js} +1 -1
- package/public/chunk-DOEUREPX.js +1 -0
- package/public/{chunk-UCNN3X7L.js → chunk-E7RYLM5U.js} +1 -1
- package/public/chunk-FDR4RMWN.js +1 -0
- package/public/{chunk-RAWL26R7.js → chunk-FHGIL4GK.js} +1 -1
- package/public/chunk-FK57KJRX.js +1 -0
- package/public/chunk-FYY57EXZ.js +5 -0
- package/public/{chunk-UASZBKBZ.js → chunk-G6G4X3LL.js} +1 -1
- package/public/{chunk-VXWLFCOQ.js → chunk-G6VVYCFK.js} +1 -1
- package/public/chunk-G7S7J6DQ.js +1 -0
- package/public/chunk-GZU7FSYR.js +1 -0
- package/public/{chunk-LXMBIF6W.js → chunk-HGQJCJDV.js} +1 -1
- package/public/{chunk-P2DQFTI7.js → chunk-HIFUKISS.js} +1 -1
- package/public/chunk-IKDCH6SV.js +1 -0
- package/public/chunk-IWRD5BS2.js +1 -0
- package/public/{chunk-2PQS43HJ.js → chunk-J3GNTL4X.js} +1 -1
- package/public/chunk-KK5HST3W.js +1 -0
- package/public/{chunk-RHJH4NAL.js → chunk-KO7OKSD4.js} +1 -1
- package/public/{chunk-3OCGL4VG.js → chunk-KY3N6RBR.js} +1 -1
- package/public/{chunk-DSA6B4PW.js → chunk-L5OY5K3Z.js} +1 -1
- package/public/{chunk-GBXDLKOS.js → chunk-LQSXNQRY.js} +1 -1
- package/public/chunk-NIVC55QC.js +1 -0
- package/public/{chunk-EXSN7ASU.js → chunk-NLVJP2FS.js} +1 -1
- package/public/{chunk-RFNZZH35.js → chunk-NVYUCMZB.js} +1 -1
- package/public/{chunk-XCJH7PUD.js → chunk-NXM6LODP.js} +1 -1
- package/public/chunk-O5PYZ4PG.js +16 -0
- package/public/chunk-OQAG4MQB.js +1 -0
- package/public/{chunk-CYZAN4CD.js → chunk-OQLCIKGK.js} +1 -1
- package/public/chunk-OT3OZVNB.js +50 -0
- package/public/{chunk-YCRH56FY.js → chunk-PA2FLQHK.js} +1 -1
- package/public/chunk-PD4EFNCS.js +1 -0
- package/public/{chunk-MA74SXNP.js → chunk-PHY7W3BQ.js} +1 -1
- package/public/chunk-PKVKTMRP.js +19 -0
- package/public/{chunk-6AGYELAU.js → chunk-PPU3W2KO.js} +1 -1
- package/public/{chunk-5FFAA6YO.js → chunk-QIJ6OIDU.js} +1 -1
- package/public/chunk-REIZTIW4.js +2 -0
- package/public/chunk-RQOGW4OS.js +1 -0
- package/public/{chunk-UYFTDKBB.js → chunk-RS6FC3D3.js} +1 -1
- package/public/{chunk-2OV2S53D.js → chunk-S5CZBBHY.js} +1 -1
- package/public/{chunk-XKXSOWIU.js → chunk-SQSP77TI.js} +1 -1
- package/public/chunk-TAJT2XQ6.js +1 -0
- package/public/{chunk-4EQFXSOO.js → chunk-U73PAFR5.js} +1 -1
- package/public/chunk-U77IESKH.js +1 -0
- package/public/{chunk-WDFYORD4.js → chunk-UBWU2SEH.js} +1 -1
- package/public/{chunk-FFBQ244V.js → chunk-UGNUDJ75.js} +1 -1
- package/public/{chunk-4Y574DAY.js → chunk-UPB765LT.js} +1 -1
- package/public/{chunk-NP2OU6PT.js → chunk-W4NH2DJW.js} +1 -1
- package/public/{chunk-G4KDX4LF.js → chunk-W5BUXVY6.js} +5 -5
- package/public/chunk-WPMRJABD.js +1 -0
- package/public/{chunk-HXBITOYP.js → chunk-WYCRIQDH.js} +1 -1
- package/public/chunk-YRC6JINT.js +1 -0
- package/public/{chunk-IC3ZXYWP.js → chunk-ZC4YICGQ.js} +1 -1
- package/public/{chunk-6VUYO4JJ.js → chunk-ZUOL6YC4.js} +1 -1
- package/public/{chunk-ZMTA7EPT.js → chunk-ZWGNHKFK.js} +1 -1
- package/public/chunk-ZXKMLKZT.js +40 -0
- package/public/index.html +2 -2
- package/public/main-WC4DXWXF.js +1 -0
- package/public/{styles-WNHDEKE4.css → styles-7EFV5QBG.css} +1 -1
- package/scripts/extract-plugin-alias.js +2 -53
- package/TODO-MATTER.md +0 -15
- package/dist/core/spa/spa-html.service.d.ts +0 -5
- package/dist/core/spa/spa-html.service.js +0 -32
- package/dist/core/spa/spa-html.service.js.map +0 -1
- package/dist/core/ssl/ssl-cert-generator.service.d.ts +0 -15
- package/dist/core/ssl/ssl-cert-generator.service.js +0 -125
- package/dist/core/ssl/ssl-cert-generator.service.js.map +0 -1
- package/dist/modules/accessories/accessories.interfaces.d.ts +0 -94
- package/dist/modules/accessories/accessories.interfaces.js +0 -2
- package/dist/modules/accessories/accessories.interfaces.js.map +0 -1
- package/docs/ssl-upload-pr.md +0 -103
- package/public/assets/matter.svg +0 -8
- package/public/assets/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/monaco/min/vs/base/worker/workerMain.js +0 -31
- package/public/assets/monaco/min/vs/basic-languages/shell/shell.js +0 -10
- package/public/assets/monaco/min/vs/language/json/jsonMode.js +0 -19
- package/public/assets/monaco/min/vs/language/json/jsonWorker.js +0 -42
- package/public/chunk-2G3RYG7T.js +0 -4
- package/public/chunk-3MP4NIEN.js +0 -1
- package/public/chunk-3NF5LSRS.js +0 -1
- package/public/chunk-3OS2E7NT.js +0 -1
- package/public/chunk-3U4TTBN3.js +0 -1
- package/public/chunk-6Y44WRYZ.js +0 -5
- package/public/chunk-AEA5MWJV.js +0 -1
- package/public/chunk-AQ7KVNYY.js +0 -1
- package/public/chunk-BRVBWBXQ.js +0 -1
- package/public/chunk-DT7PMMCU.js +0 -1
- package/public/chunk-F5RNPJMD.js +0 -16
- package/public/chunk-ILKO7HAU.js +0 -68
- package/public/chunk-JL6T3BSX.js +0 -1
- package/public/chunk-K3NHKO4E.js +0 -1
- package/public/chunk-KKHQOHXA.js +0 -1
- package/public/chunk-LGUE3JKA.js +0 -1
- package/public/chunk-LNBMZDII.js +0 -1
- package/public/chunk-M3CXG4MR.js +0 -1
- package/public/chunk-N3WEHNOH.js +0 -1
- package/public/chunk-NRCW2EPZ.js +0 -50
- package/public/chunk-QRB4TY6A.js +0 -1
- package/public/chunk-QTWA67OK.js +0 -2
- package/public/chunk-W7GOVRP4.js +0 -1
- package/public/chunk-WL5GK7PI.js +0 -19
- package/public/chunk-ZTJZA6OC.js +0 -1
- package/public/chunk-ZUM4REDQ.js +0 -1
- package/public/main-ZIKN743D.js +0 -1
- package/public/media/matter-P563JGDL.svg +0 -8
|
@@ -1,11 +1,1368 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
/*!-----------------------------------------------------------
|
|
2
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
4
|
+
* Version: 0.42.0-dev-20230906(e7d7a5b072e74702a912a4c855a3bda21a7757e7)
|
|
4
5
|
* Released under the MIT license
|
|
5
6
|
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------*/const _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{};var AMDLoader;(function(u){u.global=_amdLoaderGlobal;class y{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=y._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 u.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")}static _isWindows(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1}}u.Environment=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(r,c,a){this.type=r,this.detail=c,this.timestamp=a}}u.LoaderEvent=y;class m{constructor(r){this._events=[new y(1,"",r)]}record(r,c){this._events.push(new y(r,c,u.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}u.LoaderEventRecorder=m;class p{record(r,c){}getEvents(){return[]}}p.INSTANCE=new p,u.NullLoaderEventRecorder=p})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{static fileUriToFilePath(p,h){if(h=decodeURI(h).replace(/%23/g,"#"),p){if(/^file:\/\/\//.test(h))return h.substr(8);if(/^file:\/\//.test(h))return h.substr(5)}else if(/^file:\/\//.test(h))return h.substr(7);return h}static startsWith(p,h){return p.length>=h.length&&p.substr(0,h.length)===h}static endsWith(p,h){return p.length>=h.length&&p.substr(p.length-h.length)===h}static containsQueryString(p){return/^[^\#]*\?/gi.test(p)}static isAbsolutePath(p){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(p)}static forEachProperty(p,h){if(p){let r;for(r in p)p.hasOwnProperty(r)&&h(r,p[r])}}static isEmpty(p){let h=!0;return y.forEachProperty(p,()=>{h=!1}),h}static recursiveClone(p){if(!p||typeof p!="object"||p instanceof RegExp||!Array.isArray(p)&&Object.getPrototypeOf(p)!==Object.prototype)return p;let h=Array.isArray(p)?[]:{};return y.forEachProperty(p,(r,c)=>{c&&typeof c=="object"?h[r]=y.recursiveClone(c):h[r]=c}),h}static generateAnonymousModule(){return"===anonymous"+y.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(p){return y.startsWith(p,"===anonymous")}static getHighPerformanceTimestamp(){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()}}y.NEXT_ANONYMOUS_ID=1,y.PERFORMANCE_NOW_PROBED=!1,y.HAS_PERFORMANCE_NOW=!1,u.Utilities=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){function y(h){if(h instanceof Error)return h;const r=new Error(h.message||String(h)||"Unknown Error");return h.stack&&(r.stack=h.stack),r}u.ensureError=y;class m{static validateConfigurationOptions(r){function c(a){if(a.phase==="loading"){console.error('Loading "'+a.moduleId+'" failed'),console.error(a),console.error("Here are the modules that depend on it:"),console.error(a.neededBy);return}if(a.phase==="factory"){console.error('The factory function of "'+a.moduleId+'" has thrown an exception'),console.error(a),console.error("Here are the modules that depend on it:"),console.error(a.neededBy);return}}if(r=r||{},typeof r.baseUrl!="string"&&(r.baseUrl=""),typeof r.isBuild!="boolean"&&(r.isBuild=!1),typeof r.paths!="object"&&(r.paths={}),typeof r.config!="object"&&(r.config={}),typeof r.catchError>"u"&&(r.catchError=!1),typeof r.recordStats>"u"&&(r.recordStats=!1),typeof r.urlArgs!="string"&&(r.urlArgs=""),typeof r.onError!="function"&&(r.onError=c),Array.isArray(r.ignoreDuplicateModules)||(r.ignoreDuplicateModules=[]),r.baseUrl.length>0&&(u.Utilities.endsWith(r.baseUrl,"/")||(r.baseUrl+="/")),typeof r.cspNonce!="string"&&(r.cspNonce=""),typeof r.preferScriptTags>"u"&&(r.preferScriptTags=!1),r.nodeCachedData&&typeof r.nodeCachedData=="object"&&(typeof r.nodeCachedData.seed!="string"&&(r.nodeCachedData.seed="seed"),(typeof r.nodeCachedData.writeDelay!="number"||r.nodeCachedData.writeDelay<0)&&(r.nodeCachedData.writeDelay=1e3*7),!r.nodeCachedData.path||typeof r.nodeCachedData.path!="string")){const a=y(new Error("INVALID cached data configuration, 'path' MUST be set"));a.phase="configuration",r.onError(a),r.nodeCachedData=void 0}return r}static mergeConfigurationOptions(r=null,c=null){let a=u.Utilities.recursiveClone(c||{});return u.Utilities.forEachProperty(r,(t,e)=>{t==="ignoreDuplicateModules"&&typeof a.ignoreDuplicateModules<"u"?a.ignoreDuplicateModules=a.ignoreDuplicateModules.concat(e):t==="paths"&&typeof a.paths<"u"?u.Utilities.forEachProperty(e,(i,s)=>a.paths[i]=s):t==="config"&&typeof a.config<"u"?u.Utilities.forEachProperty(e,(i,s)=>a.config[i]=s):a[t]=u.Utilities.recursiveClone(e)}),m.validateConfigurationOptions(a)}}u.ConfigurationOptionsUtil=m;class p{constructor(r,c){if(this._env=r,this.options=m.mergeConfigurationOptions(c),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let a=this.options.nodeRequire.main.filename,t=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let r=0;r<this.options.ignoreDuplicateModules.length;r++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[r]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],u.Utilities.forEachProperty(this.options.paths,(r,c)=>{Array.isArray(c)?this.sortedPathsRules.push({from:r,to:c}):this.sortedPathsRules.push({from:r,to:[c]})}),this.sortedPathsRules.sort((r,c)=>c.from.length-r.from.length)}cloneAndMerge(r){return new p(this._env,m.mergeConfigurationOptions(r,this.options))}getOptionsLiteral(){return this.options}_applyPaths(r){let c;for(let a=0,t=this.sortedPathsRules.length;a<t;a++)if(c=this.sortedPathsRules[a],u.Utilities.startsWith(r,c.from)){let e=[];for(let i=0,s=c.to.length;i<s;i++)e.push(c.to[i]+r.substr(c.from.length));return e}return[r]}_addUrlArgsToUrl(r){return u.Utilities.containsQueryString(r)?r+"&"+this.options.urlArgs:r+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(r){return this.options.urlArgs?this._addUrlArgsToUrl(r):r}_addUrlArgsIfNecessaryToUrls(r){if(this.options.urlArgs)for(let c=0,a=r.length;c<a;c++)r[c]=this._addUrlArgsToUrl(r[c]);return r}moduleIdToPaths(r){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(r))return this.isBuild()?["empty:"]:["node|"+r];let c=r,a;if(!u.Utilities.endsWith(c,".js")&&!u.Utilities.isAbsolutePath(c)){a=this._applyPaths(c);for(let t=0,e=a.length;t<e;t++)this.isBuild()&&a[t]==="empty:"||(u.Utilities.isAbsolutePath(a[t])||(a[t]=this.options.baseUrl+a[t]),!u.Utilities.endsWith(a[t],".js")&&!u.Utilities.containsQueryString(a[t])&&(a[t]=a[t]+".js"))}else!u.Utilities.endsWith(c,".js")&&!u.Utilities.containsQueryString(c)&&(c=c+".js"),a=[c];return this._addUrlArgsIfNecessaryToUrls(a)}requireToUrl(r){let c=r;return u.Utilities.isAbsolutePath(c)||(c=this._applyPaths(c)[0],u.Utilities.isAbsolutePath(c)||(c=this.options.baseUrl+c)),this._addUrlArgsIfNecessaryToUrl(c)}isBuild(){return this.options.isBuild}shouldInvokeFactory(r){return!!(!this.options.isBuild||u.Utilities.isAnonymousModule(r)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[r])}isDuplicateMessageIgnoredFor(r){return this.ignoreDuplicateModulesMap.hasOwnProperty(r)}getConfigForModule(r){if(this.options.config)return this.options.config[r]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(r){this.options.onError(r)}}u.Configuration=p})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,i,s,n){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new h;else if(this._env.isElectronRenderer){const{preferScriptTags:d}=e.getConfig().getOptionsLiteral();d?this._scriptLoader=new m:this._scriptLoader=new r(this._env)}else this._env.isNode?this._scriptLoader=new r(this._env):this._scriptLoader=new m;let l={callback:s,errorback:n};if(this._callbackMap.hasOwnProperty(i)){this._callbackMap[i].push(l);return}this._callbackMap[i]=[l],this._scriptLoader.load(e,i,()=>this.triggerCallback(i),d=>this.triggerErrorback(i,d))}triggerCallback(e){let i=this._callbackMap[e];delete this._callbackMap[e];for(let s=0;s<i.length;s++)i[s].callback()}triggerErrorback(e,i){let s=this._callbackMap[e];delete this._callbackMap[e];for(let n=0;n<s.length;n++)s[n].errorback(i)}}class m{attachListeners(e,i,s){let n=()=>{e.removeEventListener("load",l),e.removeEventListener("error",d)},l=o=>{n(),i()},d=o=>{n(),s(o)};e.addEventListener("load",l),e.addEventListener("error",d)}load(e,i,s,n){if(/^node\|/.test(i)){let l=e.getConfig().getOptionsLiteral(),d=c(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),o=i.split("|"),_=null;try{_=d(o[1])}catch(f){n(f);return}e.enqueueDefineAnonymousModule([],()=>_),s()}else{let l=document.createElement("script");l.setAttribute("async","async"),l.setAttribute("type","text/javascript"),this.attachListeners(l,s,n);const{trustedTypesPolicy:d}=e.getConfig().getOptionsLiteral();d&&(i=d.createScriptURL(i)),l.setAttribute("src",i);const{cspNonce:o}=e.getConfig().getOptionsLiteral();o&&l.setAttribute("nonce",o),document.getElementsByTagName("head")[0].appendChild(l)}}}function p(t){const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();try{return(e?self.eval(e.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class h{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=p(e)),this._cachedCanUseEval}load(e,i,s,n){if(/^node\|/.test(i)){const l=e.getConfig().getOptionsLiteral(),d=c(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),o=i.split("|");let _=null;try{_=d(o[1])}catch(f){n(f);return}e.enqueueDefineAnonymousModule([],function(){return _}),s()}else{const{trustedTypesPolicy:l}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(i)&&i.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(i).then(o=>{if(o.status!==200)throw new Error(o.statusText);return o.text()}).then(o=>{o=`${o}
|
|
7
|
-
|
|
8
|
-
});`;function c(t,e){if(e.__$__isRecorded)return e;const i=function(n){t.record(33,n);try{return e(n)}finally{t.record(34,n)}};return i.__$__isRecorded=!0,i}u.ensureRecordedNodeRequire=c;function a(t){return new y(t)}u.createScriptLoader=a})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let e=t,i;for(i=/\/\.\//;i.test(e);)e=e.replace(i,"/");for(e=e.replace(/^\.\//g,""),i=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;i.test(e);)e=e.replace(i,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e}resolveModule(t){let e=t;return u.Utilities.isAbsolutePath(e)||(u.Utilities.startsWith(e,"./")||u.Utilities.startsWith(e,"../"))&&(e=y._normalizeModuleId(this.fromModulePath+e)),e}}y.ROOT=new y(""),u.ModuleIdResolver=y;class m{constructor(t,e,i,s,n,l){this.id=t,this.strId=e,this.dependencies=i,this._callback=s,this._errorback=n,this.moduleIdResolver=l,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,e){try{return{returnedValue:t.apply(u.global,e),producedError:null}}catch(i){return{returnedValue:null,producedError:i}}}static _invokeFactory(t,e,i,s){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(i,s):{returnedValue:i.apply(u.global,s),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,i,s){this._isComplete=!0;let n=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let l=m._invokeFactory(e,this.strId,this._callback,i);n=l.producedError,t.record(22,this.strId),!n&&typeof l.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=l.returnedValue)}else this.exports=this._callback;if(n){let 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}onDependencyError(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1}isComplete(){return this._isComplete}}u.Module=m;class p{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(t){let e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e}getStrModuleId(t){return this._intModuleIdToStrModuleId[t]}}class h{constructor(t){this.id=t}}h.EXPORTS=new h(0),h.MODULE=new h(1),h.REQUIRE=new h(2),u.RegularDependency=h;class r{constructor(t,e,i){this.id=t,this.pluginId=e,this.pluginParam=i}}u.PluginDependency=r;class c{constructor(t,e,i,s,n=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=n,this._defineFunc=i,this._requireFunc=s,this._moduleIdProvider=new p,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=[],this._requireFunc.moduleManager=this}reset(){return new c(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let i=l=>l.replace(/\\/g,"/"),s=i(t),n=e.split(/\n/);for(let l=0;l<n.length;l++){let d=n[l].match(/(.*):(\d+):(\d+)\)?$/);if(d){let o=d[1],_=d[2],f=d[3],g=Math.max(o.lastIndexOf(" ")+1,o.lastIndexOf("(")+1);if(o=o.substr(g),o=i(o),o===s){let v={line:parseInt(_,10),col:parseInt(f,10)};return v.line===1&&(v.col-=53),v}}}throw new Error("Could not correlate define call site for needle "+t)}getBuildInfo(){if(!this._config.isBuild())return null;let t=[],e=0;for(let i=0,s=this._modules2.length;i<s;i++){let n=this._modules2[i];if(!n)continue;let l=this._buildInfoPath[n.id]||null,d=this._buildInfoDefineStack[n.id]||null,o=this._buildInfoDependencies[n.id];t[e++]={id:n.strId,path:l,defineLocation:l&&d?c._findRelevantLocationInStack(l,d):null,dependencies:o,shim:null,exports:n.exports}}return t}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");let i=null;this._config.isBuild()&&(i=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:i,dependencies:t,callback:e}}defineModule(t,e,i,s,n,l=new y(t)){let d=this._moduleIdProvider.getModuleId(t);if(this._modules2[d]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}let o=new m(d,t,this._normalizeDependencies(e,l),i,s,l);this._modules2[d]=o,this._config.isBuild()&&(this._buildInfoDefineStack[d]=n,this._buildInfoDependencies[d]=(o.dependencies||[]).map(_=>this._moduleIdProvider.getStrModuleId(_.id))),this._resolve(o)}_normalizeDependency(t,e){if(t==="exports")return h.EXPORTS;if(t==="module")return h.MODULE;if(t==="require")return h.REQUIRE;let i=t.indexOf("!");if(i>=0){let s=e.resolveModule(t.substr(0,i)),n=e.resolveModule(t.substr(i+1)),l=this._moduleIdProvider.getModuleId(s+"!"+n),d=this._moduleIdProvider.getModuleId(s);return new r(l,d,n)}return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let i=[],s=0;for(let n=0,l=t.length;n<l;n++)i[s++]=this._normalizeDependency(t[n],e);return i}_relativeRequire(t,e,i,s){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(u.Utilities.generateAnonymousModule(),e,i,s,null,t)}synchronousRequire(t,e=new y(t)){let i=this._normalizeDependency(t,e),s=this._modules2[i.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}configure(t,e){let i=this._config.shouldRecordStats();e?this._config=new u.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!i&&(this._recorder=null)}getConfig(){return this._config}_onLoad(t){if(this._currentAnonymousDefineCall!==null){let e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}}_createLoadError(t,e){let i=this._moduleIdProvider.getStrModuleId(t),s=(this._inverseDependencies2[t]||[]).map(l=>this._moduleIdProvider.getStrModuleId(l));const n=u.ensureError(e);return n.phase="loading",n.moduleId=i,n.neededBy=s,n}_onLoadError(t,e){const i=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new m(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let s=[];for(let d=0,o=this._moduleIdProvider.getMaxModuleId();d<o;d++)s[d]=!1;let n=!1,l=[];for(l.push(t),s[t]=!0;l.length>0;){let d=l.shift(),o=this._modules2[d];o&&(n=o.onDependencyError(i)||n);let _=this._inverseDependencies2[d];if(_)for(let f=0,g=_.length;f<g;f++){let v=_[f];s[v]||(l.push(v),s[v]=!0)}}n||this._config.onError(i)}_hasDependencyPath(t,e){let i=this._modules2[t];if(!i)return!1;let s=[];for(let l=0,d=this._moduleIdProvider.getMaxModuleId();l<d;l++)s[l]=!1;let n=[];for(n.push(i),s[t]=!0;n.length>0;){let d=n.shift().dependencies;if(d)for(let o=0,_=d.length;o<_;o++){let f=d[o];if(f.id===e)return!0;let g=this._modules2[f.id];g&&!s[f.id]&&(s[f.id]=!0,n.push(g))}}return!1}_findCyclePath(t,e,i){if(t===e||i===50)return[t];let s=this._modules2[t];if(!s)return null;let n=s.dependencies;if(n)for(let l=0,d=n.length;l<d;l++){let o=this._findCyclePath(n[l].id,e,i+1);if(o!==null)return o.push(t),o}return null}_createRequire(t){let e=(i,s,n)=>this._relativeRequire(t,i,s,n);return e.toUrl=i=>this._config.requireToUrl(t.resolveModule(i)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(i,s=!1)=>{this.configure(i,s)},e.__$__nodeRequire=u.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),i=this._config.moduleIdToPaths(e),s=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||s.test(e))&&i.push("node|"+e);let n=-1,l=d=>{if(n++,n>=i.length)this._onLoadError(t,d);else{let o=i[n],_=this.getRecorder();if(this._config.isBuild()&&o==="empty:"){this._buildInfoPath[t]=o,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}_.record(10,o),this._scriptLoader.load(this,o,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=o),_.record(11,o),this._onLoad(t)},f=>{_.record(12,o),l(f)})}};l(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let i=s=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],s,null,null)};i.error=s=>{this._config.onError(this._createLoadError(e.id,s))},t.load(e.pluginParam,this._createRequire(y.ROOT),i,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let i=0,s=e.length;i<s;i++){let n=e[i];if(n===h.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(n===h.MODULE){t.unresolvedDependenciesCount--;continue}if(n===h.REQUIRE){t.unresolvedDependenciesCount--;continue}let l=this._modules2[n.id];if(l&&l.isComplete()){if(l.error){t.onDependencyError(l.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(n.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(n.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");let d=this._findCyclePath(n.id,t.id,0)||[];d.reverse(),d.push(n.id),console.warn(d.map(o=>this._moduleIdProvider.getStrModuleId(o)).join(` =>
|
|
9
|
-
|
|
7
|
+
*-----------------------------------------------------------*/ const _amdLoaderGlobal = this,
|
|
8
|
+
_commonjsGlobal = typeof global == 'object' ? global : {};
|
|
9
|
+
var AMDLoader;
|
|
10
|
+
(function (u) {
|
|
11
|
+
u.global = _amdLoaderGlobal;
|
|
12
|
+
class y {
|
|
13
|
+
get isWindows() {
|
|
14
|
+
return this._detect(), this._isWindows;
|
|
15
|
+
}
|
|
16
|
+
get isNode() {
|
|
17
|
+
return this._detect(), this._isNode;
|
|
18
|
+
}
|
|
19
|
+
get isElectronRenderer() {
|
|
20
|
+
return this._detect(), this._isElectronRenderer;
|
|
21
|
+
}
|
|
22
|
+
get isWebWorker() {
|
|
23
|
+
return this._detect(), this._isWebWorker;
|
|
24
|
+
}
|
|
25
|
+
get isElectronNodeIntegrationWebWorker() {
|
|
26
|
+
return this._detect(), this._isElectronNodeIntegrationWebWorker;
|
|
27
|
+
}
|
|
28
|
+
constructor() {
|
|
29
|
+
(this._detected = !1),
|
|
30
|
+
(this._isWindows = !1),
|
|
31
|
+
(this._isNode = !1),
|
|
32
|
+
(this._isElectronRenderer = !1),
|
|
33
|
+
(this._isWebWorker = !1),
|
|
34
|
+
(this._isElectronNodeIntegrationWebWorker = !1);
|
|
35
|
+
}
|
|
36
|
+
_detect() {
|
|
37
|
+
this._detected ||
|
|
38
|
+
((this._detected = !0),
|
|
39
|
+
(this._isWindows = y._isWindows()),
|
|
40
|
+
(this._isNode = typeof module < 'u' && !!module.exports),
|
|
41
|
+
(this._isElectronRenderer =
|
|
42
|
+
typeof process < 'u' &&
|
|
43
|
+
typeof process.versions < 'u' &&
|
|
44
|
+
typeof process.versions.electron < 'u' &&
|
|
45
|
+
process.type === 'renderer'),
|
|
46
|
+
(this._isWebWorker = typeof u.global.importScripts == 'function'),
|
|
47
|
+
(this._isElectronNodeIntegrationWebWorker =
|
|
48
|
+
this._isWebWorker &&
|
|
49
|
+
typeof process < 'u' &&
|
|
50
|
+
typeof process.versions < 'u' &&
|
|
51
|
+
typeof process.versions.electron < 'u' &&
|
|
52
|
+
process.type === 'worker'));
|
|
53
|
+
}
|
|
54
|
+
static _isWindows() {
|
|
55
|
+
return typeof navigator < 'u' &&
|
|
56
|
+
navigator.userAgent &&
|
|
57
|
+
navigator.userAgent.indexOf('Windows') >= 0
|
|
58
|
+
? !0
|
|
59
|
+
: typeof process < 'u'
|
|
60
|
+
? process.platform === 'win32'
|
|
61
|
+
: !1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
u.Environment = y;
|
|
65
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
66
|
+
var AMDLoader;
|
|
67
|
+
(function (u) {
|
|
68
|
+
class y {
|
|
69
|
+
constructor(r, c, a) {
|
|
70
|
+
(this.type = r), (this.detail = c), (this.timestamp = a);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
u.LoaderEvent = y;
|
|
74
|
+
class m {
|
|
75
|
+
constructor(r) {
|
|
76
|
+
this._events = [new y(1, '', r)];
|
|
77
|
+
}
|
|
78
|
+
record(r, c) {
|
|
79
|
+
this._events.push(new y(r, c, u.Utilities.getHighPerformanceTimestamp()));
|
|
80
|
+
}
|
|
81
|
+
getEvents() {
|
|
82
|
+
return this._events;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
u.LoaderEventRecorder = m;
|
|
86
|
+
class p {
|
|
87
|
+
record(r, c) {}
|
|
88
|
+
getEvents() {
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
(p.INSTANCE = new p()), (u.NullLoaderEventRecorder = p);
|
|
93
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
94
|
+
var AMDLoader;
|
|
95
|
+
(function (u) {
|
|
96
|
+
class y {
|
|
97
|
+
static fileUriToFilePath(p, h) {
|
|
98
|
+
if (((h = decodeURI(h).replace(/%23/g, '#')), p)) {
|
|
99
|
+
if (/^file:\/\/\//.test(h)) return h.substr(8);
|
|
100
|
+
if (/^file:\/\//.test(h)) return h.substr(5);
|
|
101
|
+
} else if (/^file:\/\//.test(h)) return h.substr(7);
|
|
102
|
+
return h;
|
|
103
|
+
}
|
|
104
|
+
static startsWith(p, h) {
|
|
105
|
+
return p.length >= h.length && p.substr(0, h.length) === h;
|
|
106
|
+
}
|
|
107
|
+
static endsWith(p, h) {
|
|
108
|
+
return p.length >= h.length && p.substr(p.length - h.length) === h;
|
|
109
|
+
}
|
|
110
|
+
static containsQueryString(p) {
|
|
111
|
+
return /^[^\#]*\?/gi.test(p);
|
|
112
|
+
}
|
|
113
|
+
static isAbsolutePath(p) {
|
|
114
|
+
return /^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(p);
|
|
115
|
+
}
|
|
116
|
+
static forEachProperty(p, h) {
|
|
117
|
+
if (p) {
|
|
118
|
+
let r;
|
|
119
|
+
for (r in p) p.hasOwnProperty(r) && h(r, p[r]);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
static isEmpty(p) {
|
|
123
|
+
let h = !0;
|
|
124
|
+
return (
|
|
125
|
+
y.forEachProperty(p, () => {
|
|
126
|
+
h = !1;
|
|
127
|
+
}),
|
|
128
|
+
h
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
static recursiveClone(p) {
|
|
132
|
+
if (
|
|
133
|
+
!p ||
|
|
134
|
+
typeof p != 'object' ||
|
|
135
|
+
p instanceof RegExp ||
|
|
136
|
+
(!Array.isArray(p) && Object.getPrototypeOf(p) !== Object.prototype)
|
|
137
|
+
)
|
|
138
|
+
return p;
|
|
139
|
+
let h = Array.isArray(p) ? [] : {};
|
|
140
|
+
return (
|
|
141
|
+
y.forEachProperty(p, (r, c) => {
|
|
142
|
+
c && typeof c == 'object' ? (h[r] = y.recursiveClone(c)) : (h[r] = c);
|
|
143
|
+
}),
|
|
144
|
+
h
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
static generateAnonymousModule() {
|
|
148
|
+
return '===anonymous' + y.NEXT_ANONYMOUS_ID++ + '===';
|
|
149
|
+
}
|
|
150
|
+
static isAnonymousModule(p) {
|
|
151
|
+
return y.startsWith(p, '===anonymous');
|
|
152
|
+
}
|
|
153
|
+
static getHighPerformanceTimestamp() {
|
|
154
|
+
return (
|
|
155
|
+
this.PERFORMANCE_NOW_PROBED ||
|
|
156
|
+
((this.PERFORMANCE_NOW_PROBED = !0),
|
|
157
|
+
(this.HAS_PERFORMANCE_NOW =
|
|
158
|
+
u.global.performance && typeof u.global.performance.now == 'function')),
|
|
159
|
+
this.HAS_PERFORMANCE_NOW ? u.global.performance.now() : Date.now()
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
(y.NEXT_ANONYMOUS_ID = 1),
|
|
164
|
+
(y.PERFORMANCE_NOW_PROBED = !1),
|
|
165
|
+
(y.HAS_PERFORMANCE_NOW = !1),
|
|
166
|
+
(u.Utilities = y);
|
|
167
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
168
|
+
var AMDLoader;
|
|
169
|
+
(function (u) {
|
|
170
|
+
function y(h) {
|
|
171
|
+
if (h instanceof Error) return h;
|
|
172
|
+
const r = new Error(h.message || String(h) || 'Unknown Error');
|
|
173
|
+
return h.stack && (r.stack = h.stack), r;
|
|
174
|
+
}
|
|
175
|
+
u.ensureError = y;
|
|
176
|
+
class m {
|
|
177
|
+
static validateConfigurationOptions(r) {
|
|
178
|
+
function c(a) {
|
|
179
|
+
if (a.phase === 'loading') {
|
|
180
|
+
console.error('Loading "' + a.moduleId + '" failed'),
|
|
181
|
+
console.error(a),
|
|
182
|
+
console.error('Here are the modules that depend on it:'),
|
|
183
|
+
console.error(a.neededBy);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (a.phase === 'factory') {
|
|
187
|
+
console.error('The factory function of "' + a.moduleId + '" has thrown an exception'),
|
|
188
|
+
console.error(a),
|
|
189
|
+
console.error('Here are the modules that depend on it:'),
|
|
190
|
+
console.error(a.neededBy);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (
|
|
195
|
+
((r = r || {}),
|
|
196
|
+
typeof r.baseUrl != 'string' && (r.baseUrl = ''),
|
|
197
|
+
typeof r.isBuild != 'boolean' && (r.isBuild = !1),
|
|
198
|
+
typeof r.paths != 'object' && (r.paths = {}),
|
|
199
|
+
typeof r.config != 'object' && (r.config = {}),
|
|
200
|
+
typeof r.catchError > 'u' && (r.catchError = !1),
|
|
201
|
+
typeof r.recordStats > 'u' && (r.recordStats = !1),
|
|
202
|
+
typeof r.urlArgs != 'string' && (r.urlArgs = ''),
|
|
203
|
+
typeof r.onError != 'function' && (r.onError = c),
|
|
204
|
+
Array.isArray(r.ignoreDuplicateModules) || (r.ignoreDuplicateModules = []),
|
|
205
|
+
r.baseUrl.length > 0 && (u.Utilities.endsWith(r.baseUrl, '/') || (r.baseUrl += '/')),
|
|
206
|
+
typeof r.cspNonce != 'string' && (r.cspNonce = ''),
|
|
207
|
+
typeof r.preferScriptTags > 'u' && (r.preferScriptTags = !1),
|
|
208
|
+
r.nodeCachedData &&
|
|
209
|
+
typeof r.nodeCachedData == 'object' &&
|
|
210
|
+
(typeof r.nodeCachedData.seed != 'string' && (r.nodeCachedData.seed = 'seed'),
|
|
211
|
+
(typeof r.nodeCachedData.writeDelay != 'number' || r.nodeCachedData.writeDelay < 0) &&
|
|
212
|
+
(r.nodeCachedData.writeDelay = 1e3 * 7),
|
|
213
|
+
!r.nodeCachedData.path || typeof r.nodeCachedData.path != 'string'))
|
|
214
|
+
) {
|
|
215
|
+
const a = y(new Error("INVALID cached data configuration, 'path' MUST be set"));
|
|
216
|
+
(a.phase = 'configuration'), r.onError(a), (r.nodeCachedData = void 0);
|
|
217
|
+
}
|
|
218
|
+
return r;
|
|
219
|
+
}
|
|
220
|
+
static mergeConfigurationOptions(r = null, c = null) {
|
|
221
|
+
let a = u.Utilities.recursiveClone(c || {});
|
|
222
|
+
return (
|
|
223
|
+
u.Utilities.forEachProperty(r, (t, e) => {
|
|
224
|
+
t === 'ignoreDuplicateModules' && typeof a.ignoreDuplicateModules < 'u'
|
|
225
|
+
? (a.ignoreDuplicateModules = a.ignoreDuplicateModules.concat(e))
|
|
226
|
+
: t === 'paths' && typeof a.paths < 'u'
|
|
227
|
+
? u.Utilities.forEachProperty(e, (i, s) => (a.paths[i] = s))
|
|
228
|
+
: t === 'config' && typeof a.config < 'u'
|
|
229
|
+
? u.Utilities.forEachProperty(e, (i, s) => (a.config[i] = s))
|
|
230
|
+
: (a[t] = u.Utilities.recursiveClone(e));
|
|
231
|
+
}),
|
|
232
|
+
m.validateConfigurationOptions(a)
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
u.ConfigurationOptionsUtil = m;
|
|
237
|
+
class p {
|
|
238
|
+
constructor(r, c) {
|
|
239
|
+
if (
|
|
240
|
+
((this._env = r),
|
|
241
|
+
(this.options = m.mergeConfigurationOptions(c)),
|
|
242
|
+
this._createIgnoreDuplicateModulesMap(),
|
|
243
|
+
this._createSortedPathsRules(),
|
|
244
|
+
this.options.baseUrl === '' &&
|
|
245
|
+
this.options.nodeRequire &&
|
|
246
|
+
this.options.nodeRequire.main &&
|
|
247
|
+
this.options.nodeRequire.main.filename &&
|
|
248
|
+
this._env.isNode)
|
|
249
|
+
) {
|
|
250
|
+
let a = this.options.nodeRequire.main.filename,
|
|
251
|
+
t = Math.max(a.lastIndexOf('/'), a.lastIndexOf('\\'));
|
|
252
|
+
this.options.baseUrl = a.substring(0, t + 1);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
_createIgnoreDuplicateModulesMap() {
|
|
256
|
+
this.ignoreDuplicateModulesMap = {};
|
|
257
|
+
for (let r = 0; r < this.options.ignoreDuplicateModules.length; r++)
|
|
258
|
+
this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[r]] = !0;
|
|
259
|
+
}
|
|
260
|
+
_createSortedPathsRules() {
|
|
261
|
+
(this.sortedPathsRules = []),
|
|
262
|
+
u.Utilities.forEachProperty(this.options.paths, (r, c) => {
|
|
263
|
+
Array.isArray(c)
|
|
264
|
+
? this.sortedPathsRules.push({ from: r, to: c })
|
|
265
|
+
: this.sortedPathsRules.push({ from: r, to: [c] });
|
|
266
|
+
}),
|
|
267
|
+
this.sortedPathsRules.sort((r, c) => c.from.length - r.from.length);
|
|
268
|
+
}
|
|
269
|
+
cloneAndMerge(r) {
|
|
270
|
+
return new p(this._env, m.mergeConfigurationOptions(r, this.options));
|
|
271
|
+
}
|
|
272
|
+
getOptionsLiteral() {
|
|
273
|
+
return this.options;
|
|
274
|
+
}
|
|
275
|
+
_applyPaths(r) {
|
|
276
|
+
let c;
|
|
277
|
+
for (let a = 0, t = this.sortedPathsRules.length; a < t; a++)
|
|
278
|
+
if (((c = this.sortedPathsRules[a]), u.Utilities.startsWith(r, c.from))) {
|
|
279
|
+
let e = [];
|
|
280
|
+
for (let i = 0, s = c.to.length; i < s; i++) e.push(c.to[i] + r.substr(c.from.length));
|
|
281
|
+
return e;
|
|
282
|
+
}
|
|
283
|
+
return [r];
|
|
284
|
+
}
|
|
285
|
+
_addUrlArgsToUrl(r) {
|
|
286
|
+
return u.Utilities.containsQueryString(r)
|
|
287
|
+
? r + '&' + this.options.urlArgs
|
|
288
|
+
: r + '?' + this.options.urlArgs;
|
|
289
|
+
}
|
|
290
|
+
_addUrlArgsIfNecessaryToUrl(r) {
|
|
291
|
+
return this.options.urlArgs ? this._addUrlArgsToUrl(r) : r;
|
|
292
|
+
}
|
|
293
|
+
_addUrlArgsIfNecessaryToUrls(r) {
|
|
294
|
+
if (this.options.urlArgs)
|
|
295
|
+
for (let c = 0, a = r.length; c < a; c++) r[c] = this._addUrlArgsToUrl(r[c]);
|
|
296
|
+
return r;
|
|
297
|
+
}
|
|
298
|
+
moduleIdToPaths(r) {
|
|
299
|
+
if (
|
|
300
|
+
this._env.isNode &&
|
|
301
|
+
this.options.amdModulesPattern instanceof RegExp &&
|
|
302
|
+
!this.options.amdModulesPattern.test(r)
|
|
303
|
+
)
|
|
304
|
+
return this.isBuild() ? ['empty:'] : ['node|' + r];
|
|
305
|
+
let c = r,
|
|
306
|
+
a;
|
|
307
|
+
if (!u.Utilities.endsWith(c, '.js') && !u.Utilities.isAbsolutePath(c)) {
|
|
308
|
+
a = this._applyPaths(c);
|
|
309
|
+
for (let t = 0, e = a.length; t < e; t++)
|
|
310
|
+
(this.isBuild() && a[t] === 'empty:') ||
|
|
311
|
+
(u.Utilities.isAbsolutePath(a[t]) || (a[t] = this.options.baseUrl + a[t]),
|
|
312
|
+
!u.Utilities.endsWith(a[t], '.js') &&
|
|
313
|
+
!u.Utilities.containsQueryString(a[t]) &&
|
|
314
|
+
(a[t] = a[t] + '.js'));
|
|
315
|
+
} else
|
|
316
|
+
!u.Utilities.endsWith(c, '.js') && !u.Utilities.containsQueryString(c) && (c = c + '.js'),
|
|
317
|
+
(a = [c]);
|
|
318
|
+
return this._addUrlArgsIfNecessaryToUrls(a);
|
|
319
|
+
}
|
|
320
|
+
requireToUrl(r) {
|
|
321
|
+
let c = r;
|
|
322
|
+
return (
|
|
323
|
+
u.Utilities.isAbsolutePath(c) ||
|
|
324
|
+
((c = this._applyPaths(c)[0]),
|
|
325
|
+
u.Utilities.isAbsolutePath(c) || (c = this.options.baseUrl + c)),
|
|
326
|
+
this._addUrlArgsIfNecessaryToUrl(c)
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
isBuild() {
|
|
330
|
+
return this.options.isBuild;
|
|
331
|
+
}
|
|
332
|
+
shouldInvokeFactory(r) {
|
|
333
|
+
return !!(
|
|
334
|
+
!this.options.isBuild ||
|
|
335
|
+
u.Utilities.isAnonymousModule(r) ||
|
|
336
|
+
(this.options.buildForceInvokeFactory && this.options.buildForceInvokeFactory[r])
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
isDuplicateMessageIgnoredFor(r) {
|
|
340
|
+
return this.ignoreDuplicateModulesMap.hasOwnProperty(r);
|
|
341
|
+
}
|
|
342
|
+
getConfigForModule(r) {
|
|
343
|
+
if (this.options.config) return this.options.config[r];
|
|
344
|
+
}
|
|
345
|
+
shouldCatchError() {
|
|
346
|
+
return this.options.catchError;
|
|
347
|
+
}
|
|
348
|
+
shouldRecordStats() {
|
|
349
|
+
return this.options.recordStats;
|
|
350
|
+
}
|
|
351
|
+
onError(r) {
|
|
352
|
+
this.options.onError(r);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
u.Configuration = p;
|
|
356
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
357
|
+
var AMDLoader;
|
|
358
|
+
(function (u) {
|
|
359
|
+
class y {
|
|
360
|
+
constructor(e) {
|
|
361
|
+
(this._env = e), (this._scriptLoader = null), (this._callbackMap = {});
|
|
362
|
+
}
|
|
363
|
+
load(e, i, s, n) {
|
|
364
|
+
if (!this._scriptLoader)
|
|
365
|
+
if (this._env.isWebWorker) this._scriptLoader = new h();
|
|
366
|
+
else if (this._env.isElectronRenderer) {
|
|
367
|
+
const { preferScriptTags: d } = e.getConfig().getOptionsLiteral();
|
|
368
|
+
d ? (this._scriptLoader = new m()) : (this._scriptLoader = new r(this._env));
|
|
369
|
+
} else
|
|
370
|
+
this._env.isNode
|
|
371
|
+
? (this._scriptLoader = new r(this._env))
|
|
372
|
+
: (this._scriptLoader = new m());
|
|
373
|
+
let l = { callback: s, errorback: n };
|
|
374
|
+
if (this._callbackMap.hasOwnProperty(i)) {
|
|
375
|
+
this._callbackMap[i].push(l);
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
(this._callbackMap[i] = [l]),
|
|
379
|
+
this._scriptLoader.load(
|
|
380
|
+
e,
|
|
381
|
+
i,
|
|
382
|
+
() => this.triggerCallback(i),
|
|
383
|
+
(d) => this.triggerErrorback(i, d)
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
triggerCallback(e) {
|
|
387
|
+
let i = this._callbackMap[e];
|
|
388
|
+
delete this._callbackMap[e];
|
|
389
|
+
for (let s = 0; s < i.length; s++) i[s].callback();
|
|
390
|
+
}
|
|
391
|
+
triggerErrorback(e, i) {
|
|
392
|
+
let s = this._callbackMap[e];
|
|
393
|
+
delete this._callbackMap[e];
|
|
394
|
+
for (let n = 0; n < s.length; n++) s[n].errorback(i);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
class m {
|
|
398
|
+
attachListeners(e, i, s) {
|
|
399
|
+
let n = () => {
|
|
400
|
+
e.removeEventListener('load', l), e.removeEventListener('error', d);
|
|
401
|
+
},
|
|
402
|
+
l = (o) => {
|
|
403
|
+
n(), i();
|
|
404
|
+
},
|
|
405
|
+
d = (o) => {
|
|
406
|
+
n(), s(o);
|
|
407
|
+
};
|
|
408
|
+
e.addEventListener('load', l), e.addEventListener('error', d);
|
|
409
|
+
}
|
|
410
|
+
load(e, i, s, n) {
|
|
411
|
+
if (/^node\|/.test(i)) {
|
|
412
|
+
let l = e.getConfig().getOptionsLiteral(),
|
|
413
|
+
d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
|
|
414
|
+
o = i.split('|'),
|
|
415
|
+
_ = null;
|
|
416
|
+
try {
|
|
417
|
+
_ = d(o[1]);
|
|
418
|
+
} catch (f) {
|
|
419
|
+
n(f);
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
e.enqueueDefineAnonymousModule([], () => _), s();
|
|
423
|
+
} else {
|
|
424
|
+
let l = document.createElement('script');
|
|
425
|
+
l.setAttribute('async', 'async'),
|
|
426
|
+
l.setAttribute('type', 'text/javascript'),
|
|
427
|
+
this.attachListeners(l, s, n);
|
|
428
|
+
const { trustedTypesPolicy: d } = e.getConfig().getOptionsLiteral();
|
|
429
|
+
d && (i = d.createScriptURL(i)), l.setAttribute('src', i);
|
|
430
|
+
const { cspNonce: o } = e.getConfig().getOptionsLiteral();
|
|
431
|
+
o && l.setAttribute('nonce', o), document.getElementsByTagName('head')[0].appendChild(l);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function p(t) {
|
|
436
|
+
const { trustedTypesPolicy: e } = t.getConfig().getOptionsLiteral();
|
|
437
|
+
try {
|
|
438
|
+
return (e ? self.eval(e.createScript('', 'true')) : new Function('true')).call(self), !0;
|
|
439
|
+
} catch {
|
|
440
|
+
return !1;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
class h {
|
|
444
|
+
constructor() {
|
|
445
|
+
this._cachedCanUseEval = null;
|
|
446
|
+
}
|
|
447
|
+
_canUseEval(e) {
|
|
448
|
+
return (
|
|
449
|
+
this._cachedCanUseEval === null && (this._cachedCanUseEval = p(e)), this._cachedCanUseEval
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
load(e, i, s, n) {
|
|
453
|
+
if (/^node\|/.test(i)) {
|
|
454
|
+
const l = e.getConfig().getOptionsLiteral(),
|
|
455
|
+
d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
|
|
456
|
+
o = i.split('|');
|
|
457
|
+
let _ = null;
|
|
458
|
+
try {
|
|
459
|
+
_ = d(o[1]);
|
|
460
|
+
} catch (f) {
|
|
461
|
+
n(f);
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
e.enqueueDefineAnonymousModule([], function () {
|
|
465
|
+
return _;
|
|
466
|
+
}),
|
|
467
|
+
s();
|
|
468
|
+
} else {
|
|
469
|
+
const { trustedTypesPolicy: l } = e.getConfig().getOptionsLiteral();
|
|
470
|
+
if (
|
|
471
|
+
!(
|
|
472
|
+
/^((http:)|(https:)|(file:))/.test(i) &&
|
|
473
|
+
i.substring(0, self.origin.length) !== self.origin
|
|
474
|
+
) &&
|
|
475
|
+
this._canUseEval(e)
|
|
476
|
+
) {
|
|
477
|
+
fetch(i)
|
|
478
|
+
.then((o) => {
|
|
479
|
+
if (o.status !== 200) throw new Error(o.statusText);
|
|
480
|
+
return o.text();
|
|
481
|
+
})
|
|
482
|
+
.then((o) => {
|
|
483
|
+
(o = `${o}
|
|
484
|
+
//# sourceURL=${i}`),
|
|
485
|
+
(l ? self.eval(l.createScript('', o)) : new Function(o)).call(self),
|
|
486
|
+
s();
|
|
487
|
+
})
|
|
488
|
+
.then(void 0, n);
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
try {
|
|
492
|
+
l && (i = l.createScriptURL(i)), importScripts(i), s();
|
|
493
|
+
} catch (o) {
|
|
494
|
+
n(o);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
class r {
|
|
500
|
+
constructor(e) {
|
|
501
|
+
(this._env = e), (this._didInitialize = !1), (this._didPatchNodeRequire = !1);
|
|
502
|
+
}
|
|
503
|
+
_init(e) {
|
|
504
|
+
this._didInitialize ||
|
|
505
|
+
((this._didInitialize = !0),
|
|
506
|
+
(this._fs = e('fs')),
|
|
507
|
+
(this._vm = e('vm')),
|
|
508
|
+
(this._path = e('path')),
|
|
509
|
+
(this._crypto = e('crypto')));
|
|
510
|
+
}
|
|
511
|
+
_initNodeRequire(e, i) {
|
|
512
|
+
const { nodeCachedData: s } = i.getConfig().getOptionsLiteral();
|
|
513
|
+
if (!s || this._didPatchNodeRequire) return;
|
|
514
|
+
this._didPatchNodeRequire = !0;
|
|
515
|
+
const n = this,
|
|
516
|
+
l = e('module');
|
|
517
|
+
function d(o) {
|
|
518
|
+
const _ = o.constructor;
|
|
519
|
+
let f = function (v) {
|
|
520
|
+
try {
|
|
521
|
+
return o.require(v);
|
|
522
|
+
} finally {
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
return (
|
|
526
|
+
(f.resolve = function (v, E) {
|
|
527
|
+
return _._resolveFilename(v, o, !1, E);
|
|
528
|
+
}),
|
|
529
|
+
(f.resolve.paths = function (v) {
|
|
530
|
+
return _._resolveLookupPaths(v, o);
|
|
531
|
+
}),
|
|
532
|
+
(f.main = process.mainModule),
|
|
533
|
+
(f.extensions = _._extensions),
|
|
534
|
+
(f.cache = _._cache),
|
|
535
|
+
f
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
l.prototype._compile = function (o, _) {
|
|
539
|
+
const f = l.wrap(o.replace(/^#!.*/, '')),
|
|
540
|
+
g = i.getRecorder(),
|
|
541
|
+
v = n._getCachedDataPath(s, _),
|
|
542
|
+
E = { filename: _ };
|
|
543
|
+
let I;
|
|
544
|
+
try {
|
|
545
|
+
const D = n._fs.readFileSync(v);
|
|
546
|
+
(I = D.slice(0, 16)), (E.cachedData = D.slice(16)), g.record(60, v);
|
|
547
|
+
} catch {
|
|
548
|
+
g.record(61, v);
|
|
549
|
+
}
|
|
550
|
+
const C = new n._vm.Script(f, E),
|
|
551
|
+
P = C.runInThisContext(E),
|
|
552
|
+
w = n._path.dirname(_),
|
|
553
|
+
R = d(this),
|
|
554
|
+
U = [this.exports, R, this, _, w, process, _commonjsGlobal, Buffer],
|
|
555
|
+
b = P.apply(this.exports, U);
|
|
556
|
+
return (
|
|
557
|
+
n._handleCachedData(C, f, v, !E.cachedData, i), n._verifyCachedData(C, f, v, I, i), b
|
|
558
|
+
);
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
load(e, i, s, n) {
|
|
562
|
+
const l = e.getConfig().getOptionsLiteral(),
|
|
563
|
+
d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
|
|
564
|
+
o =
|
|
565
|
+
l.nodeInstrumenter ||
|
|
566
|
+
function (f) {
|
|
567
|
+
return f;
|
|
568
|
+
};
|
|
569
|
+
this._init(d), this._initNodeRequire(d, e);
|
|
570
|
+
let _ = e.getRecorder();
|
|
571
|
+
if (/^node\|/.test(i)) {
|
|
572
|
+
let f = i.split('|'),
|
|
573
|
+
g = null;
|
|
574
|
+
try {
|
|
575
|
+
g = d(f[1]);
|
|
576
|
+
} catch (v) {
|
|
577
|
+
n(v);
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
e.enqueueDefineAnonymousModule([], () => g), s();
|
|
581
|
+
} else {
|
|
582
|
+
i = u.Utilities.fileUriToFilePath(this._env.isWindows, i);
|
|
583
|
+
const f = this._path.normalize(i),
|
|
584
|
+
g = this._getElectronRendererScriptPathOrUri(f),
|
|
585
|
+
v = !!l.nodeCachedData,
|
|
586
|
+
E = v ? this._getCachedDataPath(l.nodeCachedData, i) : void 0;
|
|
587
|
+
this._readSourceAndCachedData(f, E, _, (I, C, P, w) => {
|
|
588
|
+
if (I) {
|
|
589
|
+
n(I);
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
let R;
|
|
593
|
+
C.charCodeAt(0) === r._BOM
|
|
594
|
+
? (R = r._PREFIX + C.substring(1) + r._SUFFIX)
|
|
595
|
+
: (R = r._PREFIX + C + r._SUFFIX),
|
|
596
|
+
(R = o(R, f));
|
|
597
|
+
const U = { filename: g, cachedData: P },
|
|
598
|
+
b = this._createAndEvalScript(e, R, U, s, n);
|
|
599
|
+
this._handleCachedData(b, R, E, v && !P, e), this._verifyCachedData(b, R, E, w, e);
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
_createAndEvalScript(e, i, s, n, l) {
|
|
604
|
+
const d = e.getRecorder();
|
|
605
|
+
d.record(31, s.filename);
|
|
606
|
+
const o = new this._vm.Script(i, s),
|
|
607
|
+
_ = o.runInThisContext(s),
|
|
608
|
+
f = e.getGlobalAMDDefineFunc();
|
|
609
|
+
let g = !1;
|
|
610
|
+
const v = function () {
|
|
611
|
+
return (g = !0), f.apply(null, arguments);
|
|
612
|
+
};
|
|
613
|
+
return (
|
|
614
|
+
(v.amd = f.amd),
|
|
615
|
+
_.call(
|
|
616
|
+
u.global,
|
|
617
|
+
e.getGlobalAMDRequireFunc(),
|
|
618
|
+
v,
|
|
619
|
+
s.filename,
|
|
620
|
+
this._path.dirname(s.filename)
|
|
621
|
+
),
|
|
622
|
+
d.record(32, s.filename),
|
|
623
|
+
g ? n() : l(new Error(`Didn't receive define call in ${s.filename}!`)),
|
|
624
|
+
o
|
|
625
|
+
);
|
|
626
|
+
}
|
|
627
|
+
_getElectronRendererScriptPathOrUri(e) {
|
|
628
|
+
if (!this._env.isElectronRenderer) return e;
|
|
629
|
+
let i = e.match(/^([a-z])\:(.*)/i);
|
|
630
|
+
return i ? `file:///${(i[1].toUpperCase() + ':' + i[2]).replace(/\\/g, '/')}` : `file://${e}`;
|
|
631
|
+
}
|
|
632
|
+
_getCachedDataPath(e, i) {
|
|
633
|
+
const s = this._crypto
|
|
634
|
+
.createHash('md5')
|
|
635
|
+
.update(i, 'utf8')
|
|
636
|
+
.update(e.seed, 'utf8')
|
|
637
|
+
.update(process.arch, '')
|
|
638
|
+
.digest('hex'),
|
|
639
|
+
n = this._path.basename(i).replace(/\.js$/, '');
|
|
640
|
+
return this._path.join(e.path, `${n}-${s}.code`);
|
|
641
|
+
}
|
|
642
|
+
_handleCachedData(e, i, s, n, l) {
|
|
643
|
+
e.cachedDataRejected
|
|
644
|
+
? this._fs.unlink(s, (d) => {
|
|
645
|
+
l.getRecorder().record(62, s),
|
|
646
|
+
this._createAndWriteCachedData(e, i, s, l),
|
|
647
|
+
d && l.getConfig().onError(d);
|
|
648
|
+
})
|
|
649
|
+
: n && this._createAndWriteCachedData(e, i, s, l);
|
|
650
|
+
}
|
|
651
|
+
_createAndWriteCachedData(e, i, s, n) {
|
|
652
|
+
let l = Math.ceil(
|
|
653
|
+
n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay * (1 + Math.random())
|
|
654
|
+
),
|
|
655
|
+
d = -1,
|
|
656
|
+
o = 0,
|
|
657
|
+
_;
|
|
658
|
+
const f = () => {
|
|
659
|
+
setTimeout(() => {
|
|
660
|
+
_ || (_ = this._crypto.createHash('md5').update(i, 'utf8').digest());
|
|
661
|
+
const g = e.createCachedData();
|
|
662
|
+
if (!(g.length === 0 || g.length === d || o >= 5)) {
|
|
663
|
+
if (g.length < d) {
|
|
664
|
+
f();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
(d = g.length),
|
|
668
|
+
this._fs.writeFile(s, Buffer.concat([_, g]), (v) => {
|
|
669
|
+
v && n.getConfig().onError(v), n.getRecorder().record(63, s), f();
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
}, l * Math.pow(4, o++));
|
|
673
|
+
};
|
|
674
|
+
f();
|
|
675
|
+
}
|
|
676
|
+
_readSourceAndCachedData(e, i, s, n) {
|
|
677
|
+
if (!i) this._fs.readFile(e, { encoding: 'utf8' }, n);
|
|
678
|
+
else {
|
|
679
|
+
let l,
|
|
680
|
+
d,
|
|
681
|
+
o,
|
|
682
|
+
_ = 2;
|
|
683
|
+
const f = (g) => {
|
|
684
|
+
g ? n(g) : --_ === 0 && n(void 0, l, d, o);
|
|
685
|
+
};
|
|
686
|
+
this._fs.readFile(e, { encoding: 'utf8' }, (g, v) => {
|
|
687
|
+
(l = v), f(g);
|
|
688
|
+
}),
|
|
689
|
+
this._fs.readFile(i, (g, v) => {
|
|
690
|
+
!g && v && v.length > 0
|
|
691
|
+
? ((o = v.slice(0, 16)), (d = v.slice(16)), s.record(60, i))
|
|
692
|
+
: s.record(61, i),
|
|
693
|
+
f();
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
_verifyCachedData(e, i, s, n, l) {
|
|
698
|
+
n &&
|
|
699
|
+
(e.cachedDataRejected ||
|
|
700
|
+
setTimeout(() => {
|
|
701
|
+
const d = this._crypto.createHash('md5').update(i, 'utf8').digest();
|
|
702
|
+
n.equals(d) ||
|
|
703
|
+
(l
|
|
704
|
+
.getConfig()
|
|
705
|
+
.onError(
|
|
706
|
+
new Error(
|
|
707
|
+
`FAILED TO VERIFY CACHED DATA, deleting stale '${s}' now, but a RESTART IS REQUIRED`
|
|
708
|
+
)
|
|
709
|
+
),
|
|
710
|
+
this._fs.unlink(s, (o) => {
|
|
711
|
+
o && l.getConfig().onError(o);
|
|
712
|
+
}));
|
|
713
|
+
}, Math.ceil(5e3 * (1 + Math.random()))));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
(r._BOM = 65279),
|
|
717
|
+
(r._PREFIX = '(function (require, define, __filename, __dirname) { '),
|
|
718
|
+
(r._SUFFIX = `
|
|
719
|
+
});`);
|
|
720
|
+
function c(t, e) {
|
|
721
|
+
if (e.__$__isRecorded) return e;
|
|
722
|
+
const i = function (n) {
|
|
723
|
+
t.record(33, n);
|
|
724
|
+
try {
|
|
725
|
+
return e(n);
|
|
726
|
+
} finally {
|
|
727
|
+
t.record(34, n);
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
return (i.__$__isRecorded = !0), i;
|
|
731
|
+
}
|
|
732
|
+
u.ensureRecordedNodeRequire = c;
|
|
733
|
+
function a(t) {
|
|
734
|
+
return new y(t);
|
|
735
|
+
}
|
|
736
|
+
u.createScriptLoader = a;
|
|
737
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
738
|
+
var AMDLoader;
|
|
739
|
+
(function (u) {
|
|
740
|
+
class y {
|
|
741
|
+
constructor(t) {
|
|
742
|
+
let e = t.lastIndexOf('/');
|
|
743
|
+
e !== -1 ? (this.fromModulePath = t.substr(0, e + 1)) : (this.fromModulePath = '');
|
|
744
|
+
}
|
|
745
|
+
static _normalizeModuleId(t) {
|
|
746
|
+
let e = t,
|
|
747
|
+
i;
|
|
748
|
+
for (i = /\/\.\//; i.test(e); ) e = e.replace(i, '/');
|
|
749
|
+
for (
|
|
750
|
+
e = e.replace(/^\.\//g, ''),
|
|
751
|
+
i = /\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;
|
|
752
|
+
i.test(e);
|
|
10
753
|
|
|
11
|
-
|
|
754
|
+
)
|
|
755
|
+
e = e.replace(i, '/');
|
|
756
|
+
return (
|
|
757
|
+
(e = e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//, '')),
|
|
758
|
+
e
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
resolveModule(t) {
|
|
762
|
+
let e = t;
|
|
763
|
+
return (
|
|
764
|
+
u.Utilities.isAbsolutePath(e) ||
|
|
765
|
+
((u.Utilities.startsWith(e, './') || u.Utilities.startsWith(e, '../')) &&
|
|
766
|
+
(e = y._normalizeModuleId(this.fromModulePath + e))),
|
|
767
|
+
e
|
|
768
|
+
);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
(y.ROOT = new y('')), (u.ModuleIdResolver = y);
|
|
772
|
+
class m {
|
|
773
|
+
constructor(t, e, i, s, n, l) {
|
|
774
|
+
(this.id = t),
|
|
775
|
+
(this.strId = e),
|
|
776
|
+
(this.dependencies = i),
|
|
777
|
+
(this._callback = s),
|
|
778
|
+
(this._errorback = n),
|
|
779
|
+
(this.moduleIdResolver = l),
|
|
780
|
+
(this.exports = {}),
|
|
781
|
+
(this.error = null),
|
|
782
|
+
(this.exportsPassedIn = !1),
|
|
783
|
+
(this.unresolvedDependenciesCount = this.dependencies.length),
|
|
784
|
+
(this._isComplete = !1);
|
|
785
|
+
}
|
|
786
|
+
static _safeInvokeFunction(t, e) {
|
|
787
|
+
try {
|
|
788
|
+
return { returnedValue: t.apply(u.global, e), producedError: null };
|
|
789
|
+
} catch (i) {
|
|
790
|
+
return { returnedValue: null, producedError: i };
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
static _invokeFactory(t, e, i, s) {
|
|
794
|
+
return t.shouldInvokeFactory(e)
|
|
795
|
+
? t.shouldCatchError()
|
|
796
|
+
? this._safeInvokeFunction(i, s)
|
|
797
|
+
: { returnedValue: i.apply(u.global, s), producedError: null }
|
|
798
|
+
: { returnedValue: null, producedError: null };
|
|
799
|
+
}
|
|
800
|
+
complete(t, e, i, s) {
|
|
801
|
+
this._isComplete = !0;
|
|
802
|
+
let n = null;
|
|
803
|
+
if (this._callback)
|
|
804
|
+
if (typeof this._callback == 'function') {
|
|
805
|
+
t.record(21, this.strId);
|
|
806
|
+
let l = m._invokeFactory(e, this.strId, this._callback, i);
|
|
807
|
+
(n = l.producedError),
|
|
808
|
+
t.record(22, this.strId),
|
|
809
|
+
!n &&
|
|
810
|
+
typeof l.returnedValue < 'u' &&
|
|
811
|
+
(!this.exportsPassedIn || u.Utilities.isEmpty(this.exports)) &&
|
|
812
|
+
(this.exports = l.returnedValue);
|
|
813
|
+
} else this.exports = this._callback;
|
|
814
|
+
if (n) {
|
|
815
|
+
let l = u.ensureError(n);
|
|
816
|
+
(l.phase = 'factory'),
|
|
817
|
+
(l.moduleId = this.strId),
|
|
818
|
+
(l.neededBy = s(this.id)),
|
|
819
|
+
(this.error = l),
|
|
820
|
+
e.onError(l);
|
|
821
|
+
}
|
|
822
|
+
(this.dependencies = null),
|
|
823
|
+
(this._callback = null),
|
|
824
|
+
(this._errorback = null),
|
|
825
|
+
(this.moduleIdResolver = null);
|
|
826
|
+
}
|
|
827
|
+
onDependencyError(t) {
|
|
828
|
+
return (
|
|
829
|
+
(this._isComplete = !0), (this.error = t), this._errorback ? (this._errorback(t), !0) : !1
|
|
830
|
+
);
|
|
831
|
+
}
|
|
832
|
+
isComplete() {
|
|
833
|
+
return this._isComplete;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
u.Module = m;
|
|
837
|
+
class p {
|
|
838
|
+
constructor() {
|
|
839
|
+
(this._nextId = 0),
|
|
840
|
+
(this._strModuleIdToIntModuleId = new Map()),
|
|
841
|
+
(this._intModuleIdToStrModuleId = []),
|
|
842
|
+
this.getModuleId('exports'),
|
|
843
|
+
this.getModuleId('module'),
|
|
844
|
+
this.getModuleId('require');
|
|
845
|
+
}
|
|
846
|
+
getMaxModuleId() {
|
|
847
|
+
return this._nextId;
|
|
848
|
+
}
|
|
849
|
+
getModuleId(t) {
|
|
850
|
+
let e = this._strModuleIdToIntModuleId.get(t);
|
|
851
|
+
return (
|
|
852
|
+
typeof e > 'u' &&
|
|
853
|
+
((e = this._nextId++),
|
|
854
|
+
this._strModuleIdToIntModuleId.set(t, e),
|
|
855
|
+
(this._intModuleIdToStrModuleId[e] = t)),
|
|
856
|
+
e
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
getStrModuleId(t) {
|
|
860
|
+
return this._intModuleIdToStrModuleId[t];
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
class h {
|
|
864
|
+
constructor(t) {
|
|
865
|
+
this.id = t;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
(h.EXPORTS = new h(0)), (h.MODULE = new h(1)), (h.REQUIRE = new h(2)), (u.RegularDependency = h);
|
|
869
|
+
class r {
|
|
870
|
+
constructor(t, e, i) {
|
|
871
|
+
(this.id = t), (this.pluginId = e), (this.pluginParam = i);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
u.PluginDependency = r;
|
|
875
|
+
class c {
|
|
876
|
+
constructor(t, e, i, s, n = 0) {
|
|
877
|
+
(this._env = t),
|
|
878
|
+
(this._scriptLoader = e),
|
|
879
|
+
(this._loaderAvailableTimestamp = n),
|
|
880
|
+
(this._defineFunc = i),
|
|
881
|
+
(this._requireFunc = s),
|
|
882
|
+
(this._moduleIdProvider = new p()),
|
|
883
|
+
(this._config = new u.Configuration(this._env)),
|
|
884
|
+
(this._hasDependencyCycle = !1),
|
|
885
|
+
(this._modules2 = []),
|
|
886
|
+
(this._knownModules2 = []),
|
|
887
|
+
(this._inverseDependencies2 = []),
|
|
888
|
+
(this._inversePluginDependencies2 = new Map()),
|
|
889
|
+
(this._currentAnonymousDefineCall = null),
|
|
890
|
+
(this._recorder = null),
|
|
891
|
+
(this._buildInfoPath = []),
|
|
892
|
+
(this._buildInfoDefineStack = []),
|
|
893
|
+
(this._buildInfoDependencies = []),
|
|
894
|
+
(this._requireFunc.moduleManager = this);
|
|
895
|
+
}
|
|
896
|
+
reset() {
|
|
897
|
+
return new c(
|
|
898
|
+
this._env,
|
|
899
|
+
this._scriptLoader,
|
|
900
|
+
this._defineFunc,
|
|
901
|
+
this._requireFunc,
|
|
902
|
+
this._loaderAvailableTimestamp
|
|
903
|
+
);
|
|
904
|
+
}
|
|
905
|
+
getGlobalAMDDefineFunc() {
|
|
906
|
+
return this._defineFunc;
|
|
907
|
+
}
|
|
908
|
+
getGlobalAMDRequireFunc() {
|
|
909
|
+
return this._requireFunc;
|
|
910
|
+
}
|
|
911
|
+
static _findRelevantLocationInStack(t, e) {
|
|
912
|
+
let i = (l) => l.replace(/\\/g, '/'),
|
|
913
|
+
s = i(t),
|
|
914
|
+
n = e.split(/\n/);
|
|
915
|
+
for (let l = 0; l < n.length; l++) {
|
|
916
|
+
let d = n[l].match(/(.*):(\d+):(\d+)\)?$/);
|
|
917
|
+
if (d) {
|
|
918
|
+
let o = d[1],
|
|
919
|
+
_ = d[2],
|
|
920
|
+
f = d[3],
|
|
921
|
+
g = Math.max(o.lastIndexOf(' ') + 1, o.lastIndexOf('(') + 1);
|
|
922
|
+
if (((o = o.substr(g)), (o = i(o)), o === s)) {
|
|
923
|
+
let v = { line: parseInt(_, 10), col: parseInt(f, 10) };
|
|
924
|
+
return v.line === 1 && (v.col -= 53), v;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
throw new Error('Could not correlate define call site for needle ' + t);
|
|
929
|
+
}
|
|
930
|
+
getBuildInfo() {
|
|
931
|
+
if (!this._config.isBuild()) return null;
|
|
932
|
+
let t = [],
|
|
933
|
+
e = 0;
|
|
934
|
+
for (let i = 0, s = this._modules2.length; i < s; i++) {
|
|
935
|
+
let n = this._modules2[i];
|
|
936
|
+
if (!n) continue;
|
|
937
|
+
let l = this._buildInfoPath[n.id] || null,
|
|
938
|
+
d = this._buildInfoDefineStack[n.id] || null,
|
|
939
|
+
o = this._buildInfoDependencies[n.id];
|
|
940
|
+
t[e++] = {
|
|
941
|
+
id: n.strId,
|
|
942
|
+
path: l,
|
|
943
|
+
defineLocation: l && d ? c._findRelevantLocationInStack(l, d) : null,
|
|
944
|
+
dependencies: o,
|
|
945
|
+
shim: null,
|
|
946
|
+
exports: n.exports
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
return t;
|
|
950
|
+
}
|
|
951
|
+
getRecorder() {
|
|
952
|
+
return (
|
|
953
|
+
this._recorder ||
|
|
954
|
+
(this._config.shouldRecordStats()
|
|
955
|
+
? (this._recorder = new u.LoaderEventRecorder(this._loaderAvailableTimestamp))
|
|
956
|
+
: (this._recorder = u.NullLoaderEventRecorder.INSTANCE)),
|
|
957
|
+
this._recorder
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
getLoaderEvents() {
|
|
961
|
+
return this.getRecorder().getEvents();
|
|
962
|
+
}
|
|
963
|
+
enqueueDefineAnonymousModule(t, e) {
|
|
964
|
+
if (this._currentAnonymousDefineCall !== null)
|
|
965
|
+
throw new Error('Can only have one anonymous define call per script file');
|
|
966
|
+
let i = null;
|
|
967
|
+
this._config.isBuild() && (i = new Error('StackLocation').stack || null),
|
|
968
|
+
(this._currentAnonymousDefineCall = { stack: i, dependencies: t, callback: e });
|
|
969
|
+
}
|
|
970
|
+
defineModule(t, e, i, s, n, l = new y(t)) {
|
|
971
|
+
let d = this._moduleIdProvider.getModuleId(t);
|
|
972
|
+
if (this._modules2[d]) {
|
|
973
|
+
this._config.isDuplicateMessageIgnoredFor(t) ||
|
|
974
|
+
console.warn("Duplicate definition of module '" + t + "'");
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
let o = new m(d, t, this._normalizeDependencies(e, l), i, s, l);
|
|
978
|
+
(this._modules2[d] = o),
|
|
979
|
+
this._config.isBuild() &&
|
|
980
|
+
((this._buildInfoDefineStack[d] = n),
|
|
981
|
+
(this._buildInfoDependencies[d] = (o.dependencies || []).map((_) =>
|
|
982
|
+
this._moduleIdProvider.getStrModuleId(_.id)
|
|
983
|
+
))),
|
|
984
|
+
this._resolve(o);
|
|
985
|
+
}
|
|
986
|
+
_normalizeDependency(t, e) {
|
|
987
|
+
if (t === 'exports') return h.EXPORTS;
|
|
988
|
+
if (t === 'module') return h.MODULE;
|
|
989
|
+
if (t === 'require') return h.REQUIRE;
|
|
990
|
+
let i = t.indexOf('!');
|
|
991
|
+
if (i >= 0) {
|
|
992
|
+
let s = e.resolveModule(t.substr(0, i)),
|
|
993
|
+
n = e.resolveModule(t.substr(i + 1)),
|
|
994
|
+
l = this._moduleIdProvider.getModuleId(s + '!' + n),
|
|
995
|
+
d = this._moduleIdProvider.getModuleId(s);
|
|
996
|
+
return new r(l, d, n);
|
|
997
|
+
}
|
|
998
|
+
return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)));
|
|
999
|
+
}
|
|
1000
|
+
_normalizeDependencies(t, e) {
|
|
1001
|
+
let i = [],
|
|
1002
|
+
s = 0;
|
|
1003
|
+
for (let n = 0, l = t.length; n < l; n++) i[s++] = this._normalizeDependency(t[n], e);
|
|
1004
|
+
return i;
|
|
1005
|
+
}
|
|
1006
|
+
_relativeRequire(t, e, i, s) {
|
|
1007
|
+
if (typeof e == 'string') return this.synchronousRequire(e, t);
|
|
1008
|
+
this.defineModule(u.Utilities.generateAnonymousModule(), e, i, s, null, t);
|
|
1009
|
+
}
|
|
1010
|
+
synchronousRequire(t, e = new y(t)) {
|
|
1011
|
+
let i = this._normalizeDependency(t, e),
|
|
1012
|
+
s = this._modules2[i.id];
|
|
1013
|
+
if (!s)
|
|
1014
|
+
throw new Error(
|
|
1015
|
+
"Check dependency list! Synchronous require cannot resolve module '" +
|
|
1016
|
+
t +
|
|
1017
|
+
"'. This is the first mention of this module!"
|
|
1018
|
+
);
|
|
1019
|
+
if (!s.isComplete())
|
|
1020
|
+
throw new Error(
|
|
1021
|
+
"Check dependency list! Synchronous require cannot resolve module '" +
|
|
1022
|
+
t +
|
|
1023
|
+
"'. This module has not been resolved completely yet."
|
|
1024
|
+
);
|
|
1025
|
+
if (s.error) throw s.error;
|
|
1026
|
+
return s.exports;
|
|
1027
|
+
}
|
|
1028
|
+
configure(t, e) {
|
|
1029
|
+
let i = this._config.shouldRecordStats();
|
|
1030
|
+
e
|
|
1031
|
+
? (this._config = new u.Configuration(this._env, t))
|
|
1032
|
+
: (this._config = this._config.cloneAndMerge(t)),
|
|
1033
|
+
this._config.shouldRecordStats() && !i && (this._recorder = null);
|
|
1034
|
+
}
|
|
1035
|
+
getConfig() {
|
|
1036
|
+
return this._config;
|
|
1037
|
+
}
|
|
1038
|
+
_onLoad(t) {
|
|
1039
|
+
if (this._currentAnonymousDefineCall !== null) {
|
|
1040
|
+
let e = this._currentAnonymousDefineCall;
|
|
1041
|
+
(this._currentAnonymousDefineCall = null),
|
|
1042
|
+
this.defineModule(
|
|
1043
|
+
this._moduleIdProvider.getStrModuleId(t),
|
|
1044
|
+
e.dependencies,
|
|
1045
|
+
e.callback,
|
|
1046
|
+
null,
|
|
1047
|
+
e.stack
|
|
1048
|
+
);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
_createLoadError(t, e) {
|
|
1052
|
+
let i = this._moduleIdProvider.getStrModuleId(t),
|
|
1053
|
+
s = (this._inverseDependencies2[t] || []).map((l) =>
|
|
1054
|
+
this._moduleIdProvider.getStrModuleId(l)
|
|
1055
|
+
);
|
|
1056
|
+
const n = u.ensureError(e);
|
|
1057
|
+
return (n.phase = 'loading'), (n.moduleId = i), (n.neededBy = s), n;
|
|
1058
|
+
}
|
|
1059
|
+
_onLoadError(t, e) {
|
|
1060
|
+
const i = this._createLoadError(t, e);
|
|
1061
|
+
this._modules2[t] ||
|
|
1062
|
+
(this._modules2[t] = new m(
|
|
1063
|
+
t,
|
|
1064
|
+
this._moduleIdProvider.getStrModuleId(t),
|
|
1065
|
+
[],
|
|
1066
|
+
() => {},
|
|
1067
|
+
null,
|
|
1068
|
+
null
|
|
1069
|
+
));
|
|
1070
|
+
let s = [];
|
|
1071
|
+
for (let d = 0, o = this._moduleIdProvider.getMaxModuleId(); d < o; d++) s[d] = !1;
|
|
1072
|
+
let n = !1,
|
|
1073
|
+
l = [];
|
|
1074
|
+
for (l.push(t), s[t] = !0; l.length > 0; ) {
|
|
1075
|
+
let d = l.shift(),
|
|
1076
|
+
o = this._modules2[d];
|
|
1077
|
+
o && (n = o.onDependencyError(i) || n);
|
|
1078
|
+
let _ = this._inverseDependencies2[d];
|
|
1079
|
+
if (_)
|
|
1080
|
+
for (let f = 0, g = _.length; f < g; f++) {
|
|
1081
|
+
let v = _[f];
|
|
1082
|
+
s[v] || (l.push(v), (s[v] = !0));
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
n || this._config.onError(i);
|
|
1086
|
+
}
|
|
1087
|
+
_hasDependencyPath(t, e) {
|
|
1088
|
+
let i = this._modules2[t];
|
|
1089
|
+
if (!i) return !1;
|
|
1090
|
+
let s = [];
|
|
1091
|
+
for (let l = 0, d = this._moduleIdProvider.getMaxModuleId(); l < d; l++) s[l] = !1;
|
|
1092
|
+
let n = [];
|
|
1093
|
+
for (n.push(i), s[t] = !0; n.length > 0; ) {
|
|
1094
|
+
let d = n.shift().dependencies;
|
|
1095
|
+
if (d)
|
|
1096
|
+
for (let o = 0, _ = d.length; o < _; o++) {
|
|
1097
|
+
let f = d[o];
|
|
1098
|
+
if (f.id === e) return !0;
|
|
1099
|
+
let g = this._modules2[f.id];
|
|
1100
|
+
g && !s[f.id] && ((s[f.id] = !0), n.push(g));
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return !1;
|
|
1104
|
+
}
|
|
1105
|
+
_findCyclePath(t, e, i) {
|
|
1106
|
+
if (t === e || i === 50) return [t];
|
|
1107
|
+
let s = this._modules2[t];
|
|
1108
|
+
if (!s) return null;
|
|
1109
|
+
let n = s.dependencies;
|
|
1110
|
+
if (n)
|
|
1111
|
+
for (let l = 0, d = n.length; l < d; l++) {
|
|
1112
|
+
let o = this._findCyclePath(n[l].id, e, i + 1);
|
|
1113
|
+
if (o !== null) return o.push(t), o;
|
|
1114
|
+
}
|
|
1115
|
+
return null;
|
|
1116
|
+
}
|
|
1117
|
+
_createRequire(t) {
|
|
1118
|
+
let e = (i, s, n) => this._relativeRequire(t, i, s, n);
|
|
1119
|
+
return (
|
|
1120
|
+
(e.toUrl = (i) => this._config.requireToUrl(t.resolveModule(i))),
|
|
1121
|
+
(e.getStats = () => this.getLoaderEvents()),
|
|
1122
|
+
(e.hasDependencyCycle = () => this._hasDependencyCycle),
|
|
1123
|
+
(e.config = (i, s = !1) => {
|
|
1124
|
+
this.configure(i, s);
|
|
1125
|
+
}),
|
|
1126
|
+
(e.__$__nodeRequire = u.global.nodeRequire),
|
|
1127
|
+
e
|
|
1128
|
+
);
|
|
1129
|
+
}
|
|
1130
|
+
_loadModule(t) {
|
|
1131
|
+
if (this._modules2[t] || this._knownModules2[t]) return;
|
|
1132
|
+
this._knownModules2[t] = !0;
|
|
1133
|
+
let e = this._moduleIdProvider.getStrModuleId(t),
|
|
1134
|
+
i = this._config.moduleIdToPaths(e),
|
|
1135
|
+
s = /^@[^\/]+\/[^\/]+$/;
|
|
1136
|
+
this._env.isNode && (e.indexOf('/') === -1 || s.test(e)) && i.push('node|' + e);
|
|
1137
|
+
let n = -1,
|
|
1138
|
+
l = (d) => {
|
|
1139
|
+
if ((n++, n >= i.length)) this._onLoadError(t, d);
|
|
1140
|
+
else {
|
|
1141
|
+
let o = i[n],
|
|
1142
|
+
_ = this.getRecorder();
|
|
1143
|
+
if (this._config.isBuild() && o === 'empty:') {
|
|
1144
|
+
(this._buildInfoPath[t] = o),
|
|
1145
|
+
this.defineModule(this._moduleIdProvider.getStrModuleId(t), [], null, null, null),
|
|
1146
|
+
this._onLoad(t);
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
_.record(10, o),
|
|
1150
|
+
this._scriptLoader.load(
|
|
1151
|
+
this,
|
|
1152
|
+
o,
|
|
1153
|
+
() => {
|
|
1154
|
+
this._config.isBuild() && (this._buildInfoPath[t] = o),
|
|
1155
|
+
_.record(11, o),
|
|
1156
|
+
this._onLoad(t);
|
|
1157
|
+
},
|
|
1158
|
+
(f) => {
|
|
1159
|
+
_.record(12, o), l(f);
|
|
1160
|
+
}
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
l(null);
|
|
1165
|
+
}
|
|
1166
|
+
_loadPluginDependency(t, e) {
|
|
1167
|
+
if (this._modules2[e.id] || this._knownModules2[e.id]) return;
|
|
1168
|
+
this._knownModules2[e.id] = !0;
|
|
1169
|
+
let i = (s) => {
|
|
1170
|
+
this.defineModule(this._moduleIdProvider.getStrModuleId(e.id), [], s, null, null);
|
|
1171
|
+
};
|
|
1172
|
+
(i.error = (s) => {
|
|
1173
|
+
this._config.onError(this._createLoadError(e.id, s));
|
|
1174
|
+
}),
|
|
1175
|
+
t.load(e.pluginParam, this._createRequire(y.ROOT), i, this._config.getOptionsLiteral());
|
|
1176
|
+
}
|
|
1177
|
+
_resolve(t) {
|
|
1178
|
+
let e = t.dependencies;
|
|
1179
|
+
if (e)
|
|
1180
|
+
for (let i = 0, s = e.length; i < s; i++) {
|
|
1181
|
+
let n = e[i];
|
|
1182
|
+
if (n === h.EXPORTS) {
|
|
1183
|
+
(t.exportsPassedIn = !0), t.unresolvedDependenciesCount--;
|
|
1184
|
+
continue;
|
|
1185
|
+
}
|
|
1186
|
+
if (n === h.MODULE) {
|
|
1187
|
+
t.unresolvedDependenciesCount--;
|
|
1188
|
+
continue;
|
|
1189
|
+
}
|
|
1190
|
+
if (n === h.REQUIRE) {
|
|
1191
|
+
t.unresolvedDependenciesCount--;
|
|
1192
|
+
continue;
|
|
1193
|
+
}
|
|
1194
|
+
let l = this._modules2[n.id];
|
|
1195
|
+
if (l && l.isComplete()) {
|
|
1196
|
+
if (l.error) {
|
|
1197
|
+
t.onDependencyError(l.error);
|
|
1198
|
+
return;
|
|
1199
|
+
}
|
|
1200
|
+
t.unresolvedDependenciesCount--;
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
if (this._hasDependencyPath(n.id, t.id)) {
|
|
1204
|
+
(this._hasDependencyCycle = !0),
|
|
1205
|
+
console.warn(
|
|
1206
|
+
"There is a dependency cycle between '" +
|
|
1207
|
+
this._moduleIdProvider.getStrModuleId(n.id) +
|
|
1208
|
+
"' and '" +
|
|
1209
|
+
this._moduleIdProvider.getStrModuleId(t.id) +
|
|
1210
|
+
"'. The cyclic path follows:"
|
|
1211
|
+
);
|
|
1212
|
+
let d = this._findCyclePath(n.id, t.id, 0) || [];
|
|
1213
|
+
d.reverse(),
|
|
1214
|
+
d.push(n.id),
|
|
1215
|
+
console.warn(
|
|
1216
|
+
d.map((o) => this._moduleIdProvider.getStrModuleId(o)).join(` =>
|
|
1217
|
+
`)
|
|
1218
|
+
),
|
|
1219
|
+
t.unresolvedDependenciesCount--;
|
|
1220
|
+
continue;
|
|
1221
|
+
}
|
|
1222
|
+
if (
|
|
1223
|
+
((this._inverseDependencies2[n.id] = this._inverseDependencies2[n.id] || []),
|
|
1224
|
+
this._inverseDependencies2[n.id].push(t.id),
|
|
1225
|
+
n instanceof r)
|
|
1226
|
+
) {
|
|
1227
|
+
let d = this._modules2[n.pluginId];
|
|
1228
|
+
if (d && d.isComplete()) {
|
|
1229
|
+
this._loadPluginDependency(d.exports, n);
|
|
1230
|
+
continue;
|
|
1231
|
+
}
|
|
1232
|
+
let o = this._inversePluginDependencies2.get(n.pluginId);
|
|
1233
|
+
o || ((o = []), this._inversePluginDependencies2.set(n.pluginId, o)),
|
|
1234
|
+
o.push(n),
|
|
1235
|
+
this._loadModule(n.pluginId);
|
|
1236
|
+
continue;
|
|
1237
|
+
}
|
|
1238
|
+
this._loadModule(n.id);
|
|
1239
|
+
}
|
|
1240
|
+
t.unresolvedDependenciesCount === 0 && this._onModuleComplete(t);
|
|
1241
|
+
}
|
|
1242
|
+
_onModuleComplete(t) {
|
|
1243
|
+
let e = this.getRecorder();
|
|
1244
|
+
if (t.isComplete()) return;
|
|
1245
|
+
let i = t.dependencies,
|
|
1246
|
+
s = [];
|
|
1247
|
+
if (i)
|
|
1248
|
+
for (let o = 0, _ = i.length; o < _; o++) {
|
|
1249
|
+
let f = i[o];
|
|
1250
|
+
if (f === h.EXPORTS) {
|
|
1251
|
+
s[o] = t.exports;
|
|
1252
|
+
continue;
|
|
1253
|
+
}
|
|
1254
|
+
if (f === h.MODULE) {
|
|
1255
|
+
s[o] = { id: t.strId, config: () => this._config.getConfigForModule(t.strId) };
|
|
1256
|
+
continue;
|
|
1257
|
+
}
|
|
1258
|
+
if (f === h.REQUIRE) {
|
|
1259
|
+
s[o] = this._createRequire(t.moduleIdResolver);
|
|
1260
|
+
continue;
|
|
1261
|
+
}
|
|
1262
|
+
let g = this._modules2[f.id];
|
|
1263
|
+
if (g) {
|
|
1264
|
+
s[o] = g.exports;
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1267
|
+
s[o] = null;
|
|
1268
|
+
}
|
|
1269
|
+
const n = (o) =>
|
|
1270
|
+
(this._inverseDependencies2[o] || []).map((_) => this._moduleIdProvider.getStrModuleId(_));
|
|
1271
|
+
t.complete(e, this._config, s, n);
|
|
1272
|
+
let l = this._inverseDependencies2[t.id];
|
|
1273
|
+
if (((this._inverseDependencies2[t.id] = null), l))
|
|
1274
|
+
for (let o = 0, _ = l.length; o < _; o++) {
|
|
1275
|
+
let f = l[o],
|
|
1276
|
+
g = this._modules2[f];
|
|
1277
|
+
g.unresolvedDependenciesCount--,
|
|
1278
|
+
g.unresolvedDependenciesCount === 0 && this._onModuleComplete(g);
|
|
1279
|
+
}
|
|
1280
|
+
let d = this._inversePluginDependencies2.get(t.id);
|
|
1281
|
+
if (d) {
|
|
1282
|
+
this._inversePluginDependencies2.delete(t.id);
|
|
1283
|
+
for (let o = 0, _ = d.length; o < _; o++) this._loadPluginDependency(t.exports, d[o]);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
u.ModuleManager = c;
|
|
1288
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
1289
|
+
var define, AMDLoader;
|
|
1290
|
+
(function (u) {
|
|
1291
|
+
const y = new u.Environment();
|
|
1292
|
+
let m = null;
|
|
1293
|
+
const p = function (a, t, e) {
|
|
1294
|
+
typeof a != 'string' && ((e = t), (t = a), (a = null)),
|
|
1295
|
+
(typeof t != 'object' || !Array.isArray(t)) && ((e = t), (t = null)),
|
|
1296
|
+
t || (t = ['require', 'exports', 'module']),
|
|
1297
|
+
a ? m.defineModule(a, t, e, null, null) : m.enqueueDefineAnonymousModule(t, e);
|
|
1298
|
+
};
|
|
1299
|
+
p.amd = { jQuery: !0 };
|
|
1300
|
+
const h = function (a, t = !1) {
|
|
1301
|
+
m.configure(a, t);
|
|
1302
|
+
},
|
|
1303
|
+
r = function () {
|
|
1304
|
+
if (arguments.length === 1) {
|
|
1305
|
+
if (arguments[0] instanceof Object && !Array.isArray(arguments[0])) {
|
|
1306
|
+
h(arguments[0]);
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
if (typeof arguments[0] == 'string') return m.synchronousRequire(arguments[0]);
|
|
1310
|
+
}
|
|
1311
|
+
if ((arguments.length === 2 || arguments.length === 3) && Array.isArray(arguments[0])) {
|
|
1312
|
+
m.defineModule(
|
|
1313
|
+
u.Utilities.generateAnonymousModule(),
|
|
1314
|
+
arguments[0],
|
|
1315
|
+
arguments[1],
|
|
1316
|
+
arguments[2],
|
|
1317
|
+
null
|
|
1318
|
+
);
|
|
1319
|
+
return;
|
|
1320
|
+
}
|
|
1321
|
+
throw new Error('Unrecognized require call');
|
|
1322
|
+
};
|
|
1323
|
+
(r.config = h),
|
|
1324
|
+
(r.getConfig = function () {
|
|
1325
|
+
return m.getConfig().getOptionsLiteral();
|
|
1326
|
+
}),
|
|
1327
|
+
(r.reset = function () {
|
|
1328
|
+
m = m.reset();
|
|
1329
|
+
}),
|
|
1330
|
+
(r.getBuildInfo = function () {
|
|
1331
|
+
return m.getBuildInfo();
|
|
1332
|
+
}),
|
|
1333
|
+
(r.getStats = function () {
|
|
1334
|
+
return m.getLoaderEvents();
|
|
1335
|
+
}),
|
|
1336
|
+
(r.define = p);
|
|
1337
|
+
function c() {
|
|
1338
|
+
if (typeof u.global.require < 'u' || typeof require < 'u') {
|
|
1339
|
+
const a = u.global.require || require;
|
|
1340
|
+
if (typeof a == 'function' && typeof a.resolve == 'function') {
|
|
1341
|
+
const t = u.ensureRecordedNodeRequire(m.getRecorder(), a);
|
|
1342
|
+
(u.global.nodeRequire = t), (r.nodeRequire = t), (r.__$__nodeRequire = t);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
y.isNode && !y.isElectronRenderer && !y.isElectronNodeIntegrationWebWorker
|
|
1346
|
+
? (module.exports = r)
|
|
1347
|
+
: (y.isElectronRenderer || (u.global.define = p), (u.global.require = r));
|
|
1348
|
+
}
|
|
1349
|
+
(u.init = c),
|
|
1350
|
+
(typeof u.global.define != 'function' || !u.global.define.amd) &&
|
|
1351
|
+
((m = new u.ModuleManager(
|
|
1352
|
+
y,
|
|
1353
|
+
u.createScriptLoader(y),
|
|
1354
|
+
p,
|
|
1355
|
+
r,
|
|
1356
|
+
u.Utilities.getHighPerformanceTimestamp()
|
|
1357
|
+
)),
|
|
1358
|
+
typeof u.global.require < 'u' &&
|
|
1359
|
+
typeof u.global.require != 'function' &&
|
|
1360
|
+
r.config(u.global.require),
|
|
1361
|
+
(define = function () {
|
|
1362
|
+
return p.apply(null, arguments);
|
|
1363
|
+
}),
|
|
1364
|
+
(define.amd = p.amd),
|
|
1365
|
+
typeof doNotInitLoader > 'u' && c());
|
|
1366
|
+
})(AMDLoader || (AMDLoader = {}));
|
|
1367
|
+
|
|
1368
|
+
//# sourceMappingURL=../../min-maps/vs/loader.js.map
|