Unverified Commit 777957e6 authored by Steven's avatar Steven Committed by GitHub

Compile native-url and node-libs-browser (#30032)

This prevents useless warnings about querystring.

```
warning next > native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning next > node-libs-browser > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
```
parent a4eda09e
...@@ -125,7 +125,7 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } { ...@@ -125,7 +125,7 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {
'object.assign/shim': path.join(shimAssign, 'shim.js'), 'object.assign/shim': path.join(shimAssign, 'shim.js'),
// Replace: full URL polyfill with platform-based polyfill // Replace: full URL polyfill with platform-based polyfill
url: require.resolve('native-url'), url: require.resolve('next/dist/compiled/native-url'),
} }
) )
} }
......
This diff is collapsed.
module.exports=(()=>{var e={715:(e,t,o)=>{var a,s=(a=o(191))&&"object"==typeof a&&"default"in a?a.default:a,p=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=d(e));var t=function(e,t,r){var o=e.auth,a=e.hostname,s=e.protocol||"",p=e.pathname||"",n=e.hash||"",c=e.query||"",h=!1;o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",e.host?h=o+e.host:a&&(h=o+(~a.indexOf(":")?"["+a+"]":a),e.port&&(h+=":"+e.port)),c&&"object"==typeof c&&(c=t.encode(c));var l=e.search||c&&"?"+c||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||r.test(s))&&!1!==h?(h="//"+(h||""),p&&"/"!==p[0]&&(p="/"+p)):h||(h=""),n&&"#"!==n[0]&&(n="#"+n),l&&"?"!==l[0]&&(l="?"+l),{protocol:s,host:h,pathname:p=p.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:n}}(e,s,p);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var n="http://",c="w.w",i=n+c,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function h(e,t){var o="string"==typeof e?d(e):e;e="object"==typeof e?r(e):e;var a=d(t),s="";o.protocol&&!o.slashes&&(s=o.protocol,e=e.replace(o.protocol,""),s+="/"===t[0]||"/"===e[0]?"/":""),s&&a.protocol&&(s="",a.slashes||(s=a.protocol,t=t.replace(a.protocol,"")));var p=e.match(u);p&&!a.protocol&&(e=e.substr((s=p[1]+(p[2]||"")).length),/^\/\/[^/]/.test(t)&&(s=s.slice(0,-1)));var c=new URL(e,i+"/"),h=new URL(t,c).toString().replace(i,""),l=a.protocol||o.protocol;return l+=o.slashes||a.slashes?"//":"",!s&&l?h=h.replace(n,l):s&&(h=h.replace(n,"")),f.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),s&&(h=s+("/"===h[0]?h.substr(1):h)),h}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var m=/^https?|ftp|gopher|file/,v=/^(.*?)([#?].*)/,_=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,b=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof l)return e;var a=(e=e.trim()).match(v);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var p=!/(^javascript)/.test(e)&&e.match(_),n=b.test(e),h="";p&&(m.test(p[1])||(h=p[1].toLowerCase(),e=""+p[2]+p[3]),p[2]||(n=!1,m.test(p[1])?(h=p[1],e=""+p[3]):e="//"+p[3]),3!==p[2].length&&1!==p[2].length||(h=p[1],e="/"+p[3]));var u,f=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),d=f&&f[1],y=new l,w="",C="";try{u=new URL(e)}catch(t){w=t,h||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(C="/",e=e.substr(1));try{u=new URL(e,i)}catch(e){return y.protocol=h,y.href=h,y}}y.slashes=n&&!C,y.host=u.host===c?"":u.host,y.hostname=u.hostname===c?"":u.hostname.replace(/(\[|\])/g,""),y.protocol=w?h||null:u.protocol,y.search=u.search.replace(/\\/g,"%5C"),y.hash=u.hash.replace(/\\/g,"%5C");var U=e.split("#");!y.search&&~U[0].indexOf("?")&&(y.search="?"),y.hash||""!==U[1]||(y.hash="#"),y.query=t?s.decode(u.search.substr(1)):y.search.substr(1),y.pathname=C+(p?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(u.pathname):u.pathname),"about:"===y.protocol&&"blank"===y.pathname&&(y.protocol="",y.pathname=""),w&&"/"!==e[0]&&(y.pathname=y.pathname.substr(1)),h&&!m.test(h)&&"/"!==e.slice(-1)&&"/"===y.pathname&&(y.pathname=""),y.path=y.pathname+y.search,y.auth=[u.username,u.password].map(decodeURIComponent).filter(Boolean).join(":"),y.port=u.port,d&&!y.host.endsWith(d)&&(y.host+=d,y.port=d.slice(1)),y.href=C?""+y.pathname+y.search+y.hash:r(y);var j=/^(file)/.test(y.href)?["host","hostname"]:[];return Object.keys(y).forEach(function(e){~j.indexOf(e)||(y[e]=y[e]||null)}),y}t.parse=d,t.format=r,t.resolve=h,t.resolveObject=function(e,t){return d(h(e,t))},t.Url=l},191:e=>{"use strict";e.exports=require("querystring")}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var o=t[r]={exports:{}};var a=true;try{e[r](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return o.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(715)})();
\ No newline at end of file
{"name":"native-url","main":"index.js","author":"Janicklas Ralph","license":"Apache-2.0"}
(The MIT License)
Copyright (c) 2012 Tobias Koppers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This diff is collapsed.
module.exports=(()=>{var r={713:(r,e)=>{e.endianness=function(){return"LE"};e.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};e.loadavg=function(){return[]};e.uptime=function(){return 0};e.freemem=function(){return Number.MAX_VALUE};e.totalmem=function(){return Number.MAX_VALUE};e.cpus=function(){return[]};e.type=function(){return"Browser"};e.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};e.networkInterfaces=e.getNetworkInterfaces=function(){return{}};e.arch=function(){return"javascript"};e.platform=function(){return"browser"};e.tmpdir=e.tmpDir=function(){return"/tmp"};e.EOL="\n";e.homedir=function(){return"/"}}};var e={};function __nccwpck_require__(n){if(e[n]){return e[n].exports}var t=e[n]={exports:{}};var u=true;try{r[n](t,t.exports,__nccwpck_require__);u=false}finally{if(u)delete e[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(713)})();
\ No newline at end of file
module.exports=(()=>{var e={940:e=>{var t=e.exports={};var r;var n;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=defaultSetTimout}}catch(e){r=defaultSetTimout}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=defaultClearTimeout}}catch(e){n=defaultClearTimeout}})();function runTimeout(e){if(r===setTimeout){return setTimeout(e,0)}if((r===defaultSetTimout||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function runClearTimeout(e){if(n===clearTimeout){return clearTimeout(e)}if((n===defaultClearTimeout||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var o=[];var i=false;var u;var a=-1;function cleanUpNextTick(){if(!i||!u){return}i=false;if(u.length){o=u.concat(o)}else{a=-1}if(o.length){drainQueue()}}function drainQueue(){if(i){return}var e=runTimeout(cleanUpNextTick);i=true;var t=o.length;while(t){u=o;o=[];while(++a<t){if(u){u[a].run()}}a=-1;t=o.length}u=null;i=false;runClearTimeout(e)}t.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}o.push(new Item(e,t));if(o.length===1&&!i){runTimeout(drainQueue)}};function Item(e,t){this.fun=e;this.array=t}Item.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=true;t.env={};t.argv=[];t.version="";t.versions={};function noop(){}t.on=noop;t.addListener=noop;t.once=noop;t.off=noop;t.removeListener=noop;t.removeAllListeners=noop;t.emit=noop;t.prependListener=noop;t.prependOnceListener=noop;t.listeners=function(e){return[]};t.binding=function(e){throw new Error("process.binding is not supported")};t.cwd=function(){return"/"};t.chdir=function(e){throw new Error("process.chdir is not supported")};t.umask=function(){return 0}}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(940)})();
\ No newline at end of file
{
"O_RDONLY": 0,
"O_WRONLY": 1,
"O_RDWR": 2,
"S_IFMT": 61440,
"S_IFREG": 32768,
"S_IFDIR": 16384,
"S_IFCHR": 8192,
"S_IFBLK": 24576,
"S_IFIFO": 4096,
"S_IFLNK": 40960,
"S_IFSOCK": 49152,
"O_CREAT": 512,
"O_EXCL": 2048,
"O_NOCTTY": 131072,
"O_TRUNC": 1024,
"O_APPEND": 8,
"O_DIRECTORY": 1048576,
"O_NOFOLLOW": 256,
"O_SYNC": 128,
"O_SYMLINK": 2097152,
"O_NONBLOCK": 4,
"S_IRWXU": 448,
"S_IRUSR": 256,
"S_IWUSR": 128,
"S_IXUSR": 64,
"S_IRWXG": 56,
"S_IRGRP": 32,
"S_IWGRP": 16,
"S_IXGRP": 8,
"S_IRWXO": 7,
"S_IROTH": 4,
"S_IWOTH": 2,
"S_IXOTH": 1,
"E2BIG": 7,
"EACCES": 13,
"EADDRINUSE": 48,
"EADDRNOTAVAIL": 49,
"EAFNOSUPPORT": 47,
"EAGAIN": 35,
"EALREADY": 37,
"EBADF": 9,
"EBADMSG": 94,
"EBUSY": 16,
"ECANCELED": 89,
"ECHILD": 10,
"ECONNABORTED": 53,
"ECONNREFUSED": 61,
"ECONNRESET": 54,
"EDEADLK": 11,
"EDESTADDRREQ": 39,
"EDOM": 33,
"EDQUOT": 69,
"EEXIST": 17,
"EFAULT": 14,
"EFBIG": 27,
"EHOSTUNREACH": 65,
"EIDRM": 90,
"EILSEQ": 92,
"EINPROGRESS": 36,
"EINTR": 4,
"EINVAL": 22,
"EIO": 5,
"EISCONN": 56,
"EISDIR": 21,
"ELOOP": 62,
"EMFILE": 24,
"EMLINK": 31,
"EMSGSIZE": 40,
"EMULTIHOP": 95,
"ENAMETOOLONG": 63,
"ENETDOWN": 50,
"ENETRESET": 52,
"ENETUNREACH": 51,
"ENFILE": 23,
"ENOBUFS": 55,
"ENODATA": 96,
"ENODEV": 19,
"ENOENT": 2,
"ENOEXEC": 8,
"ENOLCK": 77,
"ENOLINK": 97,
"ENOMEM": 12,
"ENOMSG": 91,
"ENOPROTOOPT": 42,
"ENOSPC": 28,
"ENOSR": 98,
"ENOSTR": 99,
"ENOSYS": 78,
"ENOTCONN": 57,
"ENOTDIR": 20,
"ENOTEMPTY": 66,
"ENOTSOCK": 38,
"ENOTSUP": 45,
"ENOTTY": 25,
"ENXIO": 6,
"EOPNOTSUPP": 102,
"EOVERFLOW": 84,
"EPERM": 1,
"EPIPE": 32,
"EPROTO": 100,
"EPROTONOSUPPORT": 43,
"EPROTOTYPE": 41,
"ERANGE": 34,
"EROFS": 30,
"ESPIPE": 29,
"ESRCH": 3,
"ESTALE": 70,
"ETIME": 101,
"ETIMEDOUT": 60,
"ETXTBSY": 26,
"EWOULDBLOCK": 35,
"EXDEV": 18,
"SIGHUP": 1,
"SIGINT": 2,
"SIGQUIT": 3,
"SIGILL": 4,
"SIGTRAP": 5,
"SIGABRT": 6,
"SIGIOT": 6,
"SIGBUS": 10,
"SIGFPE": 8,
"SIGKILL": 9,
"SIGUSR1": 30,
"SIGSEGV": 11,
"SIGUSR2": 31,
"SIGPIPE": 13,
"SIGALRM": 14,
"SIGTERM": 15,
"SIGCHLD": 20,
"SIGCONT": 19,
"SIGSTOP": 17,
"SIGTSTP": 18,
"SIGTTIN": 21,
"SIGTTOU": 22,
"SIGURG": 16,
"SIGXCPU": 24,
"SIGXFSZ": 25,
"SIGVTALRM": 26,
"SIGPROF": 27,
"SIGWINCH": 28,
"SIGIO": 23,
"SIGSYS": 12,
"SSL_OP_ALL": 2147486719,
"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION": 262144,
"SSL_OP_CIPHER_SERVER_PREFERENCE": 4194304,
"SSL_OP_CISCO_ANYCONNECT": 32768,
"SSL_OP_COOKIE_EXCHANGE": 8192,
"SSL_OP_CRYPTOPRO_TLSEXT_BUG": 2147483648,
"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS": 2048,
"SSL_OP_EPHEMERAL_RSA": 0,
"SSL_OP_LEGACY_SERVER_CONNECT": 4,
"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER": 32,
"SSL_OP_MICROSOFT_SESS_ID_BUG": 1,
"SSL_OP_MSIE_SSLV2_RSA_PADDING": 0,
"SSL_OP_NETSCAPE_CA_DN_BUG": 536870912,
"SSL_OP_NETSCAPE_CHALLENGE_BUG": 2,
"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG": 1073741824,
"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG": 8,
"SSL_OP_NO_COMPRESSION": 131072,
"SSL_OP_NO_QUERY_MTU": 4096,
"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION": 65536,
"SSL_OP_NO_SSLv2": 16777216,
"SSL_OP_NO_SSLv3": 33554432,
"SSL_OP_NO_TICKET": 16384,
"SSL_OP_NO_TLSv1": 67108864,
"SSL_OP_NO_TLSv1_1": 268435456,
"SSL_OP_NO_TLSv1_2": 134217728,
"SSL_OP_PKCS1_CHECK_1": 0,
"SSL_OP_PKCS1_CHECK_2": 0,
"SSL_OP_SINGLE_DH_USE": 1048576,
"SSL_OP_SINGLE_ECDH_USE": 524288,
"SSL_OP_SSLEAY_080_CLIENT_DH_BUG": 128,
"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG": 0,
"SSL_OP_TLS_BLOCK_PADDING_BUG": 512,
"SSL_OP_TLS_D5_BUG": 256,
"SSL_OP_TLS_ROLLBACK_BUG": 8388608,
"ENGINE_METHOD_DSA": 2,
"ENGINE_METHOD_DH": 4,
"ENGINE_METHOD_RAND": 8,
"ENGINE_METHOD_ECDH": 16,
"ENGINE_METHOD_ECDSA": 32,
"ENGINE_METHOD_CIPHERS": 64,
"ENGINE_METHOD_DIGESTS": 128,
"ENGINE_METHOD_STORE": 256,
"ENGINE_METHOD_PKEY_METHS": 512,
"ENGINE_METHOD_PKEY_ASN1_METHS": 1024,
"ENGINE_METHOD_ALL": 65535,
"ENGINE_METHOD_NONE": 0,
"DH_CHECK_P_NOT_SAFE_PRIME": 2,
"DH_CHECK_P_NOT_PRIME": 1,
"DH_UNABLE_TO_CHECK_GENERATOR": 4,
"DH_NOT_SUITABLE_GENERATOR": 8,
"NPN_ENABLED": 1,
"RSA_PKCS1_PADDING": 1,
"RSA_SSLV23_PADDING": 2,
"RSA_NO_PADDING": 3,
"RSA_PKCS1_OAEP_PADDING": 4,
"RSA_X931_PADDING": 5,
"RSA_PKCS1_PSS_PADDING": 6,
"POINT_CONVERSION_COMPRESSED": 2,
"POINT_CONVERSION_UNCOMPRESSED": 4,
"POINT_CONVERSION_HYBRID": 6,
"F_OK": 0,
"R_OK": 4,
"W_OK": 2,
"X_OK": 1,
"UV_UDP_REUSEADDR": 4
}
This diff is collapsed.
module.exports=(()=>{"use strict";var e={505:e=>{var t=typeof Reflect==="object"?Reflect:null;var n=t&&typeof t.apply==="function"?t.apply:function ReflectApply(e,t,n){return Function.prototype.apply.call(e,t,n)};var r;if(t&&typeof t.ownKeys==="function"){r=t.ownKeys}else if(Object.getOwnPropertySymbols){r=function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}}else{r=function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e)}}function ProcessEmitWarning(e){if(console&&console.warn)console.warn(e)}var i=Number.isNaN||function NumberIsNaN(e){return e!==e};function EventEmitter(){EventEmitter.init.call(this)}e.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=undefined;var o=10;Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:true,get:function(){return o},set:function(e){if(typeof e!=="number"||e<0||i(e)){throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".")}o=e}});EventEmitter.init=function(){if(this._events===undefined||this._events===Object.getPrototypeOf(this)._events){this._events=Object.create(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined};EventEmitter.prototype.setMaxListeners=function setMaxListeners(e){if(typeof e!=="number"||e<0||i(e)){throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".")}this._maxListeners=e;return this};function $getMaxListeners(e){if(e._maxListeners===undefined)return EventEmitter.defaultMaxListeners;return e._maxListeners}EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return $getMaxListeners(this)};EventEmitter.prototype.emit=function emit(e){var t=[];for(var r=1;r<arguments.length;r++)t.push(arguments[r]);var i=e==="error";var o=this._events;if(o!==undefined)i=i&&o.error===undefined;else if(!i)return false;if(i){var s;if(t.length>0)s=t[0];if(s instanceof Error){throw s}var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));u.context=s;throw u}var f=o[e];if(f===undefined)return false;if(typeof f==="function"){n(f,this,t)}else{var a=f.length;var v=arrayClone(f,a);for(var r=0;r<a;++r)n(v[r],this,t)}return true};function _addListener(e,t,n,r){var i;var o;var s;if(typeof n!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}o=e._events;if(o===undefined){o=e._events=Object.create(null);e._eventsCount=0}else{if(o.newListener!==undefined){e.emit("newListener",t,n.listener?n.listener:n);o=e._events}s=o[t]}if(s===undefined){s=o[t]=n;++e._eventsCount}else{if(typeof s==="function"){s=o[t]=r?[n,s]:[s,n]}else if(r){s.unshift(n)}else{s.push(n)}i=$getMaxListeners(e);if(i>0&&s.length>i&&!s.warned){s.warned=true;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners "+"added. Use emitter.setMaxListeners() to "+"increase limit");u.name="MaxListenersExceededWarning";u.emitter=e;u.type=t;u.count=s.length;ProcessEmitWarning(u)}}return e}EventEmitter.prototype.addListener=function addListener(e,t){return _addListener(this,e,t,false)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function prependListener(e,t){return _addListener(this,e,t,true)};function onceWrapper(){var e=[];for(var t=0;t<arguments.length;t++)e.push(arguments[t]);if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;n(this.listener,this.target,e)}}function _onceWrap(e,t,n){var r={fired:false,wrapFn:undefined,target:e,type:t,listener:n};var i=onceWrapper.bind(r);i.listener=n;r.wrapFn=i;return i}EventEmitter.prototype.once=function once(e,t){if(typeof t!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}this.on(e,_onceWrap(this,e,t));return this};EventEmitter.prototype.prependOnceListener=function prependOnceListener(e,t){if(typeof t!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}this.prependListener(e,_onceWrap(this,e,t));return this};EventEmitter.prototype.removeListener=function removeListener(e,t){var n,r,i,o,s;if(typeof t!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}r=this._events;if(r===undefined)return this;n=r[e];if(n===undefined)return this;if(n===t||n.listener===t){if(--this._eventsCount===0)this._events=Object.create(null);else{delete r[e];if(r.removeListener)this.emit("removeListener",e,n.listener||t)}}else if(typeof n!=="function"){i=-1;for(o=n.length-1;o>=0;o--){if(n[o]===t||n[o].listener===t){s=n[o].listener;i=o;break}}if(i<0)return this;if(i===0)n.shift();else{spliceOne(n,i)}if(n.length===1)r[e]=n[0];if(r.removeListener!==undefined)this.emit("removeListener",e,s||t)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t,n,r;n=this._events;if(n===undefined)return this;if(n.removeListener===undefined){if(arguments.length===0){this._events=Object.create(null);this._eventsCount=0}else if(n[e]!==undefined){if(--this._eventsCount===0)this._events=Object.create(null);else delete n[e]}return this}if(arguments.length===0){var i=Object.keys(n);var o;for(r=0;r<i.length;++r){o=i[r];if(o==="removeListener")continue;this.removeAllListeners(o)}this.removeAllListeners("removeListener");this._events=Object.create(null);this._eventsCount=0;return this}t=n[e];if(typeof t==="function"){this.removeListener(e,t)}else if(t!==undefined){for(r=t.length-1;r>=0;r--){this.removeListener(e,t[r])}}return this};function _listeners(e,t,n){var r=e._events;if(r===undefined)return[];var i=r[t];if(i===undefined)return[];if(typeof i==="function")return n?[i.listener||i]:[i];return n?unwrapListeners(i):arrayClone(i,i.length)}EventEmitter.prototype.listeners=function listeners(e){return _listeners(this,e,true)};EventEmitter.prototype.rawListeners=function rawListeners(e){return _listeners(this,e,false)};EventEmitter.listenerCount=function(e,t){if(typeof e.listenerCount==="function"){return e.listenerCount(t)}else{return listenerCount.call(e,t)}};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(e){var t=this._events;if(t!==undefined){var n=t[e];if(typeof n==="function"){return 1}else if(n!==undefined){return n.length}}return 0}EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?r(this._events):[]};function arrayClone(e,t){var n=new Array(t);for(var r=0;r<t;++r)n[r]=e[r];return n}function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function unwrapListeners(e){var t=new Array(e.length);for(var n=0;n<t.length;++n){t[n]=e[n].listener||e[n]}return t}}};var t={};function __nccwpck_require__(n){if(t[n]){return t[n].exports}var r=t[n]={exports:{}};var i=true;try{e[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return r.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(505)})();
\ No newline at end of file
module.exports=(()=>{var e={884:(e,s,a)=>{s.assert=a.ab+"assert.js";s.buffer=a.ab+"index1.js";s.child_process=null;s.cluster=null;s.console=a.ab+"index2.js";s.constants=a.ab+"constants.json";s.crypto=a.ab+"index3.js";s.dgram=null;s.dns=null;s.domain=a.ab+"index4.js";s.events=a.ab+"events.js";s.fs=null;s.http=a.ab+"index5.js";s.https=a.ab+"index6.js";s.module=null;s.net=null;s.os=a.ab+"browser.js";s.path=a.ab+"index7.js";s.punycode=a.ab+"punycode.js";s.process=a.ab+"browser1.js";s.querystring=a.ab+"index8.js";s.readline=null;s.repl=null;s.stream=a.ab+"index9.js";s._stream_duplex=a.ab+"duplex.js";s._stream_passthrough=a.ab+"passthrough.js";s._stream_readable=a.ab+"readable.js";s._stream_transform=a.ab+"transform.js";s._stream_writable=a.ab+"writable.js";s.string_decoder=a.ab+"string_decoder.js";s.sys=a.ab+"util.js";s.timers=a.ab+"main.js";s.tls=null;s.tty=a.ab+"index10.js";s.url=a.ab+"url.js";s.util=a.ab+"util.js";s.vm=a.ab+"index11.js";s.zlib=a.ab+"index12.js"}};var s={};function __nccwpck_require__(a){if(s[a]){return s[a].exports}var r=s[a]={exports:{}};var t=true;try{e[a](r,r.exports,__nccwpck_require__);t=false}finally{if(t)delete s[a]}return r.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(884)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{var e={653:(e,r)=>{r.isatty=function(){return false};function ReadStream(){throw new Error("tty.ReadStream is not implemented")}r.ReadStream=ReadStream;function WriteStream(){throw new Error("tty.ReadStream is not implemented")}r.WriteStream=WriteStream}};var r={};function __nccwpck_require__(t){if(r[t]){return r[t].exports}var a=r[t]={exports:{}};var _=true;try{e[t](a,a.exports,__nccwpck_require__);_=false}finally{if(_)delete r[t]}return a.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(653)})();
\ No newline at end of file
module.exports=(()=>{var __webpack_modules__={287:(__unused_webpack_module,exports)=>{var indexOf=function(e,r){if(e.indexOf)return e.indexOf(r);else for(var t=0;t<e.length;t++){if(e[t]===r)return t}return-1};var Object_keys=function(e){if(Object.keys)return Object.keys(e);else{var r=[];for(var t in e)r.push(t);return r}};var forEach=function(e,r){if(e.forEach)return e.forEach(r);else for(var t=0;t<e.length;t++){r(e[t],t,e)}};var defineProp=function(){try{Object.defineProperty({},"_",{});return function(e,r,t){Object.defineProperty(e,r,{writable:true,enumerable:false,configurable:true,value:t})}}catch(e){return function(e,r,t){e[r]=t}}}();var globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function NodeScript(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context)){throw new TypeError("needs a 'context' argument.")}var r=document.createElement("iframe");if(!r.style)r.style={};r.style.display="none";document.body.appendChild(r);var t=r.contentWindow;var n=t.eval,o=t.execScript;if(!n&&o){o.call(t,"null");n=t.eval}forEach(Object_keys(e),function(r){t[r]=e[r]});forEach(globals,function(r){if(e[r]){t[r]=e[r]}});var c=Object_keys(t);var a=n.call(t,this.code);forEach(Object_keys(t),function(r){if(r in e||indexOf(c,r)===-1){e[r]=t[r]}});forEach(globals,function(r){if(!(r in e)){defineProp(e,r,t[r])}});document.body.removeChild(r);return a};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(e){var r=Script.createContext(e);var t=this.runInContext(r);if(e){forEach(Object_keys(r),function(t){e[t]=r[t]})}return t};forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(r){var t=Script(r);return t[e].apply(t,[].slice.call(arguments,1))}});exports.isContext=function(e){return e instanceof Context};exports.createScript=function(e){return exports.Script(e)};exports.createContext=Script.createContext=function(e){var r=new Context;if(typeof e==="object"){forEach(Object_keys(e),function(t){r[t]=e[t]})}return r}}};var __webpack_module_cache__={};function __nccwpck_require__(e){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var r=__webpack_module_cache__[e]={exports:{}};var t=true;try{__webpack_modules__[e](r,r.exports,__nccwpck_require__);t=false}finally{if(t)delete __webpack_module_cache__[e]}return r.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(287)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{var r={29:(r,e,n)=>{var o=n(669);var t=n(357);function now(){return(new Date).getTime()}var a=Array.prototype.slice;var i;var l={};if(typeof global!=="undefined"&&global.console){i=global.console}else if(typeof window!=="undefined"&&window.console){i=window.console}else{i={}}var s=[[log,"log"],[info,"info"],[warn,"warn"],[error,"error"],[time,"time"],[timeEnd,"timeEnd"],[trace,"trace"],[dir,"dir"],[consoleAssert,"assert"]];for(var f=0;f<s.length;f++){var u=s[f];var c=u[0];var p=u[1];if(!i[p]){i[p]=c}}r.exports=i;function log(){}function info(){i.log.apply(i,arguments)}function warn(){i.log.apply(i,arguments)}function error(){i.warn.apply(i,arguments)}function time(r){l[r]=now()}function timeEnd(r){var e=l[r];if(!e){throw new Error("No such label: "+r)}delete l[r];var n=now()-e;i.log(r+": "+n+"ms")}function trace(){var r=new Error;r.name="Trace";r.message=o.format.apply(null,arguments);i.error(r.stack)}function dir(r){i.log(o.inspect(r)+"\n")}function consoleAssert(r){if(!r){var e=a.call(arguments,1);t.ok(false,o.format.apply(null,e))}}},357:r=>{"use strict";r.exports=require("assert")},669:r=>{"use strict";r.exports=require("util")}};var e={};function __nccwpck_require__(n){if(e[n]){return e[n].exports}var o=e[n]={exports:{}};var t=true;try{r[n](o,o.exports,__nccwpck_require__);t=false}finally{if(t)delete e[n]}return o.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(29)})();
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
module.exports=(()=>{"use strict";var r={242:function(r,e,t){r.exports=function(){var r=t(614);var e={};e.createDomain=e.create=function(){var e=new r.EventEmitter;function emitError(r){e.emit("error",r)}e.add=function(r){r.on("error",emitError)};e.remove=function(r){r.removeListener("error",emitError)};e.bind=function(r){return function(){var e=Array.prototype.slice.call(arguments);try{r.apply(null,e)}catch(r){emitError(r)}}};e.intercept=function(r){return function(e){if(e){emitError(e)}else{var t=Array.prototype.slice.call(arguments,1);try{r.apply(null,t)}catch(e){emitError(e)}}}};e.run=function(r){try{r()}catch(r){emitError(r)}return this};e.dispose=function(){this.removeAllListeners();return this};e.enter=e.exit=function(){return this};return e};return e}.call(this)},614:r=>{r.exports=require("events")}};var e={};function __nccwpck_require__(t){if(e[t]){return e[t].exports}var n=e[t]={exports:{}};var i=true;try{r[t].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete e[t]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(242)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{var r={591:(r,e,t)=>{var o=t(605);var a=t(835);var i=r.exports;for(var s in o){if(o.hasOwnProperty(s))i[s]=o[s]}i.request=function(r,e){r=validateParams(r);return o.request.call(this,r,e)};i.get=function(r,e){r=validateParams(r);return o.get.call(this,r,e)};function validateParams(r){if(typeof r==="string"){r=a.parse(r)}if(!r.protocol){r.protocol="https:"}if(r.protocol!=="https:"){throw new Error('Protocol "'+r.protocol+'" not supported. Expected "https:"')}return r}},605:r=>{"use strict";r.exports=require("http")},835:r=>{"use strict";r.exports=require("url")}};var e={};function __nccwpck_require__(t){if(e[t]){return e[t].exports}var o=e[t]={exports:{}};var a=true;try{r[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete e[t]}return o.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(591)})();
\ No newline at end of file
module.exports=(()=>{var r={478:(r,e)=>{function normalizeArray(r,e){var n=0;for(var i=r.length-1;i>=0;i--){var f=r[i];if(f==="."){r.splice(i,1)}else if(f===".."){r.splice(i,1);n++}else if(n){r.splice(i,1);n--}}if(e){for(;n--;n){r.unshift("..")}}return r}e.resolve=function(){var r="",e=false;for(var n=arguments.length-1;n>=-1&&!e;n--){var i=n>=0?arguments[n]:process.cwd();if(typeof i!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!i){continue}r=i+"/"+r;e=i.charAt(0)==="/"}r=normalizeArray(filter(r.split("/"),function(r){return!!r}),!e).join("/");return(e?"/":"")+r||"."};e.normalize=function(r){var i=e.isAbsolute(r),f=n(r,-1)==="/";r=normalizeArray(filter(r.split("/"),function(r){return!!r}),!i).join("/");if(!r&&!i){r="."}if(r&&f){r+="/"}return(i?"/":"")+r};e.isAbsolute=function(r){return r.charAt(0)==="/"};e.join=function(){var r=Array.prototype.slice.call(arguments,0);return e.normalize(filter(r,function(r,e){if(typeof r!=="string"){throw new TypeError("Arguments to path.join must be strings")}return r}).join("/"))};e.relative=function(r,n){r=e.resolve(r).substr(1);n=e.resolve(n).substr(1);function trim(r){var e=0;for(;e<r.length;e++){if(r[e]!=="")break}var n=r.length-1;for(;n>=0;n--){if(r[n]!=="")break}if(e>n)return[];return r.slice(e,n-e+1)}var i=trim(r.split("/"));var f=trim(n.split("/"));var t=Math.min(i.length,f.length);var u=t;for(var l=0;l<t;l++){if(i[l]!==f[l]){u=l;break}}var a=[];for(var l=u;l<i.length;l++){a.push("..")}a=a.concat(f.slice(u));return a.join("/")};e.sep="/";e.delimiter=":";e.dirname=function(r){if(typeof r!=="string")r=r+"";if(r.length===0)return".";var e=r.charCodeAt(0);var n=e===47;var i=-1;var f=true;for(var t=r.length-1;t>=1;--t){e=r.charCodeAt(t);if(e===47){if(!f){i=t;break}}else{f=false}}if(i===-1)return n?"/":".";if(n&&i===1){return"/"}return r.slice(0,i)};function basename(r){if(typeof r!=="string")r=r+"";var e=0;var n=-1;var i=true;var f;for(f=r.length-1;f>=0;--f){if(r.charCodeAt(f)===47){if(!i){e=f+1;break}}else if(n===-1){i=false;n=f+1}}if(n===-1)return"";return r.slice(e,n)}e.basename=function(r,e){var n=basename(r);if(e&&n.substr(-1*e.length)===e){n=n.substr(0,n.length-e.length)}return n};e.extname=function(r){if(typeof r!=="string")r=r+"";var e=-1;var n=0;var i=-1;var f=true;var t=0;for(var u=r.length-1;u>=0;--u){var l=r.charCodeAt(u);if(l===47){if(!f){n=u+1;break}continue}if(i===-1){f=false;i=u+1}if(l===46){if(e===-1)e=u;else if(t!==1)t=1}else if(e!==-1){t=-1}}if(e===-1||i===-1||t===0||t===1&&e===i-1&&e===n+1){return""}return r.slice(e,i)};function filter(r,e){if(r.filter)return r.filter(e);var n=[];for(var i=0;i<r.length;i++){if(e(r[i],i,r))n.push(r[i])}return n}var n=true?function(r,e,n){return r.substr(e,n)}:0}};var e={};function __nccwpck_require__(n){if(e[n]){return e[n].exports}var i=e[n]={exports:{}};var f=true;try{r[n](i,i.exports,__nccwpck_require__);f=false}finally{if(f)delete e[n]}return i.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(478)})();
\ No newline at end of file
module.exports=(()=>{"use strict";var e={402:e=>{function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e.exports=function(e,n,t,o){n=n||"&";t=t||"=";var a={};if(typeof e!=="string"||e.length===0){return a}var u=/\+/g;e=e.split(n);var p=1e3;if(o&&typeof o.maxKeys==="number"){p=o.maxKeys}var c=e.length;if(p>0&&c>p){c=p}for(var f=0;f<c;++f){var i=e[f].replace(u,"%20"),s=i.indexOf(t),l,y,_,m;if(s>=0){l=i.substr(0,s);y=i.substr(s+1)}else{l=i;y=""}_=decodeURIComponent(l);m=decodeURIComponent(y);if(!hasOwnProperty(a,_)){a[_]=m}else if(r(a[_])){a[_].push(m)}else{a[_]=[a[_],m]}}return a};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},499:e=>{var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,u){o=o||"&";a=a||"=";if(e===null){e=undefined}if(typeof e==="object"){return map(t(e),function(t){var u=encodeURIComponent(r(t))+a;if(n(e[t])){return map(e[t],function(e){return u+encodeURIComponent(r(e))}).join(o)}else{return u+encodeURIComponent(r(e[t]))}}).join(o)}if(!u)return"";return encodeURIComponent(r(u))+a+encodeURIComponent(r(e))};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function map(e,r){if(e.map)return e.map(r);var n=[];for(var t=0;t<e.length;t++){n.push(r(e[t],t))}return n}var t=Object.keys||function(e){var r=[];for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r.push(n)}return r}},83:(e,r,n)=>{r.decode=r.parse=n(402);r.encode=r.stringify=n(499)}};var r={};function __nccwpck_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var o=true;try{e[n](t,t.exports,__nccwpck_require__);o=false}finally{if(o)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(83)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{var e={868:function(e,t,n){var a=typeof global!=="undefined"&&global||typeof self!=="undefined"&&self||window;var i=Function.prototype.apply;t.setTimeout=function(){return new Timeout(i.call(setTimeout,a,arguments),clearTimeout)};t.setInterval=function(){return new Timeout(i.call(setInterval,a,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(e){if(e){e.close()}};function Timeout(e,t){this._id=e;this._clearFn=t}Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(a,this._id)};t.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};t.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;if(t>=0){e._idleTimeoutId=setTimeout(function onTimeout(){if(e._onTimeout)e._onTimeout()},t)}};n(617);t.setImmediate=typeof self!=="undefined"&&self.setImmediate||typeof global!=="undefined"&&global.setImmediate||this&&this.setImmediate;t.clearImmediate=typeof self!=="undefined"&&self.clearImmediate||typeof global!=="undefined"&&global.clearImmediate||this&&this.clearImmediate},617:function(){(function(e,t){"use strict";if(e.setImmediate){return}var n=1;var a={};var i=false;var o=e.document;var r;function setImmediate(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var i=0;i<t.length;i++){t[i]=arguments[i+1]}var o={callback:e,args:t};a[n]=o;r(n);return n++}function clearImmediate(e){delete a[e]}function run(e){var n=e.callback;var a=e.args;switch(a.length){case 0:n();break;case 1:n(a[0]);break;case 2:n(a[0],a[1]);break;case 3:n(a[0],a[1],a[2]);break;default:n.apply(t,a);break}}function runIfPresent(e){if(i){setTimeout(runIfPresent,0,e)}else{var t=a[e];if(t){i=true;try{run(t)}finally{clearImmediate(e);i=false}}}}function installNextTickImplementation(){r=function(e){process.nextTick(function(){runIfPresent(e)})}}function canUsePostMessage(){if(e.postMessage&&!e.importScripts){var t=true;var n=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=n;return t}}function installPostMessageImplementation(){var t="setImmediate$"+Math.random()+"$";var n=function(n){if(n.source===e&&typeof n.data==="string"&&n.data.indexOf(t)===0){runIfPresent(+n.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",n,false)}else{e.attachEvent("onmessage",n)}r=function(n){e.postMessage(t+n,"*")}}function installMessageChannelImplementation(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;runIfPresent(t)};r=function(t){e.port2.postMessage(t)}}function installReadyStateChangeImplementation(){var e=o.documentElement;r=function(t){var n=o.createElement("script");n.onreadystatechange=function(){runIfPresent(t);n.onreadystatechange=null;e.removeChild(n);n=null};e.appendChild(n)}}function installSetTimeoutImplementation(){r=function(e){setTimeout(runIfPresent,0,e)}}var s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e;if({}.toString.call(e.process)==="[object process]"){installNextTickImplementation()}else if(canUsePostMessage()){installPostMessageImplementation()}else if(e.MessageChannel){installMessageChannelImplementation()}else if(o&&"onreadystatechange"in o.createElement("script")){installReadyStateChangeImplementation()}else{installSetTimeoutImplementation()}s.setImmediate=setImmediate;s.clearImmediate=clearImmediate})(typeof self==="undefined"?typeof global==="undefined"?this:global:self)}};var t={};function __nccwpck_require__(n){if(t[n]){return t[n].exports}var a=t[n]={exports:{}};var i=true;try{e[n].call(a.exports,a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return a.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(868)})();
\ No newline at end of file
{"name":"node-libs-browser","main":"index.js","author":"Tobias Koppers @sokra","license":"MIT"}
This diff is collapsed.
module.exports=(()=>{var r={116:function(r,i,n){r=n.nmd(r);(function(n){var e=true&&i&&!i.nodeType&&i;var o=true&&r&&!r.nodeType&&r;var t=typeof global=="object"&&global;if(t.global===t||t.window===t||t.self===t){n=t}var f,a=2147483647,c=36,s=1,d=26,l=38,h=700,_=72,w=128,p="-",v=/^xn--/,b=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=c-s,C=Math.floor,I=String.fromCharCode,A;function error(r){throw new RangeError(u[r])}function map(r,i){var n=r.length;var e=[];while(n--){e[n]=i(r[n])}return e}function mapDomain(r,i){var n=r.split("@");var e="";if(n.length>1){e=n[0]+"@";r=n[1]}r=r.replace(g,".");var o=r.split(".");var t=map(o,i).join(".");return e+t}function ucs2decode(r){var i=[],n=0,e=r.length,o,t;while(n<e){o=r.charCodeAt(n++);if(o>=55296&&o<=56319&&n<e){t=r.charCodeAt(n++);if((t&64512)==56320){i.push(((o&1023)<<10)+(t&1023)+65536)}else{i.push(o);n--}}else{i.push(o)}}return i}function ucs2encode(r){return map(r,function(r){var i="";if(r>65535){r-=65536;i+=I(r>>>10&1023|55296);r=56320|r&1023}i+=I(r);return i}).join("")}function basicToDigit(r){if(r-48<10){return r-22}if(r-65<26){return r-65}if(r-97<26){return r-97}return c}function digitToBasic(r,i){return r+22+75*(r<26)-((i!=0)<<5)}function adapt(r,i,n){var e=0;r=n?C(r/h):r>>1;r+=C(r/i);for(;r>m*d>>1;e+=c){r=C(r/m)}return C(e+(m+1)*r/(r+l))}function decode(r){var i=[],n=r.length,e,o=0,t=w,f=_,l,h,v,b,g,u,m,I,A;l=r.lastIndexOf(p);if(l<0){l=0}for(h=0;h<l;++h){if(r.charCodeAt(h)>=128){error("not-basic")}i.push(r.charCodeAt(h))}for(v=l>0?l+1:0;v<n;){for(b=o,g=1,u=c;;u+=c){if(v>=n){error("invalid-input")}m=basicToDigit(r.charCodeAt(v++));if(m>=c||m>C((a-o)/g)){error("overflow")}o+=m*g;I=u<=f?s:u>=f+d?d:u-f;if(m<I){break}A=c-I;if(g>C(a/A)){error("overflow")}g*=A}e=i.length+1;f=adapt(o-b,e,b==0);if(C(o/e)>a-t){error("overflow")}t+=C(o/e);o%=e;i.splice(o++,0,t)}return ucs2encode(i)}function encode(r){var i,n,e,o,t,f,l,h,v,b,g,u=[],m,A,T,j;r=ucs2decode(r);m=r.length;i=w;n=0;t=_;for(f=0;f<m;++f){g=r[f];if(g<128){u.push(I(g))}}e=o=u.length;if(o){u.push(p)}while(e<m){for(l=a,f=0;f<m;++f){g=r[f];if(g>=i&&g<l){l=g}}A=e+1;if(l-i>C((a-n)/A)){error("overflow")}n+=(l-i)*A;i=l;for(f=0;f<m;++f){g=r[f];if(g<i&&++n>a){error("overflow")}if(g==i){for(h=n,v=c;;v+=c){b=v<=t?s:v>=t+d?d:v-t;if(h<b){break}j=h-b;T=c-b;u.push(I(digitToBasic(b+j%T,0)));h=C(j/T)}u.push(I(digitToBasic(h,0)));t=adapt(n,A,e==o);n=0;++e}}++n;++i}return u.join("")}function toUnicode(r){return mapDomain(r,function(r){return v.test(r)?decode(r.slice(4).toLowerCase()):r})}function toASCII(r){return mapDomain(r,function(r){return b.test(r)?"xn--"+encode(r):r})}f={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define("punycode",function(){return f})}else if(e&&o){if(r.exports==e){o.exports=f}else{for(A in f){f.hasOwnProperty(A)&&(e[A]=f[A])}}}else{n.punycode=f}})(this)}};var i={};function __nccwpck_require__(n){if(i[n]){return i[n].exports}var e=i[n]={id:n,loaded:false,exports:{}};var o=true;try{r[n].call(e.exports,e,e.exports,__nccwpck_require__);o=false}finally{if(o)delete i[n]}e.loaded=true;return e.exports}(()=>{__nccwpck_require__.nmd=(r=>{r.paths=[];if(!r.children)r.children=[];return r})})();__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(116)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{var t={615:(t,e,r)=>{var s=r(293);var n=s.Buffer;function copyProps(t,e){for(var r in t){e[r]=t[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){t.exports=s}else{copyProps(s,e);e.Buffer=SafeBuffer}function SafeBuffer(t,e,r){return n(t,e,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(t,e,r){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return n(t,e,r)};SafeBuffer.alloc=function(t,e,r){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var s=n(t);if(e!==undefined){if(typeof r==="string"){s.fill(e,r)}else{s.fill(e)}}else{s.fill(0)}return s};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return n(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return s.SlowBuffer(t)}},937:(t,e,r)=>{"use strict";var s=r(615).Buffer;var n=s.isEncoding||function(t){t=""+t;switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(t){if(!t)return"utf8";var e;while(true){switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase();e=true}}}function normalizeEncoding(t){var e=_normalizeEncoding(t);if(typeof e!=="string"&&(s.isEncoding===n||!n(t)))throw new Error("Unknown encoding: "+t);return e||t}e.StringDecoder=StringDecoder;function StringDecoder(t){this.encoding=normalizeEncoding(t);var e;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;e=4;break;case"utf8":this.fillLast=utf8FillLast;e=4;break;case"base64":this.text=base64Text;this.end=base64End;e=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=s.allocUnsafe(e)}StringDecoder.prototype.write=function(t){if(t.length===0)return"";var e;var r;if(this.lastNeed){e=this.fillLast(t);if(e===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<t.length)return e?e+this.text(t,r):this.text(t,r);return e||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(t){if(this.lastNeed<=t.length){t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length);this.lastNeed-=t.length};function utf8CheckByte(t){if(t<=127)return 0;else if(t>>5===6)return 2;else if(t>>4===14)return 3;else if(t>>3===30)return 4;return t>>6===2?-1:-2}function utf8CheckIncomplete(t,e,r){var s=e.length-1;if(s<r)return 0;var n=utf8CheckByte(e[s]);if(n>=0){if(n>0)t.lastNeed=n-1;return n}if(--s<r||n===-2)return 0;n=utf8CheckByte(e[s]);if(n>=0){if(n>0)t.lastNeed=n-2;return n}if(--s<r||n===-2)return 0;n=utf8CheckByte(e[s]);if(n>=0){if(n>0){if(n===2)n=0;else t.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(t,e,r){if((e[0]&192)!==128){t.lastNeed=0;return"�"}if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128){t.lastNeed=1;return"�"}if(t.lastNeed>2&&e.length>2){if((e[2]&192)!==128){t.lastNeed=2;return"�"}}}}function utf8FillLast(t){var e=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,t,e);if(r!==undefined)return r;if(this.lastNeed<=t.length){t.copy(this.lastChar,e,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}t.copy(this.lastChar,e,0,t.length);this.lastNeed-=t.length}function utf8Text(t,e){var r=utf8CheckIncomplete(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var s=t.length-(r-this.lastNeed);t.copy(this.lastChar,0,s);return t.toString("utf8",e,s)}function utf8End(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed)return e+"�";return e}function utf16Text(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=t[t.length-2];this.lastChar[1]=t[t.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=t[t.length-1];return t.toString("utf16le",e,t.length-1)}function utf16End(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function base64Text(t,e){var r=(t.length-e)%3;if(r===0)return t.toString("base64",e);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=t[t.length-1]}else{this.lastChar[0]=t[t.length-2];this.lastChar[1]=t[t.length-1]}return t.toString("base64",e,t.length-r)}function base64End(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed)return e+this.lastChar.toString("base64",0,3-this.lastNeed);return e}function simpleWrite(t){return t.toString(this.encoding)}function simpleEnd(t){return t&&t.length?this.write(t):""}},293:t=>{"use strict";t.exports=require("buffer")}};var e={};function __nccwpck_require__(r){if(e[r]){return e[r].exports}var s=e[r]={exports:{}};var n=true;try{t[r](s,s.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return s.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(937)})();
\ No newline at end of file
This diff is collapsed.
module.exports=(()=>{"use strict";var t={406:(t,s,h)=>{var e=h(213);var o=h(838);s.parse=urlParse;s.resolve=urlResolve;s.resolveObject=urlResolveObject;s.format=urlFormat;s.Url=Url;function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var i=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(f),p=["%","/","?",";","#"].concat(l),u=["/","?","#"],c=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:true,"javascript:":true},O={javascript:true,"javascript:":true},d={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true},j=h(191);function urlParse(t,s,h){if(t&&o.isObject(t)&&t instanceof Url)return t;var e=new Url;e.parse(t,s,h);return e}Url.prototype.parse=function(t,s,h){if(!o.isString(t)){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),a=r!==-1&&r<t.indexOf("#")?"?":"#",f=t.split(a),y=/\\/g;f[0]=f[0].replace(y,"/");t=f.join(a);var x=t;x=x.trim();if(!h&&t.split("#").length===1){var _=n.exec(x);if(_){this.path=x;this.href=x;this.pathname=_[1];if(_[2]){this.search=_[2];if(s){this.query=j.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(s){this.search="";this.query={}}return this}}var g=i.exec(x);if(g){g=g[0];var U=g.toLowerCase();this.protocol=U;x=x.substr(g.length)}if(h||g||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var A=x.substr(0,2)==="//";if(A&&!(g&&O[g])){x=x.substr(2);this.slashes=true}}if(!O[g]&&(A||g&&!d[g])){var q=-1;for(var w=0;w<u.length;w++){var k=x.indexOf(u[w]);if(k!==-1&&(q===-1||k<q))q=k}var C,I;if(q===-1){I=x.lastIndexOf("@")}else{I=x.lastIndexOf("@",q)}if(I!==-1){C=x.slice(0,I);x=x.slice(I+1);this.auth=decodeURIComponent(C)}q=-1;for(var w=0;w<p.length;w++){var k=x.indexOf(p[w]);if(k!==-1&&(q===-1||k<q))q=k}if(q===-1)q=x.length;this.host=x.slice(0,q);x=x.slice(q);this.parseHost();this.hostname=this.hostname||"";var R=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!R){var N=this.hostname.split(/\./);for(var w=0,$=N.length;w<$;w++){var z=N[w];if(!z)continue;if(!z.match(m)){var F="";for(var H=0,L=z.length;H<L;H++){if(z.charCodeAt(H)>127){F+="x"}else{F+=z[H]}}if(!F.match(m)){var Z=N.slice(0,w);var E=N.slice(w+1);var T=z.match(v);if(T){Z.push(T[1]);E.unshift(T[2])}if(E.length){x="/"+E.join(".")+x}this.hostname=Z.join(".");break}}}}if(this.hostname.length>c){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!R){this.hostname=e.toASCII(this.hostname)}var B=this.port?":"+this.port:"";var D=this.hostname||"";this.host=D+B;this.href+=this.host;if(R){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(x[0]!=="/"){x="/"+x}}}if(!b[U]){for(var w=0,$=l.length;w<$;w++){var G=l[w];if(x.indexOf(G)===-1)continue;var J=encodeURIComponent(G);if(J===G){J=escape(G)}x=x.split(G).join(J)}}var K=x.indexOf("#");if(K!==-1){this.hash=x.substr(K);x=x.slice(0,K)}var M=x.indexOf("?");if(M!==-1){this.search=x.substr(M);this.query=x.substr(M+1);if(s){this.query=j.parse(this.query)}x=x.slice(0,M)}else if(s){this.search="";this.query={}}if(x)this.pathname=x;if(d[U]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var B=this.pathname||"";var V=this.search||"";this.path=B+V}this.href=this.format();return this};function urlFormat(t){if(o.isString(t))t=urlParse(t);if(!(t instanceof Url))return Url.prototype.format.call(t);return t.format()}Url.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var s=this.protocol||"",h=this.pathname||"",e=this.hash||"",i=false,r="";if(this.host){i=t+this.host}else if(this.hostname){i=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){i+=":"+this.port}}if(this.query&&o.isObject(this.query)&&Object.keys(this.query).length){r=j.stringify(this.query)}var n=this.search||r&&"?"+r||"";if(s&&s.substr(-1)!==":")s+=":";if(this.slashes||(!s||d[s])&&i!==false){i="//"+(i||"");if(h&&h.charAt(0)!=="/")h="/"+h}else if(!i){i=""}if(e&&e.charAt(0)!=="#")e="#"+e;if(n&&n.charAt(0)!=="?")n="?"+n;h=h.replace(/[?#]/g,function(t){return encodeURIComponent(t)});n=n.replace("#","%23");return s+i+h+n+e};function urlResolve(t,s){return urlParse(t,false,true).resolve(s)}Url.prototype.resolve=function(t){return this.resolveObject(urlParse(t,false,true)).format()};function urlResolveObject(t,s){if(!t)return s;return urlParse(t,false,true).resolveObject(s)}Url.prototype.resolveObject=function(t){if(o.isString(t)){var s=new Url;s.parse(t,false,true);t=s}var h=new Url;var e=Object.keys(this);for(var i=0;i<e.length;i++){var r=e[i];h[r]=this[r]}h.hash=t.hash;if(t.href===""){h.href=h.format();return h}if(t.slashes&&!t.protocol){var n=Object.keys(t);for(var a=0;a<n.length;a++){var f=n[a];if(f!=="protocol")h[f]=t[f]}if(d[h.protocol]&&h.hostname&&!h.pathname){h.path=h.pathname="/"}h.href=h.format();return h}if(t.protocol&&t.protocol!==h.protocol){if(!d[t.protocol]){var l=Object.keys(t);for(var p=0;p<l.length;p++){var u=l[p];h[u]=t[u]}h.href=h.format();return h}h.protocol=t.protocol;if(!t.host&&!O[t.protocol]){var c=(t.pathname||"").split("/");while(c.length&&!(t.host=c.shift()));if(!t.host)t.host="";if(!t.hostname)t.hostname="";if(c[0]!=="")c.unshift("");if(c.length<2)c.unshift("");h.pathname=c.join("/")}else{h.pathname=t.pathname}h.search=t.search;h.query=t.query;h.host=t.host||"";h.auth=t.auth;h.hostname=t.hostname||t.host;h.port=t.port;if(h.pathname||h.search){var m=h.pathname||"";var v=h.search||"";h.path=m+v}h.slashes=h.slashes||t.slashes;h.href=h.format();return h}var b=h.pathname&&h.pathname.charAt(0)==="/",j=t.host||t.pathname&&t.pathname.charAt(0)==="/",y=j||b||h.host&&t.pathname,x=y,_=h.pathname&&h.pathname.split("/")||[],c=t.pathname&&t.pathname.split("/")||[],g=h.protocol&&!d[h.protocol];if(g){h.hostname="";h.port=null;if(h.host){if(_[0]==="")_[0]=h.host;else _.unshift(h.host)}h.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(c[0]==="")c[0]=t.host;else c.unshift(t.host)}t.host=null}y=y&&(c[0]===""||_[0]==="")}if(j){h.host=t.host||t.host===""?t.host:h.host;h.hostname=t.hostname||t.hostname===""?t.hostname:h.hostname;h.search=t.search;h.query=t.query;_=c}else if(c.length){if(!_)_=[];_.pop();_=_.concat(c);h.search=t.search;h.query=t.query}else if(!o.isNullOrUndefined(t.search)){if(g){h.hostname=h.host=_.shift();var U=h.host&&h.host.indexOf("@")>0?h.host.split("@"):false;if(U){h.auth=U.shift();h.host=h.hostname=U.shift()}}h.search=t.search;h.query=t.query;if(!o.isNull(h.pathname)||!o.isNull(h.search)){h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")}h.href=h.format();return h}if(!_.length){h.pathname=null;if(h.search){h.path="/"+h.search}else{h.path=null}h.href=h.format();return h}var A=_.slice(-1)[0];var q=(h.host||t.host||_.length>1)&&(A==="."||A==="..")||A==="";var w=0;for(var k=_.length;k>=0;k--){A=_[k];if(A==="."){_.splice(k,1)}else if(A===".."){_.splice(k,1);w++}else if(w){_.splice(k,1);w--}}if(!y&&!x){for(;w--;w){_.unshift("..")}}if(y&&_[0]!==""&&(!_[0]||_[0].charAt(0)!=="/")){_.unshift("")}if(q&&_.join("/").substr(-1)!=="/"){_.push("")}var C=_[0]===""||_[0]&&_[0].charAt(0)==="/";if(g){h.hostname=h.host=C?"":_.length?_.shift():"";var U=h.host&&h.host.indexOf("@")>0?h.host.split("@"):false;if(U){h.auth=U.shift();h.host=h.hostname=U.shift()}}y=y||h.host&&_.length;if(y&&!C){_.unshift("")}if(!_.length){h.pathname=null;h.path=null}else{h.pathname=_.join("/")}if(!o.isNull(h.pathname)||!o.isNull(h.search)){h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")}h.auth=t.auth||h.auth;h.slashes=h.slashes||t.slashes;h.href=h.format();return h};Url.prototype.parseHost=function(){var t=this.host;var s=r.exec(t);if(s){s=s[0];if(s!==":"){this.port=s.substr(1)}t=t.substr(0,t.length-s.length)}if(t)this.hostname=t}},838:t=>{t.exports={isString:function(t){return typeof t==="string"},isObject:function(t){return typeof t==="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}}},213:t=>{t.exports=require("punycode")},191:t=>{t.exports=require("querystring")}};var s={};function __nccwpck_require__(h){if(s[h]){return s[h].exports}var e=s[h]={exports:{}};var o=true;try{t[h](e,e.exports,__nccwpck_require__);o=false}finally{if(o)delete s[h]}return e.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(406)})();
\ No newline at end of file
module.exports=(()=>{var e={9:(e,r,n)=>{try{var t=n(669);if(typeof t.inherits!=="function")throw"";e.exports=t.inherits}catch(r){e.exports=n(918)}},918:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function inherits(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype;e.prototype=new n;e.prototype.constructor=e}}},698:e=>{e.exports=function isBuffer(e){return e instanceof Buffer}},981:(e,r,n)=>{var t=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(e){var r=Object.keys(e);var n={};for(var t=0;t<r.length;t++){n[r[t]]=Object.getOwnPropertyDescriptor(e,r[t])}return n};var i=/%[sdj%]/g;r.format=function(e){if(!isString(e)){var r=[];for(var n=0;n<arguments.length;n++){r.push(inspect(arguments[n]))}return r.join(" ")}var n=1;var t=arguments;var o=t.length;var f=String(e).replace(i,function(e){if(e==="%%")return"%";if(n>=o)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(e){return"[Circular]"}default:return e}});for(var a=t[n];n<o;a=t[++n]){if(isNull(a)||!isObject(a)){f+=" "+a}else{f+=" "+inspect(a)}}return f};r.deprecate=function(e,n){if(typeof process!=="undefined"&&process.noDeprecation===true){return e}if(typeof process==="undefined"){return function(){return r.deprecate(e,n).apply(this,arguments)}}var t=false;function deprecated(){if(!t){if(process.throwDeprecation){throw new Error(n)}else if(process.traceDeprecation){console.trace(n)}else{console.error(n)}t=true}return e.apply(this,arguments)}return deprecated};var o={};var f;r.debuglog=function(e){if(isUndefined(f))f=process.env.NODE_DEBUG||"";e=e.toUpperCase();if(!o[e]){if(new RegExp("\\b"+e+"\\b","i").test(f)){var n=process.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else{o[e]=function(){}}}return o[e]};function inspect(e,n){var t={seen:[],stylize:stylizeNoColor};if(arguments.length>=3)t.depth=arguments[2];if(arguments.length>=4)t.colors=arguments[3];if(isBoolean(n)){t.showHidden=n}else if(n){r._extend(t,n)}if(isUndefined(t.showHidden))t.showHidden=false;if(isUndefined(t.depth))t.depth=2;if(isUndefined(t.colors))t.colors=false;if(isUndefined(t.customInspect))t.customInspect=true;if(t.colors)t.stylize=stylizeWithColor;return formatValue(t,e,t.depth)}r.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(e,r){var n=inspect.styles[r];if(n){return"["+inspect.colors[n][0]+"m"+e+"["+inspect.colors[n][1]+"m"}else{return e}}function stylizeNoColor(e,r){return e}function arrayToHash(e){var r={};e.forEach(function(e,n){r[e]=true});return r}function formatValue(e,n,t){if(e.customInspect&&n&&isFunction(n.inspect)&&n.inspect!==r.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(t,e);if(!isString(i)){i=formatValue(e,i,t)}return i}var o=formatPrimitive(e,n);if(o){return o}var f=Object.keys(n);var a=arrayToHash(f);if(e.showHidden){f=Object.getOwnPropertyNames(n)}if(isError(n)&&(f.indexOf("message")>=0||f.indexOf("description")>=0)){return formatError(n)}if(f.length===0){if(isFunction(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(isRegExp(n)){return e.stylize(RegExp.prototype.toString.call(n),"regexp")}if(isDate(n)){return e.stylize(Date.prototype.toString.call(n),"date")}if(isError(n)){return formatError(n)}}var l="",c=false,s=["{","}"];if(isArray(n)){c=true;s=["[","]"]}if(isFunction(n)){var p=n.name?": "+n.name:"";l=" [Function"+p+"]"}if(isRegExp(n)){l=" "+RegExp.prototype.toString.call(n)}if(isDate(n)){l=" "+Date.prototype.toUTCString.call(n)}if(isError(n)){l=" "+formatError(n)}if(f.length===0&&(!c||n.length==0)){return s[0]+l+s[1]}if(t<0){if(isRegExp(n)){return e.stylize(RegExp.prototype.toString.call(n),"regexp")}else{return e.stylize("[Object]","special")}}e.seen.push(n);var y;if(c){y=formatArray(e,n,t,a,f)}else{y=f.map(function(r){return formatProperty(e,n,t,a,r,c)})}e.seen.pop();return reduceToSingleString(y,l,s)}function formatPrimitive(e,r){if(isUndefined(r))return e.stylize("undefined","undefined");if(isString(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(isNumber(r))return e.stylize(""+r,"number");if(isBoolean(r))return e.stylize(""+r,"boolean");if(isNull(r))return e.stylize("null","null")}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,r,n,t,i){var o=[];for(var f=0,a=r.length;f<a;++f){if(hasOwnProperty(r,String(f))){o.push(formatProperty(e,r,n,t,String(f),true))}else{o.push("")}}i.forEach(function(i){if(!i.match(/^\d+$/)){o.push(formatProperty(e,r,n,t,i,true))}});return o}function formatProperty(e,r,n,t,i,o){var f,a,u;u=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]};if(u.get){if(u.set){a=e.stylize("[Getter/Setter]","special")}else{a=e.stylize("[Getter]","special")}}else{if(u.set){a=e.stylize("[Setter]","special")}}if(!hasOwnProperty(t,i)){f="["+i+"]"}if(!a){if(e.seen.indexOf(u.value)<0){if(isNull(n)){a=formatValue(e,u.value,null)}else{a=formatValue(e,u.value,n-1)}if(a.indexOf("\n")>-1){if(o){a=a.split("\n").map(function(e){return" "+e}).join("\n").substr(2)}else{a="\n"+a.split("\n").map(function(e){return" "+e}).join("\n")}}}else{a=e.stylize("[Circular]","special")}}if(isUndefined(f)){if(o&&i.match(/^\d+$/)){return a}f=JSON.stringify(""+i);if(f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){f=f.substr(1,f.length-2);f=e.stylize(f,"name")}else{f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");f=e.stylize(f,"string")}}return f+": "+a}function reduceToSingleString(e,r,n){var t=0;var i=e.reduce(function(e,r){t++;if(r.indexOf("\n")>=0)t++;return e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60){return n[0]+(r===""?"":r+"\n ")+" "+e.join(",\n ")+" "+n[1]}return n[0]+r+" "+e.join(", ")+" "+n[1]}function isArray(e){return Array.isArray(e)}r.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}r.isBoolean=isBoolean;function isNull(e){return e===null}r.isNull=isNull;function isNullOrUndefined(e){return e==null}r.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}r.isNumber=isNumber;function isString(e){return typeof e==="string"}r.isString=isString;function isSymbol(e){return typeof e==="symbol"}r.isSymbol=isSymbol;function isUndefined(e){return e===void 0}r.isUndefined=isUndefined;function isRegExp(e){return isObject(e)&&objectToString(e)==="[object RegExp]"}r.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}r.isObject=isObject;function isDate(e){return isObject(e)&&objectToString(e)==="[object Date]"}r.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}r.isError=isError;function isFunction(e){return typeof e==="function"}r.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}r.isPrimitive=isPrimitive;r.isBuffer=n(698);function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}var a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var e=new Date;var r=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),a[e.getMonth()],r].join(" ")}r.log=function(){console.log("%s - %s",timestamp(),r.format.apply(r,arguments))};r.inherits=n(9);r._extend=function(e,r){if(!r||!isObject(r))return e;var n=Object.keys(r);var t=n.length;while(t--){e[n[t]]=r[n[t]]}return e};function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var u=typeof Symbol!=="undefined"?Symbol("util.promisify.custom"):undefined;r.promisify=function promisify(e){if(typeof e!=="function")throw new TypeError('The "original" argument must be of type Function');if(u&&e[u]){var r=e[u];if(typeof r!=="function"){throw new TypeError('The "util.promisify.custom" argument must be of type Function')}Object.defineProperty(r,u,{value:r,enumerable:false,writable:false,configurable:true});return r}function r(){var r,n;var t=new Promise(function(e,t){r=e;n=t});var i=[];for(var o=0;o<arguments.length;o++){i.push(arguments[o])}i.push(function(e,t){if(e){n(e)}else{r(t)}});try{e.apply(this,i)}catch(e){n(e)}return t}Object.setPrototypeOf(r,Object.getPrototypeOf(e));if(u)Object.defineProperty(r,u,{value:r,enumerable:false,writable:false,configurable:true});return Object.defineProperties(r,t(e))};r.promisify.custom=u;function callbackifyOnRejected(e,r){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e;e=n}return r(e)}function callbackify(e){if(typeof e!=="function"){throw new TypeError('The "original" argument must be of type Function')}function callbackified(){var r=[];for(var n=0;n<arguments.length;n++){r.push(arguments[n])}var t=r.pop();if(typeof t!=="function"){throw new TypeError("The last argument must be of type Function")}var i=this;var o=function(){return t.apply(i,arguments)};e.apply(this,r).then(function(e){process.nextTick(o,null,e)},function(e){process.nextTick(callbackifyOnRejected,e,o)})}Object.setPrototypeOf(callbackified,Object.getPrototypeOf(e));Object.defineProperties(callbackified,t(e));return callbackified}r.callbackify=callbackify},669:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var i=true;try{e[n](t,t.exports,__nccwpck_require__);i=false}finally{if(i)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(981)})();
\ No newline at end of file
This diff is collapsed.
...@@ -89,10 +89,8 @@ ...@@ -89,10 +89,8 @@
"https-browserify": "1.0.0", "https-browserify": "1.0.0",
"image-size": "1.0.0", "image-size": "1.0.0",
"jest-worker": "27.0.0-next.5", "jest-worker": "27.0.0-next.5",
"native-url": "0.3.4",
"node-fetch": "2.6.1", "node-fetch": "2.6.1",
"node-html-parser": "1.4.9", "node-html-parser": "1.4.9",
"node-libs-browser": "^2.2.1",
"os-browserify": "0.3.0", "os-browserify": "0.3.0",
"p-limit": "3.1.0", "p-limit": "3.1.0",
"path-browserify": "1.0.1", "path-browserify": "1.0.1",
...@@ -221,7 +219,9 @@ ...@@ -221,7 +219,9 @@
"lru-cache": "5.1.1", "lru-cache": "5.1.1",
"mini-css-extract-plugin": "1.5.0", "mini-css-extract-plugin": "1.5.0",
"nanoid": "3.1.20", "nanoid": "3.1.20",
"native-url": "0.3.4",
"neo-async": "2.6.1", "neo-async": "2.6.1",
"node-libs-browser": "2.2.1",
"ora": "4.0.4", "ora": "4.0.4",
"path-to-regexp": "6.1.0", "path-to-regexp": "6.1.0",
"postcss-flexbugs-fixes": "5.0.2", "postcss-flexbugs-fixes": "5.0.2",
......
...@@ -34,7 +34,7 @@ const externals = { ...@@ -34,7 +34,7 @@ const externals = {
'cssnano-simple': 'next/dist/build/cssnano-simple', 'cssnano-simple': 'next/dist/build/cssnano-simple',
// webpack // webpack
'node-libs-browser': 'node-libs-browser', 'node-libs-browser': 'next/dist/compiled/node-libs-browser',
// sass-loader // sass-loader
// (also responsible for these dependencies in package.json) // (also responsible for these dependencies in package.json)
...@@ -391,6 +391,14 @@ export async function ncc_nanoid(task, opts) { ...@@ -391,6 +391,14 @@ export async function ncc_nanoid(task, opts) {
.target('compiled/nanoid') .target('compiled/nanoid')
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
externals['native-url'] = 'next/dist/compiled/native-url'
export async function ncc_native_url(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('native-url')))
.ncc({ packageName: 'native-url', externals })
.target('compiled/native-url')
}
// eslint-disable-next-line camelcase
externals['neo-async'] = 'next/dist/compiled/neo-async' externals['neo-async'] = 'next/dist/compiled/neo-async'
export async function ncc_neo_async(task, opts) { export async function ncc_neo_async(task, opts) {
await task await task
...@@ -399,6 +407,16 @@ export async function ncc_neo_async(task, opts) { ...@@ -399,6 +407,16 @@ export async function ncc_neo_async(task, opts) {
.target('compiled/neo-async') .target('compiled/neo-async')
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
externals['node-libs-browser'] = 'next/dist/compiled/node-libs-browser'
export async function ncc_node_libs_browser(task, opts) {
await task
.source(
opts.src || relative(__dirname, require.resolve('node-libs-browser'))
)
.ncc({ packageName: 'node-libs-browser', externals })
.target('compiled/node-libs-browser')
}
// eslint-disable-next-line camelcase
externals['ora'] = 'next/dist/compiled/ora' externals['ora'] = 'next/dist/compiled/ora'
export async function ncc_ora(task, opts) { export async function ncc_ora(task, opts) {
await task await task
...@@ -850,7 +868,9 @@ export async function ncc(task, opts) { ...@@ -850,7 +868,9 @@ export async function ncc(task, opts) {
'ncc_lodash_curry', 'ncc_lodash_curry',
'ncc_lru_cache', 'ncc_lru_cache',
'ncc_nanoid', 'ncc_nanoid',
'ncc_native_url',
'ncc_neo_async', 'ncc_neo_async',
'ncc_node_libs_browser',
'ncc_ora', 'ncc_ora',
'ncc_postcss_safe_parser', 'ncc_postcss_safe_parser',
'ncc_postcss_flexbugs_fixes', 'ncc_postcss_flexbugs_fixes',
......
...@@ -13926,7 +13926,7 @@ node-int64@^0.4.0: ...@@ -13926,7 +13926,7 @@ node-int64@^0.4.0:
version "0.4.0" version "0.4.0"
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
node-libs-browser@^2.2.1: node-libs-browser@2.2.1, node-libs-browser@^2.2.1:
version "2.2.1" version "2.2.1"
resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425" resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425"
integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q== integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment