index.js
16.6 KB
module.exports=(()=>{var e={320:e=>{"use strict";var r="Function.prototype.bind called on incompatible ";var t=Array.prototype.slice;var n=Object.prototype.toString;var i="[object Function]";e.exports=function bind(e){var a=this;if(typeof a!=="function"||n.call(a)!==i){throw new TypeError(r+a)}var o=t.call(arguments,1);var s;var u=function(){if(this instanceof s){var r=a.apply(this,o.concat(t.call(arguments)));if(Object(r)===r){return r}return this}else{return a.apply(e,o.concat(t.call(arguments)))}};var l=Math.max(0,a.length-o.length);var c=[];for(var f=0;f<l;f++){c.push("$"+f)}s=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u);if(a.prototype){var p=function Empty(){};p.prototype=a.prototype;s.prototype=new p;p.prototype=null}return s}},334:(e,r,t)=>{"use strict";var n=t(320);e.exports=Function.prototype.bind||n},339:(e,r,t)=>{"use strict";var n=t(334);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},873:(e,r,t)=>{"use strict";var n=t(339);function specifierIncluded(e,r){var t=e.split(".");var n=r.split(" ");var i=n.length>1?n[0]:"=";var a=(n.length>1?n[1]:n[0]).split(".");for(var o=0;o<3;++o){var s=parseInt(t[o]||0,10);var u=parseInt(a[o]||0,10);if(s===u){continue}if(i==="<"){return s<u}if(i===">="){return s>=u}return false}return i===">="}function matchesRange(e,r){var t=r.split(/ ?&& ?/);if(t.length===0){return false}for(var n=0;n<t.length;++n){if(!specifierIncluded(e,t[n])){return false}}return true}function versionIncluded(e,r){if(typeof r==="boolean"){return r}var t=typeof e==="undefined"?process.versions&&process.versions.node&&process.versions.node:e;if(typeof t!=="string"){throw new TypeError(typeof e==="undefined"?"Unable to determine current node version":"If provided, a valid node version is required")}if(r&&typeof r==="object"){for(var n=0;n<r.length;++n){if(matchesRange(t,r[n])){return true}}return false}return matchesRange(t,r)}var i=t(991);e.exports=function isCore(e,r){return n(i,e)&&versionIncluded(r,i[e])}},980:e=>{"use strict";var r=process.platform==="win32";var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;var i={};function win32SplitPath(e){var r=t.exec(e),i=(r[1]||"")+(r[2]||""),a=r[3]||"";var o=n.exec(a),s=o[1],u=o[2],l=o[3];return[i,s,u,l]}i.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=win32SplitPath(e);if(!r||r.length!==4){throw new TypeError("Invalid path '"+e+"'")}return{root:r[0],dir:r[0]+r[1].slice(0,-1),base:r[2],ext:r[3],name:r[2].slice(0,r[2].length-r[3].length)}};var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var o={};function posixSplitPath(e){return a.exec(e).slice(1)}o.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=posixSplitPath(e);if(!r||r.length!==4){throw new TypeError("Invalid path '"+e+"'")}r[1]=r[1]||"";r[2]=r[2]||"";r[3]=r[3]||"";return{root:r[0],dir:r[0]+r[1].slice(0,-1),base:r[2],ext:r[3],name:r[2].slice(0,r[2].length-r[3].length)}};if(r)e.exports=i.parse;else e.exports=o.parse;e.exports.posix=o.parse;e.exports.win32=i.parse},283:(e,r,t)=>{var n=t(125);n.core=t(226);n.isCore=t(115);n.sync=t(284);e.exports=n},125:(e,r,t)=>{var n=t(747);var i=t(622);var a=t(155);var o=t(433);var s=t(990);var u=t(873);var l=n.realpath&&typeof n.realpath.native==="function"?n.realpath.native:n.realpath;var c=function isFile(e,r){n.stat(e,function(e,t){if(!e){return r(null,t.isFile()||t.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)})};var f=function isDirectory(e,r){n.stat(e,function(e,t){if(!e){return r(null,t.isDirectory())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)})};var p=function realpath(e,r){l(e,function(t,n){if(t&&t.code!=="ENOENT")r(t);else r(null,t?e:n)})};var v=function maybeRealpath(e,r,t,n){if(t&&t.preserveSymlinks===false){e(r,n)}else{n(null,r)}};var d=function getPackageCandidates(e,r,t){var n=o(r,t,e);for(var a=0;a<n.length;a++){n[a]=i.join(n[a],e)}return n};e.exports=function resolve(e,r,t){var o=t;var l=r;if(typeof r==="function"){o=l;l={}}if(typeof e!=="string"){var _=new TypeError("Path must be a string.");return process.nextTick(function(){o(_)})}l=s(e,l);var h=l.isFile||c;var y=l.isDirectory||f;var g=l.readFile||n.readFile;var m=l.realpath||p;var w=l.packageIterator;var F=l.extensions||[".js"];var k=l.includeCoreModules!==false;var S=l.basedir||i.dirname(a());var E=l.filename||S;l.paths=l.paths||[];var A=i.resolve(S);v(m,A,l,function(e,r){if(e)o(e);else init(r)});var N;function init(r){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){N=i.resolve(r,e);if(e==="."||e===".."||e.slice(-1)==="/")N+="/";if(/\/$/.test(e)&&N===r){loadAsDirectory(N,l.package,onfile)}else loadAsFile(N,l.package,onfile)}else if(k&&u(e)){return o(null,e)}else loadNodeModules(e,r,function(r,t,n){if(r)o(r);else if(t){return v(m,t,l,function(e,r){if(e){o(e)}else{o(null,r,n)}})}else{var i=new Error("Cannot find module '"+e+"' from '"+E+"'");i.code="MODULE_NOT_FOUND";o(i)}})}function onfile(r,t,n){if(r)o(r);else if(t)o(null,t,n);else loadAsDirectory(N,function(r,t,n){if(r)o(r);else if(t){v(m,t,l,function(e,r){if(e){o(e)}else{o(null,r,n)}})}else{var i=new Error("Cannot find module '"+e+"' from '"+E+"'");i.code="MODULE_NOT_FOUND";o(i)}})}function loadAsFile(e,r,t){var n=r;var a=t;if(typeof n==="function"){a=n;n=undefined}var o=[""].concat(F);load(o,e,n);function load(e,r,t){if(e.length===0)return a(null,undefined,t);var n=r+e[0];var o=t;if(o)onpkg(null,o);else loadpkg(i.dirname(n),onpkg);function onpkg(t,s,u){o=s;if(t)return a(t);if(u&&o&&l.pathFilter){var c=i.relative(u,n);var f=c.slice(0,c.length-e[0].length);var p=l.pathFilter(o,r,f);if(p)return load([""].concat(F.slice()),i.resolve(u,p),o)}h(n,onex)}function onex(t,i){if(t)return a(t);if(i)return a(null,n,o);load(e.slice(1),r,o)}}}function loadpkg(e,r){if(e===""||e==="/")return r(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return r(null)}if(/[/\\]node_modules[/\\]*$/.test(e))return r(null);v(m,e,l,function(t,n){if(t)return loadpkg(i.dirname(e),r);var a=i.join(n,"package.json");h(a,function(t,n){if(!n)return loadpkg(i.dirname(e),r);g(a,function(t,n){if(t)r(t);try{var i=JSON.parse(n)}catch(e){}if(i&&l.packageFilter){i=l.packageFilter(i,a)}r(null,i,e)})})})}function loadAsDirectory(e,r,t){var n=t;var a=r;if(typeof a==="function"){n=a;a=l.package}v(m,e,l,function(r,t){if(r)return n(r);var o=i.join(t,"package.json");h(o,function(r,t){if(r)return n(r);if(!t)return loadAsFile(i.join(e,"index"),a,n);g(o,function(r,t){if(r)return n(r);try{var a=JSON.parse(t)}catch(e){}if(a&&l.packageFilter){a=l.packageFilter(a,o)}if(a&&a.main){if(typeof a.main!=="string"){var s=new TypeError("package “"+a.name+"” `main` must be a string");s.code="INVALID_PACKAGE_MAIN";return n(s)}if(a.main==="."||a.main==="./"){a.main="index"}loadAsFile(i.resolve(e,a.main),a,function(r,t,a){if(r)return n(r);if(t)return n(null,t,a);if(!a)return loadAsFile(i.join(e,"index"),a,n);var o=i.resolve(e,a.main);loadAsDirectory(o,a,function(r,t,a){if(r)return n(r);if(t)return n(null,t,a);loadAsFile(i.join(e,"index"),a,n)})});return}loadAsFile(i.join(e,"/index"),a,n)})})})}function processDirs(e,r){if(r.length===0)return e(null,undefined);var t=r[0];y(i.dirname(t),isdir);function isdir(n,i){if(n)return e(n);if(!i)return processDirs(e,r.slice(1));loadAsFile(t,l.package,onfile)}function onfile(r,n,i){if(r)return e(r);if(n)return e(null,n,i);loadAsDirectory(t,l.package,ondir)}function ondir(t,n,i){if(t)return e(t);if(n)return e(null,n,i);processDirs(e,r.slice(1))}}function loadNodeModules(e,r,t){var n=function(){return d(e,r,l)};processDirs(t,w?w(e,r,n,l):n())}}},155:e=>{e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,r){return r};var r=(new Error).stack;Error.prepareStackTrace=e;return r[2].getFileName()}},226:(e,r,t)=>{var n=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var r=e.split(" ");var t=r.length>1?r[0]:"=";var i=(r.length>1?r[1]:r[0]).split(".");for(var a=0;a<3;++a){var o=parseInt(n[a]||0,10);var s=parseInt(i[a]||0,10);if(o===s){continue}if(t==="<"){return o<s}else if(t===">="){return o>=s}else{return false}}return t===">="}function matchesRange(e){var r=e.split(/ ?&& ?/);if(r.length===0){return false}for(var t=0;t<r.length;++t){if(!specifierIncluded(r[t])){return false}}return true}function versionIncluded(e){if(typeof e==="boolean"){return e}if(e&&typeof e==="object"){for(var r=0;r<e.length;++r){if(matchesRange(e[r])){return true}}return false}return matchesRange(e)}var i=t(537);var a={};for(var o in i){if(Object.prototype.hasOwnProperty.call(i,o)){a[o]=versionIncluded(i[o])}}e.exports=a},115:(e,r,t)=>{var n=t(873);e.exports=function isCore(e){return n(e)}},433:(e,r,t)=>{var n=t(622);var i=n.parse||t(980);var a=function getNodeModulesDirs(e,r){var t="/";if(/^([A-Za-z]:)/.test(e)){t=""}else if(/^\\\\/.test(e)){t="\\\\"}var a=[e];var o=i(e);while(o.dir!==a[a.length-1]){a.push(o.dir);o=i(o.dir)}return a.reduce(function(e,i){return e.concat(r.map(function(e){return n.resolve(t,i,e)}))},[])};e.exports=function nodeModulesPaths(e,r,t){var n=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths==="function"){return r.paths(t,e,function(){return a(e,n)},r)}var i=a(e,n);return r&&r.paths?i.concat(r.paths):i}},990:e=>{e.exports=function(e,r){return r||{}}},284:(e,r,t)=>{var n=t(873);var i=t(747);var a=t(622);var o=t(155);var s=t(433);var u=t(990);var l=i.realpathSync&&typeof i.realpathSync.native==="function"?i.realpathSync.native:i.realpathSync;var c=function isFile(e){try{var r=i.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return r.isFile()||r.isFIFO()};var f=function isDirectory(e){try{var r=i.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return r.isDirectory()};var p=function realpathSync(e){try{return l(e)}catch(e){if(e.code!=="ENOENT"){throw e}}return e};var v=function maybeRealpathSync(e,r,t){if(t&&t.preserveSymlinks===false){return e(r)}return r};var d=function getPackageCandidates(e,r,t){var n=s(r,t,e);for(var i=0;i<n.length;i++){n[i]=a.join(n[i],e)}return n};e.exports=function resolveSync(e,r){if(typeof e!=="string"){throw new TypeError("Path must be a string.")}var t=u(e,r);var s=t.isFile||c;var l=t.readFileSync||i.readFileSync;var _=t.isDirectory||f;var h=t.realpathSync||p;var y=t.packageIterator;var g=t.extensions||[".js"];var m=t.includeCoreModules!==false;var w=t.basedir||a.dirname(o());var F=t.filename||w;t.paths=t.paths||[];var k=v(h,a.resolve(w),t);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var S=a.resolve(k,e);if(e==="."||e===".."||e.slice(-1)==="/")S+="/";var E=loadAsFileSync(S)||loadAsDirectorySync(S);if(E)return v(h,E,t)}else if(m&&n(e)){return e}else{var A=loadNodeModulesSync(e,k);if(A)return v(h,A,t)}var N=new Error("Cannot find module '"+e+"' from '"+F+"'");N.code="MODULE_NOT_FOUND";throw N;function loadAsFileSync(e){var r=loadpkg(a.dirname(e));if(r&&r.dir&&r.pkg&&t.pathFilter){var n=a.relative(r.dir,e);var i=t.pathFilter(r.pkg,e,n);if(i){e=a.resolve(r.dir,i)}}if(s(e)){return e}for(var o=0;o<g.length;o++){var u=e+g[o];if(s(u)){return u}}}function loadpkg(e){if(e===""||e==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return}if(/[/\\]node_modules[/\\]*$/.test(e))return;var r=a.join(v(h,e,t),"package.json");if(!s(r)){return loadpkg(a.dirname(e))}var n=l(r);try{var i=JSON.parse(n)}catch(e){}if(i&&t.packageFilter){i=t.packageFilter(i,e)}return{pkg:i,dir:e}}function loadAsDirectorySync(e){var r=a.join(v(h,e,t),"/package.json");if(s(r)){try{var n=l(r,"UTF8");var i=JSON.parse(n)}catch(e){}if(i&&t.packageFilter){i=t.packageFilter(i,e)}if(i&&i.main){if(typeof i.main!=="string"){var o=new TypeError("package “"+i.name+"” `main` must be a string");o.code="INVALID_PACKAGE_MAIN";throw o}if(i.main==="."||i.main==="./"){i.main="index"}try{var u=loadAsFileSync(a.resolve(e,i.main));if(u)return u;var c=loadAsDirectorySync(a.resolve(e,i.main));if(c)return c}catch(e){}}}return loadAsFileSync(a.join(e,"/index"))}function loadNodeModulesSync(e,r){var n=function(){return d(e,r,t)};var i=y?y(e,r,n,t):n();for(var o=0;o<i.length;o++){var s=i[o];if(_(a.dirname(s))){var u=loadAsFileSync(s);if(u)return u;var l=loadAsDirectorySync(s);if(l)return l}}}}},991:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},537:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},747:e=>{"use strict";e.exports=require("fs")},622:e=>{"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){if(r[t]){return r[t].exports}var n=r[t]={exports:{}};var i=true;try{e[t](n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(283)})();