@hashgraphonline/standards-sdk
Version:
The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.
10 lines • 1.29 MB
JavaScript
"use strict";var e;const t=require("pino"),i=require("@hashgraph/sdk"),n=require("ethers"),a=require("@hashgraph/proto"),o=require("axios"),s=require("buffer"),r=require("mime-types"),c=require("zod"),p=require("date-fns");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const i in e)if("default"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}const u=l(r);let d=((e=class{constructor(e={}){const i="true"===process.env.DISABLE_LOGS,n=e.silent||i,a=n?"silent":e.level||"info";this.moduleContext=e.module||"app";const o={level:a,enabled:!n,transport:!n&&!1!==e.prettyPrint?{target:"pino-pretty",options:{colorize:!0,translateTime:"SYS:standard",ignore:"pid,hostname"}}:void 0};this.logger=t(o)}static getInstance(t={}){const i=t.module||"default";if("true"===process.env.DISABLE_LOGS&&e.instances.has(i)){"silent"!==e.instances.get(i).getLevel()&&e.instances.delete(i)}return e.instances.has(i)||e.instances.set(i,new e(t)),e.instances.get(i)}setLogLevel(e){this.logger.level=e}getLevel(){return this.logger.level}setSilent(e){e&&(this.logger.level="silent")}setModule(e){this.moduleContext=e}debug(...e){this.logger.debug({module:this.moduleContext},...e)}info(...e){this.logger.info({module:this.moduleContext},...e)}warn(...e){this.logger.warn({module:this.moduleContext},...e)}error(...e){this.logger.error({module:this.moduleContext},...e)}trace(...e){this.logger.trace({module:this.moduleContext},...e)}}).instances=new Map,e);class m{constructor(){this.cache=new Map}get(e){return this.cache.get(e)}set(e,t){this.cache.set(e,t)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}}function f(e,t){return null==e?"0":e._isBigNumber?e.toString():t.startsWith("uint")||t.startsWith("int")?String(e):"bool"===t?e?"true":"false":"string"===t?e:"address"===t?String(e).toLowerCase():t.endsWith("[]")?Array.isArray(e)?e.map((e=>String(e))):[]:String(e)}for(var h,g=Object.defineProperty,x=((e,t,i)=>((e,t,i)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i)),v={},b={byteLength:function(e){var t=_(e),i=t[0],n=t[1];return 3*(i+n)/4-n},toByteArray:function(e){var t,i,n=_(e),a=n[0],o=n[1],s=new k(function(e,t,i){return 3*(t+i)/4-i}(0,a,o)),r=0,c=o>0?a-4:a;for(i=0;i<c;i+=4)t=w[e.charCodeAt(i)]<<18|w[e.charCodeAt(i+1)]<<12|w[e.charCodeAt(i+2)]<<6|w[e.charCodeAt(i+3)],s[r++]=t>>16&255,s[r++]=t>>8&255,s[r++]=255&t;2===o&&(t=w[e.charCodeAt(i)]<<2|w[e.charCodeAt(i+1)]>>4,s[r++]=255&t);1===o&&(t=w[e.charCodeAt(i)]<<10|w[e.charCodeAt(i+1)]<<4|w[e.charCodeAt(i+2)]>>2,s[r++]=t>>8&255,s[r++]=255&t);return s},fromByteArray:function(e){for(var t,i=e.length,n=i%3,a=[],o=16383,s=0,r=i-n;s<r;s+=o)a.push(E(e,s,s+o>r?r:s+o));1===n?(t=e[i-1],a.push(y[t>>2]+y[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],a.push(y[t>>10]+y[t>>4&63]+y[t<<2&63]+"="));return a.join("")}},y=[],w=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=0;I<64;++I)y[I]=T[I],w[T.charCodeAt(I)]=I;function _(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function E(e,t,i){for(var n,a,o=[],s=t;s<i;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(y[(a=n)>>18&63]+y[a>>12&63]+y[a>>6&63]+y[63&a]);return o.join("")}w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63;var S={
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
read:function(e,t,i,n,a){var o,s,r=8*a-n-1,c=(1<<r)-1,p=c>>1,l=-7,u=i?a-1:0,d=i?-1:1,m=e[t+u];for(u+=d,o=m&(1<<-l)-1,m>>=-l,l+=r;l>0;o=256*o+e[t+u],u+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+u],u+=d,l-=8);if(0===o)o=1-p;else{if(o===c)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,n),o-=p}return(m?-1:1)*s*Math.pow(2,o-n)},write:function(e,t,i,n,a,o){var s,r,c,p=8*o-a-1,l=(1<<p)-1,u=l>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,f=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(r=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+u>=1?d/c:d*Math.pow(2,1-u))*c>=2&&(s++,c/=2),s+u>=l?(r=0,s=l):s+u>=1?(r=(t*c-1)*Math.pow(2,a),s+=u):(r=t*Math.pow(2,u-1)*Math.pow(2,a),s=0));a>=8;e[i+m]=255&r,m+=f,r/=256,a-=8);for(s=s<<a|r,p+=a;p>0;e[i+m]=255&s,m+=f,s/=256,p-=8);e[i+m-f]|=128*h}};
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
!function(e){const t=b,i=S,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:r}=globalThis;function c(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new o(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,i)}function l(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|g(e,t);let n=c(i);const a=n.write(e,t);a!==i&&(n=n.slice(0,a));return n}(e,t);if(s.isView(e))return function(e){if(Y(e,o)){const t=new o(e);return f(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,s)||e&&Y(e.buffer,s))return f(e,t,i);if(void 0!==r&&(Y(e,r)||e&&Y(e.buffer,r)))return f(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return p.from(n,t,i);const a=function(e){if(p.isBuffer(e)){const t=0|h(e.length),i=c(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?c(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),c(e<0?0:0|h(e))}function m(e){const t=e.length<0?0:0|h(e.length),i=c(t);for(let n=0;n<t;n+=1)i[n]=255&e[n];return i}function f(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===i?new o(e):void 0===i?new o(e,t):new o(e,t,i),Object.setPrototypeOf(n,p.prototype),n}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(p.isBuffer(e))return e.length;if(s.isView(e)||Y(e,s))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(e).length;default:if(a)return n?-1:G(e).length;t=(""+t).toLowerCase(),a=!0}}function x(e,t,i){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,i);case"utf8":case"utf-8":return j(this,t,i);case"ascii":return C(this,t,i);case"latin1":case"binary":return R(this,t,i);case"base64":return A(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function y(e,t,i,n,a){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Q(i=+i)&&(i=a?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(a)return-1;i=e.length-1}else if(i<0){if(!a)return-1;i=0}if("string"==typeof t&&(t=p.from(t,n)),p.isBuffer(t))return 0===t.length?-1:w(e,t,i,n,a);if("number"==typeof t)return t&=255,"function"==typeof o.prototype.indexOf?a?o.prototype.indexOf.call(e,t,i):o.prototype.lastIndexOf.call(e,t,i):w(e,[t],i,n,a);throw new TypeError("val must be string, number or Buffer")}function w(e,t,i,n,a){let o,s=1,r=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,r/=2,c/=2,i/=2}function p(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let n=-1;for(o=i;o<r;o++)if(p(e,o)===p(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(i+c>r&&(i=r-c),o=i;o>=0;o--){let i=!0;for(let n=0;n<c;n++)if(p(e,o+n)!==p(t,n)){i=!1;break}if(i)return o}return-1}function k(e,t,i,n){i=Number(i)||0;const a=e.length-i;n?(n=Number(n))>a&&(n=a):n=a;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Q(n))return s;e[i+s]=n}return s}function T(e,t,i,n){return X(G(t,e.length-i),e,i,n)}function I(e,t,i,n){return X(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function _(e,t,i,n){return X(J(t),e,i,n)}function E(e,t,i,n){return X(function(e,t){let i,n,a;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)i=e.charCodeAt(s),n=i>>8,a=i%256,o.push(a),o.push(n);return o}(t,e.length-i),e,i,n)}function A(e,i,n){return 0===i&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(i,n))}function j(e,t,i){i=Math.min(e.length,i);const n=[];let a=t;for(;a<i;){const t=e[a];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(a+s<=i){let i,n,r,c;switch(s){case 1:t<128&&(o=t);break;case 2:i=e[a+1],128==(192&i)&&(c=(31&t)<<6|63&i,c>127&&(o=c));break;case 3:i=e[a+1],n=e[a+2],128==(192&i)&&128==(192&n)&&(c=(15&t)<<12|(63&i)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:i=e[a+1],n=e[a+2],r=e[a+3],128==(192&i)&&128==(192&n)&&128==(192&r)&&(c=(15&t)<<18|(63&i)<<12|(63&n)<<6|63&r,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=s}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=O));return i}(n)}p.TYPED_ARRAY_SUPPORT=function(){try{const e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),p.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(e,t,i){return l(e,t,i)},Object.setPrototypeOf(p.prototype,o.prototype),Object.setPrototypeOf(p,o),p.alloc=function(e,t,i){return function(e,t,i){return u(e),e<=0?c(e):void 0!==t?"string"==typeof i?c(e).fill(t,i):c(e).fill(t):c(e)}(e,t,i)},p.allocUnsafe=function(e){return d(e)},p.allocUnsafeSlow=function(e){return d(e)},p.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==p.prototype},p.compare=function(e,t){if(Y(e,o)&&(e=p.from(e,e.offset,e.byteLength)),Y(t,o)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let a=0,o=Math.min(i,n);a<o;++a)if(e[a]!==t[a]){i=e[a],n=t[a];break}return i<n?-1:n<i?1:0},p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=p.allocUnsafe(t);let a=0;for(i=0;i<e.length;++i){let t=e[i];if(Y(t,o))a+t.length>n.length?(p.isBuffer(t)||(t=p.from(t)),t.copy(n,a)):o.prototype.set.call(n,t,a);else{if(!p.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},p.byteLength=g,p.prototype._isBuffer=!0,p.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},p.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},p.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},p.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?j(this,0,e):x.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){let t="";const i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},n&&(p.prototype[n]=p.prototype.inspect),p.prototype.compare=function(e,t,i,n,a){if(Y(e,o)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||i>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=i)return 0;if(n>=a)return-1;if(t>=i)return 1;if(this===e)return 0;let s=(a>>>=0)-(n>>>=0),r=(i>>>=0)-(t>>>=0);const c=Math.min(s,r),l=this.slice(n,a),u=e.slice(t,i);for(let o=0;o<c;++o)if(l[o]!==u[o]){s=l[o],r=u[o];break}return s<r?-1:r<s?1:0},p.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},p.prototype.indexOf=function(e,t,i){return y(this,e,t,i,!0)},p.prototype.lastIndexOf=function(e,t,i){return y(this,e,t,i,!1)},p.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}const a=this.length-t;if((void 0===i||i>a)&&(i=a),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return k(this,e,t,i);case"utf8":case"utf-8":return T(this,e,t,i);case"ascii":case"latin1":case"binary":return I(this,e,t,i);case"base64":return _(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function C(e,t,i){let n="";i=Math.min(e.length,i);for(let a=t;a<i;++a)n+=String.fromCharCode(127&e[a]);return n}function R(e,t,i){let n="";i=Math.min(e.length,i);for(let a=t;a<i;++a)n+=String.fromCharCode(e[a]);return n}function N(e,t,i){const n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);let a="";for(let o=t;o<i;++o)a+=ee[e[o]];return a}function P(e,t,i){const n=e.slice(t,i);let a="";for(let o=0;o<n.length-1;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}function L(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,i,n,a,o){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function U(e,t,i,n,a){Z(t,n,a,e,i,7);let o=Number(t&BigInt(4294967295));e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s,i}function F(e,t,i,n,a){Z(t,n,a,e,i,7);let o=Number(t&BigInt(4294967295));e[i+7]=o,o>>=8,e[i+6]=o,o>>=8,e[i+5]=o,o>>=8,e[i+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=s,s>>=8,e[i+2]=s,s>>=8,e[i+1]=s,s>>=8,e[i]=s,i+8}function z(e,t,i,n,a,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function M(e,t,n,a,o){return t=+t,n>>>=0,o||z(e,0,n,4),i.write(e,t,n,a,23,4),n+4}function $(e,t,n,a,o){return t=+t,n>>>=0,o||z(e,0,n,8),i.write(e,t,n,a,52,8),n+8}p.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,p.prototype),n},p.prototype.readUintLE=p.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||L(e,t,this.length);let n=this[e],a=1,o=0;for(;++o<t&&(a*=256);)n+=this[e+o]*a;return n},p.prototype.readUintBE=p.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||L(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=te((function(e){V(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))})),p.prototype.readBigUInt64BE=te((function(e){V(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(n)<<BigInt(32))+BigInt(a)})),p.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||L(e,t,this.length);let n=this[e],a=1,o=0;for(;++o<t&&(a*=256);)n+=this[e+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*t)),n},p.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||L(e,t,this.length);let n=t,a=1,o=this[e+--n];for(;n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},p.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},p.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=te((function(e){V(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),p.prototype.readBigInt64BE=te((function(e){V(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+i)})),p.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){B(this,e,t,i,Math.pow(2,8*i)-1,0)}let a=1,o=0;for(this[t]=255&e;++o<i&&(a*=256);)this[t+o]=e/a&255;return t+i},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){B(this,e,t,i,Math.pow(2,8*i)-1,0)}let a=i-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+i},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=te((function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=te((function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);B(this,e,t,i,n-1,-n)}let a=0,o=1,s=0;for(this[t]=255&e;++a<i&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+i},p.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);B(this,e,t,i,n-1,-n)}let a=i-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+i},p.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=te((function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=te((function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,i){return M(this,e,t,!0,i)},p.prototype.writeFloatBE=function(e,t,i){return M(this,e,t,!1,i)},p.prototype.writeDoubleLE=function(e,t,i){return $(this,e,t,!0,i)},p.prototype.writeDoubleBE=function(e,t,i){return $(this,e,t,!1,i)},p.prototype.copy=function(e,t,i,n){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const a=n-i;return this===e&&"function"==typeof o.prototype.copyWithin?this.copyWithin(t,i,n):o.prototype.set.call(e,this.subarray(i,n),t),a},p.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let a;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(a=t;a<i;++a)this[a]=e;else{const o=p.isBuffer(e)?e:p.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=o[a%s]}return this};const D={};function q(e,t,i){D[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function K(e){let t="",i=e.length;const n="-"===e[0]?1:0;for(;i>=n+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function Z(e,t,i,n,a,o){if(e>i||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`,new D.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,i){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||W(t,e.length-(i+1))}(n,a,o)}function V(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,i){if(Math.floor(e)!==e)throw V(e,i),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,i){let n=`The value of "${e}" is out of range.`,a=i;return Number.isInteger(i)&&Math.abs(i)>2**32?a=K(String(i)):"bigint"==typeof i&&(a=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(a=K(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let i;t=t||1/0;const n=e.length;let a=null;const o=[];for(let s=0;s<n;++s){if(i=e.charCodeAt(s),i>55295&&i<57344){if(!a){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),a=i;continue}i=65536+(a-55296<<10|i-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,i,n){let a;for(a=0;a<n&&!(a+i>=t.length||a>=e.length);++a)t[a+i]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const ee=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const n=16*i;for(let a=0;a<16;++a)t[n+a]=e[i]+e[a]}return t}();function te(e){return"undefined"==typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}}(v);const A=v.Buffer,j=v.Buffer,O=globalThis||self;function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R,N,P={exports:{}},L=P.exports={};function B(){throw new Error("setTimeout has not been defined")}function U(){throw new Error("clearTimeout has not been defined")}function F(e){if(R===setTimeout)return setTimeout(e,0);if((R===B||!R)&&setTimeout)return R=setTimeout,setTimeout(e,0);try{return R(e,0)}catch(t){try{return R.call(null,e,0)}catch(i){return R.call(this,e,0)}}}!function(){try{R="function"==typeof setTimeout?setTimeout:B}catch(e){R=B}try{N="function"==typeof clearTimeout?clearTimeout:U}catch(e){N=U}}();var z,M=[],$=!1,D=-1;function q(){$&&z&&($=!1,z.length?M=z.concat(M):D=-1,M.length&&K())}function K(){if(!$){var e=F(q);$=!0;for(var t=M.length;t;){for(z=M,M=[];++D<t;)z&&z[D].run();D=-1,t=M.length}z=null,$=!1,function(e){if(N===clearTimeout)return clearTimeout(e);if((N===U||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(e);try{return N(e)}catch(t){try{return N.call(null,e)}catch(i){return N.call(this,e)}}}(e)}}function Z(e,t){this.fun=e,this.array=t}function V(){}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];M.push(new Z(e,t)),1!==M.length||$||F(K)},Z.prototype.run=function(){this.fun.apply(null,this.array)},L.title="browser",L.browser=!0,L.env={},L.argv=[],L.version="",L.versions={},L.on=V,L.addListener=V,L.once=V,L.off=V,L.removeListener=V,L.removeAllListeners=V,L.emit=V,L.prependListener=V,L.prependOnceListener=V,L.listeners=function(e){return[]},L.binding=function(e){throw new Error("process.binding is not supported")},L.cwd=function(){return"/"},L.chdir=function(e){throw new Error("process.chdir is not supported")},L.umask=function(){return 0};const W=C(P.exports);function H(e,t){return function(){return e.apply(t,arguments)}}const{toString:G}=Object.prototype,{getPrototypeOf:J}=Object,{iterator:X,toStringTag:Y}=Symbol,Q=(e=>t=>{const i=G.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ee=e=>(e=e.toLowerCase(),t=>Q(t)===e),te=e=>t=>typeof t===e,{isArray:ie}=Array,ne=te("undefined");const ae=ee("ArrayBuffer");const oe=te("string"),se=te("function"),re=te("number"),ce=e=>null!==e&&"object"==typeof e,pe=e=>{if("object"!==Q(e))return!1;const t=J(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Y in e||X in e)},le=ee("Date"),ue=ee("File"),de=ee("Blob"),me=ee("FileList"),fe=ee("URLSearchParams"),[he,ge,xe,ve]=["ReadableStream","Request","Response","Headers"].map(ee);function be(e,t,{allOwnKeys:i=!1}={}){if(null==e)return;let n,a;if("object"!=typeof e&&(e=[e]),ie(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const a=i?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function ye(e,t){t=t.toLowerCase();const i=Object.keys(e);let n,a=i.length;for(;a-- >0;)if(n=i[a],t===n.toLowerCase())return n;return null}const we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:O,ke=e=>!ne(e)&&e!==we;const Te=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&J(Uint8Array)),Ie=ee("HTMLFormElement"),_e=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),Ee=ee("RegExp"),Se=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};be(i,((i,a)=>{let o;!1!==(o=t(i,a,e))&&(n[a]=o||i)})),Object.defineProperties(e,n)};const Ae=ee("AsyncFunction"),je=(Oe="function"==typeof setImmediate,Ce=se(we.postMessage),Oe?setImmediate:Ce?(Re=`axios@${Math.random()}`,Ne=[],we.addEventListener("message",(({source:e,data:t})=>{e===we&&t===Re&&Ne.length&&Ne.shift()()}),!1),e=>{Ne.push(e),we.postMessage(Re,"*")}):e=>setTimeout(e));var Oe,Ce,Re,Ne;const Pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(we):void 0!==W&&W.nextTick||je,Le={isArray:ie,isArrayBuffer:ae,isBuffer:function(e){return null!==e&&!ne(e)&&null!==e.constructor&&!ne(e.constructor)&&se(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||se(e.append)&&("formdata"===(t=Q(e))||"object"===t&&se(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ae(e.buffer),t},isString:oe,isNumber:re,isBoolean:e=>!0===e||!1===e,isObject:ce,isPlainObject:pe,isReadableStream:he,isRequest:ge,isResponse:xe,isHeaders:ve,isUndefined:ne,isDate:le,isFile:ue,isBlob:de,isRegExp:Ee,isFunction:se,isStream:e=>ce(e)&&se(e.pipe),isURLSearchParams:fe,isTypedArray:Te,isFileList:me,forEach:be,merge:function e(){const{caseless:t}=ke(this)&&this||{},i={},n=(n,a)=>{const o=t&&ye(i,a)||a;pe(i[o])&&pe(n)?i[o]=e(i[o],n):pe(n)?i[o]=e({},n):ie(n)?i[o]=n.slice():i[o]=n};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&be(arguments[a],n);return i},extend:(e,t,i,{allOwnKeys:n}={})=>(be(t,((t,n)=>{i&&se(t)?e[n]=H(t,i):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,n)=>{let a,o,s;const r={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],n&&!n(s,e,t)||r[s]||(t[s]=e[s],r[s]=!0);e=!1!==i&&J(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:Q,kindOfTest:ee,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return-1!==n&&n===i},toArray:e=>{if(!e)return null;if(ie(e))return e;let t=e.length;if(!re(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[X]).call(e);let n;for(;(n=i.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const n=[];for(;null!==(i=e.exec(t));)n.push(i);return n},isHTMLForm:Ie,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:Se,freezeMethods:e=>{Se(e,((t,i)=>{if(se(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=e[i];se(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},toObjectSet:(e,t)=>{const i={},n=e=>{e.forEach((e=>{i[e]=!0}))};return ie(e)?n(e):n(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ye,global:we,isContextDefined:ke,isSpecCompliantForm:function(e){return!!(e&&se(e.append)&&"FormData"===e[Y]&&e[X])},toJSONObject:e=>{const t=new Array(10),i=(e,n)=>{if(ce(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const a=ie(e)?[]:{};return be(e,((e,t)=>{const o=i(e,n+1);!ne(o)&&(a[t]=o)})),t[n]=void 0,a}}return e};return i(e,0)},isAsyncFn:Ae,isThenable:e=>e&&(ce(e)||se(e))&&se(e.then)&&se(e.catch),setImmediate:je,asap:Pe,isIterable:e=>null!=e&&se(e[X])};function Be(e,t,i,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Le.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Le.toJSONObject(this.config),code:this.code,status:this.status}}});const Ue=Be.prototype,Fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Fe[e]={value:e}})),Object.defineProperties(Be,Fe),Object.defineProperty(Ue,"isAxiosError",{value:!0}),Be.from=(e,t,i,n,a,o)=>{const s=Object.create(Ue);return Le.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Be.call(s,e.message,t,i,n,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};function ze(e){return Le.isPlainObject(e)||Le.isArray(e)}function Me(e){return Le.endsWith(e,"[]")?e.slice(0,-2):e}function $e(e,t,i){return e?e.concat(t).map((function(e,t){return e=Me(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}const De=Le.toFlatObject(Le,{},null,(function(e){return/^is[A-Z]/.test(e)}));function qe(e,t,i){if(!Le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(i=Le.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Le.isUndefined(t[e])}))).metaTokens,a=i.visitor||p,o=i.dots,s=i.indexes,r=(i.Blob||"undefined"!=typeof Blob&&Blob)&&Le.isSpecCompliantForm(t);if(!Le.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Le.isDate(e))return e.toISOString();if(!r&&Le.isBlob(e))throw new Be("Blob is not supported. Use a Buffer instead.");return Le.isArrayBuffer(e)||Le.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):A.from(e):e}function p(e,i,a){let r=e;if(e&&!a&&"object"==typeof e)if(Le.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(Le.isArray(e)&&function(e){return Le.isArray(e)&&!e.some(ze)}(e)||(Le.isFileList(e)||Le.endsWith(i,"[]"))&&(r=Le.toArray(e)))return i=Me(i),r.forEach((function(e,n){!Le.isUndefined(e)&&null!==e&&t.append(!0===s?$e([i],n,o):null===s?i:i+"[]",c(e))})),!1;return!!ze(e)||(t.append($e(a,i,o),c(e)),!1)}const l=[],u=Object.assign(De,{defaultVisitor:p,convertValue:c,isVisitable:ze});if(!Le.isObject(e))throw new TypeError("data must be an object");return function e(i,n){if(!Le.isUndefined(i)){if(-1!==l.indexOf(i))throw Error("Circular reference detected in "+n.join("."));l.push(i),Le.forEach(i,(function(i,o){!0===(!(Le.isUndefined(i)||null===i)&&a.call(t,i,Le.isString(o)?o.trim():o,n,u))&&e(i,n?n.concat(o):[o])})),l.pop()}}(e),t}function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ze(e,t){this._pairs=[],e&&qe(e,this,t)}const Ve=Ze.prototype;function We(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,i){if(!t)return e;const n=i&&i.encode||We;Le.isFunction(i)&&(i={serialize:i});const a=i&&i.serialize;let o;if(o=a?a(t,i):Le.isURLSearchParams(t)?t.toString():new Ze(t,i).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){const t=e?function(t){return e.call(this,t,Ke)}:Ke;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};let Ge=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};const Je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ze,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ye="undefined"!=typeof window&&"undefined"!=typeof document,Qe="object"==typeof navigator&&navigator||void 0,et=Ye&&(!Qe||["ReactNative","NativeScript","NS"].indexOf(Qe.product)<0),tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,it=Ye&&window.location.href||"http://localhost",nt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ye,hasStandardBrowserEnv:et,hasStandardBrowserWebWorkerEnv:tt,navigator:Qe,origin:it},Symbol.toStringTag,{value:"Module"})),...Xe};function at(e){function t(e,i,n,a){let o=e[a++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=a>=e.length;if(o=!o&&Le.isArray(n)?n.length:o,r)return Le.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s;n[o]&&Le.isObject(n[o])||(n[o]=[]);return t(e,i,n[o],a)&&Le.isArray(n[o])&&(n[o]=function(e){const t={},i=Object.keys(e);let n;const a=i.length;let o;for(n=0;n<a;n++)o=i[n],t[o]=e[o];return t}(n[o])),!s}if(Le.isFormData(e)&&Le.isFunction(e.entries)){const i={};return Le.forEachEntry(e,((e,n)=>{t(function(e){return Le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,i,0)})),i}return null}const ot={transitional:Je,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,a=Le.isObject(e);a&&Le.isHTMLForm(e)&&(e=new FormData(e));if(Le.isFormData(e))return n?JSON.stringify(at(e)):e;if(Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e)||Le.isReadableStream(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qe(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,n){return nt.isNode&&Le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Le.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qe(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),function(e,t){if(Le.isString(e))try{return(t||JSON.parse)(e),Le.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ot.transitional,i=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Le.isResponse(e)||Le.isReadableStream(e))return e;if(e&&Le.isString(e)&&(i&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(i){if("SyntaxError"===a.name)throw Be.from(a,Be.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Le.forEach(["delete","get","head","post","put","patch"],(e=>{ot.headers[e]={}}));const st=Le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rt=Symbol("internals");function ct(e){return e&&String(e).trim().toLowerCase()}function pt(e){return!1===e||null==e?e:Le.isArray(e)?e.map(pt):String(e)}function lt(e,t,i,n,a){return Le.isFunction(n)?n.call(this,t,i):(a&&(t=i),Le.isString(t)?Le.isString(n)?-1!==t.indexOf(n):Le.isRegExp(n)?n.test(t):void 0:void 0)}let ut=class{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function a(e,t,i){const a=ct(t);if(!a)throw new Error("header name must be a non-empty string");const o=Le.findKey(n,a);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||t]=pt(e))}const o=(e,t)=>Le.forEach(e,((e,i)=>a(e,i,t)));if(Le.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Le.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let i,n,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),i=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!i||t[i]&&st[i]||("set-cookie"===i?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)})),t})(e),t);else if(Le.isObject(e)&&Le.isIterable(e)){let i,n,a={};for(const t of e){if(!Le.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[n=t[0]]=(i=a[n])?Le.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}o(a,t)}else null!=e&&a(t,e,i);return this}get(e,t){if(e=ct(e)){const i=Le.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}(e);if(Le.isFunction(t))return t.call(this,e,i);if(Le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ct(e)){const i=Le.findKey(this,e);return!(!i||void 0===this[i]||t&&!lt(0,this[i],i,t))}return!1}delete(e,t){const i=this;let n=!1;function a(e){if(e=ct(e)){const a=Le.findKey(i,e);!a||t&&!lt(0,i[a],a,t)||(delete i[a],n=!0)}}return Le.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const a=t[i];e&&!lt(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}normalize(e){const t=this,i={};return Le.forEach(this,((n,a)=>{const o=Le.findKey(i,a);if(o)return t[o]=pt(n),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,i)=>t.toUpperCase()+i))}(a):String(a).trim();s!==a&&delete t[a],t[s]=pt(n),i[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Le.forEach(this,((i,n)=>{null!=i&&!1!==i&&(t[n]=e&&Le.isArray(i)?i.join(", "):i)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach((e=>i.set(e))),i}static accessor(e){const t=(this[rt]=this[rt]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=ct(e);t[n]||(!function(e,t){const i=Le.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,a){return this[n].call(this,t,e,i,a)},configurable:!0})}))}(i,e),t[n]=!0)}return Le.isArray(e)?e.forEach(n):n(e),this}};function dt(e,t){const i=this||ot,n=t||i,a=ut.from(n.headers);let o=n.data;return Le.forEach(e,(function(e){o=e.call(i,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function mt(e){return!(!e||!e.__CANCEL__)}function ft(e,t,i){Be.call(this,null==e?"canceled":e,Be.ERR_CANCELED,t,i),this.name="CanceledError"}function ht(e,t,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(new Be("Request failed with status code "+i.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Le.reduceDescriptors(ut.prototype,(({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}})),Le.freezeMethods(ut),Le.inherits(ft,Be,{__CANCEL__:!0});const gt=(e,t,i=3)=>{let n=0;const a=function(e,t){e=e||10;const i=new Array(e),n=new Array(e);let a,o=0,s=0;return t=void 0!==t?t:1e3,function(r){const c=Date.now(),p=n[s];a||(a=c),i[o]=r,n[o]=c;let l=s,u=0;for(;l!==o;)u+=i[l++],l%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-a<t)return;const d=p&&c-p;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(e,t){let i,n,a=0,o=1e3/t;const s=(t,o=Date.now())=>{a=o,i=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),r=t-a;r>=o?s(e,t):(i=e,n||(n=setTimeout((()=>{n=null,s(i)}),o-r)))},()=>i&&s(i)]}((i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,r=o-n,c=a(r);n=o;e({loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),i)},xt=(e,t)=>{const i=null!=e;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},vt=e=>(...t)=>Le.asap((()=>e(...t))),bt=nt.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,nt.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,yt=nt.hasStandardBrowserEnv?{write(e,t,i,n,a,o){const s=[e+"="+encodeUR