html-reporter 11.17.2 → 12.0.0

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.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/build/lib/adapters/config/testplane.d.ts +1 -2
  3. package/build/lib/adapters/config/testplane.js +5 -28
  4. package/build/lib/adapters/config/testplane.js.map +1 -1
  5. package/build/lib/adapters/event-handling/testplane/snapshots.d.ts +5 -6
  6. package/build/lib/adapters/event-handling/testplane/snapshots.js +65 -54
  7. package/build/lib/adapters/event-handling/testplane/snapshots.js.map +1 -1
  8. package/build/lib/adapters/test-result/playwright.js +9 -3
  9. package/build/lib/adapters/test-result/playwright.js.map +1 -1
  10. package/build/lib/adapters/tool/index.js +2 -25
  11. package/build/lib/adapters/tool/index.js.map +1 -1
  12. package/build/lib/adapters/tool/testplane/index.js +4 -25
  13. package/build/lib/adapters/tool/testplane/index.js.map +1 -1
  14. package/build/lib/adapters/tool/testplane/test-results-handler.js +11 -26
  15. package/build/lib/adapters/tool/testplane/test-results-handler.js.map +1 -1
  16. package/build/lib/bundle/index.js +2392 -176
  17. package/build/lib/cli/commands/gui.js +2 -1
  18. package/build/lib/cli/commands/gui.js.map +1 -1
  19. package/build/lib/cli/commands/merge-reports.js +1 -0
  20. package/build/lib/cli/commands/merge-reports.js.map +1 -1
  21. package/build/lib/cli/commands/remove-unused-screens/index.js +1 -0
  22. package/build/lib/cli/commands/remove-unused-screens/index.js.map +1 -1
  23. package/build/lib/cli/commands/remove-unused-screens/utils.js +1 -0
  24. package/build/lib/cli/commands/remove-unused-screens/utils.js.map +1 -1
  25. package/build/lib/cli/index.js +3 -24
  26. package/build/lib/cli/index.js.map +1 -1
  27. package/build/lib/common-utils.js +14 -29
  28. package/build/lib/common-utils.js.map +1 -1
  29. package/build/lib/config/index.js +1 -1
  30. package/build/lib/config/index.js.map +1 -1
  31. package/build/lib/constants/defaults.js +3 -2
  32. package/build/lib/constants/defaults.js.map +1 -1
  33. package/build/lib/constants/group-tests.js +1 -0
  34. package/build/lib/constants/group-tests.js.map +1 -1
  35. package/build/lib/db-utils/server.js +2 -2
  36. package/build/lib/db-utils/server.js.map +1 -1
  37. package/build/lib/gui/openChrome.d.ts +1 -9
  38. package/build/lib/gui/openChrome.js +1 -0
  39. package/build/lib/gui/openChrome.js.map +1 -1
  40. package/build/lib/gui/server.js +4 -27
  41. package/build/lib/gui/server.js.map +1 -1
  42. package/build/lib/image-size.d.ts +2 -0
  43. package/build/lib/image-size.js +32 -0
  44. package/build/lib/image-size.js.map +1 -0
  45. package/build/lib/images-info-saver.js +3 -3
  46. package/build/lib/images-info-saver.js.map +1 -1
  47. package/build/lib/merge-reports/index.js +1 -1
  48. package/build/lib/merge-reports/index.js.map +1 -1
  49. package/build/lib/secret-config-filter.d.ts +3 -0
  50. package/build/lib/secret-config-filter.js +36 -0
  51. package/build/lib/secret-config-filter.js.map +1 -0
  52. package/build/lib/server-utils.js +2 -1
  53. package/build/lib/server-utils.js.map +1 -1
  54. package/build/lib/static/102.min.js +1 -0
  55. package/build/lib/static/180.min.js +1 -0
  56. package/build/lib/static/250.min.js +1 -0
  57. package/build/lib/static/361.min.js +1 -0
  58. package/build/lib/static/394.min.js +1 -0
  59. package/build/lib/static/43.min.js +1 -0
  60. package/build/lib/static/567.min.js +1 -0
  61. package/build/lib/static/632.min.css +1 -0
  62. package/build/lib/static/632.min.js +1 -0
  63. package/build/lib/static/646.min.css +31 -0
  64. package/build/lib/static/646.min.js +1 -0
  65. package/build/lib/static/657.min.css +1 -0
  66. package/build/lib/static/657.min.js +1 -0
  67. package/build/lib/static/819.min.js +1 -0
  68. package/build/lib/static/826.min.js +1 -0
  69. package/build/lib/static/899.min.js +1 -0
  70. package/build/lib/static/gui.html +19 -28
  71. package/build/lib/static/gui.min.css +1 -2
  72. package/build/lib/static/gui.min.js +1 -1
  73. package/build/lib/static/index.html +19 -28
  74. package/build/lib/static/old-ui-gui.html +29 -0
  75. package/build/lib/static/old-ui-report.html +29 -0
  76. package/build/lib/static/oldGui.min.css +1 -0
  77. package/build/lib/static/oldGui.min.js +1 -0
  78. package/build/lib/static/oldReport.min.css +1 -0
  79. package/build/lib/static/oldReport.min.js +1 -0
  80. package/build/lib/static/report.min.js +1 -1
  81. package/build/lib/static/search-worker.min.js +1 -1
  82. package/build/lib/types.d.ts +2 -2
  83. package/build/package.json +37 -32
  84. package/build/testplane.js +14 -29
  85. package/build/testplane.js.map +1 -1
  86. package/package.json +37 -32
  87. package/plugins-sdk/build-ui/lib/adapters/config/testplane.d.ts +1 -2
  88. package/plugins-sdk/build-ui/lib/adapters/event-handling/testplane/snapshots.d.ts +5 -6
  89. package/plugins-sdk/build-ui/lib/image-size.d.ts +2 -0
  90. package/plugins-sdk/build-ui/lib/secret-config-filter.d.ts +3 -0
  91. package/plugins-sdk/build-ui/lib/static/modules/plugins-sdk-ui.d.ts +1 -1
  92. package/plugins-sdk/build-ui/lib/types.d.ts +2 -2
  93. package/build/lib/static/134.min.js +0 -1
  94. package/build/lib/static/212.min.css +0 -31
  95. package/build/lib/static/212.min.js +0 -1
  96. package/build/lib/static/285.min.css +0 -1
  97. package/build/lib/static/285.min.js +0 -1
  98. package/build/lib/static/389.min.css +0 -1
  99. package/build/lib/static/389.min.js +0 -1
  100. package/build/lib/static/406.min.js +0 -1
  101. package/build/lib/static/516.min.js +0 -1
  102. package/build/lib/static/533.min.js +0 -1
  103. package/build/lib/static/613.min.js +0 -1
  104. package/build/lib/static/635.min.js +0 -1
  105. package/build/lib/static/641.min.js +0 -1
  106. package/build/lib/static/73.min.js +0 -1
  107. package/build/lib/static/741.min.js +0 -1
  108. package/build/lib/static/76.min.js +0 -1
  109. package/build/lib/static/new-ui-gui.html +0 -38
  110. package/build/lib/static/new-ui-report.html +0 -38
  111. package/build/lib/static/newGui.min.css +0 -2
  112. package/build/lib/static/newGui.min.js +0 -1
  113. package/build/lib/static/newReport.min.js +0 -1
  114. package/build/lib/static/report.min.css +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[826],{21826(e,t,n){n.d(t,{A:()=>Pn});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>Me,hasStandardBrowserEnv:()=>$e,hasStandardBrowserWebWorkerEnv:()=>He,navigator:()=>ze,origin:()=>We});const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:c}=Symbol,l=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),u=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),f=(e,t,n)=>e===Object.prototype||!n&&null===t,d=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=i(n);if(f(n,o,n===e))return!1;if(l(n,t))return!0;n=o}return!1},p=(h=Object.create(null),e=>{const t=s.call(e);return h[t]||(h[t]=t.slice(8,-1).toLowerCase())});var h;const m=e=>(e=e.toLowerCase(),t=>p(t)===e),g=e=>t=>typeof t===e,{isArray:b}=Array,y=g("undefined");function w(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O=m("ArrayBuffer");const E=g("string"),R=g("function"),S=g("number"),_=e=>null!==e&&"object"==typeof e,v=e=>{if(!_(e))return!1;const t=i(e);return(null===t||t===Object.prototype||null===i(t))&&(f(e,t,!0)||!l(e,c)&&!l(e,a))},P=m("Date"),A=m("File"),T=m("Blob"),j=m("FileList"),C=m("Set");const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},x=void 0!==N.FormData?N.FormData:void 0,U=m("URLSearchParams"),[D,L,F,B]=["ReadableStream","Request","Response","Headers"].map(m);function k(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),b(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(w(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,q=e=>!y(e)&&e!==I;const M=(z="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>z&&e instanceof z);var z;const $=m("HTMLFormElement"),{propertyIsEnumerable:H}=Object.prototype,W=m("RegExp"),J=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const V=m("AsyncFunction"),K=(X="function"==typeof setImmediate,Q=R(I.postMessage),X?setImmediate:Q?(Z=`axios@${Math.random()}`,G=[],I.addEventListener("message",({source:e,data:t})=>{e===I&&t===Z&&G.length&&G.shift()()},!1),e=>{G.push(e),I.postMessage(Z,"*")}):e=>setTimeout(e));var X,Q,Z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||K,ee=e=>null!=e&&R(e[a]),te={isArray:b,isArrayBuffer:O,isBuffer:w,isFormData:e=>{if(!e)return!1;if(x&&e instanceof x)return!0;const t=i(e);if(!t||t===Object.prototype)return!1;if(!R(e.append))return!1;const n=p(e);return"formdata"===n||"object"===n&&R(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&O(e.buffer),t},isString:E,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:v,isEmptyObject:e=>{if(!_(e)||w(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:D,isRequest:L,isResponse:F,isHeaders:B,isUndefined:y,isDate:P,isFile:A,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:T,isRegExp:W,isFunction:R,isStream:e=>_(e)&&R(e.pipe),isURLSearchParams:U,isTypedArray:M,isFileList:j,forEach:k,merge:function e(...t){const{caseless:n,skipUndefined:r}=q(this)&&this||{},o={},s=n?Object.create(null):null,i=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=n;if(s&&"string"==typeof n){const e=n.toLowerCase(),t=s[e];void 0!==t&&l(o,t)?i=t:s[e]=n}const a=l(o,i)?o[i]:void 0;v(a)&&v(t)?o[i]=e(a,t):v(t)?o[i]=e({},t):b(t)?o[i]=t.slice():r&&y(t)||(o[i]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||w(n))continue;if(k(n,i),"object"!=typeof n||b(n)||!Object.getOwnPropertySymbols)continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];H.call(n,t)&&i(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(k(t,(t,r)=>{n&&R(t)?Object.defineProperty(e,r,{__proto__:null,value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),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,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:p,kindOfTest:m,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(b(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const s=i(o);if(f(o,s,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&l(o,e)&&n.add(r)}),o=s}if(n.size!==t)return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:l,hasOwnProp:l,hasOwnInPrototypeChain:d,getSafeProp:(e,t)=>null!=e&&d(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=i(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(u(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let s=e;for(;null!=s&&-1===o.indexOf(s);){o.push(s);const a=s===e?t:i(s);if(f(s,a,s===e))break;const c=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&c.push(...Object.getOwnPropertySymbols(s));for(const t of c)u(t)||l(r,t)||(n[t]=e[t],r[t]=!0);s=a}return n},reduceDescriptors:J,freezeMethods:e=>{J(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];R(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return b(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:function(e,t){if(w(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null},global:I,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&R(e.append)&&"FormData"===e[c]&&e[a])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(_(e)){if(t.has(e))return;if(w(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),C(e)){r=[];for(const t of e){const e=n(t);!y(e)&&r.push(e)}}else r=b(e)?[]:{},k(e,(e,t)=>{const o=n(e);!y(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:V,isThenable:e=>e&&(_(e)||R(e))&&R(e.then)&&R(e.catch),setImmediate:K,asap:Y,isIterable:ee,isSafeIterable:e=>null!=e&&d(e,a)&&ee(e)},ne=te.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"]),re=e=>{const t=Object.create(null);let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim();const s=te.hasOwnProp(t,n);!n||s&&te.hasOwnProp(ne,n)||("set-cookie"===n?s?t[n].push(r):t[n]=[r]:t[n]=s?t[n]+", "+r:r)}),t};n.dn(re);const oe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),se=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ie(e,t){return te.isArray(e)?e.map(e=>ie(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ae(e){const t=Object.create(null);return te.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>ie(e,se))(e)}),t}const ce=Symbol("internals");function le(e){return e&&String(e).trim().toLowerCase()}function ue(e){return!1===e||null==e?e:te.isArray(e)?e.map(ue):(e=>ie(e,oe))(String(e))}const fe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function de(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}const pe=e=>"__proto__"===e?"__Proto__":e;function he(e,t,n,r,o){return te.isFunction(r)?r.call(e,t,n):(o&&(t=n),te.isString(t)?te.isString(r)?-1!==t.indexOf(r):te.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=le(t);if(!o)return;const s=te.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[pe(s||t)]=ue(e))}const s=(e,t)=>te.forEach(e,(e,n)=>o(e,n,t));if(te.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(te.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s(re(e),t);else if(te.isObject(e)&&te.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!te.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],te.hasOwnProp(o,r)?(n=o[r],o[r]=te.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=le(e)){const n=te.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(te.isFunction(t))return t.call(this,e,n);if(te.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=le(e)){const n=te.findKey(this,e);return!(!n||void 0===this[n]||t&&!he(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=le(e)){const o=te.findKey(n,e);!o||t&&!he(n,n[o],o,t)||(delete n[o],r=!0)}}return te.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!he(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return te.forEach(this,(r,o)=>{const s=te.findKey(n,o);if(s)return t[s]=ue(r),void delete t[o];const i=pe(e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim());i!==o&&delete t[o],t[i]=ue(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return te.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&te.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return te.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,s=!1;function i(e){const o=de(n.slice(r,e)),s=o.indexOf("=");if(s<1)return;const i=de(o.slice(0,s));if(!fe.test(i))return;const a=i.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const c=de(o.slice(s+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(c)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?s?s=!1:92===t?s=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(i(e),r=e+1)}return i(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ce]=this[ce]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=le(e);t[r]||(!function(e,t){const n=te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return te.isArray(e)?e.forEach(r):r(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),te.reduceDescriptors(me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),te.freezeMethods(me);const ge=me,be="[REDACTED ****]";function ye(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(te.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof ge&&(e=e.toJSON()),r.push(e),te.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);te.isUndefined(r)||(t[n]=r)});else{if(!te.isPlainObject(e)&&function(e){if(te.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(te.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,s]of Object.entries(e)){const e=n.has(r.toLowerCase())?be:o(s);te.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function we(e){try{return String(e)}catch(e){return""}}const Oe=Symbol("causeStack");class Ee extends Error{static from(e,t,n,r,o,s){let i=e.message;!i&&te.isArray(e.errors)&&e.errors.length&&(i=function(e){return e.errors.map(e=>{try{return e&&e.message?we(e.message):we(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const a=new Ee(i,t||e.code,n,r,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,Oe,{__proto__:null,value:o})}catch(e){}}(a,e),null!=e.status&&null==a.status&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&te.hasOwnProp(e,"redact")?e.redact:void 0,n=te.isArray(t)&&t.length>0?ye(e,t):te.toJSONObject(e);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:n,code:this.code,status:this.status}}}Ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ee.ERR_BAD_OPTION="ERR_BAD_OPTION",Ee.ECONNABORTED="ECONNABORTED",Ee.ETIMEDOUT="ETIMEDOUT",Ee.ECONNREFUSED="ECONNREFUSED",Ee.ERR_NETWORK="ERR_NETWORK",Ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ee.ERR_DEPRECATED="ERR_DEPRECATED",Ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ee.ERR_CANCELED="ERR_CANCELED",Ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ee.ERR_INVALID_URL="ERR_INVALID_URL",Ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Re=Ee;function Se(e){return te.isPlainObject(e)||te.isArray(e)}function _e(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){return e?e.concat(t).map(function(e,t){return e=_e(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Pe=te.toFlatObject(te,{},null,function(e){return/^is[A-Z]/.test(e)});const Ae=function(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=te.getSafeProp(n,e);return te.isUndefined(r)?t:r},o=r("metaTokens",!0),s=r("visitor")||h,i=r("dots",!1),a=r("indexes",!1),c=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),u=c&&te.isSpecCompliantForm(t),f=[];if(!te.isFunction(s))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(te.isDate(e))return e.toISOString();if(te.isBoolean(e))return e.toString();if(!u&&te.isBlob(e))throw new Re("Blob is not supported. Use a Buffer instead.");if(te.isArrayBuffer(e)||te.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new Re("Blob is not supported. Use a Buffer instead.",Re.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new Re("Object is too deeply nested ("+e+" levels). Max depth: "+l,Re.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let s=e;if(te.isReactNative(t)&&te.isReactNativeBlob(e))return t.append(ve(r,n,i),d(e)),!1;if(e&&!r&&"object"==typeof e)if(te.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!te.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(te.isArray(e)&&function(e){return te.isArray(e)&&!e.some(Se)}(e)||(te.isFileList(e)||te.endsWith(n,"[]"))&&(s=te.toArray(e)))return n=_e(n),s.forEach(function(e,r){!te.isUndefined(e)&&null!==e&&t.append(!0===a?ve([n],r,i):null===a?n:n+"[]",d(e))}),!1;return!!Se(e)||(t.append(ve(r,n,i),d(e)),!1)}const m=Object.assign(Pe,{defaultVisitor:h,convertValue:d,isVisitable:Se});if(!te.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!te.isUndefined(n)){if(p(o),-1!==f.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));f.push(n),te.forEach(n,function(n,i){!0===(!(te.isUndefined(n)||null===n)&&s.call(t,n,te.isString(i)?i.trim():i,r,m))&&e(n,r?r.concat(i):[i],o+1)}),f.pop()}}(e),t};function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function je(e,t){this._pairs=[],e&&Ae(e,this,t)}const Ce=je.prototype;Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?t=>e.call(this,t,Te):Te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ne=je;function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ue(e,t,n){if(!t)return e;e=e||"";const r=te.isFunction(n)?{serialize:n}:n,o=te.getSafeProp(r,"encode")||xe,s=te.getSafeProp(r,"serialize");let i;if(i=s?s(t,r):te.isURLSearchParams(t)?t.toString():new Ne(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const De=Symbol("internals");function Le(e){return e?e.length:0}function Fe(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Be(e,t){const n=e.handlers,r=Le(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}const ke=class{constructor(){this.handlers=[],this[De]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[De];null==this.handlers&&(this.handlers=[]),Be(this,o);const s=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(s,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,s}eject(e){const t=this[De];Be(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Fe(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Be(this,this[De]))}forEach(e){const t=this[De];Be(this,t),t.iterationDepth++;try{te.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Be(this,t),Fe(this.handlers),t.handlersLength=Le(this.handlers))}}},Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},qe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Me="undefined"!=typeof window&&"undefined"!=typeof document,ze="object"==typeof navigator&&navigator||void 0,$e=Me&&(!ze||["ReactNative","NativeScript","NS"].indexOf(ze.product)<0),He="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,We=Me&&window.location.href||"http://localhost",Je={...r,...qe};function Ve(e){if(e>100)throw new Re("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Re.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ke(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Xe(e){if(!te.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?Ke(e):e}const Qe=function(e){function t(e,n,r,o){Ve(o);let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&te.isArray(r)?r.length:s,a)return te.hasOwnProp(r,s)?(r[s]=Xe(r[s]),r[s]=te.isArray(r[s])?r[s].concat(n):[r[s],n]):r[s]=n,!i;te.hasOwnProp(r,s)&&te.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&te.isArray(r[s])&&(r[s]=Ke(r[s])),!i}if(te.isFormData(e)&&te.isFunction(e.entries)){const n={};return te.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)Ve(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=Xe(e[n]);(te.isArray(r)||te.isPlainObject(r))&&t.push(r)})}return e}(n)}return null},Ze=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ge=(e,t)=>null!=e&&te.hasOwnProp(e,t)?e[t]:void 0;const Ye={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=te.isObject(e);o&&te.isHTMLForm(e)&&(e=new FormData(e));if(te.isFormData(e))return r?JSON.stringify(Qe(e)):e;if(te.isArrayBuffer(e)||te.isBuffer(e)||te.isStream(e)||te.isFile(e)||te.isBlob(e)||te.isReadableStream(e))return e;if(te.isArrayBufferView(e))return e.buffer;if(te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){const t=Ge(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ae(e,new Je.classes.URLSearchParams,{visitor:function(e,t,n,r){return Je.isNode&&te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((s=te.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Ge(this,"env"),r=n&&n.FormData;return Ae(s?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Ge(this,"transitional")||Ye.transitional,n=t&&t.forcedJSONParsing,r=Ge(this,"responseType"),o="json"===r;if(te.isResponse(e)||te.isReadableStream(e))return e;if(e&&te.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ge(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw Re.from(e,Re.ERR_BAD_RESPONSE,this,null,Ge(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(Ze,e=>{Ye.headers[e]={}});const et=Ye;function tt(e,t){const n=this||et,r=t||n,o=ge.from(r.headers);let s=r.data;return te.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function nt(e){return!(!e||!e.__CANCEL__)}const rt=class extends Re{constructor(e,t,n){super(null==e?"canceled":e,Re.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ot(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Re("Request failed with status code "+n.status,n.status>=400&&n.status<500?Re.ERR_BAD_REQUEST:Re.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const st=/[\t\n\r]/g;function it(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(st,"")}function at(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}const ct=e=>{try{return decodeURIComponent(e)}catch(t){return e}},lt=Je.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];te.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),te.isString(r)&&a.push(`path=${r}`),te.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),te.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let t=0;t<n.length;t++){const r=n[t].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return ct(r.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&te.isFunction(t.get)){const n=await t.get(e);return n?ct(n.value):null}}catch(e){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};const ut=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}};const ft=function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n),(...e)=>i(e)]},dt=(e,t,n=3)=>{let r=0;const o=ut(50,250);return ft(n=>{if(!n||!te.isNumber(n.loaded))return;const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=i?Math.min(s,i):s),c=Math.max(0,a-r),l=o(c);r=Math.max(r,a);e({loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},pt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ht=(e,t=te.asap)=>(...n)=>t(()=>e(...n)),mt=Je.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Je.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Je.origin)):()=>!0;const gt=/^https?:(?!\/\/)/i;function bt(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${be}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${be}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${be}`):o}`;var o}function yt(e,t){if("string"==typeof e){const n=it(e);if(gt.test(n))throw new Re(`Invalid URL ${JSON.stringify(bt(n))}: missing "//" after protocol`,Re.ERR_INVALID_URL,t)}}function wt(e,t,n,r){yt(t,r);let o=!("string"==typeof(s=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s));var s;return e&&(o||!1===n)?(yt(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const Ot=e=>e instanceof ge?{...e}:e,Et=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function Rt(e,t,n,r){return te.isPlainObject(e)&&te.isPlainObject(t)?te.merge.call({caseless:r},e,t):te.isPlainObject(t)?te.merge({},t):te.isArray(t)?t.slice():t}function St(e,t,n,r){return te.isUndefined(t)?te.isUndefined(e)?void 0:Rt(void 0,e,0,r):Rt(e,t,0,r)}function _t(e,t){if(!te.isUndefined(t))return Rt(void 0,t)}function vt(e,t){return te.isUndefined(t)?te.isUndefined(e)?void 0:Rt(void 0,e):Rt(void 0,t)}function Pt(e,t,n,r,o){return te.hasOwnProp(o,n)?Rt(e,t):te.hasOwnProp(r,n)?Rt(void 0,e):void 0}const At=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),Tt={url:_t,method:_t,data:_t,baseURL:vt,transformRequest:vt,transformResponse:vt,params:function(e,t){const n=[],r=new WeakMap,o={};function s(e,t){if(!te.isPlainObject(t))return te.isArray(t)?t.slice():t;const s=te.isPlainObject(e)?e:o;let i=r.get(t);if(i||(i=new WeakMap,r.set(t,i)),i.has(s))return i.get(s);const a={};return i.set(s,a),n.push({base:s,source:t,result:a}),a}const i=te.isUndefined(t)?s(void 0,e):s(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(Et(e)),i=new Set(Et(t));new Set([...o,...i]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const a=i.has(n),c=a?t[n]:void 0,l=a&&!te.isPlainObject(c)||!o.has(n)?void 0:e[n];r[n]=a?s(l,c):s(void 0,l)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!te.isPlainObject(e)&&!te.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new Re("Circular reference detected in params",Re.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const s=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&s.push(t)}),s.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&te.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(i),i},paramsSerializer:vt,timeout:vt,timeoutErrorMessage:vt,withCredentials:vt,withXSRFToken:vt,adapter:vt,responseType:vt,xsrfCookieName:vt,xsrfHeaderName:vt,onUploadProgress:vt,onDownloadProgress:vt,decompress:vt,maxContentLength:vt,maxBodyLength:vt,beforeRedirect:vt,transport:vt,httpAgent:vt,httpsAgent:vt,cancelToken:vt,socketPath:vt,allowedSocketPaths:vt,responseEncoding:vt,validateStatus:Pt,headers:function(e,t,n){return St(Ot(e),Ot(t),0,!0)}};function jt(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",At);const r=Et({...e,...t});for(let o=0,s=r.length;o<s;o++){const s=r[o];if("__proto__"===s||"constructor"===s||"prototype"===s)continue;const i=te.hasOwnProp(Tt,s)?Tt[s]:St,a=te.hasOwnProp(e,s)?e[s]:void 0,c=te.hasOwnProp(t,s)?t[s]:void 0,l=i===Pt?i(a,c,s,e,t):i(a,c,s);te.isUndefined(l)&&i!==Pt||(n[s]=l)}return te.hasOwnProp(t,"validateStatus")&&te.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=te.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!te.isUndefined(r)){if(!te.isPlainObject(r))return;if(te.hasOwnProp(r,n))return r[n]}const o=te.hasOwnProp(e,"transitional")?e.transitional:void 0;if(te.isPlainObject(o)&&te.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(te.hasOwnProp(e,"validateStatus")?n.validateStatus=Rt(void 0,e.validateStatus):delete n.validateStatus),n}const Ct=["content-type","content-length"];const Nt=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),xt=e=>lt.read(e);const Ut=function(e,t=xt){const n=jt({},e),r=e=>te.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let s=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let c=r("headers");const l=r("auth"),u=r("baseURL"),f=r("allowAbsoluteUrls"),d=r("url");if(n.headers=c=ge.from(c),n.url=Ue(wt(u,d,f,n),r("params"),r("paramsSerializer")),l){const t=te.getSafeProp(l,"username")||"",n=te.getSafeProp(l,"password")||"",o=r("transitional"),s=o&&te.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{c.set("Authorization","Basic "+btoa((s?Nt(t):t)+":"+(n?Nt(n):"")))}catch(t){throw Re.from(t,Re.ERR_BAD_OPTION_VALUE,e)}}if(te.isFormData(o)){const e=te.getSafeProp(o,"getHeaders");Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv||te.isReactNative(o)?c.setContentType(void 0):te.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{Ct.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(c,e.call(o),r("formDataHeaderPolicy"))}if(Je.hasStandardBrowserEnv){te.isFunction(s)&&(s=s(n));if(!0===s||null==s&&mt(n.url)){const e=i&&a&&t(a);e&&c.set(i,e)}}return n},Dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=Je.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&te.isFunction(e.get)}catch(e){}const s=Ut(e,r?e=>(o=e,null):void 0);let i=s.data;const a=ge.from(s.headers).normalize();let c,l,u,f,d,p,h,{responseType:m,onUploadProgress:g,onDownloadProgress:b}=s;function y(){clearTimeout(l);try{d&&d()}catch(e){setTimeout(()=>{throw e})}try{p&&p()}catch(e){setTimeout(()=>{throw e})}w&&(f&&w.removeEventListener("progress",f),w.upload&&(u&&w.upload.removeEventListener("progress",u),d&&w.upload.removeEventListener("loadend",d))),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;function O(r){if(!w)return;if(!(0!==w.status||"file"===(at(it(s.url))||at(Je.origin))||w.responseURL&&w.responseURL.startsWith("file:")))return n(new Re("Request aborted",Re.ECONNABORTED,e,w)),y(),void(w=null);try{r?h&&h(r):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!w)return;const o=ge.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());ot(function(e){t(e),y()},function(e){n(e),y()},{data:m&&"text"!==m&&"json"!==m?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:o,config:e,request:w}),w=null}if(w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout,"onloadend"in w?w.onloadend=O:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&w.responseURL.startsWith("file:"))&&setTimeout(O)},w.onabort=function(){w&&(n(new Re("Request aborted",Re.ECONNABORTED,e,w)),y(),w=null)},w.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Re(r,Re.ERR_NETWORK,e,w);o.event=t||null,n(o),y(),w=null},w.ontimeout=function(){if(!w)return;let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const r=s.transitional||Ie;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new Re(t,r.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,w)),y(),w=null},void 0===i&&a.setContentType(null),te.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),m&&"json"!==m&&(w.responseType=s.responseType),b&&([f,p,h]=dt(b,!0),w.addEventListener("progress",f)),g&&w.upload&&([u,d]=dt(g),w.upload.addEventListener("progress",u),w.upload.addEventListener("loadend",d)),s.cancelToken||s.signal){if(c=t=>{if(!w)return;n(!t||t.type?new rt(null,e,w):t);const r=w;y(),w=null,r.abort()},s.cancelToken&&s.cancelToken.subscribe(c),!w)return;s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c))}if(!w)return;const E=at(s.url);if(E&&!Je.protocols.includes(E))return n(new Re("Unsupported protocol "+E+":",Re.ERR_BAD_REQUEST,e)),void y();const R=()=>{w&&("setRequestHeader"in w&&te.forEach(ae(a),function(e,t){w.setRequestHeader(t,e)}),w.send(i||null))};if(o){const t="undefined"!=typeof performance&&te.isFunction(performance.now)?()=>performance.now():Date.now,r=w.timeout>0?t()+Number(w.timeout):void 0,i=()=>{if(!w)return;const e=w;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?l=setTimeout(e,Math.min(n,2147483647)):i()};e()}lt.readAsync(o).then(e=>{if(w)if(void 0!==r&&t()>=r)i();else{if(e){const t=te.hasOwnProp(s,"xsrfHeaderName")&&s.xsrfHeaderName;a.set(t,e)}R()}}).catch(t=>{w&&(n(Re.from(t,null,e,w)),y(),w=null)})}else R()})},Lt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Re?t:new rt(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new Re(`timeout of ${t}ms exceeded`,Re.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{const t=te.getSafeProp(e,"unsubscribe");te.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>te.asap(i),a},Ft=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Bt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},kt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Bt(e))yield*Ft(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},It="\r\n",qt=e=>String(e).replace(/\r\n|\r|\n/g,It),Mt=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),zt=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n};class $t extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}}function Ht(e,t,n,r,o){if(!te.isFunction(t))throw new Re("Blob is not supported",Re.ERR_NOT_SUPPORT);if(void 0===o)if(te.isFunction(Je.generateString))o="axios-"+Je.generateString(36,"0123456789abcdef");else{const e=te.global.crypto;if(!e||!te.isFunction(e.getRandomValues))throw new Re("Random byte generation is not supported",Re.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!te.isFunction(t))throw new $t("Blob is not supported","blob");if(!te.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new $t("Invalid multipart boundary","boundary");const s="--"+o+"--"+It;let i=s.length;const a=[],c=e=>{if(i+e>n)throw r()};c(0);for(const[t,n]of e){const e=te.isString(n),r=e?zt(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new $t("Unsupported FormData part size","part");c(r+zt(t,!0)+(!e&&n.name?zt(n.name,!1):0)+(!e&&n.type?zt(n.type,!1):0));let s="--"+o+'\r\nContent-Disposition: form-data; name="'+Mt(qt(t))+'"';e||(s+='; filename="'+Mt(te.isString(n.name)?n.name:"blob")+'"\r\nContent-Type: '+String(n.type||"application/octet-stream").replace(/[\r\n]/g,"")),s+=It+It;const l=zt(s,!1)+r+2;c(l),i+=l,a.push({header:s,value:n,isString:e})}const l=[];for(const e of a)l.push(e.header,e.isString?qt(e.value):e.value,It);return l.push(s),new t(l,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(e){if(e instanceof $t){const t="boundary"===e.reason?Re.ERR_BAD_OPTION_VALUE:Re.ERR_BAD_REQUEST;throw new Re(e.message,t)}throw e}}const Wt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Jt=(e,t,n)=>t+2<n&&Wt(e.charCodeAt(t+1))&&Wt(e.charCodeAt(t+2)),Vt=e=>e<=57?e-48:(223&e)-55,Kt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Xt=e=>9===e||10===e||12===e||13===e||32===e,Qt=e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},Zt=e=>{const t=e.length;let n=0,r=0,o=!1;for(let s=0;s<t;s++){let i=e.charCodeAt(s);37===i&&Jt(e,s,t)&&(i=16*Vt(e.charCodeAt(s+1))+Vt(e.charCodeAt(s+2)),s+=2),Xt(i)||(61!==i?!Kt(i)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?Qt(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)},Gt=(e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),s=e.slice(r+1);if(n.test(o))return t(s);let i=0;for(let e=0,t=s.length;e<t;e++){const n=s.charCodeAt(e);if(37===n&&Jt(s,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=s.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i};const Yt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:en}=te,tn=e=>{if(!te.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},nn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},rn=e=>{const t=void 0!==te.global&&null!==te.global?te.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=te.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=te.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:s,Response:i,Blob:a}=e,c=o?en(o):"function"==typeof fetch,l=en(s),u=en(i);if(!c)return!1;const f=c&&en(n),d=c&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var p;const h=l&&f&&nn(()=>{let e=!1;const t=new s(Je.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),m=u&&f&&nn(()=>te.isReadableStream(new i("").body)),g=Object.assign(Object.create(null),Yt);l&&!nn(()=>new s(Je.origin,g))&&(delete g.cache,nn(()=>new s(Je.origin,g))||(g.cache=Yt.cache));const b={stream:m&&(e=>e.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!b[e]&&(b[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Re(`Response type '${e}' is not supported`,Re.ERR_NOT_SUPPORT,n)})});const y=async e=>null==e?0:te.isBlob(e)?e.size:te.isArrayBufferView(e)||te.isArrayBuffer(e)?e.byteLength:(te.isURLSearchParams(e)&&(e+=""),te.isString(e)?(await d(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:c,signal:u,cancelToken:d,timeout:p,onDownloadProgress:w,onUploadProgress:O,responseType:E,headers:R,withCredentials:S="same-origin",fetchOptions:_,maxContentLength:v,maxBodyLength:P,maxRedirects:A}=Ut(e);const T=te.isNumber(v)&&v>-1,j=te.isNumber(P)&&P>-1,C=t=>te.hasOwnProp(e,t)?e[t]:void 0;let N=o||fetch;E=E?(E+"").toLowerCase():"text";let x=Lt([u,d&&d.toAbortSignal()],p),U=null;const D=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let L,F=null,B=null;const k=()=>new Re("Request body larger than maxBodyLength limit",Re.ERR_BAD_REQUEST,e,U);try{let o;const u=C("auth");if(u){const e=te.getSafeProp(u,"username")||"";o={username:e,password:te.getSafeProp(u,"password")||""}}let d;if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){if(d=new URL(t,Je.origin),!o&&(d.username||d.password)){const e=tn(d.username);o={username:e,password:tn(d.password)}}(d.username||d.password)&&(d.username="",d.password="",t=d.href)}if(o&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa((I=(o.username||"")+":"+(o.password||""),encodeURIComponent(I).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),T&&d&&"data:"===d.protocol){const t=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return Gt(-1===t?e:e.slice(0,t),Zt,/; *base64[\t\n\f\r ]*$/i)}(d.href);if(t>v)throw new Re("maxContentLength size of "+v+" exceeded",Re.ERR_BAD_RESPONSE,e,U)}const p=te.isSpecCompliantForm(c)&&ge.from(C("headers")).getContentType();let q;if(te.isString(p)&&/^multipart\/form-data(?:\s*;|$)/i.test(p.trim())){const e=ge.parseParameters(p);te.hasOwnProp(e,"boundary")&&(q=e.boundary)}if(te.isSpecCompliantForm(c)&&"get"!==n&&"head"!==n&&(j||O&&h||void 0!==q)&&(c=Ht(c,a,j?P:1/0,k,q),R.setContentType(void 0===q?c.type:p),L=c.size),j&&"get"!==n&&"head"!==n){const e=await y(c);if("number"==typeof e&&isFinite(e)&&(L=e,e>P))throw k()}const M=j&&(te.isReadableStream(c)||te.isStream(c)),z=(e,t,n)=>kt(e,65536,e=>{if(j&&e>P)throw F=k();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(O||M)){if(L=null==L?await(async(e,t)=>{const n=te.toFiniteNumber(e.getContentLength());return null==n?y(t):n})(R,c):L,0!==L||M){let e,n=new s(t,{method:"POST",body:c,duplex:"half"});if(te.isFormData(c)&&(e=n.headers.get("content-type"))&&R.setContentType(e),n.body){const[e,t]=O&&pt(L,dt(ht(O)))||[];c=z(n.body,e,t)}}}else if(M&&!l&&f&&"get"!==n&&"head"!==n)c=z(c);else if(M&&l&&!h&&"get"!==n&&"head"!==n)throw new Re("Stream request bodies are not supported by the current fetch implementation",Re.ERR_NOT_SUPPORT,e,U);te.isString(S)||(S=S?"include":"omit");const $=l&&"credentials"in s.prototype;if(te.isFormData(c)){const e=R.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&R.delete("content-type")}R.set("User-Agent","axios/1.21.0",!1);const H=null==_?_:Object.assign(Object.create(null),_);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);const W=Object.assign(Object.create(null),H,{signal:x,method:n.toUpperCase(),headers:ae(R.normalize()),body:c,duplex:"half",credentials:$?S:void 0});l&&(te.forEach(g,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===A&&(W.redirect="manual",H&&(H.redirect="manual")),U=l&&new s(t,W);let J=await(l?N(U,H):N(t,W));const V=ge.from(J.headers);if(T){const t=te.toFiniteNumber(V.getContentLength());if(null!=t&&t>v)throw new Re("maxContentLength size of "+v+" exceeded",Re.ERR_BAD_RESPONSE,e,U)}const K=m&&("stream"===E||"response"===E);if(m&&J.body&&(w||T||K&&D)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=J[e]});const n=te.toFiniteNumber(V.getContentLength()),[r,o]=w&&pt(n,dt(ht(w),!0))||[];let s=0;const a=t=>{if(T&&(s=t,s>v))throw B=new Re("maxContentLength size of "+v+" exceeded",Re.ERR_BAD_RESPONSE,e,U);r&&r(t)};J=new i(kt(J.body,65536,a,()=>{o&&o(),D&&D()}),t)}E=E||"text";let X=await b[te.findKey(b,E)||"text"](J,e);if(T&&!m&&!K){let t;if(null!=X&&("number"==typeof X.byteLength?t=X.byteLength:"number"==typeof X.size?t=X.size:"string"==typeof X&&(t="function"==typeof r?(new r).encode(X).byteLength:X.length)),"number"==typeof t&&t>v)throw new Re("maxContentLength size of "+v+" exceeded",Re.ERR_BAD_RESPONSE,e,U)}return!K&&D&&D(),await new Promise((t,n)=>{ot(t,n,{data:X,headers:ge.from(J.headers),status:J.status,statusText:J.statusText,config:e,request:U})})}catch(t){if(D&&D(),x&&x.aborted&&x.reason instanceof Re){const n=x.reason;throw n.config=e,U&&(n.request=U),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(F)throw U&&!F.request&&(F.request=U),F;if(B)throw B;if(t instanceof Re)throw U&&!t.request&&(t.request=U),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new Re("Network Error",Re.ERR_NETWORK,e,U,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Re.from(t,t&&t.code,e,U,t&&t.response)}var I}},on=new Map,sn=e=>{const t=Object.create(null),n=e&&te.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&te.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:s,Blob:i}=t,a=[o,s,r,i];let c,l,u=a.length,f=on;for(;u--;)c=a[u],l=f.get(c),void 0===l&&f.set(c,l=u?new Map:rn(t)),f=l;return l},an=(sn(),{http:null,xhr:Dt,fetch:{get:sn}});te.forEach(an,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const cn=e=>`- ${e}`,ln=e=>te.isFunction(e)||null===e||!1===e;const un={getAdapter:function(e,t){e=te.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!ln(r)&&(o=an[(n=String(r)).toLowerCase()],void 0===o))throw new Re(`Unknown adapter '${n}'`);if(o&&(te.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(cn).join("\n"):" "+cn(e[0]):"as no adapter specified";throw new Re("There is no suitable adapter to dispatch the request "+t,Re.ERR_NOT_SUPPORT)}return o},adapters:an};function fn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rt(null,e)}function dn(e){return Math.max(0,Date.now()-e)}function pn(e){const t=te.toSafeFlatObject(e);fn(t),t.headers=ge.from(te.getSafeProp(t,"headers")),t.data=tt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=un.getAdapter(t.adapter||et.adapter,t),r=Date.now();return n(t).then(function(e){fn(t),e.duration=dn(r),t.response=e;try{e.data=tt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ge.from(e.headers),e},function(e){if(!nt(e)&&(fn(t),e&&e.response)){e.response.duration=dn(r),t.response=e.response;try{e.response.data=tt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ge.from(e.response.headers)}return Promise.reject(e)})}const hn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mn={};hn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.21.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new Re(r(o," has been removed"+(t?" in "+t:"")),Re.ERR_DEPRECATED);return t&&!mn[o]&&(mn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},hn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const gn={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Re("option "+s+" must be "+n,Re.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Re("Unknown option "+s,Re.ERR_BAD_OPTION)}},validators:hn},bn=gn.validators,yn=e=>{if(null==e||te.isPlainObject(e)||e instanceof ge)return!0;try{return te.isObject(e)&&"AxiosHeaders"===te.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>te.isFunction(te.getSafeProp(e,t)))}catch(e){return!1}};class wn{constructor(e){this.defaults=e||{},this.interceptors={request:new ke,response:new ke}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?r:r.slice(n+1),s=String(e.stack),i=function(e,t){const n=te.hasOwnProp(e,Oe)&&e[Oe];return n&&t.endsWith(n)?t.length-n.length:-1}(e,s),a=-1===i?s:s.slice(0,i),c=-1===i?"":s.slice(i);a.endsWith(o)||(e.stack=a+"\n"+r+c)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&gn.assertOptions(n,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean),legacyInterceptorReqResOrdering:bn.transitional(bn.boolean),advertiseZstdAcceptEncoding:bn.transitional(bn.boolean),validateStatusUndefinedResolves:bn.transitional(bn.boolean),encodeBasicAuthUsername:bn.transitional(bn.boolean)},!1),null!=r&&(te.isFunction(r)?t.paramsSerializer={serialize:r}:gn.assertOptions(r,{encode:bn.function,serialize:bn.function},!0)),void 0!==t.allowAbsoluteUrls||(te.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gn.assertOptions(t,{baseUrl:bn.spelling("baseURL"),withXsrfToken:bn.spelling("withXSRFToken")},!0),t.method=(te.getSafeProp(t,"method")||te.getSafeProp(this.defaults,"method")||"get").toLowerCase();const s=te.getSafeProp(o,"common"),i=te.getSafeProp(o,t.method),a=o&&te.merge(yn(s)?s:void 0,yn(i)?i:void 0);o&&te.forEach(Ze.concat("common"),e=>{yn(te.getSafeProp(o,e))&&delete o[e]}),t.headers=ge.concat(a,o);const c=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Ie;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});const u=[];let f;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d,p=0;if(!l){const e=[pn.bind(this),void 0];for(e.unshift(...c),e.push(...u),d=e.length,f=Promise.resolve(t);p<d;)f=f.then(e[p++],e[p++]);return f}d=c.length;let h=t;for(;p<d;){const e=c[p++],t=c[p++];try{h=e?e(h):h}catch(e){if(!t){f=Promise.reject(e);break}try{const n=t.call(this,e);te.isThenable(n)&&(f=Promise.resolve(n).then(()=>pn.call(this,h)))}catch(e){f=Promise.reject(e)}break}}if(!f)try{f=pn.call(this,h)}catch(e){f=Promise.reject(e)}for(p=0,d=u.length;p<d;)f=f.then(u[p++],u[p++]);return f}getUri(e){return Ue(wt((e=jt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}te.forEach(["delete","get","head","options"],function(e){wn.prototype[e]=async function(t,n){return this.request(jt(n||{},{method:e,url:t,data:n&&te.hasOwnProp(n,"data")?n.data:void 0}))}}),te.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(jt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}wn.prototype[e]=t(),"query"!==e&&(wn.prototype[e+"Form"]=t(!0))});const On=wn;class En{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new rt(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new En(function(t){e=t}),cancel:e}}}const Rn=En;const Sn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sn).forEach(([e,t])=>{void 0===Sn[t]&&(Sn[t]=e)});const _n=Sn;const vn=function e(t){const n=new On(t),r=o(On.prototype.request,n);return te.extend(r,On.prototype,n,{allOwnKeys:!0}),te.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jt(t,n))},r}(et);vn.Axios=On,vn.CanceledError=rt,vn.CancelToken=Rn,vn.isCancel=nt,vn.VERSION="1.21.0",vn.toFormData=Ae,vn.AxiosError=Re,vn.Cancel=vn.CanceledError,vn.all=function(e){return Promise.all(e)},vn.spread=function(e){return function(t){return e.apply(null,t)}},vn.isAxiosError=function(e){return te.isObject(e)&&!0===e.isAxiosError},vn.mergeConfig=jt,vn.AxiosHeaders=ge,vn.formToJSON=e=>Qe(te.isHTMLForm(e)?new FormData(e):e),vn.getAdapter=un.getAdapter,vn.HttpStatusCode=_n,vn.default=vn;const Pn=vn}}]);