mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
|
!function(r){"use strict";function e(r,e,n){for(var i in e)!0!==n&&r.hasOwnProperty(i)||(r[i]=e[i])}var n="/",i="node_modules",t={_registry:{},_parsedEntryPoints:[],_lastRegistered:"",_bind:function(r,e,n){return function(i){var t=[].slice.call(arguments).concat(n);return r.apply(e,t)}},shallowCopy:e,_log:{prepare:function(r,e){var n="[Codex] "+r;return e?(e.msg=n,e):n},warn:function(e,n){r.C.config.logger.warn(this.prepare(e,n))},error:function(e,n){r.C.config.logger.error(this.prepare(e,n))}},_createBoundRequire:function(r){var e=this,n=e._bind,i=n(e.require,e,r);return i.ensure=n(e.requireAsync,e,r),i},_buildNmPath:function(r,e,t){var o=e.split(n),s=o.lastIndexOf(i)+2;o=o.slice(0,s).concat([i,r]);for(var a=0;a<t;a++)s=o.lastIndexOf(i,s-1);var l=o.slice(0,s).join(n);return""!==l&&(l+=n),l+=i+n+r},_normalize:function(r,e){return-1===r.indexOf("./")?this._normalizeNodeModulePath(r,e):this._normalizeFilePath(r,e)},_normalizeNodeModulePath:function(r,e){var n={module:r,requiredBy:e};if(!this.config||!this.config.nmEntryPoints)return r;var t,o=this.config.nmEntryPoints,s=o[r];if(!s)return this._log.error("No entry points found!",n),r;if(1===s.length)return s[0];if(1===e.split(i).length)return t=s.filter(function(r){return 2===r.split(i).length});for(var a=0;!t;){for(var l=this._buildNmPath(r,e,a),f=0;f<s.length;f++)0===s[f].indexOf(l)&&(t=s[f]);a++}return t},_normalizeFilePath:function(r,e){for(var i=r.split(n),t=e.split(n),o=t.slice(0,-1),s=[],a=0;a<i.length;a++)"."===i[a]?s=o:".."===i[a]?(o.pop(),s=o):s.push(i[a]);return s=s.join(n)},_findEntry:function(r){for(var e=this._registry,n=[r+"/index.js",r+".js",r],i=n.length;i--;)if(e[n[i]])return{entry:e[n[i]],normalizedName:n[i]};return{entry:null,normalizedName:r}},register:function(r,e){var n=this._registry;if("function"==typeof e)if(n[r]){var i="Module "+r+" already loaded, skipping!";this._log.warn(i,{module:r})}else n[r]={invoke:e};this._lastRegistered=r},require:function(r,e){var n,i,t=e?this._normalize(r,e):r;if(i=this._findEntry(t),n=i.entry,t=i.normalizedName,n){if(!n.exports){var o=e?this._registry[e]:null,s={exports:{},id:t,parent:o,entrypoint:!o,invoke:n.invoke};this._registry[t]=n=s,s.invoke(this._createBoundRequire(t),s,s.exports)}return n.exports}var a={module:t,requiredBy:e};return!0===this.config.stub?{stub:!0}:void this._log.error("MODULE NOT FOUND!",a)},requireAsync:function(e,n,i){for(var t=this,o=e instanceof Array?e:[e],s=0;s<o.length;s++)o[s]=t._normalize(o[s],i);var a=t._parsedEntryPoints;if(!r.C.fetch)throw new Error("FETCH NOT IMPLEMENTED!");if(!r.C.Client)throw new Error("CODEX-CLIENT NOT AVAILABLE!");if(!r.C.config)throw new Error("CONFIG NOT AVAILABLE!");var l=r.C.config;if(!l.namespace||!l.version||!l.id)throw new Error("CONFIG MISSING BUILD-TIME CONTEXT");if(!l.client)throw new Error("CONFIG.CLIENT NOT SET!");var f=new r.C.Client(l.client),u=f.getUrl({namespace:l.namespace,version:l.version,id:l.id,type:"js",files:o,excludeFiles:a});r.C.fetch(u,function(){t._parsedEntryPoints=a.concat(o),n()})},kickoff:function(r){var e=r;if(!e&&""===this._lastRegistered)return void this._log.error("NO MODULES REGISTERED!");e||(e=this._lastRegistered),e=e instanceof Array?e:[e];for(var n=0;n<e.length;n++)this._parsedEntryPoints.push(e[n]),this.require(e[n])}};r.Codex&&r.Codex.config?e(r.Codex,t,!1):(r.Codex=t,r.Codex.config={}),r.C=r.Codex,r.C.r=r.C.register,r.C.k=r.C.kickoff}(window);!function(e){"use strict";var s={stub:!0,logger:console};if(!e||!e.C)throw new Error("[Codex] Codex bootstrap not loaded!");var o={id:"js",namespace:"webui",nmEntryPoints:{"babel-runtime/helpers/classCallCheck":["node_modules/babel-runtime/helpers/classCallCheck.js"],"babel-runtime/helpers/createClass":["node_modules/babel-runtime/helpers/createClass.js"],"babel-runtime/helpers/defineProperty":["node_modules/babel-runtime/helpers/defineProperty.js"],"babel-runtime/helpers/extends":["node_modules/babel-runtime/helpers/extends.js"],"babel-runtime/helpers/inherits":["node_modules/babel-runtime/helpers/inherits.js"],"babel-runtime/helpers/possibleConstructorReturn":["node_modules/babe
|