@zjlab-fe/util 0.5.9 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5,4 +5,4 @@ var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.l
|
|
|
5
5
|
* author : Adam Draper
|
|
6
6
|
* license : MIT
|
|
7
7
|
* http://adamwdraper.github.com/Numeral-js/
|
|
8
|
-
*/N=A,function(e,t){N.exports?N.exports=t():e.numeral=t()}(O,(function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(c.zeroFormat&&r===c.zeroFormat)n=0;else if(c.nullFormat&&r===c.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new u(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,r,n){var o,i,a,c,u,l,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(w=" "),r=r.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),c=t.toString().split(".")[0],u=r.split(".")[1],d=r.indexOf(","),o=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):v=e._.toFixed(t,u.length,n),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,n),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):l>=0?f=0===l?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,c=e.toString().split("."),u=t-(n||0);return o=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,c,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(r)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,a=u.abbreviations,n=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==i)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,u=t||c.defaultFormat;if(r=r||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(n in i)if(u.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,u,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,u=e._.includes(o,"ib")?n:r,l=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(a=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===t||0===t||t>=a&&t<c){l+=u.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+l},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e}));var C=R(A.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Q=U("URLSearchParams"),[Z,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),D(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),ue=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),le=U("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:r,data:n})=>{r===oe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(e))||"object"===t&&H(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Z,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:le,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Q,isTypedArray:se,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=ie(this)&&this||{},r={},n=(n,o)=>{const i=t&&ne(r,o)||o;G(r[i])&&G(n)?r[i]=e(r[i],n):G(n)?r[i]=e({},n):D(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(re(t,((t,n)=>{r&&H(t)?e[n]=F(t,r):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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&P(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!$(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:ue,hasOwnProp:ue,reduceDescriptors:de,freezeMethods:e=>{de(e,((t,r)=>{if(H(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];H(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return D(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=D(e)?[]:{};return re(e,((e,t)=>{const i=r(e,n+1);!M(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=_e(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,r){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ve.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(r,"[]"))&&(a=ve.toArray(e)))return r=_e(r),a.forEach((function(e,n){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,r,i),c(e)),!1)}const l=[],d=Object.assign(Oe,{defaultVisitor:u,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ve.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),ve.forEach(r,(function(r,i){!0===(!(ve.isUndefined(r)||null===r)&&o.call(t,r,ve.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ae(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ae.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,r){if(!t)return e;const n=r&&r.encode||Fe,o=r&&r.serialize;let i;if(i=o?o(t,r):ve.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ne)}:Ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(n)?n.length:i,a)return ve.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&ve.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ve.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const r={};return ve.forEachEntry(e,((e,n)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return n?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ee.from(e,Ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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"]);const Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,r,n,o){return ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),ve.isString(t)?ve.isString(n)?-1!==t.indexOf(n):ve.isRegExp(n)?n.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,r)=>o(e,r,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ve.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Je(e)){const r=ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ve.isFunction(t))return t.call(this,e,r);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const r=ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Je(e)){const o=ve.findKey(r,e);!o||t&&!Ke(0,r[o],o,t)||(delete r[o],n=!0)}}return ve.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ke(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ve.forEach(this,((n,o)=>{const i=ve.findKey(r,o);if(i)return t[i]=We(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Je(e);t[n]||(!function(e,t){const r=ve.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ve.isArray(e)?e.forEach(n):n(e),this}}function Qe(e,t){const r=this||$e,n=t||r,o=Xe.from(n.headers);let i=n.data;return ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ze(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,r){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,r),this.name="CanceledError"}function et(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},rt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=ve.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ve.isString(n)&&s.push("path="+n),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const r={};function n(e,t,r){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:r},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,r){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ve.isUndefined(t))return n(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);ve.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ut=e=>{const t=ct({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ut(e);let o=n.data;const i=Xe.from(n.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const n=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([c,l]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===qe.protocols.indexOf(b)?r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},pt=(e,t,r,n,o)=>{const i=async function*(e,t,r){for await(const n of e)yield*ft(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&>((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&>((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,r)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,r)})})));const St=async(e,t)=>{const r=ve.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):r};const Tt={http:null,xhr:lt,fetch:ht&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=ut(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==r&&"head"!==r&&0!==(g=await St(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(ve.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=rt(g,tt(nt(c)));n=pt(r.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===u||"response"===u);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&rt(t,tt(nt(a),!0))||[];o=new Response(pt(o.body,65536,r,(()=>{n&&n(),i&&b()}),wt),e)}u=u||"text";let s=await Et[ve.findKey(Et,u)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,r)=>{et(t,r,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!kt(r)&&(n=Tt[(t=String(r)).toLowerCase()],void 0===n))throw new Ee(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function Nt(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Ze(t)||(Rt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const At="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var jt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ee("option "+i+" must be "+r,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ct(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&jt.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=n&&(ve.isFunction(n)?t.paramsSerializer={serialize:n}:jt.assertOptions(n,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[Nt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let f=t;for(d=0;d<l;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(ct(r||{},{method:e,url:t,data:(r||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ye(e,n,o),t(r.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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const r=new Lt(t),n=F(Lt.prototype.request,r);return ve.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ct(t,r))},n}($e);function Dt(e){var t=new so,r=It.create({});return r.interceptors.request.use((function(t){var r,n=window[null!==(r=null==e?void 0:e.authTokenNamespace)&&void 0!==r?r:"_subApp"],o=null==n?void 0:n.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==n?void 0:n.language)&&(t.headers.language=n.language),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var r;return 401===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var r,n,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(n=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===n?void 0:n.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),r}It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Ze,It.VERSION=At,It.toFormData=Re,It.AxiosError=Ee,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function zt(e){if(!function(e){return"string"==typeof e&&Mt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const qt=[];for(let e=0;e<256;++e)qt.push((e+256).toString(16).slice(1));function Ht(e,t=0){return(qt[e[t+0]]+qt[e[t+1]]+qt[e[t+2]]+qt[e[t+3]]+"-"+qt[e[t+4]]+qt[e[t+5]]+"-"+qt[e[t+6]]+qt[e[t+7]]+"-"+qt[e[t+8]]+qt[e[t+9]]+"-"+qt[e[t+10]]+qt[e[t+11]]+qt[e[t+12]]+qt[e[t+13]]+qt[e[t+14]]+qt[e[t+15]]).toLowerCase()}let $t;const Vt=new Uint8Array(16);function Gt(){if(!$t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$t=crypto.getRandomValues.bind(crypto)}return $t(Vt)}const Jt={};function Wt(e,t,r){let n;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=Kt(e.random??e.rng?.()??Gt(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),i=Gt();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9]));e.msecs=t}(Jt,e,i),n=Kt(i,Jt.msecs,Jt.nsecs,o?void 0:Jt.clockseq,o?void 0:Jt.node,t,r)}return t??Ht(n)}function Kt(e,t,r,n,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=n>>>8|128,i[s++]=255&n;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Xt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?zt(e):e);return"string"==typeof e?Ht(t):t}function Qt(e,t,r){e??={};let n=Wt({...e,_v6:!0},new Uint8Array(16));return n=Xt(n),Ht(n)}var Zt,Yt="user-agent",er="",tr={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},rr="browser",nr="cpu",or="device",ir="engine",sr="os",ar="result",cr="name",ur="type",lr="vendor",dr="version",fr="architecture",pr="major",hr="model",mr="console",wr="mobile",br="tablet",gr="smarttv",yr="wearable",vr="xr",Er="embedded",xr="inapp",Sr="brands",Tr="formFactors",_r="fullVersionList",kr="platform",Or="platformVersion",Rr="bitness",Nr="sec-ch-ua",Ar=Nr+"-full-version-list",Cr=Nr+"-arch",Fr=Nr+"-"+Rr,jr=Nr+"-form-factors",Pr=Nr+"-"+wr,Lr=Nr+"-"+hr,Br=Nr+"-"+kr,Ur=Br+"-version",Ir=[Sr,_r,wr,hr,kr,Or,fr,Tr,Rr],Dr="Amazon",Mr="Apple",zr="ASUS",qr="BlackBerry",Hr="Google",$r="Huawei",Vr="Lenovo",Gr="Honor",Jr="LG",Wr="Microsoft",Kr="Motorola",Xr="Nvidia",Qr="OnePlus",Zr="OPPO",Yr="Samsung",en="Sharp",tn="Sony",rn="Xiaomi",nn="Zebra",on="Chrome",sn="Chromium",an="Chromecast",cn="Edge",un="Firefox",ln="Opera",dn="Facebook",fn="Sogou",pn="Mobile ",hn=" Browser",mn="Windows",wn=typeof window!==tr.UNDEFINED&&window.navigator?window.navigator:void 0,bn=wn&&wn.userAgentData?wn.userAgentData:void 0,gn=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},yn=function(e,t){if(typeof e===tr.OBJECT&&e.length>0){for(var r in e)if(Sn(t)==Sn(e[r]))return!0;return!1}return!!En(e)&&Sn(t)==Sn(e)},vn=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&vn(e[r])},En=function(e){return typeof e===tr.STRING},xn=function(e){if(e){for(var t=[],r=kn(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var o=Rn(r[n]).split(";v=");t[n]={brand:o[0],version:o[1]}}else t[n]=Rn(r[n]);return t}},Sn=function(e){return En(e)?e.toLowerCase():e},Tn=function(e){return En(e)?kn(/[^\d\.]/g,e).split(".")[0]:void 0},_n=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==tr.OBJECT&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},kn=function(e,t){return En(t)?t.replace(e,er):t},On=function(e){return kn(/\\?\"/g,e)},Rn=function(e,t){return e=kn(/^\s\s*/,String(e)),typeof t===tr.UNDEFINED?e:e.substring(0,t)},Nn=function(e,t){if(e&&t)for(var r,n,o,i,s,a,c=0;c<t.length&&!s;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!s&&u[r];)if(s=u[r++].exec(e))for(o=0;o<l.length;o++)a=s[++n],typeof(i=l[o])===tr.OBJECT&&i.length>0?2===i.length?typeof i[1]==tr.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==tr.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},An=function(e,t){for(var r in t)if(typeof t[r]===tr.OBJECT&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(yn(t[r][n],e))return"?"===r?void 0:r}else if(yn(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Cn={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Fn={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},jn={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Pn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[dr,[cr,pn+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[dr,[cr,cn+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[dr,[cr,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[cr,dr],[/opios[\/ ]+([\w\.]+)/i],[dr,[cr,ln+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[dr,[cr,ln+" GX"]],[/\bopr\/([\w\.]+)/i],[dr,[cr,ln]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[dr,[cr,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[dr,[cr,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[cr,dr],[/quark(?:pc)?\/([-\w\.]+)/i],[dr,[cr,"Quark"]],[/\bddg\/([\w\.]+)/i],[dr,[cr,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[dr,[cr,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[dr,[cr,"WeChat"]],[/konqueror\/([\w\.]+)/i],[dr,[cr,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[dr,[cr,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[dr,[cr,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[dr,[cr,"Smart "+Vr+hn]],[/(avast|avg)\/([\w\.]+)/i],[[cr,/(.+)/,"$1 Secure"+hn],dr],[/\bfocus\/([\w\.]+)/i],[dr,[cr,un+" Focus"]],[/\bopt\/([\w\.]+)/i],[dr,[cr,ln+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[dr,[cr,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[dr,[cr,"Dolphin"]],[/coast\/([\w\.]+)/i],[dr,[cr,ln+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[dr,[cr,"MIUI"+hn]],[/fxios\/([\w\.-]+)/i],[dr,[cr,pn+un]],[/\bqihoobrowser\/?([\w\.]*)/i],[dr,[cr,"360"]],[/\b(qq)\/([\w\.]+)/i],[[cr,/(.+)/,"$1Browser"],dr],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[cr,/(.+)/,"$1"+hn],dr],[/samsungbrowser\/([\w\.]+)/i],[dr,[cr,Yr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[dr,[cr,fn+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[cr,fn+" Mobile"],dr],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[cr,dr],[/(lbbrowser|rekonq)/i],[cr],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[dr,cr],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[cr,dn],dr,[ur,xr]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[cr,dr,[ur,xr]],[/\bgsa\/([\w\.]+) .*safari\//i],[dr,[cr,"GSA"],[ur,xr]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[dr,[cr,"TikTok"],[ur,xr]],[/\[(linkedin)app\]/i],[cr,[ur,xr]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[cr,/(.+)/,"Zalo"],dr,[ur,xr]],[/(chromium)[\/ ]([-\w\.]+)/i],[cr,dr],[/headlesschrome(?:\/([\w\.]+)| )/i],[dr,[cr,on+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[dr,[cr,cn+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[cr,on+" WebView"],dr],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[dr,[cr,"Android"+hn]],[/chrome\/([\w\.]+) mobile/i],[dr,[cr,pn+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[cr,dr],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[dr,[cr,pn+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[cr,pn+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[dr,cr],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[cr,[dr,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[cr,dr],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[cr,pn+un],dr],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[cr,"Netscape"],dr],[/(wolvic|librewolf)\/([\w\.]+)/i],[cr,dr],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[dr,[cr,un+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[cr,[dr,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[cr,[dr,/[^\d\.]+./,er]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[fr,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[fr,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[fr,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[fr,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[fr,"arm"]],[/ sun4\w[;\)]/i],[[fr,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[fr,/ower/,er,Sn]],[/mc680.0/i],[[fr,"68k"]],[/winnt.+\[axp/i],[[fr,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[hr,[lr,Yr],[ur,br]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[hr,[lr,Yr],[ur,wr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[hr,[lr,Mr],[ur,wr]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[hr,[lr,Mr],[ur,br]],[/(macintosh);/i],[hr,[lr,Mr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[hr,[lr,en],[ur,wr]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[hr,[lr,Gr],[ur,br]],[/honor([-\w ]+)[;\)]/i],[hr,[lr,Gr],[ur,wr]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,br]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,wr]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[hr,/_/g," "],[lr,rn],[ur,br]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[hr,/_/g," "],[lr,rn],[ur,wr]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[hr,[lr,Qr],[ur,wr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[hr,[lr,Zr],[ur,wr]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[hr,[lr,An,{OnePlus:["203","304","403","404","413","415"],"*":Zr}],[ur,br]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[hr,[lr,"BLU"],[ur,wr]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[hr,[lr,"Vivo"],[ur,wr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[hr,[lr,"Realme"],[ur,wr]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[hr,[lr,Vr],[ur,br]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[hr,[lr,Vr],[ur,wr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[hr,[lr,Kr],[ur,wr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[hr,[lr,Kr],[ur,br]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[hr,[lr,Jr],[ur,br]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[hr,[lr,Jr],[ur,wr]],[/(nokia) (t[12][01])/i],[lr,hr,[ur,br]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[hr,/_/g," "],[ur,wr],[lr,"Nokia"]],[/(pixel (c|tablet))\b/i],[hr,[lr,Hr],[ur,br]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[hr,[lr,Hr],[ur,wr]],[/(google) (pixelbook( go)?)/i],[lr,hr],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[hr,[lr,tn],[ur,wr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[hr,"Xperia Tablet"],[lr,tn],[ur,br]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[hr,[lr,Dr],[ur,br]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[hr,/(.+)/g,"Fire Phone $1"],[lr,Dr],[ur,wr]],[/(playbook);[-\w\),; ]+(rim)/i],[hr,lr,[ur,br]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[hr,[lr,qr],[ur,wr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[hr,[lr,zr],[ur,br]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[hr,[lr,zr],[ur,wr]],[/(nexus 9)/i],[hr,[lr,"HTC"],[ur,br]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[lr,[hr,/_/g," "],[ur,wr]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,br]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,wr]],[/(itel) ((\w+))/i],[[lr,Sn],hr,[ur,An,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[hr,[lr,"Acer"],[ur,br]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[hr,[lr,"Meizu"],[ur,wr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[hr,[lr,"Ulefone"],[ur,wr]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[hr,[lr,"Energizer"],[ur,wr]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[hr,[lr,"Cat"],[ur,wr]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[hr,[lr,"Smartfren"],[ur,wr]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[hr,[lr,"Nothing"],[ur,wr]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[hr,[lr,"Archos"],[ur,br]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[hr,[lr,"Archos"],[ur,wr]],[/; (n159v)/i],[hr,[lr,"HMD"],[ur,wr]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[lr,hr,[ur,br]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[lr,hr,[ur,wr]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[lr,hr,[ur,br]],[/(surface duo)/i],[hr,[lr,Wr],[ur,br]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[hr,[lr,"Fairphone"],[ur,wr]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[hr,[lr,Xr],[ur,br]],[/(sprint) (\w+)/i],[lr,hr,[ur,wr]],[/(kin\.[onetw]{3})/i],[[hr,/\./g," "],[lr,Wr],[ur,wr]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[hr,[lr,nn],[ur,br]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[hr,[lr,nn],[ur,wr]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[lr,[ur,gr]],[/hbbtv.+maple;(\d+)/i],[[hr,/^/,"SmartTV"],[lr,Yr],[ur,gr]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[lr,hr,[ur,gr]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[lr,Jr],[ur,gr]],[/(apple) ?tv/i],[lr,[hr,Mr+" TV"],[ur,gr]],[/crkey.*devicetype\/chromecast/i],[[hr,an+" Third Generation"],[lr,Hr],[ur,gr]],[/crkey.*devicetype\/([^/]*)/i],[[hr,/^/,"Chromecast "],[lr,Hr],[ur,gr]],[/fuchsia.*crkey/i],[[hr,an+" Nest Hub"],[lr,Hr],[ur,gr]],[/crkey/i],[[hr,an],[lr,Hr],[ur,gr]],[/(portaltv)/i],[hr,[lr,dn],[ur,gr]],[/droid.+aft(\w+)( bui|\))/i],[hr,[lr,Dr],[ur,gr]],[/(shield \w+ tv)/i],[hr,[lr,Xr],[ur,gr]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[hr,[lr,en],[ur,gr]],[/(bravia[\w ]+)( bui|\))/i],[hr,[lr,tn],[ur,gr]],[/(mi(tv|box)-?\w+) bui/i],[hr,[lr,rn],[ur,gr]],[/Hbbtv.*(technisat) (.*);/i],[lr,hr,[ur,gr]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[lr,/.+\/(\w+)/,"$1",An,{LG:"lge"}],[hr,Rn],[ur,gr]],[/(playstation \w+)/i],[hr,[lr,tn],[ur,mr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[hr,[lr,Wr],[ur,mr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[lr,hr,[ur,mr]],[/droid.+; (shield)( bui|\))/i],[hr,[lr,Xr],[ur,mr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[hr,[lr,Yr],[ur,yr]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[lr,hr,[ur,yr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[hr,[lr,Zr],[ur,yr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[hr,[lr,Mr],[ur,yr]],[/(opwwe\d{3})/i],[hr,[lr,Qr],[ur,yr]],[/(moto 360)/i],[hr,[lr,Kr],[ur,yr]],[/(smartwatch 3)/i],[hr,[lr,tn],[ur,yr]],[/(g watch r)/i],[hr,[lr,Jr],[ur,yr]],[/droid.+; (wt63?0{2,3})\)/i],[hr,[lr,nn],[ur,yr]],[/droid.+; (glass) \d/i],[hr,[lr,Hr],[ur,vr]],[/(pico) ([\w ]+) os\d/i],[lr,hr,[ur,vr]],[/(quest( \d| pro)?s?).+vr/i],[hr,[lr,dn],[ur,vr]],[/mobile vr; rv.+firefox/i],[[ur,vr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[lr,[ur,Er]],[/(aeobc)\b/i],[hr,[lr,Dr],[ur,Er]],[/(homepod).+mac os/i],[hr,[lr,Mr],[ur,Er]],[/windows iot/i],[[ur,Er]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[hr,[ur,gr]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[ur,gr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[hr,[ur,An,{mobile:"Mobile",xr:"VR","*":br}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ur,br]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ur,wr]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[hr,[lr,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[dr,[cr,cn+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[cr,dr],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[dr,[cr,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[cr,dr],[/ladybird\//i],[[cr,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[dr,cr]],os:[[/(windows nt) (6\.[23]); arm/i],[[cr,/N/,"R"],[dr,An,Cn]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[cr,dr],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[dr,/(;|\))/g,"",An,Cn],[cr,mn]],[/(windows ce)\/?([\d\.]*)/i],[cr,dr],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[dr,/_/g,"."],[cr,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[cr,"macOS"],[dr,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[dr,[cr,an+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[dr,[cr,an+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Linux"]],[/crkey\/([\d\.]+)/i],[dr,[cr,an]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[dr,cr],[/(ubuntu) ([\w\.]+) like android/i],[[cr,/(.+)/,"$1 Touch"],dr],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[cr,dr],[/\(bb(10);/i],[dr,[cr,qr]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[dr,[cr,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[dr,[cr,un+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[dr,[cr,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[dr,An,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[cr,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[dr,[cr,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[cr,"Chrome OS"],dr],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[cr,dr],[/(sunos) ?([\d\.]*)/i],[[cr,"Solaris"],dr],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[cr,dr]]},Ln=(Zt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},_n.call(Zt.init,[[rr,[cr,dr,pr,ur]],[nr,[fr]],[or,[ur,hr,lr]],[ir,[cr,dr]],[sr,[cr,dr]]]),_n.call(Zt.isIgnore,[[rr,[dr,pr]],[ir,[dr]],[sr,[dr]]]),_n.call(Zt.isIgnoreRgx,[[rr,/ ?browser$/i],[sr,/ ?os$/i]]),_n.call(Zt.toString,[[rr,[cr,dr]],[nr,[fr]],[or,[lr,hr]],[ir,[cr,dr]],[sr,[cr,dr]]]),Zt),Bn=function(e,t){var r=Ln.init[t],n=Ln.isIgnore[t]||0,o=Ln.isIgnoreRgx[t]||0,i=Ln.toString[t]||0;function s(){_n.call(this,r)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return bn?bn.getHighEntropyValues(Ir).then((function(t){return e.setCH(new Un(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=ar&&(s.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!yn(n,r)&&Sn(o?kn(o,this[r]):this[r])==Sn(o?kn(o,e):e)){if(t=!0,e!=tr.UNDEFINED)break}else if(e==tr.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=er;for(var t in i)typeof this[i[t]]!==tr.UNDEFINED&&(e+=(e?" ":er)+this[i[t]]);return e||tr.UNDEFINED}),bn||(s.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:s.prototype.is,toString:s.prototype.toString};var n=new r;return e(n),n}),new s};function Un(e,t){if(e=e||{},_n.call(this,Ir),t)_n.call(this,[[Sr,xn(e[Nr])],[_r,xn(e[Ar])],[wr,/\?1/.test(e[Pr])],[hr,On(e[Lr])],[kr,On(e[Br])],[Or,On(e[Ur])],[fr,On(e[Cr])],[Tr,xn(e[jr])],[Rr,On(e[Fr])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==tr.UNDEFINED&&(this[r]=e[r])}function In(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(wn&&wn.userAgent==this.ua)switch(this.itemType){case rr:wn.brave&&typeof wn.brave.isBrave==tr.FUNCTION&&this.set(cr,"Brave");break;case or:!this.get(ur)&&bn&&bn[wr]&&this.set(ur,wr),"Macintosh"==this.get(hr)&&wn&&typeof wn.standalone!==tr.UNDEFINED&&wn.maxTouchPoints&&wn.maxTouchPoints>2&&this.set(hr,"iPad").set(ur,br);break;case sr:!this.get(cr)&&bn&&bn[kr]&&this.set(cr,bn[kr]);break;case ar:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(rr,t(rr)).set(nr,t(nr)).set(or,t(or)).set(ir,t(ir)).set(sr,t(sr))}return this},this.parseUA=function(){switch(this.itemType!=ar&&Nn.call(this.data,this.ua,this.rgxMap),this.itemType){case rr:this.set(pr,Tn(this.get(dr)));break;case sr:if("iOS"==this.get(cr)&&"18.6"==this.get(dr)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(dr,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case rr:case ir:var r,n=e[_r]||e[Sr];if(n)for(var o=0;o<n.length;o++){var i=n[o].brand||n[o],s=n[o].version;this.itemType==rr&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=sn||r==cn&&/WebView2/.test(i))&&(i=An(i,jn),(r=this.get(cr))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(cr,i).set(dr,s).set(pr,Tn(s)),r=i),this.itemType==ir&&i==sn&&this.set(dr,s)}break;case nr:var a=e[fr];a&&(a&&"64"==e[Rr]&&(a+="64"),Nn.call(this.data,a+";",t));break;case or:if(e[wr]&&this.set(ur,wr),e[hr]&&(this.set(hr,e[hr]),!this.get(ur)||!this.get(lr))){var c={};Nn.call(c,"droid 9; "+e[hr]+")",t),!this.get(ur)&&c.type&&this.set(ur,c.type),!this.get(lr)&&c.vendor&&this.set(lr,c.vendor)}if(e[Tr]){var u;if("string"!=typeof e[Tr])for(var l=0;!u&&l<e[Tr].length;)u=An(e[Tr][l++],Fn);else u=An(e[Tr],Fn);this.set(ur,u)}break;case sr:var d=e[kr];if(d){var f=e[Or];d==mn&&(f=parseInt(Tn(f),10)>=13?"11":"10"),this.set(cr,d).set(dr,f)}this.get(cr)==mn&&"Xbox"==e[hr]&&this.set(cr,"Xbox").set(dr,void 0);break;case ar:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(rr,h(rr)).set(nr,h(nr)).set(or,h(or)).set(ir,h(ir)).set(sr,h(sr))}return this},_n.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Bn(this,e)]]),this}function Dn(e,t,r){if(typeof e===tr.OBJECT?(vn(e,!0)?(typeof t===tr.OBJECT&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==tr.STRING||vn(t,!0)||(r=t,t=void 0),r)if(typeof r.append===tr.FUNCTION){var n={};r.forEach((function(e,t){n[String(t).toLowerCase()]=e})),r=n}else{var o={};for(var i in r)r.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=r[i]);r=o}if(!(this instanceof Dn))return new Dn(e,t,r).getResult();var s=typeof e===tr.STRING?e:r&&r[Yt]?r[Yt]:wn&&wn.userAgent?wn.userAgent:er,a=new Un(r,!0),c=t?function(e,t){var r={},n=t;if(!vn(t))for(var o in n={},t)for(var i in t[o])n[i]=t[o][i].concat(n[i]?n[i]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(Pn,t):Pn,u=function(e){return e==ar?function(){return new In(e,s,c,a).set("ua",s).set(rr,this.getBrowser()).set(nr,this.getCPU()).set(or,this.getDevice()).set(ir,this.getEngine()).set(sr,this.getOS()).get()}:function(){return new In(e,s,c[e],a).parseUA().get()}};return _n.call(this,[["getBrowser",u(rr)],["getCPU",u(nr)],["getDevice",u(or)],["getEngine",u(ir)],["getOS",u(sr)],["getResult",u(ar)],["getUA",function(){return s}],["setUA",function(e){return En(e)&&(s=Rn(e,500)),this}]]).setUA(s),this}function Mn(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function zn(e,t){void 0===t&&(t="[不可展示]");var r=typeof e;if("string"===r||"number"===r||"boolean"===r)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==r)return t;if(Array.isArray(e))return e.map((function(e){return zn(e,t)}));for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];n[a]=zn(c,t)}return n}Dn.VERSION="2.0.6",Dn.BROWSER=gn([cr,dr,pr,ur]),Dn.CPU=gn([fr]),Dn.DEVICE=gn([hr,lr,ur,mr,wr,gr,br,yr,Er]),Dn.ENGINE=Dn.OS=gn([cr,dr]);var qn=function(){function n(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return n.prototype.processResponse=function(e,t){var r=t.includes("application/json"),n=t.includes("text/");if(!r&&!n)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=r?JSON.parse(o):o;return Mn(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},n.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,n,o,i,s;return r(this,(function(r){switch(r.label){case 0:n=0,o=e.headers.get("Content-Type")||"",r.label=1;case 1:return r.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=r.sent(),i=JSON.stringify(t),n=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=r.sent(),t={dataType:"[文本类型数据]",data:s},n=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return n>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((n/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return r.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},n.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var r=new e;r._customHeaders={};var n={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=r.open.bind(r);r.open=function(e,r){if(n.method=e.toUpperCase(),n.url=r.split("?")[0],"GET"===n.method&&r.includes("?")){var i=r.split("?")[1];n.params=t.parseQueryString(i)}o(e,r)};var i=r.setRequestHeader.bind(r);r.setRequestHeader=function(e,t){r._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=r.send.bind(r);return r.send=function(e){n.startTime=performance.now(),"GET"!==n.method&&e&&(n.params=t.parsePostData(e,r)),s(e)},r.addEventListener("load",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=r.status;var e=r.getResponseHeader("Content-Type")||"",o=t.processResponse(r.responseText||r.response,e).response;n.response=o,n.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message)||r.statusText,t.handleRequestResult(n)})),r.addEventListener("error",(function(e){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Network Error",t.handleRequestResult(n)})),r.addEventListener("abort",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=-1,n.error="Request Aborted",t.handleRequestResult(n)})),r.addEventListener("timeout",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Timeout",t.handleRequestResult(n)})),r}},n.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),n=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,u,l,d,f;return r(this,(function(r){switch(r.label){case 0:t=new Request(o,i),s=t.url,"GET"===(a={url:s.split("?")[0],method:t.method.toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?s.includes("?")&&(c=s.split("?")[1],a.params=n.parseQueryString(c)):a.params=(null==i?void 0:i.body)?n.parsePostData(i.body,{headers:i.headers}):null,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e(o,i)];case 2:return u=r.sent(),l=u.clone(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=u.status,[4,n.processFetchResponse(l)];case 3:return d=r.sent().response,a.response=d,a.msg=(null==d?void 0:d.msg)||(null==d?void 0:d.message)||u.statusText,n.handleRequestResult(a),[2,u];case 4:throw f=r.sent(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=0,a.error=f instanceof Error?f.message:"Fetch Unknown Error",n.handleRequestResult(a),f;case 5:return[2]}}))}))}},n.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var r=e.split("="),n=r[0],o=r[1];n&&(t[decodeURIComponent(n)]=decodeURIComponent(o||""))})),t},n.prototype.parsePostData=function(e,t){if(e instanceof FormData){var r={};return e.forEach((function(e,t){r[t]=e})),zn(r)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var n="";if("_customHeaders"in t&&t._customHeaders&&(n=t._customHeaders["content-type"]||""),!n&&"headers"in t&&t.headers){var o=t.headers;n="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!n&&"getResponseHeader"in t&&(n=t.getResponseHeader("Content-Type")||""),!n&&"string"==typeof e&&Mn(e)&&(n="application/json;charset=utf-8"),(n=n.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return n.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},n.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var r=this.filterSensitiveData(e({},t));this.logger.logAPI(r)}},n.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},r=function(r){if(Object.prototype.hasOwnProperty.call(e,r)){var o=r.toLowerCase();n.sensitiveKeys.some((function(e){return o.includes(e)}))?t[r]="***[已脱敏]***":t[r]=n.filterSensitiveData(e[r])}},n=this;for(var o in e)r(o);return t},n}();function Hn(e){var t,r;e instanceof Error?r=e:(r=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var n=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),r=t[1]||t[0],n=r?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(r):null;return n?{file:n[1]||"未知文件",line:parseInt(n[2],10)||"未知行",column:parseInt(n[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(r.stack);return{type:r.name||"Error",message:r.message||"无错误描述",timestamp:Date.now(),file:n.file,line:n.line,column:n.column,stack:r.stack||"无堆栈信息",extra:{reason:r.cause,response:null===(t=r.response)||void 0===t?void 0:t.data}}}function $n(e,t){var r=Hn(e);t.logError(r)}var Vn=function(){function n(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},n.instance)console.error("BrowserLogger 类只能实例化一次!");else if(e&&"object"==typeof e)if(null==e?void 0:e.pid){this.config=e;var r=(new Dn).getResult();this.systemInfo={detector_browser:r.browser.name||"",detector_browser_version:r.browser.version||"",detector_device:r.device.model||"pc",detector_os:r.os.name||"",detector_os_version:r.os.version||"",http_user_agent:r.ua||""},n.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,r,n){o.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,r,n){s.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new qn(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),$n(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),$n(e.reason,i)})))}else console.error("pid 不能为空!");else console.error("初始化参数不能为空!")}return n.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},n.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(r){console.log("+++ paint 类型指标",r),r.getEntries().forEach((function(r){if("first-paint"===r.name){var n=r.startTime;e({success:!0,fpTime:Math.round(10*n)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},n.singleton=function(e){return n.instance||(n.instance=new n(e)),n.instance},n.prototype.sendPV=function(){this.pvId=Qt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},n.prototype.logAPI=function(t){var r=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.error?t.error:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},n.prototype.logError=function(t){if("AxiosError"!==t.type){var r=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},n.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},n.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},n.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Qt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var r=this.dataQueue.shift();this.realSendLog(e(e({},r),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},n.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},n.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},n.prototype.sendLog=function(t,r,n){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:t,custom_log_type:r,custom_log_data:n}))},n.instance=null,n}();var Gn=[],Jn=!1;function Wn(e,t){return new Promise((function(r,n){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&r(!0)}})}catch(e){console.log("+++ err",e),n(e)}}))}function Kn(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)}function Xn(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)}function Qn(e,t){for(var r=t||{},n=r.locale,o=void 0===n?"zh":n,i=r.precision,s=void 0===i?0:i,a=r.showByte,c=void 0!==a&&a,u=r.splitUnit,l=void 0!==u&&u,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?l?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?l?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):l?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var r=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!r)return t;var n=parseFloat(r[1]),o=(r[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:n,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return l?{num:"".concat(w),unit:b}:h;if(l){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")}function Zn(e,t,r,n,o){var i;if(t)window.open(e);else{var s=o||"zh";Gn.push({url:e,headers:n,locale:s}),Jn||(Jn=!0,null===(i=null==r?void 0:r.loading)||void 0===i||i.call(r,"zh"===s?"下载中":"Downloading"),Yn(r))}}function Yn(e){if(Gn.length>0){var t=Gn.shift(),r="string"==typeof t?t:t.url,n="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(r,{headers:n}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(r);return e.blob().then((function(e){var r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",document.body.appendChild(n),n.href=r,t&&(n.download=t),n.click(),n.remove(),URL.revokeObjectURL(r)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(r):"File download error: ".concat(r))})).finally((function(){setTimeout((function(){Yn(e)}),1e3)}))}else Jn=!1}function eo(e){var t=e,r=e.indexOf("?");-1!==r&&(t=e.substring(0,r));var n=t.lastIndexOf(".");return t.substring(n+1)}function to(e){return new Promise((function(t){if(e&&e.length>0){var r=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0),n=function(){r.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=r.shift(),t=eo(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=n,void(o.onerror=n)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=n,void(i.onerror=n)}n()};o()}else t(null)}))}function ro(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push(ro(e))})),t}if("[object Object]"===Object.prototype.toString.call(e)){var r={};return Object.keys(e).forEach((function(t){r[t]=ro(e[t])})),r}return"string"==typeof e?e.trim():e}var no,oo="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(no||(no={}));var io,so=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,r,n){var o;if(e){var i=void 0;"function"==typeof r?i=r:n&&(i=n);var s="".concat(oo,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof r?null:r},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,r){if(window.parent&&window.parent!==window){var n=void 0;"function"==typeof t?n=t:r&&(n=r);var o="";o=-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)?e:"".concat(oo,"_").concat(e),n&&this.onMessage(e,n,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,r){var n=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(oo,"_").concat(e))&&(r&&window.removeEventListener("message",n),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(n),window.addEventListener("message",n)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var r;null===(r=e.onMessageCallback[t])||void 0===r||r.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();function ao(){window.addEventListener("message",(function(e){var t=e.data||{},r=t.data,n=t.type;if(n===no.HASH_CHANGE||n===no.PUSH_STATE||n===no.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(r.href));console.log("+++ iframe url data",n,r),window.history.replaceState(null,"",o)}}))}function co(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e}function uo(e,t){var r=new so;if(window.parent&&window.parent!==window){window.onhashchange=function(){r.postMessage(no.HASH_CHANGE,{href:window.location.href})};var n=window.history.pushState;window.history.pushState=function(e,t,o){n.call(window.history,e,t,o),o&&r.postMessage(no.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,n){o.call(window.history,e,t,n),n&&r.postMessage(no.REPLACE_STATE,{href:-1!==n.indexOf("//")?n:window.location.origin+n})},window.addEventListener("popstate",(function(e){r.postMessage(no.REPLACE_STATE,{href:window.location.href})})),r.postMessage("getUserInfo",(function(r){var n;window[null!==(n=null==t?void 0:t.namespace)&&void 0!==n?n:"_subApp"]=r,e&&e(r)}))}}!function(e){e.zh="zh",e.en="en"}(io||(io={}));export{Vn as BrowserLogger,so as IfmChannel,to as appendAsset,Zn as downloadFile,Qn as formatNumber,Dt as getAxiosInstanceWithAuth,eo as getFileExt,co as getIframeUrl,Kn as isOnline,Xn as isPublicNetwork,ao as mainAppInit,uo as subAppInit,ro as trimObj,Wn as uploadToOSS};
|
|
8
|
+
*/N=A,function(e,t){N.exports?N.exports=t():e.numeral=t()}(O,(function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(c.zeroFormat&&r===c.zeroFormat)n=0;else if(c.nullFormat&&r===c.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new u(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,r,n){var o,i,a,c,u,l,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(w=" "),r=r.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),c=t.toString().split(".")[0],u=r.split(".")[1],d=r.indexOf(","),o=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):v=e._.toFixed(t,u.length,n),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,n),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):l>=0?f=0===l?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,c=e.toString().split("."),u=t-(n||0);return o=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,c,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(r)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,a=u.abbreviations,n=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==i)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,u=t||c.defaultFormat;if(r=r||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(n in i)if(u.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,u,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,u=e._.includes(o,"ib")?n:r,l=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(a=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===t||0===t||t>=a&&t<c){l+=u.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+l},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e}));var C=R(A.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Z=U("URLSearchParams"),[Q,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),D(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),ue=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),le=U("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:r,data:n})=>{r===oe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(e))||"object"===t&&H(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Q,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:le,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Z,isTypedArray:se,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=ie(this)&&this||{},r={},n=(n,o)=>{const i=t&&ne(r,o)||o;G(r[i])&&G(n)?r[i]=e(r[i],n):G(n)?r[i]=e({},n):D(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(re(t,((t,n)=>{r&&H(t)?e[n]=F(t,r):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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&P(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!$(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:ue,hasOwnProp:ue,reduceDescriptors:de,freezeMethods:e=>{de(e,((t,r)=>{if(H(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];H(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return D(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=D(e)?[]:{};return re(e,((e,t)=>{const i=r(e,n+1);!M(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=_e(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,r){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ve.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(r,"[]"))&&(a=ve.toArray(e)))return r=_e(r),a.forEach((function(e,n){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,r,i),c(e)),!1)}const l=[],d=Object.assign(Oe,{defaultVisitor:u,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ve.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),ve.forEach(r,(function(r,i){!0===(!(ve.isUndefined(r)||null===r)&&o.call(t,r,ve.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ae(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ae.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,r){if(!t)return e;const n=r&&r.encode||Fe,o=r&&r.serialize;let i;if(i=o?o(t,r):ve.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ne)}:Ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(n)?n.length:i,a)return ve.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&ve.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ve.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const r={};return ve.forEachEntry(e,((e,n)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return n?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ee.from(e,Ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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"]);const Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,r,n,o){return ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),ve.isString(t)?ve.isString(n)?-1!==t.indexOf(n):ve.isRegExp(n)?n.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,r)=>o(e,r,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ve.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Je(e)){const r=ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ve.isFunction(t))return t.call(this,e,r);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const r=ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Je(e)){const o=ve.findKey(r,e);!o||t&&!Ke(0,r[o],o,t)||(delete r[o],n=!0)}}return ve.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ke(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ve.forEach(this,((n,o)=>{const i=ve.findKey(r,o);if(i)return t[i]=We(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Je(e);t[n]||(!function(e,t){const r=ve.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ve.isArray(e)?e.forEach(n):n(e),this}}function Ze(e,t){const r=this||$e,n=t||r,o=Xe.from(n.headers);let i=n.data;return ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Qe(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,r){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,r),this.name="CanceledError"}function et(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},rt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=ve.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ve.isString(n)&&s.push("path="+n),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const r={};function n(e,t,r){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:r},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,r){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ve.isUndefined(t))return n(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);ve.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ut=e=>{const t=ct({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ut(e);let o=n.data;const i=Xe.from(n.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const n=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([c,l]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===qe.protocols.indexOf(b)?r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},pt=(e,t,r,n,o)=>{const i=async function*(e,t,r){for await(const n of e)yield*ft(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&>((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&>((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,r)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,r)})})));const St=async(e,t)=>{const r=ve.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):r};const Tt={http:null,xhr:lt,fetch:ht&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=ut(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==r&&"head"!==r&&0!==(g=await St(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(ve.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=rt(g,tt(nt(c)));n=pt(r.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===u||"response"===u);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&rt(t,tt(nt(a),!0))||[];o=new Response(pt(o.body,65536,r,(()=>{n&&n(),i&&b()}),wt),e)}u=u||"text";let s=await Et[ve.findKey(Et,u)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,r)=>{et(t,r,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!kt(r)&&(n=Tt[(t=String(r)).toLowerCase()],void 0===n))throw new Ee(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function Nt(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Ze.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Ze.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Qe(t)||(Rt(e),t&&t.response&&(t.response.data=Ze.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const At="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var jt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ee("option "+i+" must be "+r,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ct(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&jt.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=n&&(ve.isFunction(n)?t.paramsSerializer={serialize:n}:jt.assertOptions(n,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[Nt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let f=t;for(d=0;d<l;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(ct(r||{},{method:e,url:t,data:(r||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ye(e,n,o),t(r.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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const r=new Lt(t),n=F(Lt.prototype.request,r);return ve.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ct(t,r))},n}($e);function Dt(e){var t=new so,r=It.create({});return r.interceptors.request.use((function(t){var r,n=window[null!==(r=null==e?void 0:e.authTokenNamespace)&&void 0!==r?r:"_subApp"],o=null==n?void 0:n.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==n?void 0:n.language)&&(t.headers.language=n.language),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var r;return 401===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var r,n,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(n=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===n?void 0:n.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),r}It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Qe,It.VERSION=At,It.toFormData=Re,It.AxiosError=Ee,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function zt(e){if(!function(e){return"string"==typeof e&&Mt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const qt=[];for(let e=0;e<256;++e)qt.push((e+256).toString(16).slice(1));function Ht(e,t=0){return(qt[e[t+0]]+qt[e[t+1]]+qt[e[t+2]]+qt[e[t+3]]+"-"+qt[e[t+4]]+qt[e[t+5]]+"-"+qt[e[t+6]]+qt[e[t+7]]+"-"+qt[e[t+8]]+qt[e[t+9]]+"-"+qt[e[t+10]]+qt[e[t+11]]+qt[e[t+12]]+qt[e[t+13]]+qt[e[t+14]]+qt[e[t+15]]).toLowerCase()}let $t;const Vt=new Uint8Array(16);function Gt(){if(!$t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$t=crypto.getRandomValues.bind(crypto)}return $t(Vt)}const Jt={};function Wt(e,t,r){let n;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=Kt(e.random??e.rng?.()??Gt(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),i=Gt();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9]));e.msecs=t}(Jt,e,i),n=Kt(i,Jt.msecs,Jt.nsecs,o?void 0:Jt.clockseq,o?void 0:Jt.node,t,r)}return t??Ht(n)}function Kt(e,t,r,n,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=n>>>8|128,i[s++]=255&n;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Xt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?zt(e):e);return"string"==typeof e?Ht(t):t}function Zt(e,t,r){e??={};let n=Wt({...e,_v6:!0},new Uint8Array(16));return n=Xt(n),Ht(n)}var Qt,Yt="user-agent",er="",tr={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},rr="browser",nr="cpu",or="device",ir="engine",sr="os",ar="result",cr="name",ur="type",lr="vendor",dr="version",fr="architecture",pr="major",hr="model",mr="console",wr="mobile",br="tablet",gr="smarttv",yr="wearable",vr="xr",Er="embedded",xr="inapp",Sr="brands",Tr="formFactors",_r="fullVersionList",kr="platform",Or="platformVersion",Rr="bitness",Nr="sec-ch-ua",Ar=Nr+"-full-version-list",Cr=Nr+"-arch",Fr=Nr+"-"+Rr,jr=Nr+"-form-factors",Pr=Nr+"-"+wr,Lr=Nr+"-"+hr,Br=Nr+"-"+kr,Ur=Br+"-version",Ir=[Sr,_r,wr,hr,kr,Or,fr,Tr,Rr],Dr="Amazon",Mr="Apple",zr="ASUS",qr="BlackBerry",Hr="Google",$r="Huawei",Vr="Lenovo",Gr="Honor",Jr="LG",Wr="Microsoft",Kr="Motorola",Xr="Nvidia",Zr="OnePlus",Qr="OPPO",Yr="Samsung",en="Sharp",tn="Sony",rn="Xiaomi",nn="Zebra",on="Chrome",sn="Chromium",an="Chromecast",cn="Edge",un="Firefox",ln="Opera",dn="Facebook",fn="Sogou",pn="Mobile ",hn=" Browser",mn="Windows",wn=typeof window!==tr.UNDEFINED&&window.navigator?window.navigator:void 0,bn=wn&&wn.userAgentData?wn.userAgentData:void 0,gn=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},yn=function(e,t){if(typeof e===tr.OBJECT&&e.length>0){for(var r in e)if(Sn(t)==Sn(e[r]))return!0;return!1}return!!En(e)&&Sn(t)==Sn(e)},vn=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&vn(e[r])},En=function(e){return typeof e===tr.STRING},xn=function(e){if(e){for(var t=[],r=kn(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var o=Rn(r[n]).split(";v=");t[n]={brand:o[0],version:o[1]}}else t[n]=Rn(r[n]);return t}},Sn=function(e){return En(e)?e.toLowerCase():e},Tn=function(e){return En(e)?kn(/[^\d\.]/g,e).split(".")[0]:void 0},_n=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==tr.OBJECT&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},kn=function(e,t){return En(t)?t.replace(e,er):t},On=function(e){return kn(/\\?\"/g,e)},Rn=function(e,t){return e=kn(/^\s\s*/,String(e)),typeof t===tr.UNDEFINED?e:e.substring(0,t)},Nn=function(e,t){if(e&&t)for(var r,n,o,i,s,a,c=0;c<t.length&&!s;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!s&&u[r];)if(s=u[r++].exec(e))for(o=0;o<l.length;o++)a=s[++n],typeof(i=l[o])===tr.OBJECT&&i.length>0?2===i.length?typeof i[1]==tr.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==tr.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},An=function(e,t){for(var r in t)if(typeof t[r]===tr.OBJECT&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(yn(t[r][n],e))return"?"===r?void 0:r}else if(yn(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Cn={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Fn={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},jn={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Pn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[dr,[cr,pn+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[dr,[cr,cn+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[dr,[cr,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[cr,dr],[/opios[\/ ]+([\w\.]+)/i],[dr,[cr,ln+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[dr,[cr,ln+" GX"]],[/\bopr\/([\w\.]+)/i],[dr,[cr,ln]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[dr,[cr,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[dr,[cr,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[cr,dr],[/quark(?:pc)?\/([-\w\.]+)/i],[dr,[cr,"Quark"]],[/\bddg\/([\w\.]+)/i],[dr,[cr,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[dr,[cr,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[dr,[cr,"WeChat"]],[/konqueror\/([\w\.]+)/i],[dr,[cr,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[dr,[cr,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[dr,[cr,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[dr,[cr,"Smart "+Vr+hn]],[/(avast|avg)\/([\w\.]+)/i],[[cr,/(.+)/,"$1 Secure"+hn],dr],[/\bfocus\/([\w\.]+)/i],[dr,[cr,un+" Focus"]],[/\bopt\/([\w\.]+)/i],[dr,[cr,ln+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[dr,[cr,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[dr,[cr,"Dolphin"]],[/coast\/([\w\.]+)/i],[dr,[cr,ln+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[dr,[cr,"MIUI"+hn]],[/fxios\/([\w\.-]+)/i],[dr,[cr,pn+un]],[/\bqihoobrowser\/?([\w\.]*)/i],[dr,[cr,"360"]],[/\b(qq)\/([\w\.]+)/i],[[cr,/(.+)/,"$1Browser"],dr],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[cr,/(.+)/,"$1"+hn],dr],[/samsungbrowser\/([\w\.]+)/i],[dr,[cr,Yr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[dr,[cr,fn+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[cr,fn+" Mobile"],dr],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[cr,dr],[/(lbbrowser|rekonq)/i],[cr],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[dr,cr],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[cr,dn],dr,[ur,xr]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[cr,dr,[ur,xr]],[/\bgsa\/([\w\.]+) .*safari\//i],[dr,[cr,"GSA"],[ur,xr]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[dr,[cr,"TikTok"],[ur,xr]],[/\[(linkedin)app\]/i],[cr,[ur,xr]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[cr,/(.+)/,"Zalo"],dr,[ur,xr]],[/(chromium)[\/ ]([-\w\.]+)/i],[cr,dr],[/headlesschrome(?:\/([\w\.]+)| )/i],[dr,[cr,on+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[dr,[cr,cn+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[cr,on+" WebView"],dr],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[dr,[cr,"Android"+hn]],[/chrome\/([\w\.]+) mobile/i],[dr,[cr,pn+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[cr,dr],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[dr,[cr,pn+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[cr,pn+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[dr,cr],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[cr,[dr,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[cr,dr],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[cr,pn+un],dr],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[cr,"Netscape"],dr],[/(wolvic|librewolf)\/([\w\.]+)/i],[cr,dr],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[dr,[cr,un+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[cr,[dr,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[cr,[dr,/[^\d\.]+./,er]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[fr,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[fr,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[fr,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[fr,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[fr,"arm"]],[/ sun4\w[;\)]/i],[[fr,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[fr,/ower/,er,Sn]],[/mc680.0/i],[[fr,"68k"]],[/winnt.+\[axp/i],[[fr,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[hr,[lr,Yr],[ur,br]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[hr,[lr,Yr],[ur,wr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[hr,[lr,Mr],[ur,wr]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[hr,[lr,Mr],[ur,br]],[/(macintosh);/i],[hr,[lr,Mr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[hr,[lr,en],[ur,wr]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[hr,[lr,Gr],[ur,br]],[/honor([-\w ]+)[;\)]/i],[hr,[lr,Gr],[ur,wr]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,br]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,wr]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[hr,/_/g," "],[lr,rn],[ur,br]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[hr,/_/g," "],[lr,rn],[ur,wr]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[hr,[lr,Zr],[ur,wr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[hr,[lr,Qr],[ur,wr]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[hr,[lr,An,{OnePlus:["203","304","403","404","413","415"],"*":Qr}],[ur,br]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[hr,[lr,"BLU"],[ur,wr]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[hr,[lr,"Vivo"],[ur,wr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[hr,[lr,"Realme"],[ur,wr]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[hr,[lr,Vr],[ur,br]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[hr,[lr,Vr],[ur,wr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[hr,[lr,Kr],[ur,wr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[hr,[lr,Kr],[ur,br]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[hr,[lr,Jr],[ur,br]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[hr,[lr,Jr],[ur,wr]],[/(nokia) (t[12][01])/i],[lr,hr,[ur,br]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[hr,/_/g," "],[ur,wr],[lr,"Nokia"]],[/(pixel (c|tablet))\b/i],[hr,[lr,Hr],[ur,br]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[hr,[lr,Hr],[ur,wr]],[/(google) (pixelbook( go)?)/i],[lr,hr],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[hr,[lr,tn],[ur,wr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[hr,"Xperia Tablet"],[lr,tn],[ur,br]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[hr,[lr,Dr],[ur,br]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[hr,/(.+)/g,"Fire Phone $1"],[lr,Dr],[ur,wr]],[/(playbook);[-\w\),; ]+(rim)/i],[hr,lr,[ur,br]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[hr,[lr,qr],[ur,wr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[hr,[lr,zr],[ur,br]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[hr,[lr,zr],[ur,wr]],[/(nexus 9)/i],[hr,[lr,"HTC"],[ur,br]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[lr,[hr,/_/g," "],[ur,wr]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,br]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,wr]],[/(itel) ((\w+))/i],[[lr,Sn],hr,[ur,An,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[hr,[lr,"Acer"],[ur,br]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[hr,[lr,"Meizu"],[ur,wr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[hr,[lr,"Ulefone"],[ur,wr]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[hr,[lr,"Energizer"],[ur,wr]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[hr,[lr,"Cat"],[ur,wr]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[hr,[lr,"Smartfren"],[ur,wr]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[hr,[lr,"Nothing"],[ur,wr]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[hr,[lr,"Archos"],[ur,br]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[hr,[lr,"Archos"],[ur,wr]],[/; (n159v)/i],[hr,[lr,"HMD"],[ur,wr]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[lr,hr,[ur,br]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[lr,hr,[ur,wr]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[lr,hr,[ur,br]],[/(surface duo)/i],[hr,[lr,Wr],[ur,br]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[hr,[lr,"Fairphone"],[ur,wr]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[hr,[lr,Xr],[ur,br]],[/(sprint) (\w+)/i],[lr,hr,[ur,wr]],[/(kin\.[onetw]{3})/i],[[hr,/\./g," "],[lr,Wr],[ur,wr]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[hr,[lr,nn],[ur,br]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[hr,[lr,nn],[ur,wr]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[lr,[ur,gr]],[/hbbtv.+maple;(\d+)/i],[[hr,/^/,"SmartTV"],[lr,Yr],[ur,gr]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[lr,hr,[ur,gr]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[lr,Jr],[ur,gr]],[/(apple) ?tv/i],[lr,[hr,Mr+" TV"],[ur,gr]],[/crkey.*devicetype\/chromecast/i],[[hr,an+" Third Generation"],[lr,Hr],[ur,gr]],[/crkey.*devicetype\/([^/]*)/i],[[hr,/^/,"Chromecast "],[lr,Hr],[ur,gr]],[/fuchsia.*crkey/i],[[hr,an+" Nest Hub"],[lr,Hr],[ur,gr]],[/crkey/i],[[hr,an],[lr,Hr],[ur,gr]],[/(portaltv)/i],[hr,[lr,dn],[ur,gr]],[/droid.+aft(\w+)( bui|\))/i],[hr,[lr,Dr],[ur,gr]],[/(shield \w+ tv)/i],[hr,[lr,Xr],[ur,gr]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[hr,[lr,en],[ur,gr]],[/(bravia[\w ]+)( bui|\))/i],[hr,[lr,tn],[ur,gr]],[/(mi(tv|box)-?\w+) bui/i],[hr,[lr,rn],[ur,gr]],[/Hbbtv.*(technisat) (.*);/i],[lr,hr,[ur,gr]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[lr,/.+\/(\w+)/,"$1",An,{LG:"lge"}],[hr,Rn],[ur,gr]],[/(playstation \w+)/i],[hr,[lr,tn],[ur,mr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[hr,[lr,Wr],[ur,mr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[lr,hr,[ur,mr]],[/droid.+; (shield)( bui|\))/i],[hr,[lr,Xr],[ur,mr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[hr,[lr,Yr],[ur,yr]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[lr,hr,[ur,yr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[hr,[lr,Qr],[ur,yr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[hr,[lr,Mr],[ur,yr]],[/(opwwe\d{3})/i],[hr,[lr,Zr],[ur,yr]],[/(moto 360)/i],[hr,[lr,Kr],[ur,yr]],[/(smartwatch 3)/i],[hr,[lr,tn],[ur,yr]],[/(g watch r)/i],[hr,[lr,Jr],[ur,yr]],[/droid.+; (wt63?0{2,3})\)/i],[hr,[lr,nn],[ur,yr]],[/droid.+; (glass) \d/i],[hr,[lr,Hr],[ur,vr]],[/(pico) ([\w ]+) os\d/i],[lr,hr,[ur,vr]],[/(quest( \d| pro)?s?).+vr/i],[hr,[lr,dn],[ur,vr]],[/mobile vr; rv.+firefox/i],[[ur,vr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[lr,[ur,Er]],[/(aeobc)\b/i],[hr,[lr,Dr],[ur,Er]],[/(homepod).+mac os/i],[hr,[lr,Mr],[ur,Er]],[/windows iot/i],[[ur,Er]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[hr,[ur,gr]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[ur,gr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[hr,[ur,An,{mobile:"Mobile",xr:"VR","*":br}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ur,br]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ur,wr]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[hr,[lr,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[dr,[cr,cn+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[cr,dr],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[dr,[cr,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[cr,dr],[/ladybird\//i],[[cr,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[dr,cr]],os:[[/(windows nt) (6\.[23]); arm/i],[[cr,/N/,"R"],[dr,An,Cn]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[cr,dr],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[dr,/(;|\))/g,"",An,Cn],[cr,mn]],[/(windows ce)\/?([\d\.]*)/i],[cr,dr],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[dr,/_/g,"."],[cr,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[cr,"macOS"],[dr,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[dr,[cr,an+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[dr,[cr,an+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Linux"]],[/crkey\/([\d\.]+)/i],[dr,[cr,an]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[dr,cr],[/(ubuntu) ([\w\.]+) like android/i],[[cr,/(.+)/,"$1 Touch"],dr],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[cr,dr],[/\(bb(10);/i],[dr,[cr,qr]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[dr,[cr,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[dr,[cr,un+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[dr,[cr,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[dr,An,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[cr,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[dr,[cr,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[cr,"Chrome OS"],dr],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[cr,dr],[/(sunos) ?([\d\.]*)/i],[[cr,"Solaris"],dr],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[cr,dr]]},Ln=(Qt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},_n.call(Qt.init,[[rr,[cr,dr,pr,ur]],[nr,[fr]],[or,[ur,hr,lr]],[ir,[cr,dr]],[sr,[cr,dr]]]),_n.call(Qt.isIgnore,[[rr,[dr,pr]],[ir,[dr]],[sr,[dr]]]),_n.call(Qt.isIgnoreRgx,[[rr,/ ?browser$/i],[sr,/ ?os$/i]]),_n.call(Qt.toString,[[rr,[cr,dr]],[nr,[fr]],[or,[lr,hr]],[ir,[cr,dr]],[sr,[cr,dr]]]),Qt),Bn=function(e,t){var r=Ln.init[t],n=Ln.isIgnore[t]||0,o=Ln.isIgnoreRgx[t]||0,i=Ln.toString[t]||0;function s(){_n.call(this,r)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return bn?bn.getHighEntropyValues(Ir).then((function(t){return e.setCH(new Un(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=ar&&(s.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!yn(n,r)&&Sn(o?kn(o,this[r]):this[r])==Sn(o?kn(o,e):e)){if(t=!0,e!=tr.UNDEFINED)break}else if(e==tr.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=er;for(var t in i)typeof this[i[t]]!==tr.UNDEFINED&&(e+=(e?" ":er)+this[i[t]]);return e||tr.UNDEFINED}),bn||(s.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:s.prototype.is,toString:s.prototype.toString};var n=new r;return e(n),n}),new s};function Un(e,t){if(e=e||{},_n.call(this,Ir),t)_n.call(this,[[Sr,xn(e[Nr])],[_r,xn(e[Ar])],[wr,/\?1/.test(e[Pr])],[hr,On(e[Lr])],[kr,On(e[Br])],[Or,On(e[Ur])],[fr,On(e[Cr])],[Tr,xn(e[jr])],[Rr,On(e[Fr])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==tr.UNDEFINED&&(this[r]=e[r])}function In(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(wn&&wn.userAgent==this.ua)switch(this.itemType){case rr:wn.brave&&typeof wn.brave.isBrave==tr.FUNCTION&&this.set(cr,"Brave");break;case or:!this.get(ur)&&bn&&bn[wr]&&this.set(ur,wr),"Macintosh"==this.get(hr)&&wn&&typeof wn.standalone!==tr.UNDEFINED&&wn.maxTouchPoints&&wn.maxTouchPoints>2&&this.set(hr,"iPad").set(ur,br);break;case sr:!this.get(cr)&&bn&&bn[kr]&&this.set(cr,bn[kr]);break;case ar:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(rr,t(rr)).set(nr,t(nr)).set(or,t(or)).set(ir,t(ir)).set(sr,t(sr))}return this},this.parseUA=function(){switch(this.itemType!=ar&&Nn.call(this.data,this.ua,this.rgxMap),this.itemType){case rr:this.set(pr,Tn(this.get(dr)));break;case sr:if("iOS"==this.get(cr)&&"18.6"==this.get(dr)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(dr,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case rr:case ir:var r,n=e[_r]||e[Sr];if(n)for(var o=0;o<n.length;o++){var i=n[o].brand||n[o],s=n[o].version;this.itemType==rr&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=sn||r==cn&&/WebView2/.test(i))&&(i=An(i,jn),(r=this.get(cr))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(cr,i).set(dr,s).set(pr,Tn(s)),r=i),this.itemType==ir&&i==sn&&this.set(dr,s)}break;case nr:var a=e[fr];a&&(a&&"64"==e[Rr]&&(a+="64"),Nn.call(this.data,a+";",t));break;case or:if(e[wr]&&this.set(ur,wr),e[hr]&&(this.set(hr,e[hr]),!this.get(ur)||!this.get(lr))){var c={};Nn.call(c,"droid 9; "+e[hr]+")",t),!this.get(ur)&&c.type&&this.set(ur,c.type),!this.get(lr)&&c.vendor&&this.set(lr,c.vendor)}if(e[Tr]){var u;if("string"!=typeof e[Tr])for(var l=0;!u&&l<e[Tr].length;)u=An(e[Tr][l++],Fn);else u=An(e[Tr],Fn);this.set(ur,u)}break;case sr:var d=e[kr];if(d){var f=e[Or];d==mn&&(f=parseInt(Tn(f),10)>=13?"11":"10"),this.set(cr,d).set(dr,f)}this.get(cr)==mn&&"Xbox"==e[hr]&&this.set(cr,"Xbox").set(dr,void 0);break;case ar:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(rr,h(rr)).set(nr,h(nr)).set(or,h(or)).set(ir,h(ir)).set(sr,h(sr))}return this},_n.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Bn(this,e)]]),this}function Dn(e,t,r){if(typeof e===tr.OBJECT?(vn(e,!0)?(typeof t===tr.OBJECT&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==tr.STRING||vn(t,!0)||(r=t,t=void 0),r)if(typeof r.append===tr.FUNCTION){var n={};r.forEach((function(e,t){n[String(t).toLowerCase()]=e})),r=n}else{var o={};for(var i in r)r.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=r[i]);r=o}if(!(this instanceof Dn))return new Dn(e,t,r).getResult();var s=typeof e===tr.STRING?e:r&&r[Yt]?r[Yt]:wn&&wn.userAgent?wn.userAgent:er,a=new Un(r,!0),c=t?function(e,t){var r={},n=t;if(!vn(t))for(var o in n={},t)for(var i in t[o])n[i]=t[o][i].concat(n[i]?n[i]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(Pn,t):Pn,u=function(e){return e==ar?function(){return new In(e,s,c,a).set("ua",s).set(rr,this.getBrowser()).set(nr,this.getCPU()).set(or,this.getDevice()).set(ir,this.getEngine()).set(sr,this.getOS()).get()}:function(){return new In(e,s,c[e],a).parseUA().get()}};return _n.call(this,[["getBrowser",u(rr)],["getCPU",u(nr)],["getDevice",u(or)],["getEngine",u(ir)],["getOS",u(sr)],["getResult",u(ar)],["getUA",function(){return s}],["setUA",function(e){return En(e)&&(s=Rn(e,500)),this}]]).setUA(s),this}function Mn(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function zn(e,t){void 0===t&&(t="[不可展示]");var r=typeof e;if("string"===r||"number"===r||"boolean"===r)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==r)return t;if(Array.isArray(e))return e.map((function(e){return zn(e,t)}));for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];n[a]=zn(c,t)}return n}Dn.VERSION="2.0.6",Dn.BROWSER=gn([cr,dr,pr,ur]),Dn.CPU=gn([fr]),Dn.DEVICE=gn([hr,lr,ur,mr,wr,gr,br,yr,Er]),Dn.ENGINE=Dn.OS=gn([cr,dr]);var qn=function(){function n(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return n.prototype.processResponse=function(e,t){var r=t.includes("application/json"),n=t.includes("text/");if(!r&&!n)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=r?JSON.parse(o):o;return Mn(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},n.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,n,o,i,s;return r(this,(function(r){switch(r.label){case 0:n=0,o=e.headers.get("Content-Type")||"",r.label=1;case 1:return r.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=r.sent(),i=JSON.stringify(t),n=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=r.sent(),t={dataType:"[文本类型数据]",data:s},n=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return n>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((n/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return r.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},n.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var r=new e;r._customHeaders={};var n={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=r.open.bind(r);r.open=function(e,r){if(n.method=e.toUpperCase(),n.url=r.split("?")[0],"GET"===n.method&&r.includes("?")){var i=r.split("?")[1];n.params=t.parseQueryString(i)}o(e,r)};var i=r.setRequestHeader.bind(r);r.setRequestHeader=function(e,t){r._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=r.send.bind(r);return r.send=function(e){n.startTime=performance.now(),"GET"!==n.method&&e&&(n.params=t.parsePostData(e,r)),s(e)},r.addEventListener("load",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=r.status;var e=r.getResponseHeader("Content-Type")||"",o=t.processResponse(r.responseText||r.response,e).response;n.response=o,n.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message)||r.statusText,t.handleRequestResult(n)})),r.addEventListener("error",(function(e){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Network Error",t.handleRequestResult(n)})),r.addEventListener("abort",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=-1,n.error="Request Aborted",t.handleRequestResult(n)})),r.addEventListener("timeout",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Timeout",t.handleRequestResult(n)})),r}},n.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),n=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,u,l,d,f;return r(this,(function(r){switch(r.label){case 0:t=new Request(o,i),s=t.url,"GET"===(a={url:s.split("?")[0],method:t.method.toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?s.includes("?")&&(c=s.split("?")[1],a.params=n.parseQueryString(c)):a.params=(null==i?void 0:i.body)?n.parsePostData(i.body,{headers:i.headers}):null,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e(o,i)];case 2:return u=r.sent(),l=u.clone(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=u.status,[4,n.processFetchResponse(l)];case 3:return d=r.sent().response,a.response=d,a.msg=(null==d?void 0:d.msg)||(null==d?void 0:d.message)||u.statusText,n.handleRequestResult(a),[2,u];case 4:throw f=r.sent(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=0,a.error=f instanceof Error?f.message:"Fetch Unknown Error",n.handleRequestResult(a),f;case 5:return[2]}}))}))}},n.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var r=e.split("="),n=r[0],o=r[1];n&&(t[decodeURIComponent(n)]=decodeURIComponent(o||""))})),t},n.prototype.parsePostData=function(e,t){if(e instanceof FormData){var r={};return e.forEach((function(e,t){r[t]=e})),zn(r)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var n="";if("_customHeaders"in t&&t._customHeaders&&(n=t._customHeaders["content-type"]||""),!n&&"headers"in t&&t.headers){var o=t.headers;n="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!n&&"getResponseHeader"in t&&(n=t.getResponseHeader("Content-Type")||""),!n&&"string"==typeof e&&Mn(e)&&(n="application/json;charset=utf-8"),(n=n.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return n.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},n.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var r=this.filterSensitiveData(e({},t));this.logger.logAPI(r)}},n.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},r=function(r){if(Object.prototype.hasOwnProperty.call(e,r)){var o=r.toLowerCase();n.sensitiveKeys.some((function(e){return o.includes(e)}))?t[r]="***[已脱敏]***":t[r]=n.filterSensitiveData(e[r])}},n=this;for(var o in e)r(o);return t},n}();function Hn(e){var t,r;e instanceof Error?r=e:(r=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var n=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),r=t[1]||t[0],n=r?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(r):null;return n?{file:n[1]||"未知文件",line:parseInt(n[2],10)||"未知行",column:parseInt(n[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(r.stack);return{type:r.name||"Error",message:r.message||"无错误描述",timestamp:Date.now(),file:n.file,line:n.line,column:n.column,stack:r.stack||"无堆栈信息",extra:{reason:r.cause,response:null===(t=r.response)||void 0===t?void 0:t.data}}}function $n(e,t){var r=Hn(e);t.logError(r)}var Vn=function(){function n(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},n.instance)console.error("BrowserLogger 类只能实例化一次!");else{if(!e||"object"!=typeof e)throw console.error("初始化参数不能为空!"),new Error("[@zjlab-fe/util:BrowserLogger]初始化参数不能为空!");if(!(null==e?void 0:e.pid))throw console.error("pid 不能为空!"),new Error("[@zjlab-fe/util:BrowserLogger]pid 不能为空!");this.config=e;var r=(new Dn).getResult();this.systemInfo={detector_browser:r.browser.name||"",detector_browser_version:r.browser.version||"",detector_device:r.device.model||"pc",detector_os:r.os.name||"",detector_os_version:r.os.version||"",http_user_agent:r.ua||""},n.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,r,n){o.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,r,n){s.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new qn(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),$n(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),$n(e.reason,i)})))}}return n.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},n.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(r){console.log("+++ paint 类型指标",r),r.getEntries().forEach((function(r){if("first-paint"===r.name){var n=r.startTime;e({success:!0,fpTime:Math.round(10*n)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},n.singleton=function(e){return n.instance||(n.instance=new n(e)),n.instance},n.prototype.sendPV=function(){this.pvId=Zt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},n.prototype.logAPI=function(t){var r=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.error?t.error:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},n.prototype.logError=function(t){if("AxiosError"!==t.type){var r=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},n.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},n.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},n.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Zt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var r=this.dataQueue.shift();this.realSendLog(e(e({},r),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},n.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},n.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},n.prototype.sendLog=function(t,r,n){if(t&&r)if(3===t.split(".").length)if(/^[a-zA-Z]([a-zA-Z0-9_]{0,18}[a-zA-Z0-9])?$/.test(r)){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:"".concat(this.config.pid,".").concat(t),custom_log_type:r,custom_log_data:n}))}else console.error("type 格式错误,正确格式如下:字母开头+合法内容(数字或字母或下划线)+字母/数字结尾,总长度不超过20位");else console.error("spm 格式错误,正确的格式如下:spmB.spmC.spmD");else console.error("spm 和 type 不能为空")},n.instance=null,n}();var Gn=[],Jn=!1;function Wn(e,t){return new Promise((function(r,n){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&r(!0)}})}catch(e){console.log("+++ err",e),n(e)}}))}function Kn(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)}function Xn(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)}function Zn(e,t){for(var r=t||{},n=r.locale,o=void 0===n?"zh":n,i=r.precision,s=void 0===i?0:i,a=r.showByte,c=void 0!==a&&a,u=r.splitUnit,l=void 0!==u&&u,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?l?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?l?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):l?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var r=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!r)return t;var n=parseFloat(r[1]),o=(r[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:n,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return l?{num:"".concat(w),unit:b}:h;if(l){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")}function Qn(e,t,r,n,o){var i;if(t)window.open(e);else{var s=o||"zh";Gn.push({url:e,headers:n,locale:s}),Jn||(Jn=!0,null===(i=null==r?void 0:r.loading)||void 0===i||i.call(r,"zh"===s?"下载中":"Downloading"),Yn(r))}}function Yn(e){if(Gn.length>0){var t=Gn.shift(),r="string"==typeof t?t:t.url,n="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(r,{headers:n}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(r);return e.blob().then((function(e){var r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",document.body.appendChild(n),n.href=r,t&&(n.download=t),n.click(),n.remove(),URL.revokeObjectURL(r)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(r):"File download error: ".concat(r))})).finally((function(){setTimeout((function(){Yn(e)}),1e3)}))}else Jn=!1}function eo(e){var t=e,r=e.indexOf("?");-1!==r&&(t=e.substring(0,r));var n=t.lastIndexOf(".");return t.substring(n+1)}function to(e){return new Promise((function(t){if(e&&e.length>0){var r=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0),n=function(){r.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=r.shift(),t=eo(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=n,void(o.onerror=n)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=n,void(i.onerror=n)}n()};o()}else t(null)}))}function ro(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push(ro(e))})),t}if("[object Object]"===Object.prototype.toString.call(e)){var r={};return Object.keys(e).forEach((function(t){r[t]=ro(e[t])})),r}return"string"==typeof e?e.trim():e}var no,oo="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(no||(no={}));var io,so=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,r,n){var o;if(e){var i=void 0;"function"==typeof r?i=r:n&&(i=n);var s="".concat(oo,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof r?null:r},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,r){if(window.parent&&window.parent!==window){var n=void 0;"function"==typeof t?n=t:r&&(n=r);var o="";o=-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)?e:"".concat(oo,"_").concat(e),n&&this.onMessage(e,n,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,r){var n=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(oo,"_").concat(e))&&(r&&window.removeEventListener("message",n),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(n),window.addEventListener("message",n)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var r;null===(r=e.onMessageCallback[t])||void 0===r||r.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();function ao(){window.addEventListener("message",(function(e){var t=e.data||{},r=t.data,n=t.type;if(n===no.HASH_CHANGE||n===no.PUSH_STATE||n===no.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(r.href));console.log("+++ iframe url data",n,r),window.history.replaceState(null,"",o)}}))}function co(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e}function uo(e,t){var r=new so;if(window.parent&&window.parent!==window){window.onhashchange=function(){r.postMessage(no.HASH_CHANGE,{href:window.location.href})};var n=window.history.pushState;window.history.pushState=function(e,t,o){n.call(window.history,e,t,o),o&&r.postMessage(no.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,n){o.call(window.history,e,t,n),n&&r.postMessage(no.REPLACE_STATE,{href:-1!==n.indexOf("//")?n:window.location.origin+n})},window.addEventListener("popstate",(function(e){r.postMessage(no.REPLACE_STATE,{href:window.location.href})})),r.postMessage("getUserInfo",(function(r){var n;window[null!==(n=null==t?void 0:t.namespace)&&void 0!==n?n:"_subApp"]=r,e&&e(r)}))}}!function(e){e.zh="zh",e.en="en"}(io||(io={}));export{Vn as BrowserLogger,so as IfmChannel,to as appendAsset,Qn as downloadFile,Zn as formatNumber,Dt as getAxiosInstanceWithAuth,eo as getFileExt,co as getIframeUrl,Kn as isOnline,Xn as isPublicNetwork,ao as mainAppInit,uo as subAppInit,ro as trimObj,Wn as uploadToOSS};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function r(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;const n="%[a-f0-9]{2}",o=new RegExp("("+n+")|([^%]+?)","gi"),i=new RegExp("("+n+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],s(r),s(n))}function a(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;r<t.length;r++)t=(e=s(t,r).join("")).match(o)||[];return e}}function c(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=a(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const r of n)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}function
|
|
1
|
+
"use strict";var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function r(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;const n="%[a-f0-9]{2}",o=new RegExp("("+n+")|([^%]+?)","gi"),i=new RegExp("("+n+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],s(r),s(n))}function a(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;r<t.length;r++)t=(e=s(t,r).join("")).match(o)||[];return e}}function c(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=a(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const r of n)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}function l(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){t(n,e[n],e)&&Object.defineProperty(r,n,o)}}return r}function u(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}const d=e=>null==e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),p=Symbol("encodeFragmentIdentifier");function h(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function m(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function w(e,t){return t.decode?c(e):e}function b(e){return Array.isArray(e)?e.sort():"object"==typeof e?b(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function g(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function v(e){const t=(e=g(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function E(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&w(r,e).includes(e.arrayFormatSeparator);r=i?w(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>w(t,e))):null===r?r:w(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?w(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>w(t,e)));void 0!==n[t]?n[t]=[...n[t],...i]:n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,s]=u(e,"=");void 0===i&&(i=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:w(s,t),r(w(i,t),s,n)}for(const[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(const[n,o]of Object.entries(r)){const i=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=y(o,t,i)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=y(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?b(r):r,e}),Object.create(null))}function x(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&d(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),"[",o,"]"].join("")]:[...r,[m(t,e),"[",m(o,e),"]=",m(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),"[]"].join("")]:[...r,[m(t,e),"[]=",m(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),":list="].join("")]:[...r,[m(t,e),":list=",m(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[m(r,e),t,m(o,e)].join("")]:[[n,m(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,m(t,e)]:[...r,[m(t,e),"=",m(n,e)].join("")]}}(t),o={};for(const[t,n]of Object.entries(e))r(t)||(o[t]=n);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?m(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?m(r,t)+"[]":o.reduce(n(r),[]).join("&"):m(r,t)+"="+m(o,t)})).filter((e=>e.length>0)).join("&")}function S(e,t){t={decode:!0,...t};let[r,n]=u(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:E(v(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:w(n,t)}:{}}}function T(e,t){t={encode:!0,strict:!0,[p]:!0,...t};const r=g(e.url).split("?")[0]||"";let n=x({...E(v(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,o=t[p]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function _(e,t,r){r={parseFragmentIdentifier:!0,[p]:!1,...r};const{url:n,query:o,fragmentIdentifier:i}=S(e,r);return T({url:n,query:l(o,t),fragmentIdentifier:i},r)}var k=Object.freeze({__proto__:null,exclude:function(e,t,r){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)},extract:v,parse:E,parseUrl:S,pick:_,stringify:x,stringifyUrl:T}),O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A,N={exports:{}};
|
|
2
2
|
/*! @preserve
|
|
3
3
|
* numeral.js
|
|
4
4
|
* version : 2.0.6
|
|
5
5
|
* author : Adam Draper
|
|
6
6
|
* license : MIT
|
|
7
7
|
* http://adamwdraper.github.com/Numeral-js/
|
|
8
|
-
*/N=A,function(e,t){N.exports?N.exports=t():e.numeral=t()}(O,(function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(c.zeroFormat&&r===c.zeroFormat)n=0;else if(c.nullFormat&&r===c.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new u(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,r,n){var o,i,a,c,u,l,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(w=" "),r=r.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),c=t.toString().split(".")[0],u=r.split(".")[1],d=r.indexOf(","),o=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):v=e._.toFixed(t,u.length,n),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,n),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):l>=0?f=0===l?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,c=e.toString().split("."),u=t-(n||0);return o=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,c,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(r)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,a=u.abbreviations,n=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==i)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,u=t||c.defaultFormat;if(r=r||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(n in i)if(u.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,u,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,u=e._.includes(o,"ib")?n:r,l=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(a=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===t||0===t||t>=a&&t<c){l+=u.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+l},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e}));var C=R(A.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Q=U("URLSearchParams"),[Z,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),D(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),ue=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),le=U("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:r,data:n})=>{r===oe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(e))||"object"===t&&H(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Z,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:le,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Q,isTypedArray:se,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=ie(this)&&this||{},r={},n=(n,o)=>{const i=t&&ne(r,o)||o;G(r[i])&&G(n)?r[i]=e(r[i],n):G(n)?r[i]=e({},n):D(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(re(t,((t,n)=>{r&&H(t)?e[n]=F(t,r):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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&P(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!$(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:ue,hasOwnProp:ue,reduceDescriptors:de,freezeMethods:e=>{de(e,((t,r)=>{if(H(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];H(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return D(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=D(e)?[]:{};return re(e,((e,t)=>{const i=r(e,n+1);!M(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=_e(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,r){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ve.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(r,"[]"))&&(a=ve.toArray(e)))return r=_e(r),a.forEach((function(e,n){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,r,i),c(e)),!1)}const l=[],d=Object.assign(Oe,{defaultVisitor:u,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ve.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),ve.forEach(r,(function(r,i){!0===(!(ve.isUndefined(r)||null===r)&&o.call(t,r,ve.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ae(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ae.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,r){if(!t)return e;const n=r&&r.encode||Fe,o=r&&r.serialize;let i;if(i=o?o(t,r):ve.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ne)}:Ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(n)?n.length:i,a)return ve.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&ve.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ve.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const r={};return ve.forEachEntry(e,((e,n)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return n?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ee.from(e,Ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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"]);const Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,r,n,o){return ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),ve.isString(t)?ve.isString(n)?-1!==t.indexOf(n):ve.isRegExp(n)?n.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,r)=>o(e,r,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ve.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Je(e)){const r=ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ve.isFunction(t))return t.call(this,e,r);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const r=ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Je(e)){const o=ve.findKey(r,e);!o||t&&!Ke(0,r[o],o,t)||(delete r[o],n=!0)}}return ve.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ke(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ve.forEach(this,((n,o)=>{const i=ve.findKey(r,o);if(i)return t[i]=We(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Je(e);t[n]||(!function(e,t){const r=ve.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ve.isArray(e)?e.forEach(n):n(e),this}}function Qe(e,t){const r=this||$e,n=t||r,o=Xe.from(n.headers);let i=n.data;return ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ze(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,r){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,r),this.name="CanceledError"}function et(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},rt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=ve.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ve.isString(n)&&s.push("path="+n),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const r={};function n(e,t,r){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:r},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,r){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ve.isUndefined(t))return n(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);ve.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ut=e=>{const t=ct({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ut(e);let o=n.data;const i=Xe.from(n.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const n=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([c,l]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===qe.protocols.indexOf(b)?r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},pt=(e,t,r,n,o)=>{const i=async function*(e,t,r){for await(const n of e)yield*ft(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&>((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&>((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,r)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,r)})})));const St=async(e,t)=>{const r=ve.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):r};const Tt={http:null,xhr:lt,fetch:ht&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=ut(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==r&&"head"!==r&&0!==(g=await St(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(ve.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=rt(g,tt(nt(c)));n=pt(r.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===u||"response"===u);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&rt(t,tt(nt(a),!0))||[];o=new Response(pt(o.body,65536,r,(()=>{n&&n(),i&&b()}),wt),e)}u=u||"text";let s=await Et[ve.findKey(Et,u)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,r)=>{et(t,r,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!kt(r)&&(n=Tt[(t=String(r)).toLowerCase()],void 0===n))throw new Ee(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function Nt(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Ze(t)||(Rt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const At="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var jt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ee("option "+i+" must be "+r,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ct(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&jt.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=n&&(ve.isFunction(n)?t.paramsSerializer={serialize:n}:jt.assertOptions(n,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[Nt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let f=t;for(d=0;d<l;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(ct(r||{},{method:e,url:t,data:(r||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ye(e,n,o),t(r.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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const r=new Lt(t),n=F(Lt.prototype.request,r);return ve.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ct(t,r))},n}($e);It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Ze,It.VERSION=At,It.toFormData=Re,It.AxiosError=Ee,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Dt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Mt(e){if(!function(e){return"string"==typeof e&&Dt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const zt=[];for(let e=0;e<256;++e)zt.push((e+256).toString(16).slice(1));function qt(e,t=0){return(zt[e[t+0]]+zt[e[t+1]]+zt[e[t+2]]+zt[e[t+3]]+"-"+zt[e[t+4]]+zt[e[t+5]]+"-"+zt[e[t+6]]+zt[e[t+7]]+"-"+zt[e[t+8]]+zt[e[t+9]]+"-"+zt[e[t+10]]+zt[e[t+11]]+zt[e[t+12]]+zt[e[t+13]]+zt[e[t+14]]+zt[e[t+15]]).toLowerCase()}let Ht;const $t=new Uint8Array(16);function Vt(){if(!Ht){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ht=crypto.getRandomValues.bind(crypto)}return Ht($t)}const Gt={};function Jt(e,t,r){let n;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=Wt(e.random??e.rng?.()??Vt(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),i=Vt();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9]));e.msecs=t}(Gt,e,i),n=Wt(i,Gt.msecs,Gt.nsecs,o?void 0:Gt.clockseq,o?void 0:Gt.node,t,r)}return t??qt(n)}function Wt(e,t,r,n,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=n>>>8|128,i[s++]=255&n;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Kt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?Mt(e):e);return"string"==typeof e?qt(t):t}function Xt(e,t,r){e??={};let n=Jt({...e,_v6:!0},new Uint8Array(16));return n=Kt(n),qt(n)}var Qt,Zt="user-agent",Yt="",er={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},tr="browser",rr="cpu",nr="device",or="engine",ir="os",sr="result",ar="name",cr="type",ur="vendor",lr="version",dr="architecture",fr="major",pr="model",hr="console",mr="mobile",wr="tablet",br="smarttv",gr="wearable",yr="xr",vr="embedded",Er="inapp",xr="brands",Sr="formFactors",Tr="fullVersionList",_r="platform",kr="platformVersion",Or="bitness",Rr="sec-ch-ua",Nr=Rr+"-full-version-list",Ar=Rr+"-arch",Cr=Rr+"-"+Or,Fr=Rr+"-form-factors",jr=Rr+"-"+mr,Pr=Rr+"-"+pr,Lr=Rr+"-"+_r,Br=Lr+"-version",Ur=[xr,Tr,mr,pr,_r,kr,dr,Sr,Or],Ir="Amazon",Dr="Apple",Mr="ASUS",zr="BlackBerry",qr="Google",Hr="Huawei",$r="Lenovo",Vr="Honor",Gr="LG",Jr="Microsoft",Wr="Motorola",Kr="Nvidia",Xr="OnePlus",Qr="OPPO",Zr="Samsung",Yr="Sharp",en="Sony",tn="Xiaomi",rn="Zebra",nn="Chrome",on="Chromium",sn="Chromecast",an="Edge",cn="Firefox",un="Opera",ln="Facebook",dn="Sogou",fn="Mobile ",pn=" Browser",hn="Windows",mn=typeof window!==er.UNDEFINED&&window.navigator?window.navigator:void 0,wn=mn&&mn.userAgentData?mn.userAgentData:void 0,bn=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},gn=function(e,t){if(typeof e===er.OBJECT&&e.length>0){for(var r in e)if(xn(t)==xn(e[r]))return!0;return!1}return!!vn(e)&&xn(t)==xn(e)},yn=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&yn(e[r])},vn=function(e){return typeof e===er.STRING},En=function(e){if(e){for(var t=[],r=_n(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var o=On(r[n]).split(";v=");t[n]={brand:o[0],version:o[1]}}else t[n]=On(r[n]);return t}},xn=function(e){return vn(e)?e.toLowerCase():e},Sn=function(e){return vn(e)?_n(/[^\d\.]/g,e).split(".")[0]:void 0},Tn=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==er.OBJECT&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},_n=function(e,t){return vn(t)?t.replace(e,Yt):t},kn=function(e){return _n(/\\?\"/g,e)},On=function(e,t){return e=_n(/^\s\s*/,String(e)),typeof t===er.UNDEFINED?e:e.substring(0,t)},Rn=function(e,t){if(e&&t)for(var r,n,o,i,s,a,c=0;c<t.length&&!s;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!s&&u[r];)if(s=u[r++].exec(e))for(o=0;o<l.length;o++)a=s[++n],typeof(i=l[o])===er.OBJECT&&i.length>0?2===i.length?typeof i[1]==er.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==er.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},Nn=function(e,t){for(var r in t)if(typeof t[r]===er.OBJECT&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(gn(t[r][n],e))return"?"===r?void 0:r}else if(gn(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},An={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Cn={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Fn={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},jn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[lr,[ar,fn+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[lr,[ar,an+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[lr,[ar,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ar,lr],[/opios[\/ ]+([\w\.]+)/i],[lr,[ar,un+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[lr,[ar,un+" GX"]],[/\bopr\/([\w\.]+)/i],[lr,[ar,un]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[lr,[ar,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[lr,[ar,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ar,lr],[/quark(?:pc)?\/([-\w\.]+)/i],[lr,[ar,"Quark"]],[/\bddg\/([\w\.]+)/i],[lr,[ar,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[lr,[ar,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[lr,[ar,"WeChat"]],[/konqueror\/([\w\.]+)/i],[lr,[ar,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[lr,[ar,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[lr,[ar,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[lr,[ar,"Smart "+$r+pn]],[/(avast|avg)\/([\w\.]+)/i],[[ar,/(.+)/,"$1 Secure"+pn],lr],[/\bfocus\/([\w\.]+)/i],[lr,[ar,cn+" Focus"]],[/\bopt\/([\w\.]+)/i],[lr,[ar,un+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[lr,[ar,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[lr,[ar,"Dolphin"]],[/coast\/([\w\.]+)/i],[lr,[ar,un+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[lr,[ar,"MIUI"+pn]],[/fxios\/([\w\.-]+)/i],[lr,[ar,fn+cn]],[/\bqihoobrowser\/?([\w\.]*)/i],[lr,[ar,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ar,/(.+)/,"$1Browser"],lr],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ar,/(.+)/,"$1"+pn],lr],[/samsungbrowser\/([\w\.]+)/i],[lr,[ar,Zr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[lr,[ar,dn+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ar,dn+" Mobile"],lr],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ar,lr],[/(lbbrowser|rekonq)/i],[ar],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[lr,ar],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ar,ln],lr,[cr,Er]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[ar,lr,[cr,Er]],[/\bgsa\/([\w\.]+) .*safari\//i],[lr,[ar,"GSA"],[cr,Er]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[lr,[ar,"TikTok"],[cr,Er]],[/\[(linkedin)app\]/i],[ar,[cr,Er]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[ar,/(.+)/,"Zalo"],lr,[cr,Er]],[/(chromium)[\/ ]([-\w\.]+)/i],[ar,lr],[/headlesschrome(?:\/([\w\.]+)| )/i],[lr,[ar,nn+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[lr,[ar,an+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ar,nn+" WebView"],lr],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[lr,[ar,"Android"+pn]],[/chrome\/([\w\.]+) mobile/i],[lr,[ar,fn+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ar,lr],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[lr,[ar,fn+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ar,fn+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[lr,ar],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ar,[lr,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ar,lr],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ar,fn+cn],lr],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ar,"Netscape"],lr],[/(wolvic|librewolf)\/([\w\.]+)/i],[ar,lr],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[lr,[ar,cn+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ar,[lr,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ar,[lr,/[^\d\.]+./,Yt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[dr,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[dr,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[dr,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[dr,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[dr,"arm"]],[/ sun4\w[;\)]/i],[[dr,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[dr,/ower/,Yt,xn]],[/mc680.0/i],[[dr,"68k"]],[/winnt.+\[axp/i],[[dr,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[pr,[ur,Zr],[cr,wr]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[pr,[ur,Zr],[cr,mr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[pr,[ur,Dr],[cr,mr]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[pr,[ur,Dr],[cr,wr]],[/(macintosh);/i],[pr,[ur,Dr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[pr,[ur,Yr],[cr,mr]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[pr,[ur,Vr],[cr,wr]],[/honor([-\w ]+)[;\)]/i],[pr,[ur,Vr],[cr,mr]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[pr,[ur,Hr],[cr,wr]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[pr,[ur,Hr],[cr,mr]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[pr,/_/g," "],[ur,tn],[cr,wr]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[pr,/_/g," "],[ur,tn],[cr,mr]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[pr,[ur,Xr],[cr,mr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[pr,[ur,Qr],[cr,mr]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[pr,[ur,Nn,{OnePlus:["203","304","403","404","413","415"],"*":Qr}],[cr,wr]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[pr,[ur,"BLU"],[cr,mr]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[pr,[ur,"Vivo"],[cr,mr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[pr,[ur,"Realme"],[cr,mr]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[pr,[ur,$r],[cr,wr]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[pr,[ur,$r],[cr,mr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[pr,[ur,Wr],[cr,mr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[pr,[ur,Wr],[cr,wr]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[pr,[ur,Gr],[cr,wr]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[pr,[ur,Gr],[cr,mr]],[/(nokia) (t[12][01])/i],[ur,pr,[cr,wr]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[pr,/_/g," "],[cr,mr],[ur,"Nokia"]],[/(pixel (c|tablet))\b/i],[pr,[ur,qr],[cr,wr]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[pr,[ur,qr],[cr,mr]],[/(google) (pixelbook( go)?)/i],[ur,pr],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[pr,[ur,en],[cr,mr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[pr,"Xperia Tablet"],[ur,en],[cr,wr]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[pr,[ur,Ir],[cr,wr]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[pr,/(.+)/g,"Fire Phone $1"],[ur,Ir],[cr,mr]],[/(playbook);[-\w\),; ]+(rim)/i],[pr,ur,[cr,wr]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[pr,[ur,zr],[cr,mr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[pr,[ur,Mr],[cr,wr]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[pr,[ur,Mr],[cr,mr]],[/(nexus 9)/i],[pr,[ur,"HTC"],[cr,wr]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ur,[pr,/_/g," "],[cr,mr]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[pr,[ur,"TCL"],[cr,wr]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[pr,[ur,"TCL"],[cr,mr]],[/(itel) ((\w+))/i],[[ur,xn],pr,[cr,Nn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[pr,[ur,"Acer"],[cr,wr]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[pr,[ur,"Meizu"],[cr,mr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[pr,[ur,"Ulefone"],[cr,mr]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[pr,[ur,"Energizer"],[cr,mr]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[pr,[ur,"Cat"],[cr,mr]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[pr,[ur,"Smartfren"],[cr,mr]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[pr,[ur,"Nothing"],[cr,mr]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[pr,[ur,"Archos"],[cr,wr]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[pr,[ur,"Archos"],[cr,mr]],[/; (n159v)/i],[pr,[ur,"HMD"],[cr,mr]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[ur,pr,[cr,wr]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[ur,pr,[cr,mr]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ur,pr,[cr,wr]],[/(surface duo)/i],[pr,[ur,Jr],[cr,wr]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[pr,[ur,"Fairphone"],[cr,mr]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[pr,[ur,Kr],[cr,wr]],[/(sprint) (\w+)/i],[ur,pr,[cr,mr]],[/(kin\.[onetw]{3})/i],[[pr,/\./g," "],[ur,Jr],[cr,mr]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[pr,[ur,rn],[cr,wr]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[pr,[ur,rn],[cr,mr]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[ur,[cr,br]],[/hbbtv.+maple;(\d+)/i],[[pr,/^/,"SmartTV"],[ur,Zr],[cr,br]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[ur,pr,[cr,br]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ur,Gr],[cr,br]],[/(apple) ?tv/i],[ur,[pr,Dr+" TV"],[cr,br]],[/crkey.*devicetype\/chromecast/i],[[pr,sn+" Third Generation"],[ur,qr],[cr,br]],[/crkey.*devicetype\/([^/]*)/i],[[pr,/^/,"Chromecast "],[ur,qr],[cr,br]],[/fuchsia.*crkey/i],[[pr,sn+" Nest Hub"],[ur,qr],[cr,br]],[/crkey/i],[[pr,sn],[ur,qr],[cr,br]],[/(portaltv)/i],[pr,[ur,ln],[cr,br]],[/droid.+aft(\w+)( bui|\))/i],[pr,[ur,Ir],[cr,br]],[/(shield \w+ tv)/i],[pr,[ur,Kr],[cr,br]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[pr,[ur,Yr],[cr,br]],[/(bravia[\w ]+)( bui|\))/i],[pr,[ur,en],[cr,br]],[/(mi(tv|box)-?\w+) bui/i],[pr,[ur,tn],[cr,br]],[/Hbbtv.*(technisat) (.*);/i],[ur,pr,[cr,br]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ur,/.+\/(\w+)/,"$1",Nn,{LG:"lge"}],[pr,On],[cr,br]],[/(playstation \w+)/i],[pr,[ur,en],[cr,hr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[pr,[ur,Jr],[cr,hr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[ur,pr,[cr,hr]],[/droid.+; (shield)( bui|\))/i],[pr,[ur,Kr],[cr,hr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[pr,[ur,Zr],[cr,gr]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ur,pr,[cr,gr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[pr,[ur,Qr],[cr,gr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[pr,[ur,Dr],[cr,gr]],[/(opwwe\d{3})/i],[pr,[ur,Xr],[cr,gr]],[/(moto 360)/i],[pr,[ur,Wr],[cr,gr]],[/(smartwatch 3)/i],[pr,[ur,en],[cr,gr]],[/(g watch r)/i],[pr,[ur,Gr],[cr,gr]],[/droid.+; (wt63?0{2,3})\)/i],[pr,[ur,rn],[cr,gr]],[/droid.+; (glass) \d/i],[pr,[ur,qr],[cr,yr]],[/(pico) ([\w ]+) os\d/i],[ur,pr,[cr,yr]],[/(quest( \d| pro)?s?).+vr/i],[pr,[ur,ln],[cr,yr]],[/mobile vr; rv.+firefox/i],[[cr,yr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ur,[cr,vr]],[/(aeobc)\b/i],[pr,[ur,Ir],[cr,vr]],[/(homepod).+mac os/i],[pr,[ur,Dr],[cr,vr]],[/windows iot/i],[[cr,vr]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[pr,[cr,br]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[cr,br]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[pr,[cr,Nn,{mobile:"Mobile",xr:"VR","*":wr}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[cr,wr]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[cr,mr]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[pr,[ur,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[lr,[ar,an+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ar,lr],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[lr,[ar,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ar,lr],[/ladybird\//i],[[ar,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[lr,ar]],os:[[/(windows nt) (6\.[23]); arm/i],[[ar,/N/,"R"],[lr,Nn,An]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[ar,lr],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[lr,/(;|\))/g,"",Nn,An],[ar,hn]],[/(windows ce)\/?([\d\.]*)/i],[ar,lr],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[lr,/_/g,"."],[ar,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[ar,"macOS"],[lr,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[lr,[ar,sn+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[lr,[ar,sn+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[lr,[ar,sn+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[lr,[ar,sn+" Linux"]],[/crkey\/([\d\.]+)/i],[lr,[ar,sn]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[lr,ar],[/(ubuntu) ([\w\.]+) like android/i],[[ar,/(.+)/,"$1 Touch"],lr],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[ar,lr],[/\(bb(10);/i],[lr,[ar,zr]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[lr,[ar,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[lr,[ar,cn+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[lr,[ar,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[lr,Nn,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[ar,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[lr,[ar,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ar,"Chrome OS"],lr],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[ar,lr],[/(sunos) ?([\d\.]*)/i],[[ar,"Solaris"],lr],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ar,lr]]},Pn=(Qt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},Tn.call(Qt.init,[[tr,[ar,lr,fr,cr]],[rr,[dr]],[nr,[cr,pr,ur]],[or,[ar,lr]],[ir,[ar,lr]]]),Tn.call(Qt.isIgnore,[[tr,[lr,fr]],[or,[lr]],[ir,[lr]]]),Tn.call(Qt.isIgnoreRgx,[[tr,/ ?browser$/i],[ir,/ ?os$/i]]),Tn.call(Qt.toString,[[tr,[ar,lr]],[rr,[dr]],[nr,[ur,pr]],[or,[ar,lr]],[ir,[ar,lr]]]),Qt),Ln=function(e,t){var r=Pn.init[t],n=Pn.isIgnore[t]||0,o=Pn.isIgnoreRgx[t]||0,i=Pn.toString[t]||0;function s(){Tn.call(this,r)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return wn?wn.getHighEntropyValues(Ur).then((function(t){return e.setCH(new Bn(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=sr&&(s.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!gn(n,r)&&xn(o?_n(o,this[r]):this[r])==xn(o?_n(o,e):e)){if(t=!0,e!=er.UNDEFINED)break}else if(e==er.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=Yt;for(var t in i)typeof this[i[t]]!==er.UNDEFINED&&(e+=(e?" ":Yt)+this[i[t]]);return e||er.UNDEFINED}),wn||(s.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:s.prototype.is,toString:s.prototype.toString};var n=new r;return e(n),n}),new s};function Bn(e,t){if(e=e||{},Tn.call(this,Ur),t)Tn.call(this,[[xr,En(e[Rr])],[Tr,En(e[Nr])],[mr,/\?1/.test(e[jr])],[pr,kn(e[Pr])],[_r,kn(e[Lr])],[kr,kn(e[Br])],[dr,kn(e[Ar])],[Sr,En(e[Fr])],[Or,kn(e[Cr])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==er.UNDEFINED&&(this[r]=e[r])}function Un(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(mn&&mn.userAgent==this.ua)switch(this.itemType){case tr:mn.brave&&typeof mn.brave.isBrave==er.FUNCTION&&this.set(ar,"Brave");break;case nr:!this.get(cr)&&wn&&wn[mr]&&this.set(cr,mr),"Macintosh"==this.get(pr)&&mn&&typeof mn.standalone!==er.UNDEFINED&&mn.maxTouchPoints&&mn.maxTouchPoints>2&&this.set(pr,"iPad").set(cr,wr);break;case ir:!this.get(ar)&&wn&&wn[_r]&&this.set(ar,wn[_r]);break;case sr:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(tr,t(tr)).set(rr,t(rr)).set(nr,t(nr)).set(or,t(or)).set(ir,t(ir))}return this},this.parseUA=function(){switch(this.itemType!=sr&&Rn.call(this.data,this.ua,this.rgxMap),this.itemType){case tr:this.set(fr,Sn(this.get(lr)));break;case ir:if("iOS"==this.get(ar)&&"18.6"==this.get(lr)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(lr,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case tr:case or:var r,n=e[Tr]||e[xr];if(n)for(var o=0;o<n.length;o++){var i=n[o].brand||n[o],s=n[o].version;this.itemType==tr&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=on||r==an&&/WebView2/.test(i))&&(i=Nn(i,Fn),(r=this.get(ar))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(ar,i).set(lr,s).set(fr,Sn(s)),r=i),this.itemType==or&&i==on&&this.set(lr,s)}break;case rr:var a=e[dr];a&&(a&&"64"==e[Or]&&(a+="64"),Rn.call(this.data,a+";",t));break;case nr:if(e[mr]&&this.set(cr,mr),e[pr]&&(this.set(pr,e[pr]),!this.get(cr)||!this.get(ur))){var c={};Rn.call(c,"droid 9; "+e[pr]+")",t),!this.get(cr)&&c.type&&this.set(cr,c.type),!this.get(ur)&&c.vendor&&this.set(ur,c.vendor)}if(e[Sr]){var u;if("string"!=typeof e[Sr])for(var l=0;!u&&l<e[Sr].length;)u=Nn(e[Sr][l++],Cn);else u=Nn(e[Sr],Cn);this.set(cr,u)}break;case ir:var d=e[_r];if(d){var f=e[kr];d==hn&&(f=parseInt(Sn(f),10)>=13?"11":"10"),this.set(ar,d).set(lr,f)}this.get(ar)==hn&&"Xbox"==e[pr]&&this.set(ar,"Xbox").set(lr,void 0);break;case sr:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(tr,h(tr)).set(rr,h(rr)).set(nr,h(nr)).set(or,h(or)).set(ir,h(ir))}return this},Tn.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Ln(this,e)]]),this}function In(e,t,r){if(typeof e===er.OBJECT?(yn(e,!0)?(typeof t===er.OBJECT&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==er.STRING||yn(t,!0)||(r=t,t=void 0),r)if(typeof r.append===er.FUNCTION){var n={};r.forEach((function(e,t){n[String(t).toLowerCase()]=e})),r=n}else{var o={};for(var i in r)r.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=r[i]);r=o}if(!(this instanceof In))return new In(e,t,r).getResult();var s=typeof e===er.STRING?e:r&&r[Zt]?r[Zt]:mn&&mn.userAgent?mn.userAgent:Yt,a=new Bn(r,!0),c=t?function(e,t){var r={},n=t;if(!yn(t))for(var o in n={},t)for(var i in t[o])n[i]=t[o][i].concat(n[i]?n[i]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(jn,t):jn,u=function(e){return e==sr?function(){return new Un(e,s,c,a).set("ua",s).set(tr,this.getBrowser()).set(rr,this.getCPU()).set(nr,this.getDevice()).set(or,this.getEngine()).set(ir,this.getOS()).get()}:function(){return new Un(e,s,c[e],a).parseUA().get()}};return Tn.call(this,[["getBrowser",u(tr)],["getCPU",u(rr)],["getDevice",u(nr)],["getEngine",u(or)],["getOS",u(ir)],["getResult",u(sr)],["getUA",function(){return s}],["setUA",function(e){return vn(e)&&(s=On(e,500)),this}]]).setUA(s),this}function Dn(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function Mn(e,t){void 0===t&&(t="[不可展示]");var r=typeof e;if("string"===r||"number"===r||"boolean"===r)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==r)return t;if(Array.isArray(e))return e.map((function(e){return Mn(e,t)}));for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];n[a]=Mn(c,t)}return n}In.VERSION="2.0.6",In.BROWSER=bn([ar,lr,fr,cr]),In.CPU=bn([dr]),In.DEVICE=bn([pr,ur,cr,hr,mr,br,wr,gr,vr]),In.ENGINE=In.OS=bn([ar,lr]);var zn=function(){function n(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return n.prototype.processResponse=function(e,t){var r=t.includes("application/json"),n=t.includes("text/");if(!r&&!n)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=r?JSON.parse(o):o;return Dn(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},n.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,n,o,i,s;return r(this,(function(r){switch(r.label){case 0:n=0,o=e.headers.get("Content-Type")||"",r.label=1;case 1:return r.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=r.sent(),i=JSON.stringify(t),n=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=r.sent(),t={dataType:"[文本类型数据]",data:s},n=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return n>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((n/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return r.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},n.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var r=new e;r._customHeaders={};var n={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=r.open.bind(r);r.open=function(e,r){if(n.method=e.toUpperCase(),n.url=r.split("?")[0],"GET"===n.method&&r.includes("?")){var i=r.split("?")[1];n.params=t.parseQueryString(i)}o(e,r)};var i=r.setRequestHeader.bind(r);r.setRequestHeader=function(e,t){r._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=r.send.bind(r);return r.send=function(e){n.startTime=performance.now(),"GET"!==n.method&&e&&(n.params=t.parsePostData(e,r)),s(e)},r.addEventListener("load",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=r.status;var e=r.getResponseHeader("Content-Type")||"",o=t.processResponse(r.responseText||r.response,e).response;n.response=o,n.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message)||r.statusText,t.handleRequestResult(n)})),r.addEventListener("error",(function(e){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Network Error",t.handleRequestResult(n)})),r.addEventListener("abort",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=-1,n.error="Request Aborted",t.handleRequestResult(n)})),r.addEventListener("timeout",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Timeout",t.handleRequestResult(n)})),r}},n.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),n=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,u,l,d,f;return r(this,(function(r){switch(r.label){case 0:t=new Request(o,i),s=t.url,"GET"===(a={url:s.split("?")[0],method:t.method.toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?s.includes("?")&&(c=s.split("?")[1],a.params=n.parseQueryString(c)):a.params=(null==i?void 0:i.body)?n.parsePostData(i.body,{headers:i.headers}):null,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e(o,i)];case 2:return u=r.sent(),l=u.clone(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=u.status,[4,n.processFetchResponse(l)];case 3:return d=r.sent().response,a.response=d,a.msg=(null==d?void 0:d.msg)||(null==d?void 0:d.message)||u.statusText,n.handleRequestResult(a),[2,u];case 4:throw f=r.sent(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=0,a.error=f instanceof Error?f.message:"Fetch Unknown Error",n.handleRequestResult(a),f;case 5:return[2]}}))}))}},n.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var r=e.split("="),n=r[0],o=r[1];n&&(t[decodeURIComponent(n)]=decodeURIComponent(o||""))})),t},n.prototype.parsePostData=function(e,t){if(e instanceof FormData){var r={};return e.forEach((function(e,t){r[t]=e})),Mn(r)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var n="";if("_customHeaders"in t&&t._customHeaders&&(n=t._customHeaders["content-type"]||""),!n&&"headers"in t&&t.headers){var o=t.headers;n="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!n&&"getResponseHeader"in t&&(n=t.getResponseHeader("Content-Type")||""),!n&&"string"==typeof e&&Dn(e)&&(n="application/json;charset=utf-8"),(n=n.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return n.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},n.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var r=this.filterSensitiveData(e({},t));this.logger.logAPI(r)}},n.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},r=function(r){if(Object.prototype.hasOwnProperty.call(e,r)){var o=r.toLowerCase();n.sensitiveKeys.some((function(e){return o.includes(e)}))?t[r]="***[已脱敏]***":t[r]=n.filterSensitiveData(e[r])}},n=this;for(var o in e)r(o);return t},n}();function qn(e){var t,r;e instanceof Error?r=e:(r=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var n=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),r=t[1]||t[0],n=r?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(r):null;return n?{file:n[1]||"未知文件",line:parseInt(n[2],10)||"未知行",column:parseInt(n[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(r.stack);return{type:r.name||"Error",message:r.message||"无错误描述",timestamp:Date.now(),file:n.file,line:n.line,column:n.column,stack:r.stack||"无堆栈信息",extra:{reason:r.cause,response:null===(t=r.response)||void 0===t?void 0:t.data}}}function Hn(e,t){var r=qn(e);t.logError(r)}var $n=function(){function n(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},n.instance)console.error("BrowserLogger 类只能实例化一次!");else if(e&&"object"==typeof e)if(null==e?void 0:e.pid){this.config=e;var r=(new In).getResult();this.systemInfo={detector_browser:r.browser.name||"",detector_browser_version:r.browser.version||"",detector_device:r.device.model||"pc",detector_os:r.os.name||"",detector_os_version:r.os.version||"",http_user_agent:r.ua||""},n.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,r,n){o.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,r,n){s.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new zn(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),Hn(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),Hn(e.reason,i)})))}else console.error("pid 不能为空!");else console.error("初始化参数不能为空!")}return n.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},n.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(r){console.log("+++ paint 类型指标",r),r.getEntries().forEach((function(r){if("first-paint"===r.name){var n=r.startTime;e({success:!0,fpTime:Math.round(10*n)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},n.singleton=function(e){return n.instance||(n.instance=new n(e)),n.instance},n.prototype.sendPV=function(){this.pvId=Xt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},n.prototype.logAPI=function(t){var r=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.error?t.error:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},n.prototype.logError=function(t){if("AxiosError"!==t.type){var r=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},n.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},n.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},n.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Xt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var r=this.dataQueue.shift();this.realSendLog(e(e({},r),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},n.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},n.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},n.prototype.sendLog=function(t,r,n){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:t,custom_log_type:r,custom_log_data:n}))},n.instance=null,n}();var Vn=[],Gn=!1;function Jn(e){if(Vn.length>0){var t=Vn.shift(),r="string"==typeof t?t:t.url,n="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(r,{headers:n}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(r);return e.blob().then((function(e){var r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",document.body.appendChild(n),n.href=r,t&&(n.download=t),n.click(),n.remove(),URL.revokeObjectURL(r)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(r):"File download error: ".concat(r))})).finally((function(){setTimeout((function(){Jn(e)}),1e3)}))}else Gn=!1}function Wn(e){var t=e,r=e.indexOf("?");-1!==r&&(t=e.substring(0,r));var n=t.lastIndexOf(".");return t.substring(n+1)}var Kn,Xn="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(Kn||(Kn={}));var Qn,Zn=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,r,n){var o;if(e){var i=void 0;"function"==typeof r?i=r:n&&(i=n);var s="".concat(Xn,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof r?null:r},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,r){if(window.parent&&window.parent!==window){var n=void 0;"function"==typeof t?n=t:r&&(n=r);var o="";o=-1!==[Kn.HASH_CHANGE,Kn.PUSH_STATE,Kn.REPLACE_STATE].indexOf(e)?e:"".concat(Xn,"_").concat(e),n&&this.onMessage(e,n,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,r){var n=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[Kn.HASH_CHANGE,Kn.PUSH_STATE,Kn.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(Xn,"_").concat(e))&&(r&&window.removeEventListener("message",n),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(n),window.addEventListener("message",n)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var r;null===(r=e.onMessageCallback[t])||void 0===r||r.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();!function(e){e.zh="zh",e.en="en"}(Qn||(Qn={})),exports.BrowserLogger=$n,exports.IfmChannel=Zn,exports.appendAsset=function(e){return new Promise((function(t){if(e&&e.length>0){var r=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0),n=function(){r.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=r.shift(),t=Wn(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=n,void(o.onerror=n)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=n,void(i.onerror=n)}n()};o()}else t(null)}))},exports.downloadFile=function(e,t,r,n,o){var i;if(t)window.open(e);else{var s=o||"zh";Vn.push({url:e,headers:n,locale:s}),Gn||(Gn=!0,null===(i=null==r?void 0:r.loading)||void 0===i||i.call(r,"zh"===s?"下载中":"Downloading"),Jn(r))}},exports.formatNumber=function(e,t){for(var r=t||{},n=r.locale,o=void 0===n?"zh":n,i=r.precision,s=void 0===i?0:i,a=r.showByte,c=void 0!==a&&a,u=r.splitUnit,l=void 0!==u&&u,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?l?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?l?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):l?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var r=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!r)return t;var n=parseFloat(r[1]),o=(r[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:n,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return l?{num:"".concat(w),unit:b}:h;if(l){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")},exports.getAxiosInstanceWithAuth=function(e){var t=new Zn,r=It.create({});return r.interceptors.request.use((function(t){var r,n=window[null!==(r=null==e?void 0:e.authTokenNamespace)&&void 0!==r?r:"_subApp"],o=null==n?void 0:n.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==n?void 0:n.language)&&(t.headers.language=n.language),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var r;return 401===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var r,n,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(n=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===n?void 0:n.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),r},exports.getFileExt=Wn,exports.getIframeUrl=function(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e},exports.isOnline=function(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)},exports.isPublicNetwork=function(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)},exports.mainAppInit=function(){window.addEventListener("message",(function(e){var t=e.data||{},r=t.data,n=t.type;if(n===Kn.HASH_CHANGE||n===Kn.PUSH_STATE||n===Kn.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(r.href));console.log("+++ iframe url data",n,r),window.history.replaceState(null,"",o)}}))},exports.subAppInit=function(e,t){var r=new Zn;if(window.parent&&window.parent!==window){window.onhashchange=function(){r.postMessage(Kn.HASH_CHANGE,{href:window.location.href})};var n=window.history.pushState;window.history.pushState=function(e,t,o){n.call(window.history,e,t,o),o&&r.postMessage(Kn.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,n){o.call(window.history,e,t,n),n&&r.postMessage(Kn.REPLACE_STATE,{href:-1!==n.indexOf("//")?n:window.location.origin+n})},window.addEventListener("popstate",(function(e){r.postMessage(Kn.REPLACE_STATE,{href:window.location.href})})),r.postMessage("getUserInfo",(function(r){var n;window[null!==(n=null==t?void 0:t.namespace)&&void 0!==n?n:"_subApp"]=r,e&&e(r)}))}},exports.trimObj=function e(t){if(Array.isArray(t)){var r=[];return t.forEach((function(t){r.push(e(t))})),r}if("[object Object]"===Object.prototype.toString.call(t)){var n={};return Object.keys(t).forEach((function(r){n[r]=e(t[r])})),n}return"string"==typeof t?t.trim():t},exports.uploadToOSS=function(e,t){return new Promise((function(r,n){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&r(!0)}})}catch(e){console.log("+++ err",e),n(e)}}))};
|
|
8
|
+
*/A=N,function(e,t){A.exports?A.exports=t():e.numeral=t()}(O,(function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(c.zeroFormat&&r===c.zeroFormat)n=0;else if(c.nullFormat&&r===c.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new l(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,r,n){var o,i,a,c,l,u,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(u=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(w=" "),r=r.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),c=t.toString().split(".")[0],l=r.split(".")[1],d=r.indexOf(","),o=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),v=e._.toFixed(t,l[0].length+l[1].length,n,l[1].length)):v=e._.toFixed(t,l.length,n),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,n),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):u>=0?f=0===u?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,c=e.toString().split("."),l=t-(n||0);return o=2===c.length?Math.min(Math.max(c[1].length,l),t):l,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,c,l,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(r)}catch(t){l=e.localeData(e.locale())}return i=l.currency.symbol,a=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==a.thousand&&u[0]!==a.million&&u[0]!==a.billion&&u[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,l=t||c.defaultFormat;if(r=r||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(n in i)if(l.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,l,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,l=e._.includes(o,"ib")?n:r,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=l.suffixes.length;s++)if(a=Math.pow(l.base,s),c=Math.pow(l.base,s+1),null===t||0===t||t>=a&&t<c){u+=l.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+u},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e}));var C=R(N.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Z=U("URLSearchParams"),[Q,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),D(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ue=U("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:r,data:n})=>{r===oe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(e))||"object"===t&&H(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Q,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:ue,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Z,isTypedArray:se,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=ie(this)&&this||{},r={},n=(n,o)=>{const i=t&&ne(r,o)||o;G(r[i])&&G(n)?r[i]=e(r[i],n):G(n)?r[i]=e({},n):D(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(re(t,((t,n)=>{r&&H(t)?e[n]=F(t,r):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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&P(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!$(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:de,freezeMethods:e=>{de(e,((t,r)=>{if(H(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];H(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return D(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=D(e)?[]:{};return re(e,((e,t)=>{const i=r(e,n+1);!M(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=_e(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,r){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ve.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(r,"[]"))&&(a=ve.toArray(e)))return r=_e(r),a.forEach((function(e,n){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,r,i),c(e)),!1)}const u=[],d=Object.assign(Oe,{defaultVisitor:l,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ve.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),ve.forEach(r,(function(r,i){!0===(!(ve.isUndefined(r)||null===r)&&o.call(t,r,ve.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])})),u.pop()}}(e),t}function Ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ne(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ne.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,r){if(!t)return e;const n=r&&r.encode||Fe,o=r&&r.serialize;let i;if(i=o?o(t,r):ve.isURLSearchParams(t)?t.toString():new Ne(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ae)}:Ae;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={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"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(n)?n.length:i,a)return ve.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&ve.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ve.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const r={};return ve.forEachEntry(e,((e,n)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return n?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ee.from(e,Ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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"]);const Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,r,n,o){return ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),ve.isString(t)?ve.isString(n)?-1!==t.indexOf(n):ve.isRegExp(n)?n.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,r)=>o(e,r,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ve.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Je(e)){const r=ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ve.isFunction(t))return t.call(this,e,r);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const r=ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Je(e)){const o=ve.findKey(r,e);!o||t&&!Ke(0,r[o],o,t)||(delete r[o],n=!0)}}return ve.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ke(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ve.forEach(this,((n,o)=>{const i=ve.findKey(r,o);if(i)return t[i]=We(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Je(e);t[n]||(!function(e,t){const r=ve.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ve.isArray(e)?e.forEach(n):n(e),this}}function Ze(e,t){const r=this||$e,n=t||r,o=Xe.from(n.headers);let i=n.data;return ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Qe(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,r){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,r),this.name="CanceledError"}function et(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];o||(o=c),r[i]=a,n[i]=c;let u=s,d=0;for(;u!==i;)d+=r[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},rt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=ve.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ve.isString(n)&&s.push("path="+n),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const r={};function n(e,t,r){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:r},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,r){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ve.isUndefined(t))return n(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);ve.isUndefined(s)&&i!==a||(r[n]=s)})),r}var lt=e=>{const t=ct({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var ut="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=lt(e);let o=n.data;const i=Xe.from(n.headers).normalize();let s,a,c,l,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const n=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([c,u]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,l]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===qe.protocols.indexOf(b)?r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},pt=(e,t,r,n,o)=>{const i=async function*(e,t,r){for await(const n of e)yield*ft(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&>((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&>((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,r)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,r)})})));const St=async(e,t)=>{const r=ve.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):r};const Tt={http:null,xhr:ut,fetch:ht&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=lt(e);l=l?(l+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==r&&"head"!==r&&0!==(g=await St(u,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(ve.isFormData(n)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=rt(g,tt(nt(c)));n=pt(r.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===l||"response"===l);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&rt(t,tt(nt(a),!0))||[];o=new Response(pt(o.body,65536,r,(()=>{n&&n(),i&&b()}),wt),e)}l=l||"text";let s=await Et[ve.findKey(Et,l)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,r)=>{et(t,r,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!kt(r)&&(n=Tt[(t=String(r)).toLowerCase()],void 0===n))throw new Ee(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function At(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Ze.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Ze.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Qe(t)||(Rt(e),t&&t.response&&(t.response.data=Ze.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const Nt="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var jt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ee("option "+i+" must be "+r,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ct(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&jt.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=n&&(ve.isFunction(n)?t.paramsSerializer={serialize:n}:jt.assertOptions(n,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[At.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=s.length;let f=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=At.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(ct(r||{},{method:e,url:t,data:(r||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ye(e,n,o),t(r.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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const r=new Lt(t),n=F(Lt.prototype.request,r);return ve.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ct(t,r))},n}($e);It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Qe,It.VERSION=Nt,It.toFormData=Re,It.AxiosError=Ee,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Dt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Mt(e){if(!function(e){return"string"==typeof e&&Dt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const zt=[];for(let e=0;e<256;++e)zt.push((e+256).toString(16).slice(1));function qt(e,t=0){return(zt[e[t+0]]+zt[e[t+1]]+zt[e[t+2]]+zt[e[t+3]]+"-"+zt[e[t+4]]+zt[e[t+5]]+"-"+zt[e[t+6]]+zt[e[t+7]]+"-"+zt[e[t+8]]+zt[e[t+9]]+"-"+zt[e[t+10]]+zt[e[t+11]]+zt[e[t+12]]+zt[e[t+13]]+zt[e[t+14]]+zt[e[t+15]]).toLowerCase()}let Ht;const $t=new Uint8Array(16);function Vt(){if(!Ht){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ht=crypto.getRandomValues.bind(crypto)}return Ht($t)}const Gt={};function Jt(e,t,r){let n;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=Wt(e.random??e.rng?.()??Vt(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),i=Vt();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9]));e.msecs=t}(Gt,e,i),n=Wt(i,Gt.msecs,Gt.nsecs,o?void 0:Gt.clockseq,o?void 0:Gt.node,t,r)}return t??qt(n)}function Wt(e,t,r,n,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=n>>>8|128,i[s++]=255&n;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Kt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?Mt(e):e);return"string"==typeof e?qt(t):t}function Xt(e,t,r){e??={};let n=Jt({...e,_v6:!0},new Uint8Array(16));return n=Kt(n),qt(n)}var Zt,Qt="user-agent",Yt="",er={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},tr="browser",rr="cpu",nr="device",or="engine",ir="os",sr="result",ar="name",cr="type",lr="vendor",ur="version",dr="architecture",fr="major",pr="model",hr="console",mr="mobile",wr="tablet",br="smarttv",gr="wearable",yr="xr",vr="embedded",Er="inapp",xr="brands",Sr="formFactors",Tr="fullVersionList",_r="platform",kr="platformVersion",Or="bitness",Rr="sec-ch-ua",Ar=Rr+"-full-version-list",Nr=Rr+"-arch",Cr=Rr+"-"+Or,Fr=Rr+"-form-factors",jr=Rr+"-"+mr,Pr=Rr+"-"+pr,Lr=Rr+"-"+_r,Br=Lr+"-version",Ur=[xr,Tr,mr,pr,_r,kr,dr,Sr,Or],Ir="Amazon",Dr="Apple",Mr="ASUS",zr="BlackBerry",qr="Google",Hr="Huawei",$r="Lenovo",Vr="Honor",Gr="LG",Jr="Microsoft",Wr="Motorola",Kr="Nvidia",Xr="OnePlus",Zr="OPPO",Qr="Samsung",Yr="Sharp",en="Sony",tn="Xiaomi",rn="Zebra",nn="Chrome",on="Chromium",sn="Chromecast",an="Edge",cn="Firefox",ln="Opera",un="Facebook",dn="Sogou",fn="Mobile ",pn=" Browser",hn="Windows",mn=typeof window!==er.UNDEFINED&&window.navigator?window.navigator:void 0,wn=mn&&mn.userAgentData?mn.userAgentData:void 0,bn=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},gn=function(e,t){if(typeof e===er.OBJECT&&e.length>0){for(var r in e)if(xn(t)==xn(e[r]))return!0;return!1}return!!vn(e)&&xn(t)==xn(e)},yn=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&yn(e[r])},vn=function(e){return typeof e===er.STRING},En=function(e){if(e){for(var t=[],r=_n(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var o=On(r[n]).split(";v=");t[n]={brand:o[0],version:o[1]}}else t[n]=On(r[n]);return t}},xn=function(e){return vn(e)?e.toLowerCase():e},Sn=function(e){return vn(e)?_n(/[^\d\.]/g,e).split(".")[0]:void 0},Tn=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==er.OBJECT&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},_n=function(e,t){return vn(t)?t.replace(e,Yt):t},kn=function(e){return _n(/\\?\"/g,e)},On=function(e,t){return e=_n(/^\s\s*/,String(e)),typeof t===er.UNDEFINED?e:e.substring(0,t)},Rn=function(e,t){if(e&&t)for(var r,n,o,i,s,a,c=0;c<t.length&&!s;){var l=t[c],u=t[c+1];for(r=n=0;r<l.length&&!s&&l[r];)if(s=l[r++].exec(e))for(o=0;o<u.length;o++)a=s[++n],typeof(i=u[o])===er.OBJECT&&i.length>0?2===i.length?typeof i[1]==er.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==er.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},An=function(e,t){for(var r in t)if(typeof t[r]===er.OBJECT&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(gn(t[r][n],e))return"?"===r?void 0:r}else if(gn(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Nn={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Cn={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Fn={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},jn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ur,[ar,fn+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[ur,[ar,an+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ur,[ar,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ar,ur],[/opios[\/ ]+([\w\.]+)/i],[ur,[ar,ln+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[ur,[ar,ln+" GX"]],[/\bopr\/([\w\.]+)/i],[ur,[ar,ln]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ur,[ar,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[ur,[ar,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ar,ur],[/quark(?:pc)?\/([-\w\.]+)/i],[ur,[ar,"Quark"]],[/\bddg\/([\w\.]+)/i],[ur,[ar,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ur,[ar,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ur,[ar,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ur,[ar,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ur,[ar,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ur,[ar,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ur,[ar,"Smart "+$r+pn]],[/(avast|avg)\/([\w\.]+)/i],[[ar,/(.+)/,"$1 Secure"+pn],ur],[/\bfocus\/([\w\.]+)/i],[ur,[ar,cn+" Focus"]],[/\bopt\/([\w\.]+)/i],[ur,[ar,ln+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ur,[ar,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ur,[ar,"Dolphin"]],[/coast\/([\w\.]+)/i],[ur,[ar,ln+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ur,[ar,"MIUI"+pn]],[/fxios\/([\w\.-]+)/i],[ur,[ar,fn+cn]],[/\bqihoobrowser\/?([\w\.]*)/i],[ur,[ar,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ar,/(.+)/,"$1Browser"],ur],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ar,/(.+)/,"$1"+pn],ur],[/samsungbrowser\/([\w\.]+)/i],[ur,[ar,Qr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[ur,[ar,dn+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ar,dn+" Mobile"],ur],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ar,ur],[/(lbbrowser|rekonq)/i],[ar],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[ur,ar],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ar,un],ur,[cr,Er]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[ar,ur,[cr,Er]],[/\bgsa\/([\w\.]+) .*safari\//i],[ur,[ar,"GSA"],[cr,Er]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ur,[ar,"TikTok"],[cr,Er]],[/\[(linkedin)app\]/i],[ar,[cr,Er]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[ar,/(.+)/,"Zalo"],ur,[cr,Er]],[/(chromium)[\/ ]([-\w\.]+)/i],[ar,ur],[/headlesschrome(?:\/([\w\.]+)| )/i],[ur,[ar,nn+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[ur,[ar,an+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ar,nn+" WebView"],ur],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ur,[ar,"Android"+pn]],[/chrome\/([\w\.]+) mobile/i],[ur,[ar,fn+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ar,ur],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[ur,[ar,fn+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ar,fn+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[ur,ar],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ar,[ur,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ar,ur],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ar,fn+cn],ur],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ar,"Netscape"],ur],[/(wolvic|librewolf)\/([\w\.]+)/i],[ar,ur],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ur,[ar,cn+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ar,[ur,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ar,[ur,/[^\d\.]+./,Yt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[dr,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[dr,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[dr,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[dr,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[dr,"arm"]],[/ sun4\w[;\)]/i],[[dr,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[dr,/ower/,Yt,xn]],[/mc680.0/i],[[dr,"68k"]],[/winnt.+\[axp/i],[[dr,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[pr,[lr,Qr],[cr,wr]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[pr,[lr,Qr],[cr,mr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[pr,[lr,Dr],[cr,mr]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[pr,[lr,Dr],[cr,wr]],[/(macintosh);/i],[pr,[lr,Dr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[pr,[lr,Yr],[cr,mr]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[pr,[lr,Vr],[cr,wr]],[/honor([-\w ]+)[;\)]/i],[pr,[lr,Vr],[cr,mr]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[pr,[lr,Hr],[cr,wr]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[pr,[lr,Hr],[cr,mr]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[pr,/_/g," "],[lr,tn],[cr,wr]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[pr,/_/g," "],[lr,tn],[cr,mr]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[pr,[lr,Xr],[cr,mr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[pr,[lr,Zr],[cr,mr]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[pr,[lr,An,{OnePlus:["203","304","403","404","413","415"],"*":Zr}],[cr,wr]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[pr,[lr,"BLU"],[cr,mr]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[pr,[lr,"Vivo"],[cr,mr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[pr,[lr,"Realme"],[cr,mr]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[pr,[lr,$r],[cr,wr]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[pr,[lr,$r],[cr,mr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[pr,[lr,Wr],[cr,mr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[pr,[lr,Wr],[cr,wr]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[pr,[lr,Gr],[cr,wr]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[pr,[lr,Gr],[cr,mr]],[/(nokia) (t[12][01])/i],[lr,pr,[cr,wr]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[pr,/_/g," "],[cr,mr],[lr,"Nokia"]],[/(pixel (c|tablet))\b/i],[pr,[lr,qr],[cr,wr]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[pr,[lr,qr],[cr,mr]],[/(google) (pixelbook( go)?)/i],[lr,pr],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[pr,[lr,en],[cr,mr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[pr,"Xperia Tablet"],[lr,en],[cr,wr]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[pr,[lr,Ir],[cr,wr]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[pr,/(.+)/g,"Fire Phone $1"],[lr,Ir],[cr,mr]],[/(playbook);[-\w\),; ]+(rim)/i],[pr,lr,[cr,wr]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[pr,[lr,zr],[cr,mr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[pr,[lr,Mr],[cr,wr]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[pr,[lr,Mr],[cr,mr]],[/(nexus 9)/i],[pr,[lr,"HTC"],[cr,wr]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[lr,[pr,/_/g," "],[cr,mr]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[pr,[lr,"TCL"],[cr,wr]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[pr,[lr,"TCL"],[cr,mr]],[/(itel) ((\w+))/i],[[lr,xn],pr,[cr,An,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[pr,[lr,"Acer"],[cr,wr]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[pr,[lr,"Meizu"],[cr,mr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[pr,[lr,"Ulefone"],[cr,mr]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[pr,[lr,"Energizer"],[cr,mr]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[pr,[lr,"Cat"],[cr,mr]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[pr,[lr,"Smartfren"],[cr,mr]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[pr,[lr,"Nothing"],[cr,mr]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[pr,[lr,"Archos"],[cr,wr]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[pr,[lr,"Archos"],[cr,mr]],[/; (n159v)/i],[pr,[lr,"HMD"],[cr,mr]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[lr,pr,[cr,wr]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[lr,pr,[cr,mr]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[lr,pr,[cr,wr]],[/(surface duo)/i],[pr,[lr,Jr],[cr,wr]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[pr,[lr,"Fairphone"],[cr,mr]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[pr,[lr,Kr],[cr,wr]],[/(sprint) (\w+)/i],[lr,pr,[cr,mr]],[/(kin\.[onetw]{3})/i],[[pr,/\./g," "],[lr,Jr],[cr,mr]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[pr,[lr,rn],[cr,wr]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[pr,[lr,rn],[cr,mr]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[lr,[cr,br]],[/hbbtv.+maple;(\d+)/i],[[pr,/^/,"SmartTV"],[lr,Qr],[cr,br]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[lr,pr,[cr,br]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[lr,Gr],[cr,br]],[/(apple) ?tv/i],[lr,[pr,Dr+" TV"],[cr,br]],[/crkey.*devicetype\/chromecast/i],[[pr,sn+" Third Generation"],[lr,qr],[cr,br]],[/crkey.*devicetype\/([^/]*)/i],[[pr,/^/,"Chromecast "],[lr,qr],[cr,br]],[/fuchsia.*crkey/i],[[pr,sn+" Nest Hub"],[lr,qr],[cr,br]],[/crkey/i],[[pr,sn],[lr,qr],[cr,br]],[/(portaltv)/i],[pr,[lr,un],[cr,br]],[/droid.+aft(\w+)( bui|\))/i],[pr,[lr,Ir],[cr,br]],[/(shield \w+ tv)/i],[pr,[lr,Kr],[cr,br]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[pr,[lr,Yr],[cr,br]],[/(bravia[\w ]+)( bui|\))/i],[pr,[lr,en],[cr,br]],[/(mi(tv|box)-?\w+) bui/i],[pr,[lr,tn],[cr,br]],[/Hbbtv.*(technisat) (.*);/i],[lr,pr,[cr,br]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[lr,/.+\/(\w+)/,"$1",An,{LG:"lge"}],[pr,On],[cr,br]],[/(playstation \w+)/i],[pr,[lr,en],[cr,hr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[pr,[lr,Jr],[cr,hr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[lr,pr,[cr,hr]],[/droid.+; (shield)( bui|\))/i],[pr,[lr,Kr],[cr,hr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[pr,[lr,Qr],[cr,gr]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[lr,pr,[cr,gr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[pr,[lr,Zr],[cr,gr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[pr,[lr,Dr],[cr,gr]],[/(opwwe\d{3})/i],[pr,[lr,Xr],[cr,gr]],[/(moto 360)/i],[pr,[lr,Wr],[cr,gr]],[/(smartwatch 3)/i],[pr,[lr,en],[cr,gr]],[/(g watch r)/i],[pr,[lr,Gr],[cr,gr]],[/droid.+; (wt63?0{2,3})\)/i],[pr,[lr,rn],[cr,gr]],[/droid.+; (glass) \d/i],[pr,[lr,qr],[cr,yr]],[/(pico) ([\w ]+) os\d/i],[lr,pr,[cr,yr]],[/(quest( \d| pro)?s?).+vr/i],[pr,[lr,un],[cr,yr]],[/mobile vr; rv.+firefox/i],[[cr,yr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[lr,[cr,vr]],[/(aeobc)\b/i],[pr,[lr,Ir],[cr,vr]],[/(homepod).+mac os/i],[pr,[lr,Dr],[cr,vr]],[/windows iot/i],[[cr,vr]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[pr,[cr,br]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[cr,br]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[pr,[cr,An,{mobile:"Mobile",xr:"VR","*":wr}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[cr,wr]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[cr,mr]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[pr,[lr,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ur,[ar,an+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ar,ur],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ur,[ar,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ar,ur],[/ladybird\//i],[[ar,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ur,ar]],os:[[/(windows nt) (6\.[23]); arm/i],[[ar,/N/,"R"],[ur,An,Nn]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[ar,ur],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[ur,/(;|\))/g,"",An,Nn],[ar,hn]],[/(windows ce)\/?([\d\.]*)/i],[ar,ur],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[ur,/_/g,"."],[ar,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[ar,"macOS"],[ur,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[ur,[ar,sn+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[ur,[ar,sn+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[ur,[ar,sn+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[ur,[ar,sn+" Linux"]],[/crkey\/([\d\.]+)/i],[ur,[ar,sn]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[ur,ar],[/(ubuntu) ([\w\.]+) like android/i],[[ar,/(.+)/,"$1 Touch"],ur],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[ar,ur],[/\(bb(10);/i],[ur,[ar,zr]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[ur,[ar,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ur,[ar,cn+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[ur,[ar,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[ur,An,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[ar,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ur,[ar,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ar,"Chrome OS"],ur],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[ar,ur],[/(sunos) ?([\d\.]*)/i],[[ar,"Solaris"],ur],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ar,ur]]},Pn=(Zt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},Tn.call(Zt.init,[[tr,[ar,ur,fr,cr]],[rr,[dr]],[nr,[cr,pr,lr]],[or,[ar,ur]],[ir,[ar,ur]]]),Tn.call(Zt.isIgnore,[[tr,[ur,fr]],[or,[ur]],[ir,[ur]]]),Tn.call(Zt.isIgnoreRgx,[[tr,/ ?browser$/i],[ir,/ ?os$/i]]),Tn.call(Zt.toString,[[tr,[ar,ur]],[rr,[dr]],[nr,[lr,pr]],[or,[ar,ur]],[ir,[ar,ur]]]),Zt),Ln=function(e,t){var r=Pn.init[t],n=Pn.isIgnore[t]||0,o=Pn.isIgnoreRgx[t]||0,i=Pn.toString[t]||0;function s(){Tn.call(this,r)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return wn?wn.getHighEntropyValues(Ur).then((function(t){return e.setCH(new Bn(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=sr&&(s.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!gn(n,r)&&xn(o?_n(o,this[r]):this[r])==xn(o?_n(o,e):e)){if(t=!0,e!=er.UNDEFINED)break}else if(e==er.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=Yt;for(var t in i)typeof this[i[t]]!==er.UNDEFINED&&(e+=(e?" ":Yt)+this[i[t]]);return e||er.UNDEFINED}),wn||(s.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:s.prototype.is,toString:s.prototype.toString};var n=new r;return e(n),n}),new s};function Bn(e,t){if(e=e||{},Tn.call(this,Ur),t)Tn.call(this,[[xr,En(e[Rr])],[Tr,En(e[Ar])],[mr,/\?1/.test(e[jr])],[pr,kn(e[Pr])],[_r,kn(e[Lr])],[kr,kn(e[Br])],[dr,kn(e[Nr])],[Sr,En(e[Fr])],[Or,kn(e[Cr])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==er.UNDEFINED&&(this[r]=e[r])}function Un(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(mn&&mn.userAgent==this.ua)switch(this.itemType){case tr:mn.brave&&typeof mn.brave.isBrave==er.FUNCTION&&this.set(ar,"Brave");break;case nr:!this.get(cr)&&wn&&wn[mr]&&this.set(cr,mr),"Macintosh"==this.get(pr)&&mn&&typeof mn.standalone!==er.UNDEFINED&&mn.maxTouchPoints&&mn.maxTouchPoints>2&&this.set(pr,"iPad").set(cr,wr);break;case ir:!this.get(ar)&&wn&&wn[_r]&&this.set(ar,wn[_r]);break;case sr:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(tr,t(tr)).set(rr,t(rr)).set(nr,t(nr)).set(or,t(or)).set(ir,t(ir))}return this},this.parseUA=function(){switch(this.itemType!=sr&&Rn.call(this.data,this.ua,this.rgxMap),this.itemType){case tr:this.set(fr,Sn(this.get(ur)));break;case ir:if("iOS"==this.get(ar)&&"18.6"==this.get(ur)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(ur,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case tr:case or:var r,n=e[Tr]||e[xr];if(n)for(var o=0;o<n.length;o++){var i=n[o].brand||n[o],s=n[o].version;this.itemType==tr&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=on||r==an&&/WebView2/.test(i))&&(i=An(i,Fn),(r=this.get(ar))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(ar,i).set(ur,s).set(fr,Sn(s)),r=i),this.itemType==or&&i==on&&this.set(ur,s)}break;case rr:var a=e[dr];a&&(a&&"64"==e[Or]&&(a+="64"),Rn.call(this.data,a+";",t));break;case nr:if(e[mr]&&this.set(cr,mr),e[pr]&&(this.set(pr,e[pr]),!this.get(cr)||!this.get(lr))){var c={};Rn.call(c,"droid 9; "+e[pr]+")",t),!this.get(cr)&&c.type&&this.set(cr,c.type),!this.get(lr)&&c.vendor&&this.set(lr,c.vendor)}if(e[Sr]){var l;if("string"!=typeof e[Sr])for(var u=0;!l&&u<e[Sr].length;)l=An(e[Sr][u++],Cn);else l=An(e[Sr],Cn);this.set(cr,l)}break;case ir:var d=e[_r];if(d){var f=e[kr];d==hn&&(f=parseInt(Sn(f),10)>=13?"11":"10"),this.set(ar,d).set(ur,f)}this.get(ar)==hn&&"Xbox"==e[pr]&&this.set(ar,"Xbox").set(ur,void 0);break;case sr:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(tr,h(tr)).set(rr,h(rr)).set(nr,h(nr)).set(or,h(or)).set(ir,h(ir))}return this},Tn.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Ln(this,e)]]),this}function In(e,t,r){if(typeof e===er.OBJECT?(yn(e,!0)?(typeof t===er.OBJECT&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==er.STRING||yn(t,!0)||(r=t,t=void 0),r)if(typeof r.append===er.FUNCTION){var n={};r.forEach((function(e,t){n[String(t).toLowerCase()]=e})),r=n}else{var o={};for(var i in r)r.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=r[i]);r=o}if(!(this instanceof In))return new In(e,t,r).getResult();var s=typeof e===er.STRING?e:r&&r[Qt]?r[Qt]:mn&&mn.userAgent?mn.userAgent:Yt,a=new Bn(r,!0),c=t?function(e,t){var r={},n=t;if(!yn(t))for(var o in n={},t)for(var i in t[o])n[i]=t[o][i].concat(n[i]?n[i]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(jn,t):jn,l=function(e){return e==sr?function(){return new Un(e,s,c,a).set("ua",s).set(tr,this.getBrowser()).set(rr,this.getCPU()).set(nr,this.getDevice()).set(or,this.getEngine()).set(ir,this.getOS()).get()}:function(){return new Un(e,s,c[e],a).parseUA().get()}};return Tn.call(this,[["getBrowser",l(tr)],["getCPU",l(rr)],["getDevice",l(nr)],["getEngine",l(or)],["getOS",l(ir)],["getResult",l(sr)],["getUA",function(){return s}],["setUA",function(e){return vn(e)&&(s=On(e,500)),this}]]).setUA(s),this}function Dn(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function Mn(e,t){void 0===t&&(t="[不可展示]");var r=typeof e;if("string"===r||"number"===r||"boolean"===r)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==r)return t;if(Array.isArray(e))return e.map((function(e){return Mn(e,t)}));for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];n[a]=Mn(c,t)}return n}In.VERSION="2.0.6",In.BROWSER=bn([ar,ur,fr,cr]),In.CPU=bn([dr]),In.DEVICE=bn([pr,lr,cr,hr,mr,br,wr,gr,vr]),In.ENGINE=In.OS=bn([ar,ur]);var zn=function(){function n(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return n.prototype.processResponse=function(e,t){var r=t.includes("application/json"),n=t.includes("text/");if(!r&&!n)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=r?JSON.parse(o):o;return Dn(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},n.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,n,o,i,s;return r(this,(function(r){switch(r.label){case 0:n=0,o=e.headers.get("Content-Type")||"",r.label=1;case 1:return r.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=r.sent(),i=JSON.stringify(t),n=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=r.sent(),t={dataType:"[文本类型数据]",data:s},n=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return n>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((n/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return r.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},n.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var r=new e;r._customHeaders={};var n={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=r.open.bind(r);r.open=function(e,r){if(n.method=e.toUpperCase(),n.url=r.split("?")[0],"GET"===n.method&&r.includes("?")){var i=r.split("?")[1];n.params=t.parseQueryString(i)}o(e,r)};var i=r.setRequestHeader.bind(r);r.setRequestHeader=function(e,t){r._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=r.send.bind(r);return r.send=function(e){n.startTime=performance.now(),"GET"!==n.method&&e&&(n.params=t.parsePostData(e,r)),s(e)},r.addEventListener("load",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=r.status;var e=r.getResponseHeader("Content-Type")||"",o=t.processResponse(r.responseText||r.response,e).response;n.response=o,n.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message)||r.statusText,t.handleRequestResult(n)})),r.addEventListener("error",(function(e){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Network Error",t.handleRequestResult(n)})),r.addEventListener("abort",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=-1,n.error="Request Aborted",t.handleRequestResult(n)})),r.addEventListener("timeout",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Timeout",t.handleRequestResult(n)})),r}},n.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),n=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,l,u,d,f;return r(this,(function(r){switch(r.label){case 0:t=new Request(o,i),s=t.url,"GET"===(a={url:s.split("?")[0],method:t.method.toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?s.includes("?")&&(c=s.split("?")[1],a.params=n.parseQueryString(c)):a.params=(null==i?void 0:i.body)?n.parsePostData(i.body,{headers:i.headers}):null,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e(o,i)];case 2:return l=r.sent(),u=l.clone(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=l.status,[4,n.processFetchResponse(u)];case 3:return d=r.sent().response,a.response=d,a.msg=(null==d?void 0:d.msg)||(null==d?void 0:d.message)||l.statusText,n.handleRequestResult(a),[2,l];case 4:throw f=r.sent(),a.endTime=performance.now(),a.duration=Number((a.endTime-a.startTime).toFixed(1)),a.status=0,a.error=f instanceof Error?f.message:"Fetch Unknown Error",n.handleRequestResult(a),f;case 5:return[2]}}))}))}},n.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var r=e.split("="),n=r[0],o=r[1];n&&(t[decodeURIComponent(n)]=decodeURIComponent(o||""))})),t},n.prototype.parsePostData=function(e,t){if(e instanceof FormData){var r={};return e.forEach((function(e,t){r[t]=e})),Mn(r)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var n="";if("_customHeaders"in t&&t._customHeaders&&(n=t._customHeaders["content-type"]||""),!n&&"headers"in t&&t.headers){var o=t.headers;n="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!n&&"getResponseHeader"in t&&(n=t.getResponseHeader("Content-Type")||""),!n&&"string"==typeof e&&Dn(e)&&(n="application/json;charset=utf-8"),(n=n.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return n.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},n.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var r=this.filterSensitiveData(e({},t));this.logger.logAPI(r)}},n.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},r=function(r){if(Object.prototype.hasOwnProperty.call(e,r)){var o=r.toLowerCase();n.sensitiveKeys.some((function(e){return o.includes(e)}))?t[r]="***[已脱敏]***":t[r]=n.filterSensitiveData(e[r])}},n=this;for(var o in e)r(o);return t},n}();function qn(e){var t,r;e instanceof Error?r=e:(r=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var n=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),r=t[1]||t[0],n=r?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(r):null;return n?{file:n[1]||"未知文件",line:parseInt(n[2],10)||"未知行",column:parseInt(n[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(r.stack);return{type:r.name||"Error",message:r.message||"无错误描述",timestamp:Date.now(),file:n.file,line:n.line,column:n.column,stack:r.stack||"无堆栈信息",extra:{reason:r.cause,response:null===(t=r.response)||void 0===t?void 0:t.data}}}function Hn(e,t){var r=qn(e);t.logError(r)}var $n=function(){function n(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},n.instance)console.error("BrowserLogger 类只能实例化一次!");else{if(!e||"object"!=typeof e)throw console.error("初始化参数不能为空!"),new Error("[@zjlab-fe/util:BrowserLogger]初始化参数不能为空!");if(!(null==e?void 0:e.pid))throw console.error("pid 不能为空!"),new Error("[@zjlab-fe/util:BrowserLogger]pid 不能为空!");this.config=e;var r=(new In).getResult();this.systemInfo={detector_browser:r.browser.name||"",detector_browser_version:r.browser.version||"",detector_device:r.device.model||"pc",detector_os:r.os.name||"",detector_os_version:r.os.version||"",http_user_agent:r.ua||""},n.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,r,n){o.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,r,n){s.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new zn(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),Hn(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),Hn(e.reason,i)})))}}return n.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},n.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(r){console.log("+++ paint 类型指标",r),r.getEntries().forEach((function(r){if("first-paint"===r.name){var n=r.startTime;e({success:!0,fpTime:Math.round(10*n)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},n.singleton=function(e){return n.instance||(n.instance=new n(e)),n.instance},n.prototype.sendPV=function(){this.pvId=Xt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},n.prototype.logAPI=function(t){var r=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.error?t.error:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},n.prototype.logError=function(t){if("AxiosError"!==t.type){var r=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},n.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},n.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},n.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Xt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var r=this.dataQueue.shift();this.realSendLog(e(e({},r),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},n.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},n.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},n.prototype.sendLog=function(t,r,n){if(t&&r)if(3===t.split(".").length)if(/^[a-zA-Z]([a-zA-Z0-9_]{0,18}[a-zA-Z0-9])?$/.test(r)){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:"".concat(this.config.pid,".").concat(t),custom_log_type:r,custom_log_data:n}))}else console.error("type 格式错误,正确格式如下:字母开头+合法内容(数字或字母或下划线)+字母/数字结尾,总长度不超过20位");else console.error("spm 格式错误,正确的格式如下:spmB.spmC.spmD");else console.error("spm 和 type 不能为空")},n.instance=null,n}();var Vn=[],Gn=!1;function Jn(e){if(Vn.length>0){var t=Vn.shift(),r="string"==typeof t?t:t.url,n="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(r,{headers:n}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(r);return e.blob().then((function(e){var r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",document.body.appendChild(n),n.href=r,t&&(n.download=t),n.click(),n.remove(),URL.revokeObjectURL(r)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(r):"File download error: ".concat(r))})).finally((function(){setTimeout((function(){Jn(e)}),1e3)}))}else Gn=!1}function Wn(e){var t=e,r=e.indexOf("?");-1!==r&&(t=e.substring(0,r));var n=t.lastIndexOf(".");return t.substring(n+1)}var Kn,Xn="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(Kn||(Kn={}));var Zn,Qn=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,r,n){var o;if(e){var i=void 0;"function"==typeof r?i=r:n&&(i=n);var s="".concat(Xn,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof r?null:r},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,r){if(window.parent&&window.parent!==window){var n=void 0;"function"==typeof t?n=t:r&&(n=r);var o="";o=-1!==[Kn.HASH_CHANGE,Kn.PUSH_STATE,Kn.REPLACE_STATE].indexOf(e)?e:"".concat(Xn,"_").concat(e),n&&this.onMessage(e,n,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,r){var n=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[Kn.HASH_CHANGE,Kn.PUSH_STATE,Kn.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(Xn,"_").concat(e))&&(r&&window.removeEventListener("message",n),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(n),window.addEventListener("message",n)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var r;null===(r=e.onMessageCallback[t])||void 0===r||r.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();!function(e){e.zh="zh",e.en="en"}(Zn||(Zn={})),exports.BrowserLogger=$n,exports.IfmChannel=Qn,exports.appendAsset=function(e){return new Promise((function(t){if(e&&e.length>0){var r=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0),n=function(){r.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=r.shift(),t=Wn(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=n,void(o.onerror=n)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=n,void(i.onerror=n)}n()};o()}else t(null)}))},exports.downloadFile=function(e,t,r,n,o){var i;if(t)window.open(e);else{var s=o||"zh";Vn.push({url:e,headers:n,locale:s}),Gn||(Gn=!0,null===(i=null==r?void 0:r.loading)||void 0===i||i.call(r,"zh"===s?"下载中":"Downloading"),Jn(r))}},exports.formatNumber=function(e,t){for(var r=t||{},n=r.locale,o=void 0===n?"zh":n,i=r.precision,s=void 0===i?0:i,a=r.showByte,c=void 0!==a&&a,l=r.splitUnit,u=void 0!==l&&l,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?u?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?u?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):u?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var r=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!r)return t;var n=parseFloat(r[1]),o=(r[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:n,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return u?{num:"".concat(w),unit:b}:h;if(u){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")},exports.getAxiosInstanceWithAuth=function(e){var t=new Qn,r=It.create({});return r.interceptors.request.use((function(t){var r,n=window[null!==(r=null==e?void 0:e.authTokenNamespace)&&void 0!==r?r:"_subApp"],o=null==n?void 0:n.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==n?void 0:n.language)&&(t.headers.language=n.language),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var r;return 401===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var r,n,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(n=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===n?void 0:n.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),r},exports.getFileExt=Wn,exports.getIframeUrl=function(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e},exports.isOnline=function(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)},exports.isPublicNetwork=function(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)},exports.mainAppInit=function(){window.addEventListener("message",(function(e){var t=e.data||{},r=t.data,n=t.type;if(n===Kn.HASH_CHANGE||n===Kn.PUSH_STATE||n===Kn.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(r.href));console.log("+++ iframe url data",n,r),window.history.replaceState(null,"",o)}}))},exports.subAppInit=function(e,t){var r=new Qn;if(window.parent&&window.parent!==window){window.onhashchange=function(){r.postMessage(Kn.HASH_CHANGE,{href:window.location.href})};var n=window.history.pushState;window.history.pushState=function(e,t,o){n.call(window.history,e,t,o),o&&r.postMessage(Kn.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,n){o.call(window.history,e,t,n),n&&r.postMessage(Kn.REPLACE_STATE,{href:-1!==n.indexOf("//")?n:window.location.origin+n})},window.addEventListener("popstate",(function(e){r.postMessage(Kn.REPLACE_STATE,{href:window.location.href})})),r.postMessage("getUserInfo",(function(r){var n;window[null!==(n=null==t?void 0:t.namespace)&&void 0!==n?n:"_subApp"]=r,e&&e(r)}))}},exports.trimObj=function e(t){if(Array.isArray(t)){var r=[];return t.forEach((function(t){r.push(e(t))})),r}if("[object Object]"===Object.prototype.toString.call(t)){var n={};return Object.keys(t).forEach((function(r){n[r]=e(t[r])})),n}return"string"==typeof t?t.trim():t},exports.uploadToOSS=function(e,t){return new Promise((function(r,n){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&r(!0)}})}catch(e){console.log("+++ err",e),n(e)}}))};
|