@nocobase/plugin-verification 2.0.0-beta.9 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"name":"@alicloud/openapi-client","version":"0.4.12","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"","license":"ISC","devDependencies":{"@types/mocha":"^5.2.7","mocha":"^6.2.0","@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5","@alicloud/gateway-pop":"0.0.6"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.9","@alicloud/credentials":"^2.3.1","@alicloud/openapi-util":"^0.3.2","@alicloud/gateway-spi":"^0.0.8","@alicloud/tea-xml":"0.0.3"},"files":["dist","src"],"repository":"git@github.com:aliyun/darabonba-openapi.git","_lastModified":"2026-01-12T07:21:44.109Z"}
1
+ {"name":"@alicloud/openapi-client","version":"0.4.12","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"","license":"ISC","devDependencies":{"@types/mocha":"^5.2.7","mocha":"^6.2.0","@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5","@alicloud/gateway-pop":"0.0.6"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.9","@alicloud/credentials":"^2.3.1","@alicloud/openapi-util":"^0.3.2","@alicloud/gateway-spi":"^0.0.8","@alicloud/tea-xml":"0.0.3"},"files":["dist","src"],"repository":"git@github.com:aliyun/darabonba-openapi.git","_lastModified":"2026-02-16T06:16:22.233Z"}
@@ -1 +1 @@
1
- (function(){var e={165:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();var o=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))o(t,e,r);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var u=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(s=i[0]&2?o["return"]:i[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,i[1])).done)return s;if(o=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;o=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){r.label=i[1];break}if(i[0]===6&&r.label<s[1]){r.label=s[1];s=i;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(i);break}if(s[2])r.ops.pop();r.trys.pop();continue}i=t.call(e,r)}catch(e){i=[6,e];o=0}finally{n=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.isRetryable=t.retryError=t.newUnretryableError=t.getBackoffTime=t.allowRetry=t.sleep=t.cast=t.Model=t.toMap=t.newError=t.doAction=t.Response=t.Request=t.BytesReadable=void 0;var c=i(r(477));var f=r(685);var l=r(687);var p=r(781);var d=i(r(74));var m=r(310);var y=function(e){n(BytesReadable,e);function BytesReadable(t){var r=e.call(this)||this;if(typeof t==="string"){r.value=Buffer.from(t)}else if(Buffer.isBuffer(t)){r.value=t}return r}BytesReadable.prototype._read=function(){this.push(this.value);this.push(null)};return BytesReadable}(p.Readable);t.BytesReadable=y;var h=function(){function Request(){this.headers={};this.query={}}return Request}();t.Request=h;var g=function(){function Response(e){this.statusCode=e.statusCode;this.statusMessage=e.statusMessage;this.headers=this.convertHeaders(e.headers);this.body=e}Response.prototype.convertHeaders=function(e){var t={};var r=Object.keys(e);for(var n=0;n<r.length;n++){var o=r[n];t[o]=e[o]}return t};Response.prototype.readBytes=function(){return a(this,void 0,void 0,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,d.read(this.body,"")];case 1:e=t.sent();return[2,e]}}))}))};return Response}();t.Response=g;function buildURL(e){var t=e.protocol+"://"+e.headers["host"];if(e.port){t+=":"+e.port}t+=""+e.pathname;var r=m.parse(t);if(e.query&&Object.keys(e.query).length>0){if(r.query){t+="&"+c.stringify(e.query)}else{t+="?"+c.stringify(e.query)}}return t}function isModelClass(e){if(!e){return false}return typeof e.types==="function"&&typeof e.names==="function"}function doAction(e,t){if(t===void 0){t=null}return a(this,void 0,void 0,(function(){var r,n,o,s,i;return u(this,(function(a){switch(a.label){case 0:r=buildURL(e);n=(e.method||"GET").toUpperCase();o={method:n,headers:e.headers};if(n!=="GET"&&n!=="HEAD"){o.data=e.body}if(t){if(typeof t.timeout!=="undefined"){o.timeout=Number(t.timeout)}if(typeof t.readTimeout!=="undefined"){o.readTimeout=Number(t.readTimeout)}if(typeof t.connectTimeout!=="undefined"){o.connectTimeout=Number(t.connectTimeout)}if(typeof t.ignoreSSL!=="undefined"){o.rejectUnauthorized=!t.ignoreSSL}if(typeof t.key!=="undefined"){o.key=String(t.key)}if(typeof t.cert!=="undefined"){o.cert=String(t.cert)}if(typeof t.ca!=="undefined"){o.ca=String(t.ca)}s={keepAlive:true};if(typeof t.keepAlive!=="undefined"){s.keepAlive=t.keepAlive;if(e.protocol&&e.protocol.toLowerCase()==="https"){o.agent=new l.Agent(s)}else{o.agent=new f.Agent(s)}}}return[4,d.request(r,o)];case 1:i=a.sent();return[2,new g(i)]}}))}))}t.doAction=doAction;var b=function(e){n(ResponseError,e);function ResponseError(t){var r=e.call(this,t.code+": "+t.message)||this;r.code=t.code;r.data=t.data;r.description=t.description;r.accessDeniedDetail=t.accessDeniedDetail;if(r.data&&r.data.statusCode){r.statusCode=Number(r.data.statusCode)}return r}return ResponseError}(Error);function newError(e){return new b(e)}t.newError=newError;function getValue(e,t){if(typeof e==="string"){return t}if(e.type==="array"){if(!Array.isArray(t)){throw new Error("expect: array, actual: "+typeof t)}return t.map((function(t){return getValue(e.itemType,t)}))}if(typeof e==="function"){if(isModelClass(e)){return new e(t)}return t}return t}function toMap(e){if(e===void 0){e=undefined}if(typeof e==="undefined"||e==null){return null}if(e instanceof v){return e.toMap()}if(typeof e.toMap==="function"){return e.toMap()}if(Array.isArray(e)){return e.map((function(e){return toMap(e)}))}return e}t.toMap=toMap;var v=function(){function Model(e){var t=this;if(e==null){return}var r=this.constructor;var n=r.names();var o=r.types();Object.keys(n).forEach((function(r){var n=e[r];if(n===undefined||n===null){return}var s=o[r];t[r]=getValue(s,n)}))}Model.prototype.toMap=function(){var e=this;var t={};var r=this.constructor;var n=r.names();Object.keys(n).forEach((function(r){var o=n[r];var s=e[r];if(typeof s==="undefined"||s==null){return}t[o]=toMap(s)}));return t};return Model}();t.Model=v;function cast(e,t){if(!e){throw new Error("can not cast to Map")}if(typeof e!=="object"){throw new Error("can not cast to Map")}var r=e;var n=t.constructor;var o=n.names();var s=n.types();Object.keys(o).forEach((function(e){var n=o[e];var i=r[n];var a=s[e];if(typeof i==="undefined"||i==null){return}if(typeof a==="string"){if(a==="Readable"||a==="map"||a==="Buffer"||a==="any"||typeof i===a){t[e]=i;return}if(a==="string"&&(typeof i==="number"||typeof i==="boolean")){t[e]=i.toString();return}if(a==="boolean"){if(i===1||i===0){t[e]=!!i;return}if(i==="true"||i==="false"){t[e]=i==="true";return}}if(a==="number"&&typeof i==="string"){if(i.match(/^\d*$/)){t[e]=parseInt(i);return}if(i.match(/^[\.\d]*$/)){t[e]=parseFloat(i);return}}throw new Error("type of "+e+" is mismatch, expect "+a+", but "+typeof i)}else if(a.type==="map"){if(!(i instanceof Object)){throw new Error("type of "+e+" is mismatch, expect object, but "+typeof i)}t[e]=i}else if(a.type==="array"){if(!Array.isArray(i)){throw new Error("type of "+e+" is mismatch, expect array, but "+typeof i)}if(typeof a.itemType==="function"){t[e]=i.map((function(e){if(isModelClass(a.itemType)){return cast(e,new a.itemType({}))}return e}))}else{t[e]=i}}else if(typeof a==="function"){if(!(i instanceof Object)){throw new Error("type of "+e+" is mismatch, expect object, but "+typeof i)}if(isModelClass(a)){t[e]=cast(i,new a({}));return}t[e]=i}else{}}));return t}t.cast=cast;function sleep(e){return new Promise((function(t){setTimeout(t,e)}))}t.sleep=sleep;function allowRetry(e,t,r){if(t===0){return true}if(e.retryable!==true){return false}if(e.policy==="never"){return false}if(e.policy==="always"){return true}if(e.policy==="simple"){return t<e["maxAttempts"]}if(e.policy==="timeout"){return Date.now()-r<e.timeout}if(e.maxAttempts&&typeof e.maxAttempts==="number"){return e.maxAttempts>=t}return false}t.allowRetry=allowRetry;function getBackoffTime(e,t){if(t===0){return 0}if(e.policy==="no"){return 0}if(e.policy==="fixed"){return e.period}if(e.policy==="random"){var r=e["minPeriod"];var n=e["maxPeriod"];return r+(n-r)*Math.random()}if(e.policy==="exponential"){var o=e.initial;var s=e.multiplier;var i=o*Math.pow(1+s,t-1);var n=e.max;return Math.min(i,n)}if(e.policy==="exponential_random"){var o=e.initial;var s=e.multiplier;var i=o*Math.pow(1+s,t-1);var n=e.max;return Math.min(i*(.5+Math.random()),n)}return 0}t.getBackoffTime=getBackoffTime;var C=function(e){n(UnretryableError,e);function UnretryableError(t){var r=e.call(this,t)||this;r.name="UnretryableError";return r}return UnretryableError}(Error);function newUnretryableError(e){var t=new C("");t.data={lastRequest:e};return t}t.newUnretryableError=newUnretryableError;var w=function(e){n(RetryError,e);function RetryError(t){var r=e.call(this,t)||this;r.name="RetryError";return r}return RetryError}(Error);function retryError(e,t){var r=new w("");r.data={request:e,response:t};return r}t.retryError=retryError;function isRetryable(e){if(typeof e==="undefined"||e===null){return false}return e.name==="RetryError"}t.isRetryable=isRetryable},697:function(e){var t=1e3;var r=t*60;var n=r*60;var o=n*24;var s=o*7;var i=o*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}},222:function(e,t,r){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){o=n}}));t.splice(o,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},243:function(e,t,r){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(697);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let o;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const o=n-(t||n);r.diff=o;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}s++;const o=createDebug.formatters[n];if(typeof o==="function"){const n=e[s];t=o.call(r,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},237:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(222)}else{e.exports=r(332)}},332:function(e,t,r){const n=r(224);const o=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const o="[3"+(n<8?n:"8;5;"+n);const s=` ${o};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(243)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},74:function(e,t,r){"use strict";const n=r(796);const o=r(685);const s=r(687);const i=r(310).parse;const a=r(310).format;const u=r(237)("httpx:body");const c=r(237)("httpx:header");const f=new o.Agent({keepAlive:true});const l=new s.Agent({keepAlive:true});const p=3e3;const d=Symbol("TIMER::READ_TIMER");const m=Symbol("TIMER::READ_TIME_OUT");const y=Symbol("TIMER::READ_TIMER_START_AT");function decompress(e){switch(e.headers["content-encoding"]){case"gzip":return e.pipe(n.createGunzip());case"deflate":return e.pipe(n.createInflate());default:return e}}var append=function(e,t,r){e.name=t+e.name;e.message=`${r}. ${e.message}`;return e};const isNumber=function(e){return e!==null&&!isNaN(e)};t.request=function(e,t){t||(t={});const r=typeof e==="string"?i(e):e;let n,h;if(isNumber(t.readTimeout)||isNumber(t.connectTimeout)){n=isNumber(t.readTimeout)?Number(t.readTimeout):p;h=isNumber(t.connectTimeout)?Number(t.connectTimeout):p}else if(isNumber(t.timeout)){n=h=Number(t.timeout)}else{n=h=p}const g=r.protocol==="https:";const b=(t.method||"GET").toUpperCase();const v=g?l:f;const C=t.agent||v;var w={host:r.hostname||"localhost",path:r.path||"/",method:b,port:r.port||(r.protocol==="https:"?443:80),agent:C,headers:t.headers||{},key:t.key||"",cert:t.cert||"",ca:t.ca||"",timeout:h};if(g&&typeof t.rejectUnauthorized!=="undefined"){w.rejectUnauthorized=t.rejectUnauthorized}if(t.compression){w.headers["accept-encoding"]="gzip,deflate"}const E=g?s:o;if(typeof t.beforeRequest==="function"){w=t.beforeRequest(w)}return new Promise(((e,o)=>{const s=E.request(w);const i=t.data;var fulfilled=t=>{if(c.enabled){const e=t.req._header;e.split("\r\n").forEach((e=>{c("> %s",e)}));c("< HTTP/%s %s %s",t.httpVersion,t.statusCode,t.statusMessage);Object.keys(t.headers).forEach((e=>{c("< %s: %s",e,t.headers[e])}))}e(t)};var rejected=e=>{e.message+=`${b} ${a(r)} failed.`;if(s.socket&&s.socket[d]){clearTimeout(s.socket[d])}o(e)};var abort=e=>{s.abort();rejected(e)};const startResponseTimer=function(e){const t=setTimeout((()=>{if(e[d]){clearTimeout(e[d]);e[d]=null}var t=new Error;var r=`ReadTimeout(${n})`;abort(append(t,"RequestTimeout",r))}),n);e[m]=n;e[d]=t;e[y]=Date.now();t.unref()};if(!i||"string"===typeof i||i instanceof Buffer){if(u.enabled){if(!i){u("<no request body>")}else if("string"===typeof i){u(i)}else{u(`Buffer <ignored>, Buffer length: ${i.length}`)}}s.end(i)}else if("function"===typeof i.pipe){i.pipe(s);if(u.enabled){u("<request body is a stream>")}i.once("error",(e=>{abort(append(e,"HttpX","Stream occor error"))}))}s.on("response",fulfilled);s.on("error",rejected);s.once("socket",(function(e){if(e.readyState==="opening"){e.once("connect",(function(){startResponseTimer(e)}))}else{startResponseTimer(e)}}))}))};t.read=function(e,t){const r=decompress(e);return new Promise(((n,o)=>{const s=e.socket||e.client;const makeReadTimeoutError=()=>{const t=e.req;var r=new Error;r.name="RequestTimeoutError";r.message=`ReadTimeout: ${s[m]}. ${t.method} ${t.path} failed.`;return r};let i;const a=s[d];if(!a){o(makeReadTimeoutError());return}const c=s[m]-(Date.now()-s[y]);clearTimeout(a);if(c<=0){o(makeReadTimeoutError());return}i=setTimeout((function(){o(makeReadTimeoutError())}),c);var f,l,p;var cleanup=function(){r.removeListener("error",f);r.removeListener("data",l);r.removeListener("end",p);if(i){clearTimeout(i)}};const h=[];var g=0;l=function(e){h.push(e);g+=e.length};f=function(e){cleanup();o(e)};p=function(){cleanup();var e=Buffer.concat(h,g);u("");if(t){const r=e.toString(t);u(r);return n(r)}if(u.enabled){u(e.toString())}n(e)};r.on("error",f);r.on("data",l);r.on("end",p)}))};function readyToRead(e){return new Promise(((t,r)=>{var n,o,s;var cleanup=function(){e.removeListener("error",s);e.removeListener("end",o);e.removeListener("readable",n)};n=function(){cleanup();t(false)};o=function(){cleanup();t(true)};s=function(e){cleanup();r(e)};e.once("readable",n);e.once("end",o);e.once("error",s)}))}class Event{constructor(e,t,r,n){this.id=e;this.event=t;this.data=r;this.retry=n}}t.Event=Event;const h="data: ";const g="event: ";const b="id: ";const v="retry: ";function tryGetEvents(e,t){const r=e+t;let n=0;const o=[];for(let e=0;e<r.length-1;e++){const t=r[e];const s=r[e+1];if(t==="\n"&&s==="\n"){const t=r.substring(n,e);const s=t.split("\n");const i=new Event;s.forEach((e=>{if(e.startsWith(h)){i.data=e.substring(h.length)}else if(e.startsWith(g)){i.event=e.substring(g.length)}else if(e.startsWith(b)){i.id=e.substring(b.length)}else if(e.startsWith(v)){i.retry=e.substring(v.length)}}));o.push(i);n=e+2}}const s=r.substring(n);return[o,s]}t.readAsSSE=async function*(e){const t=decompress(e);const r=e.socket||e.client;clearTimeout(r[d]);let n="";while(true){const e=await readyToRead(t);if(e){return}let r;while(null!==(r=t.read())){const[e,t]=tryGetEvents(n,r.toString());n=t;if(e&&e.length>0){for(const t of e){yield t}}}}}},683:function(e,t,r){"use strict";const n=r(147);const o=r(37);const s=r(113);t.loadJSONSync=function(e){var t=n.readFileSync(e,"utf8");if(t.charCodeAt(0)===65279){t=t.slice(1)}try{return JSON.parse(t)}catch(t){t.message=e+": "+t.message;throw t}};t.encode=function(e,t){if(typeof e!=="string"){e=""+e}return Buffer.from(e,t)};t.makeHasher=function(e){return function(t,r){var n=s.createHash(e);n.update(t);return n.digest(r)}};t.createHash=t.makeHasher;t.md5=t.makeHasher("md5");t.createHmac=function(e){return function(t,r,n){return s.createHmac(e,r).update(t).digest(n)}};t.sha1=t.createHmac("sha1");t.random=function(e,t){return Math.floor(e+Math.random()*(t-e))};t.makeNonce=function(){var e=0;var r;const n=o.hostname();const s=process.pid;return function(){var o=Math.floor(Math.random()*1e12);if(o===r){e++}else{e=0}r=o;var i=`${n}${s}${o}${e}`;return t.md5(i,"hex")}}();t.pad2=function(e){if(e<10){return"0"+e}return""+e};t.pad3=function(e){if(e<10){return"00"+e}else if(e<100){return"0"+e}return""+e};t.getYYYYMMDD=function(e){var r=e.getFullYear();var n=t.pad2(e.getMonth()+1);var o=t.pad2(e.getDate());return""+r+n+o};t.sleep=function(e){return new Promise((t=>{setTimeout(t,e)}))};t.getIPv4=function(){var e=o.networkInterfaces();var t=Object.keys(e);for(var r=0;r<t.length;r++){var n=t[r];var s=e[n];for(var i=0;i<s.length;i++){var a=s[i];if(!a.internal&&a.family==="IPv4"){return a.address}}}return""};t.getMac=function(){var e=o.networkInterfaces();var t=Object.keys(e);for(var r=0;r<t.length;r++){var n=t[r];var s=e[n];for(var i=0;i<s.length;i++){var a=s[i];if(!a.internal&&a.family==="IPv4"){return a.mac}}}return"00:00:00:00:00:00"};t.readAll=function(e){return new Promise(((t,r)=>{var n,o,s;var cleanup=function(t){e.removeListener("error",n);e.removeListener("data",o);e.removeListener("end",s)};var i=[];var a=0;o=function(e){i.push(e);a+=e.length};n=function(e){cleanup();r(e)};s=function(){cleanup();t(Buffer.concat(i,a))};e.on("error",n);e.on("data",o);e.on("end",s)}))}},318:function(e,t,r){"use strict";const n=r(37);const o=r(224);const s=r(533);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},533:function(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}},482:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RuntimeOptions=void 0;const a=s(r(165));const u=s(r(683));const c=i(r(477));const f=r(37);const l=`AlibabaCloud (${f.platform()}; ${f.arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`;class RuntimeOptions extends a.Model{constructor(e){super(e)}static names(){return{autoretry:"autoretry",ignoreSSL:"ignoreSSL",maxAttempts:"max_attempts",backoffPolicy:"backoff_policy",backoffPeriod:"backoff_period",readTimeout:"readTimeout",connectTimeout:"connectTimeout",httpProxy:"httpProxy",httpsProxy:"httpsProxy",noProxy:"noProxy",maxIdleConns:"maxIdleConns",keepAlive:"keepAlive"}}static types(){return{autoretry:"boolean",ignoreSSL:"boolean",maxAttempts:"number",backoffPolicy:"string",backoffPeriod:"number",readTimeout:"number",connectTimeout:"number",httpProxy:"string",httpsProxy:"string",noProxy:"string",maxIdleConns:"number",keepAlive:"boolean"}}}t.RuntimeOptions=RuntimeOptions;function read(e){return new Promise(((t,r)=>{let n,o,s;var cleanup=function(){e.removeListener("error",o);e.removeListener("data",n);e.removeListener("end",s)};var i=[];var a=0;n=function(e){i.push(e);a+=e.length};o=function(e){cleanup();r(e)};s=function(){cleanup();t(Buffer.concat(i,a))};e.on("error",o);e.on("data",n);e.on("end",s)}))}class Client{static toString(e){return e.toString()}static parseJSON(e){return JSON.parse(e)}static async readAsBytes(e){return await read(e)}static async readAsString(e){let t=await Client.readAsBytes(e);return Client.toString(t)}static async readAsJSON(e){return Client.parseJSON(await Client.readAsString(e))}static getNonce(){return u.makeNonce()}static getDateUTCString(){const e=new Date;return e.toUTCString()}static defaultString(e,t){return e||t}static defaultNumber(e,t){return e||t}static toFormString(e){return c.default.stringify(e)}static toJSONString(e){if(typeof e==="string"){return e}return JSON.stringify(e)}static toBytes(e){return Buffer.from(e)}static empty(e){return!e}static equalString(e,t){return e===t}static equalNumber(e,t){return e===t}static isUnset(e){if(typeof e==="undefined"){return true}if(e===null){return true}return false}static stringifyMapValue(e){if(!e){return e}const t={};for(const[r,n]of Object.entries(e)){if(typeof n==="undefined"||n===null){continue}t[r]=String(n)}return t}static anyifyMapValue(e){return e}static assertAsBoolean(e){if(typeof e==="boolean"){return e}throw new Error(`The value is not a boolean`)}static assertAsString(e){if(typeof e==="string"){return e}throw new Error(`The value is not a string`)}static assertAsNumber(e){if(typeof e==="number"){return e}throw new Error(`The value is not a number`)}static assertAsMap(e){if(e&&typeof e==="object"&&!Array.isArray(e)){return e}throw new Error(`The value is not a object`)}static assertAsArray(e){if(Array.isArray(e)){return e}throw new Error(`The value is not array`)}static assertAsBytes(e){if(Buffer.isBuffer(e)){return e}throw new Error(`The value is not bytes`)}static getUserAgent(e){if(!e||!e.length){return l}return l+" "+e}static is2xx(e){return e>=200&&e<300}static is3xx(e){return e>=300&&e<400}static is4xx(e){return e>=400&&e<500}static is5xx(e){return e>=500&&e<600}static validateModel(e){}static toMap(e){return a.toMap(e)}static async sleep(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}static toArray(e){if(!(e instanceof Array)){return null}let t=[];e.forEach((e=>{if(!e){return}t.push(a.toMap(e))}));return t}}t["default"]=Client},113:function(e){"use strict";e.exports=require("crypto")},147:function(e){"use strict";e.exports=require("fs")},685:function(e){"use strict";e.exports=require("http")},687:function(e){"use strict";e.exports=require("https")},37:function(e){"use strict";e.exports=require("os")},477:function(e){"use strict";e.exports=require("querystring")},781:function(e){"use strict";e.exports=require("stream")},224:function(e){"use strict";e.exports=require("tty")},310:function(e){"use strict";e.exports=require("url")},837:function(e){"use strict";e.exports=require("util")},796:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var s=true;try{e[r].call(o.exports,o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(482);module.exports=r})();
1
+ (function(){var e={165:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();var o=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))o(t,e,r);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var u=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(s=i[0]&2?o["return"]:i[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,i[1])).done)return s;if(o=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;o=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){r.label=i[1];break}if(i[0]===6&&r.label<s[1]){r.label=s[1];s=i;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(i);break}if(s[2])r.ops.pop();r.trys.pop();continue}i=t.call(e,r)}catch(e){i=[6,e];o=0}finally{n=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.isRetryable=t.retryError=t.newUnretryableError=t.getBackoffTime=t.allowRetry=t.sleep=t.cast=t.Model=t.toMap=t.newError=t.doAction=t.Response=t.Request=t.BytesReadable=void 0;var c=i(r(477));var f=r(685);var l=r(687);var p=r(781);var d=i(r(74));var m=r(310);var y=function(e){n(BytesReadable,e);function BytesReadable(t){var r=e.call(this)||this;if(typeof t==="string"){r.value=Buffer.from(t)}else if(Buffer.isBuffer(t)){r.value=t}return r}BytesReadable.prototype._read=function(){this.push(this.value);this.push(null)};return BytesReadable}(p.Readable);t.BytesReadable=y;var h=function(){function Request(){this.headers={};this.query={}}return Request}();t.Request=h;var g=function(){function Response(e){this.statusCode=e.statusCode;this.statusMessage=e.statusMessage;this.headers=this.convertHeaders(e.headers);this.body=e}Response.prototype.convertHeaders=function(e){var t={};var r=Object.keys(e);for(var n=0;n<r.length;n++){var o=r[n];t[o]=e[o]}return t};Response.prototype.readBytes=function(){return a(this,void 0,void 0,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,d.read(this.body,"")];case 1:e=t.sent();return[2,e]}}))}))};return Response}();t.Response=g;function buildURL(e){var t=e.protocol+"://"+e.headers["host"];if(e.port){t+=":"+e.port}t+=""+e.pathname;var r=m.parse(t);if(e.query&&Object.keys(e.query).length>0){if(r.query){t+="&"+c.stringify(e.query)}else{t+="?"+c.stringify(e.query)}}return t}function isModelClass(e){if(!e){return false}return typeof e.types==="function"&&typeof e.names==="function"}function doAction(e,t){if(t===void 0){t=null}return a(this,void 0,void 0,(function(){var r,n,o,s,i;return u(this,(function(a){switch(a.label){case 0:r=buildURL(e);n=(e.method||"GET").toUpperCase();o={method:n,headers:e.headers};if(n!=="GET"&&n!=="HEAD"){o.data=e.body}if(t){if(typeof t.timeout!=="undefined"){o.timeout=Number(t.timeout)}if(typeof t.readTimeout!=="undefined"){o.readTimeout=Number(t.readTimeout)}if(typeof t.connectTimeout!=="undefined"){o.connectTimeout=Number(t.connectTimeout)}if(typeof t.ignoreSSL!=="undefined"){o.rejectUnauthorized=!t.ignoreSSL}if(typeof t.key!=="undefined"){o.key=String(t.key)}if(typeof t.cert!=="undefined"){o.cert=String(t.cert)}if(typeof t.ca!=="undefined"){o.ca=String(t.ca)}s={keepAlive:true};if(typeof t.keepAlive!=="undefined"){s.keepAlive=t.keepAlive;if(e.protocol&&e.protocol.toLowerCase()==="https"){o.agent=new l.Agent(s)}else{o.agent=new f.Agent(s)}}}return[4,d.request(r,o)];case 1:i=a.sent();return[2,new g(i)]}}))}))}t.doAction=doAction;var b=function(e){n(ResponseError,e);function ResponseError(t){var r=e.call(this,t.code+": "+t.message)||this;r.code=t.code;r.data=t.data;r.description=t.description;r.accessDeniedDetail=t.accessDeniedDetail;if(r.data&&r.data.statusCode){r.statusCode=Number(r.data.statusCode)}return r}return ResponseError}(Error);function newError(e){return new b(e)}t.newError=newError;function getValue(e,t){if(typeof e==="string"){return t}if(e.type==="array"){if(!Array.isArray(t)){throw new Error("expect: array, actual: "+typeof t)}return t.map((function(t){return getValue(e.itemType,t)}))}if(typeof e==="function"){if(isModelClass(e)){return new e(t)}return t}return t}function toMap(e){if(e===void 0){e=undefined}if(typeof e==="undefined"||e==null){return null}if(e instanceof v){return e.toMap()}if(typeof e.toMap==="function"){return e.toMap()}if(Array.isArray(e)){return e.map((function(e){return toMap(e)}))}return e}t.toMap=toMap;var v=function(){function Model(e){var t=this;if(e==null){return}var r=this.constructor;var n=r.names();var o=r.types();Object.keys(n).forEach((function(r){var n=e[r];if(n===undefined||n===null){return}var s=o[r];t[r]=getValue(s,n)}))}Model.prototype.toMap=function(){var e=this;var t={};var r=this.constructor;var n=r.names();Object.keys(n).forEach((function(r){var o=n[r];var s=e[r];if(typeof s==="undefined"||s==null){return}t[o]=toMap(s)}));return t};return Model}();t.Model=v;function cast(e,t){if(!e){throw new Error("can not cast to Map")}if(typeof e!=="object"){throw new Error("can not cast to Map")}var r=e;var n=t.constructor;var o=n.names();var s=n.types();Object.keys(o).forEach((function(e){var n=o[e];var i=r[n];var a=s[e];if(typeof i==="undefined"||i==null){return}if(typeof a==="string"){if(a==="Readable"||a==="map"||a==="Buffer"||a==="any"||typeof i===a){t[e]=i;return}if(a==="string"&&(typeof i==="number"||typeof i==="boolean")){t[e]=i.toString();return}if(a==="boolean"){if(i===1||i===0){t[e]=!!i;return}if(i==="true"||i==="false"){t[e]=i==="true";return}}if(a==="number"&&typeof i==="string"){if(i.match(/^\d*$/)){t[e]=parseInt(i);return}if(i.match(/^[\.\d]*$/)){t[e]=parseFloat(i);return}}throw new Error("type of "+e+" is mismatch, expect "+a+", but "+typeof i)}else if(a.type==="map"){if(!(i instanceof Object)){throw new Error("type of "+e+" is mismatch, expect object, but "+typeof i)}t[e]=i}else if(a.type==="array"){if(!Array.isArray(i)){throw new Error("type of "+e+" is mismatch, expect array, but "+typeof i)}if(typeof a.itemType==="function"){t[e]=i.map((function(e){if(isModelClass(a.itemType)){return cast(e,new a.itemType({}))}return e}))}else{t[e]=i}}else if(typeof a==="function"){if(!(i instanceof Object)){throw new Error("type of "+e+" is mismatch, expect object, but "+typeof i)}if(isModelClass(a)){t[e]=cast(i,new a({}));return}t[e]=i}else{}}));return t}t.cast=cast;function sleep(e){return new Promise((function(t){setTimeout(t,e)}))}t.sleep=sleep;function allowRetry(e,t,r){if(t===0){return true}if(e.retryable!==true){return false}if(e.policy==="never"){return false}if(e.policy==="always"){return true}if(e.policy==="simple"){return t<e["maxAttempts"]}if(e.policy==="timeout"){return Date.now()-r<e.timeout}if(e.maxAttempts&&typeof e.maxAttempts==="number"){return e.maxAttempts>=t}return false}t.allowRetry=allowRetry;function getBackoffTime(e,t){if(t===0){return 0}if(e.policy==="no"){return 0}if(e.policy==="fixed"){return e.period}if(e.policy==="random"){var r=e["minPeriod"];var n=e["maxPeriod"];return r+(n-r)*Math.random()}if(e.policy==="exponential"){var o=e.initial;var s=e.multiplier;var i=o*Math.pow(1+s,t-1);var n=e.max;return Math.min(i,n)}if(e.policy==="exponential_random"){var o=e.initial;var s=e.multiplier;var i=o*Math.pow(1+s,t-1);var n=e.max;return Math.min(i*(.5+Math.random()),n)}return 0}t.getBackoffTime=getBackoffTime;var C=function(e){n(UnretryableError,e);function UnretryableError(t){var r=e.call(this,t)||this;r.name="UnretryableError";return r}return UnretryableError}(Error);function newUnretryableError(e){var t=new C("");t.data={lastRequest:e};return t}t.newUnretryableError=newUnretryableError;var w=function(e){n(RetryError,e);function RetryError(t){var r=e.call(this,t)||this;r.name="RetryError";return r}return RetryError}(Error);function retryError(e,t){var r=new w("");r.data={request:e,response:t};return r}t.retryError=retryError;function isRetryable(e){if(typeof e==="undefined"||e===null){return false}return e.name==="RetryError"}t.isRetryable=isRetryable},697:function(e){var t=1e3;var r=t*60;var n=r*60;var o=n*24;var s=o*7;var i=o*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}},222:function(e,t,r){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){o=n}}));t.splice(o,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},243:function(e,t,r){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(697);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let o;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const o=n-(t||n);r.diff=o;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}s++;const o=createDebug.formatters[n];if(typeof o==="function"){const n=e[s];t=o.call(r,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},237:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(222)}else{e.exports=r(332)}},332:function(e,t,r){const n=r(224);const o=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const o="[3"+(n<8?n:"8;5;"+n);const s=` ${o};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(243)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},74:function(e,t,r){"use strict";const n=r(796);const o=r(685);const s=r(687);const i=r(310).parse;const a=r(310).format;const u=r(237)("httpx:body");const c=r(237)("httpx:header");const f=new o.Agent({keepAlive:true});const l=new s.Agent({keepAlive:true});const p=3e3;const d=Symbol("TIMER::READ_TIMER");const m=Symbol("TIMER::READ_TIME_OUT");const y=Symbol("TIMER::READ_TIMER_START_AT");function decompress(e){switch(e.headers["content-encoding"]){case"gzip":return e.pipe(n.createGunzip());case"deflate":return e.pipe(n.createInflate());default:return e}}var append=function(e,t,r){e.name=t+e.name;e.message=`${r}. ${e.message}`;return e};const isNumber=function(e){return e!==null&&!isNaN(e)};t.request=function(e,t){t||(t={});const r=typeof e==="string"?i(e):e;let n,h;if(isNumber(t.readTimeout)||isNumber(t.connectTimeout)){n=isNumber(t.readTimeout)?Number(t.readTimeout):p;h=isNumber(t.connectTimeout)?Number(t.connectTimeout):p}else if(isNumber(t.timeout)){n=h=Number(t.timeout)}else{n=h=p}const g=r.protocol==="https:";const b=(t.method||"GET").toUpperCase();const v=g?l:f;const C=t.agent||v;var w={host:r.hostname||"localhost",path:r.path||"/",method:b,port:r.port||(r.protocol==="https:"?443:80),agent:C,headers:t.headers||{},key:t.key||"",cert:t.cert||"",ca:t.ca||"",timeout:h};if(g&&typeof t.rejectUnauthorized!=="undefined"){w.rejectUnauthorized=t.rejectUnauthorized}if(t.compression){w.headers["accept-encoding"]="gzip,deflate"}const E=g?s:o;if(typeof t.beforeRequest==="function"){w=t.beforeRequest(w)}return new Promise(((e,o)=>{const s=E.request(w);const i=t.data;var fulfilled=t=>{if(c.enabled){const e=t.req._header;e.split("\r\n").forEach((e=>{c("> %s",e)}));c("< HTTP/%s %s %s",t.httpVersion,t.statusCode,t.statusMessage);Object.keys(t.headers).forEach((e=>{c("< %s: %s",e,t.headers[e])}))}e(t)};var rejected=e=>{e.message+=`${b} ${a(r)} failed.`;if(s.socket&&s.socket[d]){clearTimeout(s.socket[d])}o(e)};var abort=e=>{s.abort();rejected(e)};const startResponseTimer=function(e){const t=setTimeout((()=>{if(e[d]){clearTimeout(e[d]);e[d]=null}var t=new Error;var r=`ReadTimeout(${n})`;abort(append(t,"RequestTimeout",r))}),n);e[m]=n;e[d]=t;e[y]=Date.now();t.unref()};if(!i||"string"===typeof i||i instanceof Buffer){if(u.enabled){if(!i){u("<no request body>")}else if("string"===typeof i){u(i)}else{u(`Buffer <ignored>, Buffer length: ${i.length}`)}}s.end(i)}else if("function"===typeof i.pipe){i.pipe(s);if(u.enabled){u("<request body is a stream>")}i.once("error",(e=>{abort(append(e,"HttpX","Stream occor error"))}))}s.on("response",fulfilled);s.on("error",rejected);s.once("socket",(function(e){if(e.readyState==="opening"){e.once("connect",(function(){startResponseTimer(e)}))}else{startResponseTimer(e)}}))}))};t.read=function(e,t){const r=decompress(e);return new Promise(((n,o)=>{const s=e.socket||e.client;const makeReadTimeoutError=()=>{const t=e.req;var r=new Error;r.name="RequestTimeoutError";r.message=`ReadTimeout: ${s[m]}. ${t.method} ${t.path} failed.`;return r};let i;const a=s[d];if(!a){o(makeReadTimeoutError());return}const c=s[m]-(Date.now()-s[y]);clearTimeout(a);if(c<=0){o(makeReadTimeoutError());return}i=setTimeout((function(){o(makeReadTimeoutError())}),c);var f,l,p;var cleanup=function(){r.removeListener("error",f);r.removeListener("data",l);r.removeListener("end",p);if(i){clearTimeout(i)}};const h=[];var g=0;l=function(e){h.push(e);g+=e.length};f=function(e){cleanup();o(e)};p=function(){cleanup();var e=Buffer.concat(h,g);u("");if(t){const r=e.toString(t);u(r);return n(r)}if(u.enabled){u(e.toString())}n(e)};r.on("error",f);r.on("data",l);r.on("end",p)}))};function readyToRead(e){return new Promise(((t,r)=>{var n,o,s;var cleanup=function(){e.removeListener("error",s);e.removeListener("end",o);e.removeListener("readable",n)};n=function(){cleanup();t(false)};o=function(){cleanup();t(true)};s=function(e){cleanup();r(e)};e.once("readable",n);e.once("end",o);e.once("error",s)}))}class Event{constructor(e,t,r,n){this.id=e;this.event=t;this.data=r;this.retry=n}}t.Event=Event;const h="data: ";const g="event: ";const b="id: ";const v="retry: ";function tryGetEvents(e,t){const r=e+t;let n=0;const o=[];for(let e=0;e<r.length-1;e++){const t=r[e];const s=r[e+1];if(t==="\n"&&s==="\n"){const t=r.substring(n,e);const s=t.split("\n");const i=new Event;s.forEach((e=>{if(e.startsWith(h)){i.data=e.substring(h.length)}else if(e.startsWith(g)){i.event=e.substring(g.length)}else if(e.startsWith(b)){i.id=e.substring(b.length)}else if(e.startsWith(v)){i.retry=e.substring(v.length)}}));o.push(i);n=e+2}}const s=r.substring(n);return[o,s]}t.readAsSSE=async function*(e){const t=decompress(e);const r=e.socket||e.client;clearTimeout(r[d]);let n="";while(true){const e=await readyToRead(t);if(e){return}let r;while(null!==(r=t.read())){const[e,t]=tryGetEvents(n,r.toString());n=t;if(e&&e.length>0){for(const t of e){yield t}}}}}},683:function(e,t,r){"use strict";const n=r(147);const o=r(37);const s=r(113);t.loadJSONSync=function(e){var t=n.readFileSync(e,"utf8");if(t.charCodeAt(0)===65279){t=t.slice(1)}try{return JSON.parse(t)}catch(t){t.message=e+": "+t.message;throw t}};t.encode=function(e,t){if(typeof e!=="string"){e=""+e}return Buffer.from(e,t)};t.makeHasher=function(e){return function(t,r){var n=s.createHash(e);n.update(t);return n.digest(r)}};t.createHash=t.makeHasher;t.md5=t.makeHasher("md5");t.createHmac=function(e){return function(t,r,n){return s.createHmac(e,r).update(t).digest(n)}};t.sha1=t.createHmac("sha1");t.random=function(e,t){return Math.floor(e+Math.random()*(t-e))};t.makeNonce=function(){var e=0;var r;const n=o.hostname();const s=process.pid;return function(){var o=Math.floor(Math.random()*1e12);if(o===r){e++}else{e=0}r=o;var i=`${n}${s}${o}${e}`;return t.md5(i,"hex")}}();t.pad2=function(e){if(e<10){return"0"+e}return""+e};t.pad3=function(e){if(e<10){return"00"+e}else if(e<100){return"0"+e}return""+e};t.getYYYYMMDD=function(e){var r=e.getFullYear();var n=t.pad2(e.getMonth()+1);var o=t.pad2(e.getDate());return""+r+n+o};t.sleep=function(e){return new Promise((t=>{setTimeout(t,e)}))};t.getIPv4=function(){var e=o.networkInterfaces();var t=Object.keys(e);for(var r=0;r<t.length;r++){var n=t[r];var s=e[n];for(var i=0;i<s.length;i++){var a=s[i];if(!a.internal&&a.family==="IPv4"){return a.address}}}return""};t.getMac=function(){var e=o.networkInterfaces();var t=Object.keys(e);for(var r=0;r<t.length;r++){var n=t[r];var s=e[n];for(var i=0;i<s.length;i++){var a=s[i];if(!a.internal&&a.family==="IPv4"){return a.mac}}}return"00:00:00:00:00:00"};t.readAll=function(e){return new Promise(((t,r)=>{var n,o,s;var cleanup=function(t){e.removeListener("error",n);e.removeListener("data",o);e.removeListener("end",s)};var i=[];var a=0;o=function(e){i.push(e);a+=e.length};n=function(e){cleanup();r(e)};s=function(){cleanup();t(Buffer.concat(i,a))};e.on("error",n);e.on("data",o);e.on("end",s)}))}},318:function(e,t,r){"use strict";const n=r(37);const o=r(224);const s=r(533);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}function envForceColor(){if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){return 1}if(i.FORCE_COLOR==="false"){return 0}return i.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,{streamIsTTY:t,sniffFlags:r=true}={}){const o=envForceColor();if(o!==undefined){a=o}const u=r?a:o;if(u===0){return 0}if(r){if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}}if(e&&!t&&u===undefined){return 0}const c=u||0;if(i.TERM==="dumb"){return c}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return c}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=Number.parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return c}function getSupportLevel(e,t={}){const r=supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel({isTTY:o.isatty(1)}),stderr:getSupportLevel({isTTY:o.isatty(2)})}},533:function(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}},482:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RuntimeOptions=void 0;const a=s(r(165));const u=s(r(683));const c=i(r(477));const f=r(37);const l=`AlibabaCloud (${f.platform()}; ${f.arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`;class RuntimeOptions extends a.Model{constructor(e){super(e)}static names(){return{autoretry:"autoretry",ignoreSSL:"ignoreSSL",maxAttempts:"max_attempts",backoffPolicy:"backoff_policy",backoffPeriod:"backoff_period",readTimeout:"readTimeout",connectTimeout:"connectTimeout",httpProxy:"httpProxy",httpsProxy:"httpsProxy",noProxy:"noProxy",maxIdleConns:"maxIdleConns",keepAlive:"keepAlive"}}static types(){return{autoretry:"boolean",ignoreSSL:"boolean",maxAttempts:"number",backoffPolicy:"string",backoffPeriod:"number",readTimeout:"number",connectTimeout:"number",httpProxy:"string",httpsProxy:"string",noProxy:"string",maxIdleConns:"number",keepAlive:"boolean"}}}t.RuntimeOptions=RuntimeOptions;function read(e){return new Promise(((t,r)=>{let n,o,s;var cleanup=function(){e.removeListener("error",o);e.removeListener("data",n);e.removeListener("end",s)};var i=[];var a=0;n=function(e){i.push(e);a+=e.length};o=function(e){cleanup();r(e)};s=function(){cleanup();t(Buffer.concat(i,a))};e.on("error",o);e.on("data",n);e.on("end",s)}))}class Client{static toString(e){return e.toString()}static parseJSON(e){return JSON.parse(e)}static async readAsBytes(e){return await read(e)}static async readAsString(e){let t=await Client.readAsBytes(e);return Client.toString(t)}static async readAsJSON(e){return Client.parseJSON(await Client.readAsString(e))}static getNonce(){return u.makeNonce()}static getDateUTCString(){const e=new Date;return e.toUTCString()}static defaultString(e,t){return e||t}static defaultNumber(e,t){return e||t}static toFormString(e){return c.default.stringify(e)}static toJSONString(e){if(typeof e==="string"){return e}return JSON.stringify(e)}static toBytes(e){return Buffer.from(e)}static empty(e){return!e}static equalString(e,t){return e===t}static equalNumber(e,t){return e===t}static isUnset(e){if(typeof e==="undefined"){return true}if(e===null){return true}return false}static stringifyMapValue(e){if(!e){return e}const t={};for(const[r,n]of Object.entries(e)){if(typeof n==="undefined"||n===null){continue}t[r]=String(n)}return t}static anyifyMapValue(e){return e}static assertAsBoolean(e){if(typeof e==="boolean"){return e}throw new Error(`The value is not a boolean`)}static assertAsString(e){if(typeof e==="string"){return e}throw new Error(`The value is not a string`)}static assertAsNumber(e){if(typeof e==="number"){return e}throw new Error(`The value is not a number`)}static assertAsMap(e){if(e&&typeof e==="object"&&!Array.isArray(e)){return e}throw new Error(`The value is not a object`)}static assertAsArray(e){if(Array.isArray(e)){return e}throw new Error(`The value is not array`)}static assertAsBytes(e){if(Buffer.isBuffer(e)){return e}throw new Error(`The value is not bytes`)}static getUserAgent(e){if(!e||!e.length){return l}return l+" "+e}static is2xx(e){return e>=200&&e<300}static is3xx(e){return e>=300&&e<400}static is4xx(e){return e>=400&&e<500}static is5xx(e){return e>=500&&e<600}static validateModel(e){}static toMap(e){return a.toMap(e)}static async sleep(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}static toArray(e){if(!(e instanceof Array)){return null}let t=[];e.forEach((e=>{if(!e){return}t.push(a.toMap(e))}));return t}}t["default"]=Client},113:function(e){"use strict";e.exports=require("crypto")},147:function(e){"use strict";e.exports=require("fs")},685:function(e){"use strict";e.exports=require("http")},687:function(e){"use strict";e.exports=require("https")},37:function(e){"use strict";e.exports=require("os")},477:function(e){"use strict";e.exports=require("querystring")},781:function(e){"use strict";e.exports=require("stream")},224:function(e){"use strict";e.exports=require("tty")},310:function(e){"use strict";e.exports=require("url")},837:function(e){"use strict";e.exports=require("util")},796:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var s=true;try{e[r].call(o.exports,o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(482);module.exports=r})();
@@ -1 +1 @@
1
- {"name":"@alicloud/tea-util","version":"1.4.4","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","kitx":"^2.0.0"},"files":["dist","src"],"_lastModified":"2026-01-12T07:21:44.346Z"}
1
+ {"name":"@alicloud/tea-util","version":"1.4.4","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","kitx":"^2.0.0"},"files":["dist","src"],"_lastModified":"2026-02-16T06:16:22.500Z"}
@@ -1 +1 @@
1
- {"name":"tencentcloud-sdk-nodejs","version":"4.0.759","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2026-01-12T07:21:51.636Z"}
1
+ {"name":"tencentcloud-sdk-nodejs","version":"4.0.759","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2026-02-16T06:16:29.984Z"}
@@ -11,7 +11,7 @@ e.exports=s(53765)},43583:function(e,t,s){"use strict";
11
11
  * Copyright(c) 2014 Jonathan Ong
12
12
  * Copyright(c) 2015 Douglas Christopher Wilson
13
13
  * MIT Licensed
14
- */var r=s(47426);var i=s(71017).extname;var n=/^\s*([^;\s]*)(?:;|\s|$)/;var a=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=n.exec(e);var s=t&&r[t[1].toLowerCase()];if(s&&s.charset){return s.charset}if(t&&a.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var s=e.indexOf("/")===-1?t.lookup(e):e;if(!s){return false}if(s.indexOf("charset")===-1){var r=t.charset(s);if(r)s+="; charset="+r.toLowerCase()}return s}function extension(e){if(!e||typeof e!=="string"){return false}var s=n.exec(e);var r=s&&t.extensions[s[1].toLowerCase()];if(!r||!r.length){return false}return r[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var s=i("x."+e).toLowerCase().substr(1);if(!s){return false}return t.types[s]||false}function populateMaps(e,t){var s=["nginx","apache",undefined,"iana"];Object.keys(r).forEach((function forEachMimeType(i){var n=r[i];var a=n.extensions;if(!a||!a.length){return}e[i]=a;for(var c=0;c<a.length;c++){var u=a[c];if(t[u]){var o=s.indexOf(r[t[u]].source);var l=s.indexOf(n.source);if(t[u]!=="application/octet-stream"&&(o>l||o===l&&t[u].substr(0,12)==="application/")){continue}}t[u]=i}}))}},80467:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(s(12781));var i=_interopDefault(s(13685));var n=_interopDefault(s(57310));var a=_interopDefault(s(73323));var c=_interopDefault(s(95687));var u=_interopDefault(s(59796));const o=r.Readable;const l=Symbol("buffer");const p=Symbol("type");class Blob{constructor(){this[p]="";const e=arguments[0];const t=arguments[1];const s=[];let r=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let n;if(i instanceof Buffer){n=i}else if(ArrayBuffer.isView(i)){n=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){n=Buffer.from(i)}else if(i instanceof Blob){n=i[l]}else{n=Buffer.from(typeof i==="string"?i:String(i))}r+=n.length;s.push(n)}}this[l]=Buffer.concat(s);let i=t&&t.type!==undefined&&String(t.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[p]=i}}get size(){return this[l].length}get type(){return this[p]}text(){return Promise.resolve(this[l].toString())}arrayBuffer(){const e=this[l];const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new o;e._read=function(){};e.push(this[l]);e.push(null);return e}toString(){return"[object Blob]"}slice(){const e=this.size;const t=arguments[0];const s=arguments[1];let r,i;if(t===undefined){r=0}else if(t<0){r=Math.max(e+t,0)}else{r=Math.min(t,e)}if(s===undefined){i=e}else if(s<0){i=Math.max(e+s,0)}else{i=Math.min(s,e)}const n=Math.max(i-r,0);const a=this[l];const c=a.slice(r,r+n);const u=new Blob([],{type:arguments[2]});u[l]=c;return u}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(e,t,s){Error.call(this,e);this.message=e;this.type=t;if(s){this.code=this.errno=s.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let d;try{d=s(28685).O}catch(e){}const y=Symbol("Body internals");const h=r.PassThrough;function Body(e){var t=this;var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=s.size;let n=i===undefined?0:i;var a=s.timeout;let c=a===undefined?0:a;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r);else{e=Buffer.from(String(e))}this[y]={body:e,disturbed:false,error:null};this.size=n;this.timeout=c;if(e instanceof r){e.on("error",(function(e){const s=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[y].error=s}))}}Body.prototype={get body(){return this[y].body},get bodyUsed(){return this[y].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const s=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,s)}}};function consumeBody(){var e=this;if(this[y].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[y].disturbed=true;if(this[y].error){return Body.Promise.reject(this[y].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let s=[];let i=0;let n=false;return new Body.Promise((function(r,a){let c;if(e.timeout){c=setTimeout((function(){n=true;a(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){n=true;a(t)}else{a(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(n||t===null){return}if(e.size&&i+t.length>e.size){n=true;a(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;s.push(t)}));t.on("end",(function(){if(n){return}clearTimeout(c);try{r(Buffer.concat(s,i))}catch(t){a(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const s=t.get("content-type");let r="utf-8";let i,n;if(s){i=/charset=([^;]*)/i.exec(s)}n=e.slice(0,1024).toString();if(!i&&n){i=/<meta.+?charset=(['"])(.+?)\1/i.exec(n)}if(!i&&n){i=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(n);if(!i){i=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(n);if(i){i.pop()}}if(i){i=/charset=(.*)/i.exec(i.pop())}}if(!i&&n){i=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(n)}if(i){r=i.pop();if(r==="gb2312"||r==="gbk"){r="gb18030"}}return d(e,"UTF-8",r).toString()}function isURLSearchParams(e){if(typeof e!=="object"||typeof e.append!=="function"||typeof e.delete!=="function"||typeof e.get!=="function"||typeof e.getAll!=="function"||typeof e.has!=="function"||typeof e.set!=="function"){return false}return e.constructor.name==="URLSearchParams"||Object.prototype.toString.call(e)==="[object URLSearchParams]"||typeof e.sort==="function"}function isBlob(e){return typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&typeof e.constructor.name==="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let t,s;let i=e.body;if(e.bodyUsed){throw new Error("cannot clone body after it is used")}if(i instanceof r&&typeof i.getBoundary!=="function"){t=new h;s=new h;i.pipe(t);i.pipe(s);e[y].body=t;i=s}return i}function extractContentType(e){if(e===null){return null}else if(typeof e==="string"){return"text/plain;charset=UTF-8"}else if(isURLSearchParams(e)){return"application/x-www-form-urlencoded;charset=UTF-8"}else if(isBlob(e)){return e.type||null}else if(Buffer.isBuffer(e)){return null}else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){return null}else if(ArrayBuffer.isView(e)){return null}else if(typeof e.getBoundary==="function"){return`multipart/form-data;boundary=${e.getBoundary()}`}else if(e instanceof r){return null}else{return"text/plain;charset=UTF-8"}}function getTotalBytes(e){const t=e.body;if(t===null){return 0}else if(isBlob(t)){return t.size}else if(Buffer.isBuffer(t)){return t.length}else if(t&&typeof t.getLengthSync==="function"){if(t._lengthRetrievers&&t._lengthRetrievers.length==0||t.hasKnownLength&&t.hasKnownLength()){return t.getLengthSync()}return null}else{return null}}function writeToStream(e,t){const s=t.body;if(s===null){e.end()}else if(isBlob(s)){s.stream().pipe(e)}else if(Buffer.isBuffer(s)){e.write(s);e.end()}else{s.pipe(e)}}Body.Promise=global.Promise;const m=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;const b=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){e=`${e}`;if(m.test(e)||e===""){throw new TypeError(`${e} is not a legal HTTP header name`)}}function validateValue(e){e=`${e}`;if(b.test(e)){throw new TypeError(`${e} is not a legal HTTP header value`)}}function find(e,t){t=t.toLowerCase();for(const s in e){if(s.toLowerCase()===t){return s}}return undefined}const D=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this[D]=Object.create(null);if(e instanceof Headers){const t=e.raw();const s=Object.keys(t);for(const e of s){for(const s of t[e]){this.append(e,s)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const s=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}s.push(Array.from(t))}for(const e of s){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const s=e[t];this.append(t,s)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[D],e);if(t===undefined){return null}return this[D][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let s=getHeaders(this);let r=0;while(r<s.length){var i=s[r];const n=i[0],a=i[1];e.call(t,a,n,this);s=getHeaders(this);r++}}set(e,t){e=`${e}`;t=`${t}`;validateName(e);validateValue(t);const s=find(this[D],e);this[D][s!==undefined?s:e]=[t]}append(e,t){e=`${e}`;t=`${t}`;validateName(e);validateValue(t);const s=find(this[D],e);if(s!==undefined){this[D][s].push(t)}else{this[D][e]=[t]}}has(e){e=`${e}`;validateName(e);return find(this[D],e)!==undefined}delete(e){e=`${e}`;validateName(e);const t=find(this[D],e);if(t!==undefined){delete this[D][t]}}raw(){return this[D]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}Headers.prototype.entries=Headers.prototype[Symbol.iterator];Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:false,enumerable:false,configurable:true});Object.defineProperties(Headers.prototype,{get:{enumerable:true},forEach:{enumerable:true},set:{enumerable:true},append:{enumerable:true},has:{enumerable:true},delete:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true}});function getHeaders(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key+value";const s=Object.keys(e[D]).sort();return s.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[D][t].join(", ")}:function(t){return[t.toLowerCase(),e[D][t].join(", ")]})}const q=Symbol("internal");function createHeadersIterator(e,t){const s=Object.create(v);s[q]={target:e,kind:t,index:0};return s}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[q];const t=e.target,s=e.kind,r=e.index;const i=getHeaders(t,s);const n=i.length;if(r>=n){return{value:undefined,done:true}}this[q].index=r+1;return{value:i[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[D]);const s=find(e[D],"Host");if(s!==undefined){t[s]=t[s][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const s of Object.keys(e)){if(m.test(s)){continue}if(Array.isArray(e[s])){for(const r of e[s]){if(b.test(r)){continue}if(t[D][s]===undefined){t[D][s]=[r]}else{t[D][s].push(r)}}}else if(!b.test(e[s])){t[D][s]=[e[s]]}}return t}const C=Symbol("Response internals");const g=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const s=t.status||200;const r=new Headers(t.headers);if(e!=null&&!r.has("Content-Type")){const t=extractContentType(e);if(t){r.append("Content-Type",t)}}this[C]={url:t.url,status:s,statusText:t.statusText||g[s],headers:r,counter:t.counter}}get url(){return this[C].url||""}get status(){return this[C].status}get ok(){return this[C].status>=200&&this[C].status<300}get redirected(){return this[C].counter>0}get statusText(){return this[C].statusText}get headers(){return this[C].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const S=Symbol("Request internals");const P=n.URL||a.URL;const M=n.parse;const A=n.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new P(e).toString()}return M(e)}const R="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[S]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let s;if(!isRequest(e)){if(e&&e.href){s=parseURL(e.href)}else{s=parseURL(`${e}`)}e={}}else{s=parseURL(e.url)}let r=t.method||e.method||"GET";r=r.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const n=new Headers(t.headers||e.headers||{});if(i!=null&&!n.has("Content-Type")){const e=extractContentType(i);if(e){n.append("Content-Type",e)}}let a=isRequest(e)?e.signal:null;if("signal"in t)a=t.signal;if(a!=null&&!isAbortSignal(a)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[S]={method:r,redirect:t.redirect||e.redirect||"follow",headers:n,parsedURL:s,signal:a};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[S].method}get url(){return A(this[S].parsedURL)}get headers(){return this[S].headers}get redirect(){return this[S].redirect}get signal(){return this[S].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[S].parsedURL;const s=new Headers(e[S].headers);if(!s.has("Accept")){s.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!R){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){s.set("Content-Length",i)}if(!s.has("User-Agent")){s.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!s.has("Accept-Encoding")){s.set("Accept-Encoding","gzip,deflate")}let n=e.agent;if(typeof n==="function"){n=n(t)}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(s),agent:n})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const T=n.URL||a.URL;const I=r.PassThrough;const k=function isDomainOrSubdomain(e,t){const s=new T(t).hostname;const r=new T(e).hostname;return s===r||s[s.length-r.length-1]==="."&&s.endsWith(r)};const w=function isSameProtocol(e,t){const s=new T(t).protocol;const r=new T(e).protocol;return s===r};function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(s,n){const a=new Request(e,t);const o=getNodeRequestOptions(a);const l=(o.protocol==="https:"?c:i).request;const p=a.signal;let d=null;const y=function abort(){let e=new AbortError("The user aborted a request.");n(e);if(a.body&&a.body instanceof r.Readable){destroyStream(a.body,e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){y();return}const h=function abortAndFinalize(){y();finalize()};const m=l(o);let b;if(p){p.addEventListener("abort",h)}function finalize(){m.abort();if(p)p.removeEventListener("abort",h);clearTimeout(b)}if(a.timeout){m.once("socket",(function(e){b=setTimeout((function(){n(new FetchError(`network timeout at: ${a.url}`,"request-timeout"));finalize()}),a.timeout)}))}m.on("error",(function(e){n(new FetchError(`request to ${a.url} failed, reason: ${e.message}`,"system",e));if(d&&d.body){destroyStream(d.body,e)}finalize()}));fixResponseChunkedTransferBadEnding(m,(function(e){if(p&&p.aborted){return}if(d&&d.body){destroyStream(d.body,e)}}));if(parseInt(process.version.substring(1))<14){m.on("socket",(function(e){e.addListener("close",(function(t){const s=e.listenerCount("data")>0;if(d&&s&&!t&&!(p&&p.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE";d.body.emit("error",e)}}))}))}m.on("response",(function(e){clearTimeout(b);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=t.get("Location");let i=null;try{i=r===null?null:new T(r,a.url).toString()}catch(e){if(a.redirect!=="manual"){n(new FetchError(`uri requested responds with an invalid redirect URL: ${r}`,"invalid-redirect"));finalize();return}}switch(a.redirect){case"error":n(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){n(e)}}break;case"follow":if(i===null){break}if(a.counter>=a.follow){n(new FetchError(`maximum redirect reached at: ${a.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:a.body,signal:a.signal,timeout:a.timeout,size:a.size};if(!k(a.url,i)||!w(a.url,i)){for(const e of["authorization","www-authenticate","cookie","cookie2"]){r.headers.delete(e)}}if(e.statusCode!==303&&a.body&&getTotalBytes(a)===null){n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&a.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}s(fetch(new Request(i,r)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",h)}));let r=e.pipe(new I);const i={url:a.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:a.size,timeout:a.timeout,counter:a.counter};const c=t.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||c===null||e.statusCode===204||e.statusCode===304){d=new Response(r,i);s(d);return}const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(c=="gzip"||c=="x-gzip"){r=r.pipe(u.createGunzip(o));d=new Response(r,i);s(d);return}if(c=="deflate"||c=="x-deflate"){const t=e.pipe(new I);t.once("data",(function(e){if((e[0]&15)===8){r=r.pipe(u.createInflate())}else{r=r.pipe(u.createInflateRaw())}d=new Response(r,i);s(d)}));t.on("end",(function(){if(!d){d=new Response(r,i);s(d)}}));return}if(c=="br"&&typeof u.createBrotliDecompress==="function"){r=r.pipe(u.createBrotliDecompress());d=new Response(r,i);s(d);return}d=new Response(r,i);s(d)}));writeToStream(m,a)}))}function fixResponseChunkedTransferBadEnding(e,t){let s;e.on("socket",(function(e){s=e}));e.on("response",(function(e){const r=e.headers;if(r["transfer-encoding"]==="chunked"&&!r["content-length"]){e.once("close",(function(e){const r=s&&s.listenerCount("data")>0;if(r&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE";t(e)}}))}}))}function destroyStream(e,t){if(e.destroy){e.destroy(t)}else{e.emit("error",t);e.end()}}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError;t.AbortError=AbortError},42299:function(e,t,s){"use strict";var r=s(85477);var i=s(1907);var n={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var s=i.length-1;while(t<=s){var r=Math.floor((t+s)/2);var n=i[r];if(n[0][0]<=e&&n[0][1]>=e){return n}else if(n[0][0]>e){s=r-1}else{t=r+1}}return null}var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(a,"_").length}function mapChars(e,t,s){var r=false;var i="";var a=countSymbols(e);for(var c=0;c<a;++c){var u=e.codePointAt(c);var o=findStatus(u);switch(o[1]){case"disallowed":r=true;i+=String.fromCodePoint(u);break;case"ignored":break;case"mapped":i+=String.fromCodePoint.apply(String,o[2]);break;case"deviation":if(s===n.TRANSITIONAL){i+=String.fromCodePoint.apply(String,o[2])}else{i+=String.fromCodePoint(u)}break;case"valid":i+=String.fromCodePoint(u);break;case"disallowed_STD3_mapped":if(t){r=true;i+=String.fromCodePoint(u)}else{i+=String.fromCodePoint.apply(String,o[2])}break;case"disallowed_STD3_valid":if(t){r=true}i+=String.fromCodePoint(u);break}}return{string:i,error:r}}var c=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function validateLabel(e,t){if(e.substr(0,4)==="xn--"){e=r.toUnicode(e);t=n.NONTRANSITIONAL}var s=false;if(normalize(e)!==e||e[3]==="-"&&e[4]==="-"||e[0]==="-"||e[e.length-1]==="-"||e.indexOf(".")!==-1||e.search(c)===0){s=true}var i=countSymbols(e);for(var a=0;a<i;++a){var u=findStatus(e.codePointAt(a));if(processing===n.TRANSITIONAL&&u[1]!=="valid"||processing===n.NONTRANSITIONAL&&u[1]!=="valid"&&u[1]!=="deviation"){s=true;break}}return{label:e,error:s}}function processing(e,t,s){var r=mapChars(e,t,s);r.string=normalize(r.string);var i=r.string.split(".");for(var n=0;n<i.length;++n){try{var a=validateLabel(i[n]);i[n]=a.label;r.error=r.error||a.error}catch(e){r.error=true}}return{string:i.join("."),error:r.error}}e.exports.toASCII=function(e,t,s,i){var n=processing(e,t,s);var a=n.string.split(".");a=a.map((function(e){try{return r.toASCII(e)}catch(t){n.error=true;return e}}));if(i){var c=a.slice(0,a.length-1).join(".").length;if(c.length>253||c.length===0){n.error=true}for(var u=0;u<a.length;++u){if(a.length>63||a.length===0){n.error=true;break}}}if(n.error)return null;return a.join(".")};e.exports.toUnicode=function(e,t){var s=processing(e,t,n.NONTRANSITIONAL);return{domain:s.string,error:s.error}};e.exports.PROCESSING_OPTIONS=n},15871:function(e){"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const s=t.unsigned?0:-Math.pow(2,e);const r=Math.pow(2,e)-1;const i=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const n=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,a){if(!a)a={};let c=+e;if(a.enforceRange){if(!Number.isFinite(c)){throw new TypeError("Argument is not a finite number")}c=sign(c)*Math.floor(Math.abs(c));if(c<s||c>r){throw new TypeError("Argument is not in byte range")}return c}if(!isNaN(c)&&a.clamp){c=evenRound(c);if(c<s)c=s;if(c>r)c=r;return c}if(!Number.isFinite(c)||c===0){return 0}c=sign(c)*Math.floor(Math.abs(c));c=c%i;if(!t.unsigned&&c>=n){return c-i}else if(t.unsigned){if(c<0){c+=i}else if(c===-0){return 0}}return c}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const s=String(e);let r=undefined;for(let e=0;(r=s.codePointAt(e))!==undefined;++e){if(r>255){throw new TypeError("Argument is not a valid bytestring")}}return s};t["USVString"]=function(e){const t=String(e);const s=t.length;const r=[];for(let e=0;e<s;++e){const i=t.charCodeAt(e);if(i<55296||i>57343){r.push(String.fromCodePoint(i))}else if(56320<=i&&i<=57343){r.push(String.fromCodePoint(65533))}else{if(e===s-1){r.push(String.fromCodePoint(65533))}else{const s=t.charCodeAt(e+1);if(56320<=s&&s<=57343){const t=i&1023;const n=s&1023;r.push(String.fromCodePoint((2<<15)+(2<<9)*t+n));++e}else{r.push(String.fromCodePoint(65533))}}}}return r.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},58262:function(e,t,s){"use strict";const r=s(40033);t.implementation=class URLImpl{constructor(e){const t=e[0];const s=e[1];let i=null;if(s!==undefined){i=r.basicURLParse(s);if(i==="failure"){throw new TypeError("Invalid base URL")}}const n=r.basicURLParse(t,{baseURL:i});if(n==="failure"){throw new TypeError("Invalid URL")}this._url=n}get href(){return r.serializeURL(this._url)}set href(e){const t=r.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return r.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){r.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}r.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}r.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return r.serializeHost(e.host)}return r.serializeHost(e.host)+":"+r.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}r.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return r.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}r.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return r.serializeInteger(this._url.port)}set port(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{r.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];r.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const s=e[0]==="?"?e.substring(1):e;t.query="";r.basicURLParse(s,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";r.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},80653:function(e,t,s){"use strict";const r=s(15871);const i=s(60276);const n=s(58262);const a=i.implSymbol;function URL(t){if(!this||this[a]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const s=[];for(let e=0;e<arguments.length&&e<2;++e){s[e]=arguments[e]}s[0]=r["USVString"](s[0]);if(s[1]!==undefined){s[1]=r["USVString"](s[1])}e.exports.setup(this,s)}URL.prototype.toJSON=function toJSON(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}const t=[];for(let e=0;e<arguments.length&&e<0;++e){t[e]=arguments[e]}return this[a].toJSON.apply(this[a],t)};Object.defineProperty(URL.prototype,"href",{get(){return this[a].href},set(e){e=r["USVString"](e);this[a].href=e},enumerable:true,configurable:true});URL.prototype.toString=function(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}return this.href};Object.defineProperty(URL.prototype,"origin",{get(){return this[a].origin},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"protocol",{get(){return this[a].protocol},set(e){e=r["USVString"](e);this[a].protocol=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"username",{get(){return this[a].username},set(e){e=r["USVString"](e);this[a].username=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"password",{get(){return this[a].password},set(e){e=r["USVString"](e);this[a].password=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"host",{get(){return this[a].host},set(e){e=r["USVString"](e);this[a].host=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hostname",{get(){return this[a].hostname},set(e){e=r["USVString"](e);this[a].hostname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"port",{get(){return this[a].port},set(e){e=r["USVString"](e);this[a].port=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"pathname",{get(){return this[a].pathname},set(e){e=r["USVString"](e);this[a].pathname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"search",{get(){return this[a].search},set(e){e=r["USVString"](e);this[a].search=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hash",{get(){return this[a].hash},set(e){e=r["USVString"](e);this[a].hash=e},enumerable:true,configurable:true});e.exports={is(e){return!!e&&e[a]instanceof n.implementation},create(e,t){let s=Object.create(URL.prototype);this.setup(s,e,t);return s},setup(e,t,s){if(!s)s={};s.wrapper=e;e[a]=new n.implementation(t,s);e[a][i.wrapperSymbol]=e},interface:URL,expose:{Window:{URL:URL},Worker:{URL:URL}}}},73323:function(e,t,s){"use strict";t.URL=s(80653)["interface"];t.serializeURL=s(40033).serializeURL;t.serializeURLOrigin=s(40033).serializeURLOrigin;t.basicURLParse=s(40033).basicURLParse;t.setTheUsername=s(40033).setTheUsername;t.setThePassword=s(40033).setThePassword;t.serializeHost=s(40033).serializeHost;t.serializeInteger=s(40033).serializeInteger;t.parseURL=s(40033).parseURL},40033:function(e,t,s){"use strict";const r=s(85477);const i=s(42299);const n={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const a=Symbol("failure");function countSymbols(e){return r.ucs2.decode(e).length}function at(e,t){const s=e[t];return isNaN(s)?undefined:String.fromCodePoint(s)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return n[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return n[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let s="";for(let e=0;e<t.length;++e){s+=percentEncode(t[e])}return s}function utf8PercentDecode(e){const t=new Buffer(e);const s=[];for(let e=0;e<t.length;++e){if(t[e]!==37){s.push(t[e])}else if(t[e]===37&&isASCIIHex(t[e+1])&&isASCIIHex(t[e+2])){s.push(parseInt(t.slice(e+1,e+3).toString(),16));e+=2}else{s.push(t[e])}}return new Buffer(s).toString()}function isC0ControlPercentEncode(e){return e<=31||e>126}const c=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||c.has(e)}const u=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||u.has(e)}function percentEncodeChar(e,t){const s=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(s)}return s}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const s=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(s.test(e)){return a}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const s=[];for(const r of t){if(r===""){return e}const t=parseIPv4Number(r);if(t===a){return e}s.push(t)}for(let e=0;e<s.length-1;++e){if(s[e]>255){return a}}if(s[s.length-1]>=Math.pow(256,5-s.length)){return a}let r=s.pop();let i=0;for(const e of s){r+=e*Math.pow(256,3-i);++i}return r}function serializeIPv4(e){let t="";let s=e;for(let e=1;e<=4;++e){t=String(s%256)+t;if(e!==4){t="."+t}s=Math.floor(s/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let s=0;let i=null;let n=0;e=r.ucs2.decode(e);if(e[n]===58){if(e[n+1]!==58){return a}n+=2;++s;i=s}while(n<e.length){if(s===8){return a}if(e[n]===58){if(i!==null){return a}++n;++s;i=s;continue}let r=0;let c=0;while(c<4&&isASCIIHex(e[n])){r=r*16+parseInt(at(e,n),16);++n;++c}if(e[n]===46){if(c===0){return a}n-=c;if(s>6){return a}let r=0;while(e[n]!==undefined){let i=null;if(r>0){if(e[n]===46&&r<4){++n}else{return a}}if(!isASCIIDigit(e[n])){return a}while(isASCIIDigit(e[n])){const t=parseInt(at(e,n));if(i===null){i=t}else if(i===0){return a}else{i=i*10+t}if(i>255){return a}++n}t[s]=t[s]*256+i;++r;if(r===2||r===4){++s}}if(r!==4){return a}break}else if(e[n]===58){++n;if(e[n]===undefined){return a}}else if(e[n]!==undefined){return a}t[s]=r;++s}if(i!==null){let e=s-i;s=7;while(s!==0&&e>0){const r=t[i+e-1];t[i+e-1]=t[s];t[s]=r;--s;--e}}else if(i===null&&s!==8){return a}return t}function serializeIPv6(e){let t="";const s=findLongestZeroSequence(e);const r=s.idx;let i=false;for(let s=0;s<=7;++s){if(i&&e[s]===0){continue}else if(i){i=false}if(r===s){const e=s===0?"::":":";t+=e;i=true;continue}t+=e[s].toString(16);if(s!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return a}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const s=utf8PercentDecode(e);const r=i.toASCII(s,false,i.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(r===null){return a}if(containsForbiddenHostCodePoint(r)){return a}const n=parseIPv4(r);if(typeof n==="number"||n===a){return n}return r}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return a}let t="";const s=r.ucs2.decode(e);for(let e=0;e<s.length;++e){t+=percentEncodeChar(s[e],isC0ControlPercentEncode)}return t}function findLongestZeroSequence(e){let t=null;let s=1;let r=null;let i=0;for(let n=0;n<e.length;++n){if(e[n]!==0){if(i>s){t=r;s=i}r=null;i=0}else{if(r===null){r=n}++i}}if(i>s){t=r;s=i}return{idx:t,len:s}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,s,i,n){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=s||"utf-8";this.stateOverride=n;this.url=i;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const c=trimTabAndNewline(this.input);if(c!==this.input){this.parseError=true}this.input=c;this.state=n||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=r.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const s=this["parse "+this.state](e,t);if(!s){break}else if(s===a){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return a}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return a}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return a}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=true;continue}const s=percentEncodeChar(e,isUserinfoPercentEncode);if(this.passwordTokenSeenFlag){this.url.password+=s}else{this.url.username+=s}}this.buffer=""}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){if(this.atFlag&&this.buffer===""){this.parseError=true;return a}this.pointer-=countSymbols(this.buffer)+1;this.buffer="";this.state="host"}else{this.buffer+=t}return true};URLStateMachine.prototype["parse hostname"]=URLStateMachine.prototype["parse host"]=function parseHostName(e,t){if(this.stateOverride&&this.url.scheme==="file"){--this.pointer;this.state="file host"}else if(e===58&&!this.arrFlag){if(this.buffer===""){this.parseError=true;return a}const e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}this.url.host=e;this.buffer="";this.state="port";if(this.stateOverride==="hostname"){return false}}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){--this.pointer;if(isSpecial(this.url)&&this.buffer===""){this.parseError=true;return a}else if(this.stateOverride&&this.buffer===""&&(includesCredentials(this.url)||this.url.port!==null)){this.parseError=true;return false}const e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}this.url.host=e;this.buffer="";this.state="path start";if(this.stateOverride){return false}}else{if(e===91){this.arrFlag=true}else if(e===93){this.arrFlag=false}this.buffer+=t}return true};URLStateMachine.prototype["parse port"]=function parsePort(e,t){if(isASCIIDigit(e)){this.buffer+=t}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92||this.stateOverride){if(this.buffer!==""){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1){this.parseError=true;return a}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return a}return true};const o=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!o.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e){if(t[e]<33||t[e]>126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let s=e.scheme+":";if(e.host!==null){s+="//";if(e.username!==""||e.password!==""){s+=e.username;if(e.password!==""){s+=":"+e.password}s+="@"}s+=serializeHost(e.host);if(e.port!==null){s+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){s+="//"}if(e.cannotBeABaseURL){s+=e.path[0]}else{for(const t of e.path){s+="/"+t}}if(e.query!==null){s+="?"+e.query}if(!t&&e.fragment!==null){s+="#"+e.fragment}return s}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const s=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(s.failure){return"failure"}return s.url};e.exports.setTheUsername=function(e,t){e.username="";const s=r.ucs2.decode(t);for(let t=0;t<s.length;++t){e.username+=percentEncodeChar(s[t],isUserinfoPercentEncode)}};e.exports.setThePassword=function(e,t){e.password="";const s=r.ucs2.decode(t);for(let t=0;t<s.length;++t){e.password+=percentEncodeChar(s[t],isUserinfoPercentEncode)}};e.exports.serializeHost=serializeHost;e.exports.cannotHaveAUsernamePasswordPort=cannotHaveAUsernamePasswordPort;e.exports.serializeInteger=function(e){return String(e)};e.exports.parseURL=function(t,s){if(s===undefined){s={}}return e.exports.basicURLParse(t,{baseURL:s.baseURL,encodingOverride:s.encodingOverride})}},60276:function(e){"use strict";e.exports.mixin=function mixin(e,t){const s=Object.getOwnPropertyNames(t);for(let r=0;r<s.length;++r){Object.defineProperty(e,s[r],Object.getOwnPropertyDescriptor(t,s[r]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},15118:function(e,t,s){"use strict";var r=s(14300);var i=r.Buffer;var n={};var a;for(a in r){if(!r.hasOwnProperty(a))continue;if(a==="SlowBuffer"||a==="Buffer")continue;n[a]=r[a]}var c=n.Buffer={};for(a in i){if(!i.hasOwnProperty(a))continue;if(a==="allocUnsafe"||a==="allocUnsafeSlow")continue;c[a]=i[a]}n.Buffer.prototype=i.prototype;if(!c.from||c.from===Uint8Array.from){c.from=function(e,t,s){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return i(e,t,s)}}if(!c.alloc){c.alloc=function(e,t,s){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var r=i(e);if(!t||t.length===0){r.fill(0)}else if(typeof s==="string"){r.fill(t,s)}else{r.fill(t)}return r}}if(!n.kStringMaxLength){try{n.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!n.constants){n.constants={MAX_LENGTH:n.kMaxLength};if(n.kStringMaxLength){n.constants.MAX_STRING_LENGTH=n.kStringMaxLength}}e.exports=n},59318:function(e,t,s){"use strict";const r=s(22037);const i=s(76224);const n=s(81533);const{env:a}=process;let c;if(n("no-color")||n("no-colors")||n("color=false")||n("color=never")){c=0}else if(n("color")||n("colors")||n("color=true")||n("color=always")){c=1}if("FORCE_COLOR"in a){if(a.FORCE_COLOR==="true"){c=1}else if(a.FORCE_COLOR==="false"){c=0}else{c=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const s=c||0;if(a.TERM==="dumb"){return s}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||a.CI_NAME==="codeship"){return 1}return s}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}return s}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},81533:function(e){"use strict";e.exports=(e,t=process.argv)=>{const s=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(s+e);const i=t.indexOf("--");return r!==-1&&(i===-1||r<i)}},36087:function(e,t,s){var r=s(85443);var i=s(73837);var n=s(71017);var a=s(13685);var c=s(95687);var u=s(57310).parse;var o=s(57147);var l=s(43583);var p=s(14812);var d=s(83033);e.exports=FormData;i.inherits(FormData,r);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];r.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,s){s=s||{};if(typeof s=="string"){s={filename:s}}var n=r.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(i.isArray(t)){this._error(new Error("Arrays are not supported."));return}var a=this._multiPartHeader(e,t,s);var c=this._multiPartFooter();n(a);n(t);n(c);this._trackLength(a,t,s)};FormData.prototype._trackLength=function(e,t,s){var r=0;if(s.knownLength!=null){r+=+s.knownLength}else if(Buffer.isBuffer(t)){r=t.length}else if(typeof t==="string"){r=Buffer.byteLength(t)}this._valueLength+=r;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))){return}if(!s.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{o.stat(e.path,(function(s,r){var i;if(s){t(s);return}i=r.size-(e.start?e.start:0);t(null,i)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(s){e.pause();t(null,+s.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,s){if(typeof s.header=="string"){return s.header}var r=this._getContentDisposition(t,s);var i=this._getContentType(t,s);var n="";var a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};if(typeof s.header=="object"){d(a,s.header)}var c;for(var u in a){if(!a.hasOwnProperty(u))continue;c=a[u];if(c==null){continue}if(!Array.isArray(c)){c=[c]}if(c.length){n+=u+": "+c.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+n+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var s,r;if(typeof t.filepath==="string"){s=n.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){s=n.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){s=n.basename(e.client._httpMessage.path||"")}if(s){r='filename="'+s+'"'}return r};FormData.prototype._getContentType=function(e,t){var s=t.contentType;if(!s&&e.name){s=l.lookup(e.name)}if(!s&&e.path){s=l.lookup(e.path)}if(!s&&e.readable&&e.hasOwnProperty("httpVersion")){s=e.headers["content-type"]}if(!s&&(t.filepath||t.filename)){s=l.lookup(t.filepath||t.filename)}if(!s&&typeof e=="object"){s=FormData.DEFAULT_CONTENT_TYPE}return s};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var s=this._streams.length===0;if(s){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var s={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){s[t.toLowerCase()]=e[t]}}return s};FormData.prototype.setBoundary=function(e){this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var s=0,r=this._streams.length;s<r;s++){if(typeof this._streams[s]!=="function"){if(Buffer.isBuffer(this._streams[s])){e=Buffer.concat([e,this._streams[s]])}else{e=Buffer.concat([e,Buffer.from(this._streams[s])])}if(typeof this._streams[s]!=="string"||this._streams[s].substring(2,t.length+2)!==t){e=Buffer.concat([e,Buffer.from(FormData.LINE_BREAK)])}}}return Buffer.concat([e,Buffer.from(this._lastBoundary())])};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}p.parallel(this._valuesToMeasure,this._lengthRetriever,(function(s,r){if(s){e(s);return}r.forEach((function(e){t+=e}));e(null,t)}))};FormData.prototype.submit=function(e,t){var s,r,i={method:"post"};if(typeof e=="string"){e=u(e);r=d({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)}else{r=d(e,i);if(!r.port){r.port=r.protocol=="https:"?443:80}}r.headers=this.getHeaders(e.headers);if(r.protocol=="https:"){s=c.request(r)}else{s=a.request(r)}this.getLength(function(e,r){if(e){this._error(e);return}s.setHeader("Content-Length",r);this.pipe(s);if(t){var i;var callback=function(e,r){s.removeListener("error",callback);s.removeListener("response",i);return t.call(this,e,r)};i=callback.bind(this,null);s.on("error",callback);s.on("response",i)}}.bind(this));return s};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},83033:function(e){e.exports=function(e,t){Object.keys(t).forEach((function(s){e[s]=e[s]||t[s]}));return e}},6689:function(e){"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function";e.exports=isStream},96814:function(e){
14
+ */var r=s(47426);var i=s(71017).extname;var n=/^\s*([^;\s]*)(?:;|\s|$)/;var a=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=n.exec(e);var s=t&&r[t[1].toLowerCase()];if(s&&s.charset){return s.charset}if(t&&a.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var s=e.indexOf("/")===-1?t.lookup(e):e;if(!s){return false}if(s.indexOf("charset")===-1){var r=t.charset(s);if(r)s+="; charset="+r.toLowerCase()}return s}function extension(e){if(!e||typeof e!=="string"){return false}var s=n.exec(e);var r=s&&t.extensions[s[1].toLowerCase()];if(!r||!r.length){return false}return r[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var s=i("x."+e).toLowerCase().substr(1);if(!s){return false}return t.types[s]||false}function populateMaps(e,t){var s=["nginx","apache",undefined,"iana"];Object.keys(r).forEach((function forEachMimeType(i){var n=r[i];var a=n.extensions;if(!a||!a.length){return}e[i]=a;for(var c=0;c<a.length;c++){var u=a[c];if(t[u]){var o=s.indexOf(r[t[u]].source);var l=s.indexOf(n.source);if(t[u]!=="application/octet-stream"&&(o>l||o===l&&t[u].substr(0,12)==="application/")){continue}}t[u]=i}}))}},80467:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(s(12781));var i=_interopDefault(s(13685));var n=_interopDefault(s(57310));var a=_interopDefault(s(73323));var c=_interopDefault(s(95687));var u=_interopDefault(s(59796));const o=r.Readable;const l=Symbol("buffer");const p=Symbol("type");class Blob{constructor(){this[p]="";const e=arguments[0];const t=arguments[1];const s=[];let r=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let n;if(i instanceof Buffer){n=i}else if(ArrayBuffer.isView(i)){n=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){n=Buffer.from(i)}else if(i instanceof Blob){n=i[l]}else{n=Buffer.from(typeof i==="string"?i:String(i))}r+=n.length;s.push(n)}}this[l]=Buffer.concat(s);let i=t&&t.type!==undefined&&String(t.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[p]=i}}get size(){return this[l].length}get type(){return this[p]}text(){return Promise.resolve(this[l].toString())}arrayBuffer(){const e=this[l];const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new o;e._read=function(){};e.push(this[l]);e.push(null);return e}toString(){return"[object Blob]"}slice(){const e=this.size;const t=arguments[0];const s=arguments[1];let r,i;if(t===undefined){r=0}else if(t<0){r=Math.max(e+t,0)}else{r=Math.min(t,e)}if(s===undefined){i=e}else if(s<0){i=Math.max(e+s,0)}else{i=Math.min(s,e)}const n=Math.max(i-r,0);const a=this[l];const c=a.slice(r,r+n);const u=new Blob([],{type:arguments[2]});u[l]=c;return u}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(e,t,s){Error.call(this,e);this.message=e;this.type=t;if(s){this.code=this.errno=s.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let d;try{d=s(28685).O}catch(e){}const y=Symbol("Body internals");const h=r.PassThrough;function Body(e){var t=this;var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=s.size;let n=i===undefined?0:i;var a=s.timeout;let c=a===undefined?0:a;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r);else{e=Buffer.from(String(e))}this[y]={body:e,disturbed:false,error:null};this.size=n;this.timeout=c;if(e instanceof r){e.on("error",(function(e){const s=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[y].error=s}))}}Body.prototype={get body(){return this[y].body},get bodyUsed(){return this[y].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const s=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,s)}}};function consumeBody(){var e=this;if(this[y].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[y].disturbed=true;if(this[y].error){return Body.Promise.reject(this[y].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let s=[];let i=0;let n=false;return new Body.Promise((function(r,a){let c;if(e.timeout){c=setTimeout((function(){n=true;a(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){n=true;a(t)}else{a(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(n||t===null){return}if(e.size&&i+t.length>e.size){n=true;a(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;s.push(t)}));t.on("end",(function(){if(n){return}clearTimeout(c);try{r(Buffer.concat(s,i))}catch(t){a(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const s=t.get("content-type");let r="utf-8";let i,n;if(s){i=/charset=([^;]*)/i.exec(s)}n=e.slice(0,1024).toString();if(!i&&n){i=/<meta.+?charset=(['"])(.+?)\1/i.exec(n)}if(!i&&n){i=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(n);if(!i){i=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(n);if(i){i.pop()}}if(i){i=/charset=(.*)/i.exec(i.pop())}}if(!i&&n){i=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(n)}if(i){r=i.pop();if(r==="gb2312"||r==="gbk"){r="gb18030"}}return d(e,"UTF-8",r).toString()}function isURLSearchParams(e){if(typeof e!=="object"||typeof e.append!=="function"||typeof e.delete!=="function"||typeof e.get!=="function"||typeof e.getAll!=="function"||typeof e.has!=="function"||typeof e.set!=="function"){return false}return e.constructor.name==="URLSearchParams"||Object.prototype.toString.call(e)==="[object URLSearchParams]"||typeof e.sort==="function"}function isBlob(e){return typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&typeof e.constructor.name==="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let t,s;let i=e.body;if(e.bodyUsed){throw new Error("cannot clone body after it is used")}if(i instanceof r&&typeof i.getBoundary!=="function"){t=new h;s=new h;i.pipe(t);i.pipe(s);e[y].body=t;i=s}return i}function extractContentType(e){if(e===null){return null}else if(typeof e==="string"){return"text/plain;charset=UTF-8"}else if(isURLSearchParams(e)){return"application/x-www-form-urlencoded;charset=UTF-8"}else if(isBlob(e)){return e.type||null}else if(Buffer.isBuffer(e)){return null}else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){return null}else if(ArrayBuffer.isView(e)){return null}else if(typeof e.getBoundary==="function"){return`multipart/form-data;boundary=${e.getBoundary()}`}else if(e instanceof r){return null}else{return"text/plain;charset=UTF-8"}}function getTotalBytes(e){const t=e.body;if(t===null){return 0}else if(isBlob(t)){return t.size}else if(Buffer.isBuffer(t)){return t.length}else if(t&&typeof t.getLengthSync==="function"){if(t._lengthRetrievers&&t._lengthRetrievers.length==0||t.hasKnownLength&&t.hasKnownLength()){return t.getLengthSync()}return null}else{return null}}function writeToStream(e,t){const s=t.body;if(s===null){e.end()}else if(isBlob(s)){s.stream().pipe(e)}else if(Buffer.isBuffer(s)){e.write(s);e.end()}else{s.pipe(e)}}Body.Promise=global.Promise;const m=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;const b=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){e=`${e}`;if(m.test(e)||e===""){throw new TypeError(`${e} is not a legal HTTP header name`)}}function validateValue(e){e=`${e}`;if(b.test(e)){throw new TypeError(`${e} is not a legal HTTP header value`)}}function find(e,t){t=t.toLowerCase();for(const s in e){if(s.toLowerCase()===t){return s}}return undefined}const D=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this[D]=Object.create(null);if(e instanceof Headers){const t=e.raw();const s=Object.keys(t);for(const e of s){for(const s of t[e]){this.append(e,s)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const s=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}s.push(Array.from(t))}for(const e of s){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const s=e[t];this.append(t,s)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[D],e);if(t===undefined){return null}return this[D][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let s=getHeaders(this);let r=0;while(r<s.length){var i=s[r];const n=i[0],a=i[1];e.call(t,a,n,this);s=getHeaders(this);r++}}set(e,t){e=`${e}`;t=`${t}`;validateName(e);validateValue(t);const s=find(this[D],e);this[D][s!==undefined?s:e]=[t]}append(e,t){e=`${e}`;t=`${t}`;validateName(e);validateValue(t);const s=find(this[D],e);if(s!==undefined){this[D][s].push(t)}else{this[D][e]=[t]}}has(e){e=`${e}`;validateName(e);return find(this[D],e)!==undefined}delete(e){e=`${e}`;validateName(e);const t=find(this[D],e);if(t!==undefined){delete this[D][t]}}raw(){return this[D]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}Headers.prototype.entries=Headers.prototype[Symbol.iterator];Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:false,enumerable:false,configurable:true});Object.defineProperties(Headers.prototype,{get:{enumerable:true},forEach:{enumerable:true},set:{enumerable:true},append:{enumerable:true},has:{enumerable:true},delete:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true}});function getHeaders(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key+value";const s=Object.keys(e[D]).sort();return s.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[D][t].join(", ")}:function(t){return[t.toLowerCase(),e[D][t].join(", ")]})}const q=Symbol("internal");function createHeadersIterator(e,t){const s=Object.create(v);s[q]={target:e,kind:t,index:0};return s}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[q];const t=e.target,s=e.kind,r=e.index;const i=getHeaders(t,s);const n=i.length;if(r>=n){return{value:undefined,done:true}}this[q].index=r+1;return{value:i[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[D]);const s=find(e[D],"Host");if(s!==undefined){t[s]=t[s][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const s of Object.keys(e)){if(m.test(s)){continue}if(Array.isArray(e[s])){for(const r of e[s]){if(b.test(r)){continue}if(t[D][s]===undefined){t[D][s]=[r]}else{t[D][s].push(r)}}}else if(!b.test(e[s])){t[D][s]=[e[s]]}}return t}const C=Symbol("Response internals");const g=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const s=t.status||200;const r=new Headers(t.headers);if(e!=null&&!r.has("Content-Type")){const t=extractContentType(e);if(t){r.append("Content-Type",t)}}this[C]={url:t.url,status:s,statusText:t.statusText||g[s],headers:r,counter:t.counter}}get url(){return this[C].url||""}get status(){return this[C].status}get ok(){return this[C].status>=200&&this[C].status<300}get redirected(){return this[C].counter>0}get statusText(){return this[C].statusText}get headers(){return this[C].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const S=Symbol("Request internals");const P=n.URL||a.URL;const M=n.parse;const A=n.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new P(e).toString()}return M(e)}const R="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[S]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let s;if(!isRequest(e)){if(e&&e.href){s=parseURL(e.href)}else{s=parseURL(`${e}`)}e={}}else{s=parseURL(e.url)}let r=t.method||e.method||"GET";r=r.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const n=new Headers(t.headers||e.headers||{});if(i!=null&&!n.has("Content-Type")){const e=extractContentType(i);if(e){n.append("Content-Type",e)}}let a=isRequest(e)?e.signal:null;if("signal"in t)a=t.signal;if(a!=null&&!isAbortSignal(a)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[S]={method:r,redirect:t.redirect||e.redirect||"follow",headers:n,parsedURL:s,signal:a};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[S].method}get url(){return A(this[S].parsedURL)}get headers(){return this[S].headers}get redirect(){return this[S].redirect}get signal(){return this[S].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[S].parsedURL;const s=new Headers(e[S].headers);if(!s.has("Accept")){s.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!R){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){s.set("Content-Length",i)}if(!s.has("User-Agent")){s.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!s.has("Accept-Encoding")){s.set("Accept-Encoding","gzip,deflate")}let n=e.agent;if(typeof n==="function"){n=n(t)}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(s),agent:n})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const T=n.URL||a.URL;const I=r.PassThrough;const k=function isDomainOrSubdomain(e,t){const s=new T(t).hostname;const r=new T(e).hostname;return s===r||s[s.length-r.length-1]==="."&&s.endsWith(r)};const w=function isSameProtocol(e,t){const s=new T(t).protocol;const r=new T(e).protocol;return s===r};function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(s,n){const a=new Request(e,t);const o=getNodeRequestOptions(a);const l=(o.protocol==="https:"?c:i).request;const p=a.signal;let d=null;const y=function abort(){let e=new AbortError("The user aborted a request.");n(e);if(a.body&&a.body instanceof r.Readable){destroyStream(a.body,e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){y();return}const h=function abortAndFinalize(){y();finalize()};const m=l(o);let b;if(p){p.addEventListener("abort",h)}function finalize(){m.abort();if(p)p.removeEventListener("abort",h);clearTimeout(b)}if(a.timeout){m.once("socket",(function(e){b=setTimeout((function(){n(new FetchError(`network timeout at: ${a.url}`,"request-timeout"));finalize()}),a.timeout)}))}m.on("error",(function(e){n(new FetchError(`request to ${a.url} failed, reason: ${e.message}`,"system",e));if(d&&d.body){destroyStream(d.body,e)}finalize()}));fixResponseChunkedTransferBadEnding(m,(function(e){if(p&&p.aborted){return}if(d&&d.body){destroyStream(d.body,e)}}));if(parseInt(process.version.substring(1))<14){m.on("socket",(function(e){e.addListener("close",(function(t){const s=e.listenerCount("data")>0;if(d&&s&&!t&&!(p&&p.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE";d.body.emit("error",e)}}))}))}m.on("response",(function(e){clearTimeout(b);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=t.get("Location");let i=null;try{i=r===null?null:new T(r,a.url).toString()}catch(e){if(a.redirect!=="manual"){n(new FetchError(`uri requested responds with an invalid redirect URL: ${r}`,"invalid-redirect"));finalize();return}}switch(a.redirect){case"error":n(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){n(e)}}break;case"follow":if(i===null){break}if(a.counter>=a.follow){n(new FetchError(`maximum redirect reached at: ${a.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:a.body,signal:a.signal,timeout:a.timeout,size:a.size};if(!k(a.url,i)||!w(a.url,i)){for(const e of["authorization","www-authenticate","cookie","cookie2"]){r.headers.delete(e)}}if(e.statusCode!==303&&a.body&&getTotalBytes(a)===null){n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&a.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}s(fetch(new Request(i,r)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",h)}));let r=e.pipe(new I);const i={url:a.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:a.size,timeout:a.timeout,counter:a.counter};const c=t.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||c===null||e.statusCode===204||e.statusCode===304){d=new Response(r,i);s(d);return}const o={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(c=="gzip"||c=="x-gzip"){r=r.pipe(u.createGunzip(o));d=new Response(r,i);s(d);return}if(c=="deflate"||c=="x-deflate"){const t=e.pipe(new I);t.once("data",(function(e){if((e[0]&15)===8){r=r.pipe(u.createInflate())}else{r=r.pipe(u.createInflateRaw())}d=new Response(r,i);s(d)}));t.on("end",(function(){if(!d){d=new Response(r,i);s(d)}}));return}if(c=="br"&&typeof u.createBrotliDecompress==="function"){r=r.pipe(u.createBrotliDecompress());d=new Response(r,i);s(d);return}d=new Response(r,i);s(d)}));writeToStream(m,a)}))}function fixResponseChunkedTransferBadEnding(e,t){let s;e.on("socket",(function(e){s=e}));e.on("response",(function(e){const r=e.headers;if(r["transfer-encoding"]==="chunked"&&!r["content-length"]){e.once("close",(function(e){const r=s&&s.listenerCount("data")>0;if(r&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE";t(e)}}))}}))}function destroyStream(e,t){if(e.destroy){e.destroy(t)}else{e.emit("error",t);e.end()}}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError;t.AbortError=AbortError},42299:function(e,t,s){"use strict";var r=s(85477);var i=s(1907);var n={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var s=i.length-1;while(t<=s){var r=Math.floor((t+s)/2);var n=i[r];if(n[0][0]<=e&&n[0][1]>=e){return n}else if(n[0][0]>e){s=r-1}else{t=r+1}}return null}var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(a,"_").length}function mapChars(e,t,s){var r=false;var i="";var a=countSymbols(e);for(var c=0;c<a;++c){var u=e.codePointAt(c);var o=findStatus(u);switch(o[1]){case"disallowed":r=true;i+=String.fromCodePoint(u);break;case"ignored":break;case"mapped":i+=String.fromCodePoint.apply(String,o[2]);break;case"deviation":if(s===n.TRANSITIONAL){i+=String.fromCodePoint.apply(String,o[2])}else{i+=String.fromCodePoint(u)}break;case"valid":i+=String.fromCodePoint(u);break;case"disallowed_STD3_mapped":if(t){r=true;i+=String.fromCodePoint(u)}else{i+=String.fromCodePoint.apply(String,o[2])}break;case"disallowed_STD3_valid":if(t){r=true}i+=String.fromCodePoint(u);break}}return{string:i,error:r}}var c=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function validateLabel(e,t){if(e.substr(0,4)==="xn--"){e=r.toUnicode(e);t=n.NONTRANSITIONAL}var s=false;if(normalize(e)!==e||e[3]==="-"&&e[4]==="-"||e[0]==="-"||e[e.length-1]==="-"||e.indexOf(".")!==-1||e.search(c)===0){s=true}var i=countSymbols(e);for(var a=0;a<i;++a){var u=findStatus(e.codePointAt(a));if(processing===n.TRANSITIONAL&&u[1]!=="valid"||processing===n.NONTRANSITIONAL&&u[1]!=="valid"&&u[1]!=="deviation"){s=true;break}}return{label:e,error:s}}function processing(e,t,s){var r=mapChars(e,t,s);r.string=normalize(r.string);var i=r.string.split(".");for(var n=0;n<i.length;++n){try{var a=validateLabel(i[n]);i[n]=a.label;r.error=r.error||a.error}catch(e){r.error=true}}return{string:i.join("."),error:r.error}}e.exports.toASCII=function(e,t,s,i){var n=processing(e,t,s);var a=n.string.split(".");a=a.map((function(e){try{return r.toASCII(e)}catch(t){n.error=true;return e}}));if(i){var c=a.slice(0,a.length-1).join(".").length;if(c.length>253||c.length===0){n.error=true}for(var u=0;u<a.length;++u){if(a.length>63||a.length===0){n.error=true;break}}}if(n.error)return null;return a.join(".")};e.exports.toUnicode=function(e,t){var s=processing(e,t,n.NONTRANSITIONAL);return{domain:s.string,error:s.error}};e.exports.PROCESSING_OPTIONS=n},15871:function(e){"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const s=t.unsigned?0:-Math.pow(2,e);const r=Math.pow(2,e)-1;const i=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const n=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,a){if(!a)a={};let c=+e;if(a.enforceRange){if(!Number.isFinite(c)){throw new TypeError("Argument is not a finite number")}c=sign(c)*Math.floor(Math.abs(c));if(c<s||c>r){throw new TypeError("Argument is not in byte range")}return c}if(!isNaN(c)&&a.clamp){c=evenRound(c);if(c<s)c=s;if(c>r)c=r;return c}if(!Number.isFinite(c)||c===0){return 0}c=sign(c)*Math.floor(Math.abs(c));c=c%i;if(!t.unsigned&&c>=n){return c-i}else if(t.unsigned){if(c<0){c+=i}else if(c===-0){return 0}}return c}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const s=String(e);let r=undefined;for(let e=0;(r=s.codePointAt(e))!==undefined;++e){if(r>255){throw new TypeError("Argument is not a valid bytestring")}}return s};t["USVString"]=function(e){const t=String(e);const s=t.length;const r=[];for(let e=0;e<s;++e){const i=t.charCodeAt(e);if(i<55296||i>57343){r.push(String.fromCodePoint(i))}else if(56320<=i&&i<=57343){r.push(String.fromCodePoint(65533))}else{if(e===s-1){r.push(String.fromCodePoint(65533))}else{const s=t.charCodeAt(e+1);if(56320<=s&&s<=57343){const t=i&1023;const n=s&1023;r.push(String.fromCodePoint((2<<15)+(2<<9)*t+n));++e}else{r.push(String.fromCodePoint(65533))}}}}return r.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},58262:function(e,t,s){"use strict";const r=s(40033);t.implementation=class URLImpl{constructor(e){const t=e[0];const s=e[1];let i=null;if(s!==undefined){i=r.basicURLParse(s);if(i==="failure"){throw new TypeError("Invalid base URL")}}const n=r.basicURLParse(t,{baseURL:i});if(n==="failure"){throw new TypeError("Invalid URL")}this._url=n}get href(){return r.serializeURL(this._url)}set href(e){const t=r.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return r.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){r.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}r.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}r.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return r.serializeHost(e.host)}return r.serializeHost(e.host)+":"+r.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}r.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return r.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}r.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return r.serializeInteger(this._url.port)}set port(e){if(r.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{r.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];r.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const s=e[0]==="?"?e.substring(1):e;t.query="";r.basicURLParse(s,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";r.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},80653:function(e,t,s){"use strict";const r=s(15871);const i=s(60276);const n=s(58262);const a=i.implSymbol;function URL(t){if(!this||this[a]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const s=[];for(let e=0;e<arguments.length&&e<2;++e){s[e]=arguments[e]}s[0]=r["USVString"](s[0]);if(s[1]!==undefined){s[1]=r["USVString"](s[1])}e.exports.setup(this,s)}URL.prototype.toJSON=function toJSON(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}const t=[];for(let e=0;e<arguments.length&&e<0;++e){t[e]=arguments[e]}return this[a].toJSON.apply(this[a],t)};Object.defineProperty(URL.prototype,"href",{get(){return this[a].href},set(e){e=r["USVString"](e);this[a].href=e},enumerable:true,configurable:true});URL.prototype.toString=function(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}return this.href};Object.defineProperty(URL.prototype,"origin",{get(){return this[a].origin},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"protocol",{get(){return this[a].protocol},set(e){e=r["USVString"](e);this[a].protocol=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"username",{get(){return this[a].username},set(e){e=r["USVString"](e);this[a].username=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"password",{get(){return this[a].password},set(e){e=r["USVString"](e);this[a].password=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"host",{get(){return this[a].host},set(e){e=r["USVString"](e);this[a].host=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hostname",{get(){return this[a].hostname},set(e){e=r["USVString"](e);this[a].hostname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"port",{get(){return this[a].port},set(e){e=r["USVString"](e);this[a].port=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"pathname",{get(){return this[a].pathname},set(e){e=r["USVString"](e);this[a].pathname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"search",{get(){return this[a].search},set(e){e=r["USVString"](e);this[a].search=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hash",{get(){return this[a].hash},set(e){e=r["USVString"](e);this[a].hash=e},enumerable:true,configurable:true});e.exports={is(e){return!!e&&e[a]instanceof n.implementation},create(e,t){let s=Object.create(URL.prototype);this.setup(s,e,t);return s},setup(e,t,s){if(!s)s={};s.wrapper=e;e[a]=new n.implementation(t,s);e[a][i.wrapperSymbol]=e},interface:URL,expose:{Window:{URL:URL},Worker:{URL:URL}}}},73323:function(e,t,s){"use strict";t.URL=s(80653)["interface"];t.serializeURL=s(40033).serializeURL;t.serializeURLOrigin=s(40033).serializeURLOrigin;t.basicURLParse=s(40033).basicURLParse;t.setTheUsername=s(40033).setTheUsername;t.setThePassword=s(40033).setThePassword;t.serializeHost=s(40033).serializeHost;t.serializeInteger=s(40033).serializeInteger;t.parseURL=s(40033).parseURL},40033:function(e,t,s){"use strict";const r=s(85477);const i=s(42299);const n={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const a=Symbol("failure");function countSymbols(e){return r.ucs2.decode(e).length}function at(e,t){const s=e[t];return isNaN(s)?undefined:String.fromCodePoint(s)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return n[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return n[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let s="";for(let e=0;e<t.length;++e){s+=percentEncode(t[e])}return s}function utf8PercentDecode(e){const t=new Buffer(e);const s=[];for(let e=0;e<t.length;++e){if(t[e]!==37){s.push(t[e])}else if(t[e]===37&&isASCIIHex(t[e+1])&&isASCIIHex(t[e+2])){s.push(parseInt(t.slice(e+1,e+3).toString(),16));e+=2}else{s.push(t[e])}}return new Buffer(s).toString()}function isC0ControlPercentEncode(e){return e<=31||e>126}const c=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||c.has(e)}const u=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||u.has(e)}function percentEncodeChar(e,t){const s=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(s)}return s}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const s=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(s.test(e)){return a}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const s=[];for(const r of t){if(r===""){return e}const t=parseIPv4Number(r);if(t===a){return e}s.push(t)}for(let e=0;e<s.length-1;++e){if(s[e]>255){return a}}if(s[s.length-1]>=Math.pow(256,5-s.length)){return a}let r=s.pop();let i=0;for(const e of s){r+=e*Math.pow(256,3-i);++i}return r}function serializeIPv4(e){let t="";let s=e;for(let e=1;e<=4;++e){t=String(s%256)+t;if(e!==4){t="."+t}s=Math.floor(s/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let s=0;let i=null;let n=0;e=r.ucs2.decode(e);if(e[n]===58){if(e[n+1]!==58){return a}n+=2;++s;i=s}while(n<e.length){if(s===8){return a}if(e[n]===58){if(i!==null){return a}++n;++s;i=s;continue}let r=0;let c=0;while(c<4&&isASCIIHex(e[n])){r=r*16+parseInt(at(e,n),16);++n;++c}if(e[n]===46){if(c===0){return a}n-=c;if(s>6){return a}let r=0;while(e[n]!==undefined){let i=null;if(r>0){if(e[n]===46&&r<4){++n}else{return a}}if(!isASCIIDigit(e[n])){return a}while(isASCIIDigit(e[n])){const t=parseInt(at(e,n));if(i===null){i=t}else if(i===0){return a}else{i=i*10+t}if(i>255){return a}++n}t[s]=t[s]*256+i;++r;if(r===2||r===4){++s}}if(r!==4){return a}break}else if(e[n]===58){++n;if(e[n]===undefined){return a}}else if(e[n]!==undefined){return a}t[s]=r;++s}if(i!==null){let e=s-i;s=7;while(s!==0&&e>0){const r=t[i+e-1];t[i+e-1]=t[s];t[s]=r;--s;--e}}else if(i===null&&s!==8){return a}return t}function serializeIPv6(e){let t="";const s=findLongestZeroSequence(e);const r=s.idx;let i=false;for(let s=0;s<=7;++s){if(i&&e[s]===0){continue}else if(i){i=false}if(r===s){const e=s===0?"::":":";t+=e;i=true;continue}t+=e[s].toString(16);if(s!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return a}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const s=utf8PercentDecode(e);const r=i.toASCII(s,false,i.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(r===null){return a}if(containsForbiddenHostCodePoint(r)){return a}const n=parseIPv4(r);if(typeof n==="number"||n===a){return n}return r}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return a}let t="";const s=r.ucs2.decode(e);for(let e=0;e<s.length;++e){t+=percentEncodeChar(s[e],isC0ControlPercentEncode)}return t}function findLongestZeroSequence(e){let t=null;let s=1;let r=null;let i=0;for(let n=0;n<e.length;++n){if(e[n]!==0){if(i>s){t=r;s=i}r=null;i=0}else{if(r===null){r=n}++i}}if(i>s){t=r;s=i}return{idx:t,len:s}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,s,i,n){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=s||"utf-8";this.stateOverride=n;this.url=i;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const c=trimTabAndNewline(this.input);if(c!==this.input){this.parseError=true}this.input=c;this.state=n||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=r.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const s=this["parse "+this.state](e,t);if(!s){break}else if(s===a){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return a}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return a}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return a}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=true;continue}const s=percentEncodeChar(e,isUserinfoPercentEncode);if(this.passwordTokenSeenFlag){this.url.password+=s}else{this.url.username+=s}}this.buffer=""}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){if(this.atFlag&&this.buffer===""){this.parseError=true;return a}this.pointer-=countSymbols(this.buffer)+1;this.buffer="";this.state="host"}else{this.buffer+=t}return true};URLStateMachine.prototype["parse hostname"]=URLStateMachine.prototype["parse host"]=function parseHostName(e,t){if(this.stateOverride&&this.url.scheme==="file"){--this.pointer;this.state="file host"}else if(e===58&&!this.arrFlag){if(this.buffer===""){this.parseError=true;return a}const e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}this.url.host=e;this.buffer="";this.state="port";if(this.stateOverride==="hostname"){return false}}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){--this.pointer;if(isSpecial(this.url)&&this.buffer===""){this.parseError=true;return a}else if(this.stateOverride&&this.buffer===""&&(includesCredentials(this.url)||this.url.port!==null)){this.parseError=true;return false}const e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}this.url.host=e;this.buffer="";this.state="path start";if(this.stateOverride){return false}}else{if(e===91){this.arrFlag=true}else if(e===93){this.arrFlag=false}this.buffer+=t}return true};URLStateMachine.prototype["parse port"]=function parsePort(e,t){if(isASCIIDigit(e)){this.buffer+=t}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92||this.stateOverride){if(this.buffer!==""){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1){this.parseError=true;return a}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return a}return true};const o=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!o.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===a){return a}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e){if(t[e]<33||t[e]>126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let s=e.scheme+":";if(e.host!==null){s+="//";if(e.username!==""||e.password!==""){s+=e.username;if(e.password!==""){s+=":"+e.password}s+="@"}s+=serializeHost(e.host);if(e.port!==null){s+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){s+="//"}if(e.cannotBeABaseURL){s+=e.path[0]}else{for(const t of e.path){s+="/"+t}}if(e.query!==null){s+="?"+e.query}if(!t&&e.fragment!==null){s+="#"+e.fragment}return s}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const s=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(s.failure){return"failure"}return s.url};e.exports.setTheUsername=function(e,t){e.username="";const s=r.ucs2.decode(t);for(let t=0;t<s.length;++t){e.username+=percentEncodeChar(s[t],isUserinfoPercentEncode)}};e.exports.setThePassword=function(e,t){e.password="";const s=r.ucs2.decode(t);for(let t=0;t<s.length;++t){e.password+=percentEncodeChar(s[t],isUserinfoPercentEncode)}};e.exports.serializeHost=serializeHost;e.exports.cannotHaveAUsernamePasswordPort=cannotHaveAUsernamePasswordPort;e.exports.serializeInteger=function(e){return String(e)};e.exports.parseURL=function(t,s){if(s===undefined){s={}}return e.exports.basicURLParse(t,{baseURL:s.baseURL,encodingOverride:s.encodingOverride})}},60276:function(e){"use strict";e.exports.mixin=function mixin(e,t){const s=Object.getOwnPropertyNames(t);for(let r=0;r<s.length;++r){Object.defineProperty(e,s[r],Object.getOwnPropertyDescriptor(t,s[r]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},15118:function(e,t,s){"use strict";var r=s(14300);var i=r.Buffer;var n={};var a;for(a in r){if(!r.hasOwnProperty(a))continue;if(a==="SlowBuffer"||a==="Buffer")continue;n[a]=r[a]}var c=n.Buffer={};for(a in i){if(!i.hasOwnProperty(a))continue;if(a==="allocUnsafe"||a==="allocUnsafeSlow")continue;c[a]=i[a]}n.Buffer.prototype=i.prototype;if(!c.from||c.from===Uint8Array.from){c.from=function(e,t,s){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return i(e,t,s)}}if(!c.alloc){c.alloc=function(e,t,s){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var r=i(e);if(!t||t.length===0){r.fill(0)}else if(typeof s==="string"){r.fill(t,s)}else{r.fill(t)}return r}}if(!n.kStringMaxLength){try{n.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!n.constants){n.constants={MAX_LENGTH:n.kMaxLength};if(n.kStringMaxLength){n.constants.MAX_STRING_LENGTH=n.kStringMaxLength}}e.exports=n},59318:function(e,t,s){"use strict";const r=s(22037);const i=s(76224);const n=s(81533);const{env:a}=process;let c;if(n("no-color")||n("no-colors")||n("color=false")||n("color=never")){c=0}else if(n("color")||n("colors")||n("color=true")||n("color=always")){c=1}function envForceColor(){if("FORCE_COLOR"in a){if(a.FORCE_COLOR==="true"){return 1}if(a.FORCE_COLOR==="false"){return 0}return a.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,{streamIsTTY:t,sniffFlags:s=true}={}){const i=envForceColor();if(i!==undefined){c=i}const u=s?c:i;if(u===0){return 0}if(s){if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}}if(e&&!t&&u===undefined){return 0}const o=u||0;if(a.TERM==="dumb"){return o}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in a))||a.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}return o}function getSupportLevel(e,t={}){const s=supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(s)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel({isTTY:i.isatty(1)}),stderr:getSupportLevel({isTTY:i.isatty(2)})}},81533:function(e){"use strict";e.exports=(e,t=process.argv)=>{const s=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(s+e);const i=t.indexOf("--");return r!==-1&&(i===-1||r<i)}},36087:function(e,t,s){var r=s(85443);var i=s(73837);var n=s(71017);var a=s(13685);var c=s(95687);var u=s(57310).parse;var o=s(57147);var l=s(43583);var p=s(14812);var d=s(83033);e.exports=FormData;i.inherits(FormData,r);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];r.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,s){s=s||{};if(typeof s=="string"){s={filename:s}}var n=r.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(i.isArray(t)){this._error(new Error("Arrays are not supported."));return}var a=this._multiPartHeader(e,t,s);var c=this._multiPartFooter();n(a);n(t);n(c);this._trackLength(a,t,s)};FormData.prototype._trackLength=function(e,t,s){var r=0;if(s.knownLength!=null){r+=+s.knownLength}else if(Buffer.isBuffer(t)){r=t.length}else if(typeof t==="string"){r=Buffer.byteLength(t)}this._valueLength+=r;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))){return}if(!s.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{o.stat(e.path,(function(s,r){var i;if(s){t(s);return}i=r.size-(e.start?e.start:0);t(null,i)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(s){e.pause();t(null,+s.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,s){if(typeof s.header=="string"){return s.header}var r=this._getContentDisposition(t,s);var i=this._getContentType(t,s);var n="";var a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};if(typeof s.header=="object"){d(a,s.header)}var c;for(var u in a){if(!a.hasOwnProperty(u))continue;c=a[u];if(c==null){continue}if(!Array.isArray(c)){c=[c]}if(c.length){n+=u+": "+c.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+n+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var s,r;if(typeof t.filepath==="string"){s=n.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){s=n.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){s=n.basename(e.client._httpMessage.path||"")}if(s){r='filename="'+s+'"'}return r};FormData.prototype._getContentType=function(e,t){var s=t.contentType;if(!s&&e.name){s=l.lookup(e.name)}if(!s&&e.path){s=l.lookup(e.path)}if(!s&&e.readable&&e.hasOwnProperty("httpVersion")){s=e.headers["content-type"]}if(!s&&(t.filepath||t.filename)){s=l.lookup(t.filepath||t.filename)}if(!s&&typeof e=="object"){s=FormData.DEFAULT_CONTENT_TYPE}return s};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var s=this._streams.length===0;if(s){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var s={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){s[t.toLowerCase()]=e[t]}}return s};FormData.prototype.setBoundary=function(e){this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var s=0,r=this._streams.length;s<r;s++){if(typeof this._streams[s]!=="function"){if(Buffer.isBuffer(this._streams[s])){e=Buffer.concat([e,this._streams[s]])}else{e=Buffer.concat([e,Buffer.from(this._streams[s])])}if(typeof this._streams[s]!=="string"||this._streams[s].substring(2,t.length+2)!==t){e=Buffer.concat([e,Buffer.from(FormData.LINE_BREAK)])}}}return Buffer.concat([e,Buffer.from(this._lastBoundary())])};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}p.parallel(this._valuesToMeasure,this._lengthRetriever,(function(s,r){if(s){e(s);return}r.forEach((function(e){t+=e}));e(null,t)}))};FormData.prototype.submit=function(e,t){var s,r,i={method:"post"};if(typeof e=="string"){e=u(e);r=d({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)}else{r=d(e,i);if(!r.port){r.port=r.protocol=="https:"?443:80}}r.headers=this.getHeaders(e.headers);if(r.protocol=="https:"){s=c.request(r)}else{s=a.request(r)}this.getLength(function(e,r){if(e){this._error(e);return}s.setHeader("Content-Length",r);this.pipe(s);if(t){var i;var callback=function(e,r){s.removeListener("error",callback);s.removeListener("response",i);return t.call(this,e,r)};i=callback.bind(this,null);s.on("error",callback);s.on("response",i)}}.bind(this));return s};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},83033:function(e){e.exports=function(e,t){Object.keys(t).forEach((function(s){e[s]=e[s]||t[s]}));return e}},6689:function(e){"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function";e.exports=isStream},96814:function(e){
15
15
  /*! *****************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
17
17
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "User identity verification management, including SMS, TOTP authenticator, with extensibility.",
7
7
  "description.ru-RU": "Управление проверкой личности пользователя, включая SMS, TOTP-авторизацию, с возможностью расширения.",
8
8
  "description.zh-CN": "用户身份验证管理,包含短信、TOTP 认证器等,可扩展。",
9
- "version": "2.0.0-beta.9",
9
+ "version": "2.0.1",
10
10
  "license": "AGPL-3.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/verification",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "2.x",
35
35
  "@nocobase/utils": "2.x"
36
36
  },
37
- "gitHead": "36ef50291e22fe1024c819b8748d51a59a5ea4f8",
37
+ "gitHead": "e41d74b50e2025555dc71969a20fee180b8d0d0d",
38
38
  "keywords": [
39
39
  "Authentication",
40
40
  "Verification",