Files
crawler-plugin/new_web_source/assets/java-modules-B9jblDzU.js
2026-06-08 11:49:46 +08:00

7 lines
62 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as Je,N as rn,a as C,c as O,e as _,b as Le,Q as sn,z as De,F as ee,r as oe,t as F,f as Ot,w as it,p as on,l as an,g as Fe,E as ct,_ as Ke,h as We,P as cn,i as un,n as qe,D as Z,u as ln,o as dn}from"./pywebview-B8lwamDf.js";const fn="brand:api-secret",Me="common";function pn(){return typeof window>"u"?"0":window.localStorage.getItem("uid")||"0"}function Re(e){return`${fn}:${pn()}:${e}`}function ut(e,t){const n=e.getItem(Re(t));if(!n)return null;try{const r=JSON.parse(n);if(typeof r.value!="string")return null;const s=hn(r.retention),o=typeof r.expiresAt=="number"?r.expiresAt:null,a=typeof r.updatedAt=="number"?r.updatedAt:Date.now();return{value:r.value,retention:s,expiresAt:o,updatedAt:a}}catch{return null}}function hn(e){switch(e){case"1d":case"7d":case"30d":case"forever":case"session":return e;default:return"session"}}function mn(e,t){switch(e){case"1d":return t+1440*60*1e3;case"7d":return t+10080*60*1e3;case"30d":return t+720*60*60*1e3;case"forever":return null;default:return null}}function yn(e){return e.expiresAt!=null&&e.expiresAt<=Date.now()}function ae(e,t){e.removeItem(Re(t))}function we(e){if(typeof window>"u")return null;const t=ut(window.sessionStorage,e);if(t)return t;const n=ut(window.localStorage,e);return n?yn(n)?(ae(window.localStorage,e),null):n:null}function wn(e){if(typeof window>"u")return;const t=e.retention==="session"?window.sessionStorage:window.localStorage;for(const n of["appearance-patent","similar-asin"])we(n)||t.setItem(Re(n),JSON.stringify(e));ae(window.sessionStorage,Me),ae(window.localStorage,Me)}function vt(e){const t=we(e);if(t)return t;const n=we(Me);return n?(wn(n),we(e)):null}function Ys(e){return vt(e)?.value||""}function gn(e){const t=vt(e);return t?{value:t.value,retention:t.retention,expiresAt:t.expiresAt,updatedAt:t.updatedAt,exists:!0}:{value:"",retention:"session",expiresAt:null,updatedAt:null,exists:!1}}function bn(e,t,n){if(typeof window>"u")return;const r=t.trim();if(Dt(e),!r)return;const s=Date.now(),o={value:r,retention:n,expiresAt:mn(n,s),updatedAt:s};(n==="session"?window.sessionStorage:window.localStorage).setItem(Re(e),JSON.stringify(o))}function Dt(e){typeof window>"u"||(ae(window.sessionStorage,e),ae(window.localStorage,e))}const _n={class:"secret-settings-entry"},Sn={class:"secret-settings-body"},Rn={class:"secret-card-head"},kn={class:"secret-card-title"},$n={class:"secret-card-desc"},En=["onClick"],An=["onUpdate:modelValue","placeholder"],Tn={class:"retention-block"},Pn={class:"retention-options"},Cn=["onUpdate:modelValue","value"],On={class:"secret-meta"},vn={key:0},Dn={key:1},xn={class:"dialog-footer"},Nn=Je({__name:"BrandApiSecretSettingsButton",setup(e){const t=Fe(!1),n=[{value:"session",label:"本次打开有效"},{value:"1d",label:"1 天"},{value:"7d",label:"7 天"},{value:"30d",label:"30 天"},{value:"forever",label:"长期保留"}],r=[{key:"appearance-patent",title:"外观专利密钥",description:"仅用于外观专利检测。",placeholder:"请输入 Coze 接口密钥"},{key:"appearance-patent-token",title:"专利汇令牌",description:"仅用于外观专利检测,非必填。",placeholder:"请输入专利汇令牌,可留空"},{key:"similar-asin",title:"货源查询密钥",description:"仅用于货源查询。",placeholder:"请输入 Coze 接口密钥"}],s=Fe({"appearance-patent":a(),"appearance-patent-token":a(),"similar-asin":a()});function o(){const l={...s.value};for(const m of r){const S=gn(m.key);l[m.key]={value:S.value,retention:S.retention,expiresAt:S.expiresAt,exists:S.exists}}s.value=l}function a(){return{value:"",retention:"session",expiresAt:null,exists:!1}}function c(l,m){if(l==="session")return"关闭软件后自动清空";if(l==="forever")return"长期保留,直到手动清空";if(!m)return"已保存";const S=new Date(m),R=S.getFullYear(),p=String(S.getMonth()+1).padStart(2,"0"),g=String(S.getDate()).padStart(2,"0"),w=String(S.getHours()).padStart(2,"0"),A=String(S.getMinutes()).padStart(2,"0");return`有效期至 ${R}-${p}-${g} ${w}:${A}`}function y(l){Dt(l),o(),ct.success("已清空密钥")}function h(){for(const l of r){const m=s.value[l.key];bn(l.key,m.value,m.retention)}o(),t.value=!1,ct.success("密钥设置已保存")}return rn(t,l=>{l&&o()}),o(),(l,m)=>{const S=sn;return C(),O("div",_n,[_("button",{type:"button",class:"secret-settings-trigger",onClick:m[0]||(m[0]=R=>t.value=!0)},[...m[3]||(m[3]=[_("span",{class:"secret-settings-icon","aria-hidden":"true"},"◎",-1),_("span",null,"密钥设置",-1)])]),Le(S,{modelValue:t.value,"onUpdate:modelValue":m[2]||(m[2]=R=>t.value=R),width:"620px",class:"secret-settings-dialog","append-to-body":!0},{header:De(()=>[...m[4]||(m[4]=[_("div",{class:"dialog-header"},[_("div",{class:"dialog-title"},"密钥设置"),_("div",{class:"dialog-subtitle"},"按当前登录用户保存在本机,外观专利和货源查询分别使用独立的 Coze 接口密钥。")],-1)])]),footer:De(()=>[_("div",xn,[_("button",{type:"button",class:"footer-btn footer-btn-ghost",onClick:m[1]||(m[1]=R=>t.value=!1)},"取消"),_("button",{type:"button",class:"footer-btn footer-btn-primary",onClick:h},"保存")])]),default:De(()=>[_("div",Sn,[(C(),O(ee,null,oe(r,R=>_("section",{key:R.key,class:"secret-card"},[_("div",Rn,[_("div",null,[_("div",kn,F(R.title),1),_("div",$n,F(R.description),1)]),s.value[R.key].exists?(C(),O("button",{key:0,type:"button",class:"link-danger",onClick:p=>y(R.key)}," 清空 ",8,En)):Ot("",!0)]),it(_("input",{"onUpdate:modelValue":p=>s.value[R.key].value=p,class:"secret-input",type:"password",placeholder:R.placeholder,autocomplete:"off",spellcheck:"false"},null,8,An),[[on,s.value[R.key].value]]),_("div",Tn,[m[5]||(m[5]=_("div",{class:"retention-label"},"保留时长",-1)),_("div",Pn,[(C(),O(ee,null,oe(n,p=>_("label",{key:p.value,class:"retention-option"},[it(_("input",{"onUpdate:modelValue":g=>s.value[R.key].retention=g,type:"radio",value:p.value},null,8,Cn),[[an,s.value[R.key].retention]]),_("span",null,F(p.label),1)])),64))])]),_("div",On,[s.value[R.key].exists?(C(),O("span",vn,F(c(s.value[R.key].retention,s.value[R.key].expiresAt)),1)):(C(),O("span",Dn,"当前未保存"))])])),64))])]),_:1},8,["modelValue"])])}}}),Un=Ke(Nn,[["__scopeId","data-v-c68789b4"]]);function xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:In}=Object.prototype,{getPrototypeOf:Qe}=Object,{iterator:ke,toStringTag:Nt}=Symbol,$e=(e=>t=>{const n=In.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),H=e=>(e=e.toLowerCase(),t=>$e(t)===e),Ee=e=>t=>typeof t===e,{isArray:ne}=Array,te=Ee("undefined");function ce(e){return e!==null&&!te(e)&&e.constructor!==null&&!te(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ut=H("ArrayBuffer");function Bn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ut(e.buffer),t}const Ln=Ee("string"),N=Ee("function"),It=Ee("number"),ue=e=>e!==null&&typeof e=="object",Fn=e=>e===!0||e===!1,ge=e=>{if($e(e)!=="object")return!1;const t=Qe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Nt in e)&&!(ke in e)},qn=e=>{if(!ue(e)||ce(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Mn=H("Date"),Hn=H("File"),jn=e=>!!(e&&typeof e.uri<"u"),zn=e=>e&&typeof e.getParts<"u",Vn=H("Blob"),Jn=H("FileList"),Kn=e=>ue(e)&&N(e.pipe);function Wn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const lt=Wn(),dt=typeof lt.FormData<"u"?lt.FormData:void 0,Qn=e=>{let t;return e&&(dt&&e instanceof dt||N(e.append)&&((t=$e(e))==="formdata"||t==="object"&&N(e.toString)&&e.toString()==="[object FormData]"))},Gn=H("URLSearchParams"),[Xn,Yn,Zn,er]=["ReadableStream","Request","Response","Headers"].map(H),tr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function le(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ne(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ce(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(r=0;r<a;r++)c=o[r],t.call(null,e[c],c,e)}}function Bt(e,t){if(ce(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const W=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lt=e=>!te(e)&&e!==W;function He(){const{caseless:e,skipUndefined:t}=Lt(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=e&&Bt(n,o)||o;ge(n[a])&&ge(s)?n[a]=He(n[a],s):ge(s)?n[a]=He({},s):ne(s)?n[a]=s.slice():(!t||!te(s))&&(n[a]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&le(arguments[s],r);return n}const nr=(e,t,n,{allOwnKeys:r}={})=>(le(t,(s,o)=>{n&&N(s)?Object.defineProperty(e,o,{value:xt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),rr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},or=(e,t,n,r)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Qe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ar=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ir=e=>{if(!e)return null;if(ne(e))return e;let t=e.length;if(!It(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qe(Uint8Array)),ur=(e,t)=>{const r=(e&&e[ke]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},lr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dr=H("HTMLFormElement"),fr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ft=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pr=H("RegExp"),Ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};le(n,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(r[o]=a||s)}),Object.defineProperties(e,r)},hr=e=>{Ft(e,(t,n)=>{if(N(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(N(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mr=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ne(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gr(e){return!!(e&&N(e.append)&&e[Nt]==="FormData"&&e[ke])}const br=e=>{const t=new Array(10),n=(r,s)=>{if(ue(r)){if(t.indexOf(r)>=0)return;if(ce(r))return r;if(!("toJSON"in r)){t[s]=r;const o=ne(r)?[]:{};return le(r,(a,c)=>{const y=n(a,s+1);!te(y)&&(o[c]=y)}),t[s]=void 0,o}}return r};return n(e,0)},_r=H("AsyncFunction"),Sr=e=>e&&(ue(e)||N(e))&&N(e.then)&&N(e.catch),qt=((e,t)=>e?setImmediate:t?((n,r)=>(W.addEventListener("message",({source:s,data:o})=>{s===W&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),W.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",N(W.postMessage)),Rr=typeof queueMicrotask<"u"?queueMicrotask.bind(W):typeof process<"u"&&process.nextTick||qt,kr=e=>e!=null&&N(e[ke]),i={isArray:ne,isArrayBuffer:Ut,isBuffer:ce,isFormData:Qn,isArrayBufferView:Bn,isString:Ln,isNumber:It,isBoolean:Fn,isObject:ue,isPlainObject:ge,isEmptyObject:qn,isReadableStream:Xn,isRequest:Yn,isResponse:Zn,isHeaders:er,isUndefined:te,isDate:Mn,isFile:Hn,isReactNativeBlob:jn,isReactNative:zn,isBlob:Vn,isRegExp:pr,isFunction:N,isStream:Kn,isURLSearchParams:Gn,isTypedArray:cr,isFileList:Jn,forEach:le,merge:He,extend:nr,trim:tr,stripBOM:rr,inherits:sr,toFlatObject:or,kindOf:$e,kindOfTest:H,endsWith:ar,toArray:ir,forEachEntry:ur,matchAll:lr,isHTMLForm:dr,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:Ft,freezeMethods:hr,toObjectSet:mr,toCamelCase:fr,noop:yr,toFiniteNumber:wr,findKey:Bt,global:W,isContextDefined:Lt,isSpecCompliantForm:gr,toJSONObject:br,isAsyncFn:_r,isThenable:Sr,setImmediate:qt,asap:Rr,isIterable:kr};let b=class Mt extends Error{static from(t,n,r,s,o,a){const c=new Mt(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){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:i.toJSONObject(this.config),code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";const $r=null;function je(e){return i.isPlainObject(e)||i.isArray(e)}function Ht(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Er(e){return i.isArray(e)&&!e.some(je)}const Ar=i.toFlatObject(i,{},null,function(t){return/^is[A-Z]/.test(t)});function Ae(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!i.isUndefined(w[g])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,a=n.indexes,y=(n.Blob||typeof Blob<"u"&&Blob)&&i.isSpecCompliantForm(t);if(!i.isFunction(s))throw new TypeError("visitor must be a function");function h(p){if(p===null)return"";if(i.isDate(p))return p.toISOString();if(i.isBoolean(p))return p.toString();if(!y&&i.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(p)||i.isTypedArray(p)?y&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,g,w){let A=p;if(i.isReactNative(t)&&i.isReactNativeBlob(p))return t.append(xe(w,g,o),h(p)),!1;if(p&&!w&&typeof p=="object"){if(i.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(i.isArray(p)&&Er(p)||(i.isFileList(p)||i.endsWith(g,"[]"))&&(A=i.toArray(p)))return g=Ht(g),A.forEach(function(P,D){!(i.isUndefined(P)||P===null)&&t.append(a===!0?xe([g],D,o):a===null?g:g+"[]",h(P))}),!1}return je(p)?!0:(t.append(xe(w,g,o),h(p)),!1)}const m=[],S=Object.assign(Ar,{defaultVisitor:l,convertValue:h,isVisitable:je});function R(p,g){if(!i.isUndefined(p)){if(m.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));m.push(p),i.forEach(p,function(A,I){(!(i.isUndefined(A)||A===null)&&s.call(t,A,i.isString(I)?I.trim():I,g,S))===!0&&R(A,g?g.concat(I):[I])}),m.pop()}}if(!i.isObject(e))throw new TypeError("data must be an object");return R(e),t}function pt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ge(e,t){this._pairs=[],e&&Ae(e,this,t)}const jt=Ge.prototype;jt.append=function(t,n){this._pairs.push([t,n])};jt.toString=function(t){const n=t?function(r){return t.call(this,r,pt)}:pt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Tr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(e,t,n){if(!t)return e;const r=n&&n.encode||Tr,s=i.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let a;if(o?a=o(t,s):a=i.isURLSearchParams(t)?t.toString():new Ge(t,s).toString(r),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ht{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){i.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Pr=typeof URLSearchParams<"u"?URLSearchParams:Ge,Cr=typeof FormData<"u"?FormData:null,Or=typeof Blob<"u"?Blob:null,vr={isBrowser:!0,classes:{URLSearchParams:Pr,FormData:Cr,Blob:Or},protocols:["http","https","file","blob","url","data"]},Ye=typeof window<"u"&&typeof document<"u",ze=typeof navigator=="object"&&navigator||void 0,Dr=Ye&&(!ze||["ReactNative","NativeScript","NS"].indexOf(ze.product)<0),xr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Ye&&window.location.href||"http://localhost",Ur=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ye,hasStandardBrowserEnv:Dr,hasStandardBrowserWebWorkerEnv:xr,navigator:ze,origin:Nr},Symbol.toStringTag,{value:"Module"})),v={...Ur,...vr};function Ir(e,t){return Ae(e,new v.classes.URLSearchParams,{visitor:function(n,r,s,o){return v.isNode&&i.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Br(e){return i.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Vt(e){function t(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),y=o>=n.length;return a=!a&&i.isArray(s)?s.length:a,y?(i.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!c):((!s[a]||!i.isObject(s[a]))&&(s[a]=[]),t(n,r,s[a],o)&&i.isArray(s[a])&&(s[a]=Lr(s[a])),!c)}if(i.isFormData(e)&&i.isFunction(e.entries)){const n={};return i.forEachEntry(e,(r,s)=>{t(Br(r),s,n,0)}),n}return null}function Fr(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const de={transitional:Xe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=i.isObject(t);if(o&&i.isHTMLForm(t)&&(t=new FormData(t)),i.isFormData(t))return s?JSON.stringify(Vt(t)):t;if(i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)||i.isReadableStream(t))return t;if(i.isArrayBufferView(t))return t.buffer;if(i.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ir(t,this.formSerializer).toString();if((c=i.isFileList(t))||r.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ae(c?{"files[]":t}:t,y&&new y,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Fr(t)):t}],transformResponse:[function(t){const n=this.transitional||de.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(i.isResponse(t)||i.isReadableStream(t))return t;if(t&&i.isString(t)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(a)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.forEach(["delete","get","head","post","put","patch"],e=>{de.headers[e]={}});const qr=i.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"]),Mr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&qr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mt=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function be(e){return e===!1||e==null?e:i.isArray(e)?e.map(be):String(e)}function Hr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const jr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ne(e,t,n,r,s){if(i.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!i.isString(t)){if(i.isString(r))return t.indexOf(r)!==-1;if(i.isRegExp(r))return r.test(t)}}function zr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vr(e,t){const n=i.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,a){return this[r].call(this,t,s,o,a)},configurable:!0})})}let U=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,y,h){const l=se(y);if(!l)throw new Error("header name must be a non-empty string");const m=i.findKey(s,l);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||y]=be(c))}const a=(c,y)=>i.forEach(c,(h,l)=>o(h,l,y));if(i.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(i.isString(t)&&(t=t.trim())&&!jr(t))a(Mr(t),n);else if(i.isObject(t)&&i.isIterable(t)){let c={},y,h;for(const l of t){if(!i.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[h=l[0]]=(y=c[h])?i.isArray(y)?[...y,l[1]]:[y,l[1]]:l[1]}a(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=se(t),t){const r=i.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Hr(s);if(i.isFunction(n))return n.call(this,s,r);if(i.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=se(t),t){const r=i.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ne(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(a){if(a=se(a),a){const c=i.findKey(r,a);c&&(!n||Ne(r,r[c],c,n))&&(delete r[c],s=!0)}}return i.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Ne(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return i.forEach(this,(s,o)=>{const a=i.findKey(r,o);if(a){n[a]=be(s),delete n[o];return}const c=t?zr(o):String(o).trim();c!==o&&delete n[o],n[c]=be(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&i.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[mt]=this[mt]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=se(a);r[c]||(Vr(s,a),r[c]=!0)}return i.isArray(t)?t.forEach(o):o(t),this}};U.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i.reduceDescriptors(U.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});i.freezeMethods(U);function Ue(e,t){const n=this||de,r=t||n,s=U.from(r.headers);let o=r.data;return i.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Jt(e){return!!(e&&e.__CANCEL__)}let fe=class extends b{constructor(t,n,r){super(t??"canceled",b.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Kt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,a;return t=t!==void 0?t:1e3,function(y){const h=Date.now(),l=r[o];a||(a=h),n[s]=y,r[s]=h;let m=o,S=0;for(;m!==s;)S+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-a<t)return;const R=l&&h-l;return R?Math.round(S*1e3/R):void 0}}function Wr(e,t){let n=0,r=1e3/t,s,o;const a=(h,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const l=Date.now(),m=l-n;m>=r?a(h,l):(s=h,o||(o=setTimeout(()=>{o=null,a(s)},r-m)))},()=>s&&a(s)]}const Se=(e,t,n=3)=>{let r=0;const s=Kr(50,250);return Wr(o=>{const a=o.loaded,c=o.lengthComputable?o.total:void 0,y=a-r,h=s(y),l=a<=c;r=a;const m={loaded:a,total:c,progress:c?a/c:void 0,bytes:y,rate:h||void 0,estimated:h&&c&&l?(c-a)/h:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},yt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wt=e=>(...t)=>i.asap(()=>e(...t)),Qr=v.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,v.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,Gr=v.hasStandardBrowserEnv?{write(e,t,n,r,s,o,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];i.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),i.isString(r)&&c.push(`path=${r}`),i.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),i.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Xr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Wt(e,t,n){let r=!Xr(t);return e&&(r||n==!1)?Yr(e,t):t}const gt=e=>e instanceof U?{...e}:e;function G(e,t){t=t||{};const n={};function r(h,l,m,S){return i.isPlainObject(h)&&i.isPlainObject(l)?i.merge.call({caseless:S},h,l):i.isPlainObject(l)?i.merge({},l):i.isArray(l)?l.slice():l}function s(h,l,m,S){if(i.isUndefined(l)){if(!i.isUndefined(h))return r(void 0,h,m,S)}else return r(h,l,m,S)}function o(h,l){if(!i.isUndefined(l))return r(void 0,l)}function a(h,l){if(i.isUndefined(l)){if(!i.isUndefined(h))return r(void 0,h)}else return r(void 0,l)}function c(h,l,m){if(m in t)return r(h,l);if(m in e)return r(void 0,h)}const y={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(h,l,m)=>s(gt(h),gt(l),m,!0)};return i.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const m=i.hasOwnProp(y,l)?y[l]:s,S=m(e[l],t[l],l);i.isUndefined(S)&&m!==c||(n[l]=S)}),n}const Qt=e=>{const t=G({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=U.from(a),t.url=zt(Wt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),i.isFormData(n)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(i.isFunction(n.getHeaders)){const y=n.getHeaders(),h=["content-type","content-length"];Object.entries(y).forEach(([l,m])=>{h.includes(l.toLowerCase())&&a.set(l,m)})}}if(v.hasStandardBrowserEnv&&(r&&i.isFunction(r)&&(r=r(t)),r||r!==!1&&Qr(t.url))){const y=s&&o&&Gr.read(o);y&&a.set(s,y)}return t},Zr=typeof XMLHttpRequest<"u",es=Zr&&function(e){return new Promise(function(n,r){const s=Qt(e);let o=s.data;const a=U.from(s.headers).normalize();let{responseType:c,onUploadProgress:y,onDownloadProgress:h}=s,l,m,S,R,p;function g(){R&&R(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function A(){if(!w)return;const P=U.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:P,config:e,request:w};Kt(function(B){n(B),g()},function(B){r(B),g()},M),w=null}"onloadend"in w?w.onloadend=A:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(A)},w.onabort=function(){w&&(r(new b("Request aborted",b.ECONNABORTED,e,w)),w=null)},w.onerror=function(D){const M=D&&D.message?D.message:"Network Error",J=new b(M,b.ERR_NETWORK,e,w);J.event=D||null,r(J),w=null},w.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||Xe;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new b(D,M.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,w)),w=null},o===void 0&&a.setContentType(null),"setRequestHeader"in w&&i.forEach(a.toJSON(),function(D,M){w.setRequestHeader(M,D)}),i.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),c&&c!=="json"&&(w.responseType=s.responseType),h&&([S,p]=Se(h,!0),w.addEventListener("progress",S)),y&&w.upload&&([m,R]=Se(y),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=P=>{w&&(r(!P||P.type?new fe(null,e,w):P),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const I=Jr(s.url);if(I&&v.protocols.indexOf(I)===-1){r(new b("Unsupported protocol "+I+":",b.ERR_BAD_REQUEST,e));return}w.send(o||null)})},ts=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(h){if(!s){s=!0,c();const l=h instanceof Error?h:this.reason;r.abort(l instanceof b?l:new fe(l instanceof Error?l.message:l))}};let a=t&&setTimeout(()=>{a=null,o(new b(`timeout of ${t}ms exceeded`,b.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:y}=r;return y.unsubscribe=()=>i.asap(c),y}},ns=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},rs=async function*(e,t){for await(const n of ss(e))yield*ns(n,t)},ss=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},bt=(e,t,n,r)=>{const s=rs(e,t);let o=0,a,c=y=>{a||(a=!0,r&&r(y))};return new ReadableStream({async pull(y){try{const{done:h,value:l}=await s.next();if(h){c(),y.close();return}let m=l.byteLength;if(n){let S=o+=m;n(S)}y.enqueue(new Uint8Array(l))}catch(h){throw c(h),h}},cancel(y){return c(y),s.return()}},{highWaterMark:2})},_t=64*1024,{isFunction:ye}=i,os=(({Request:e,Response:t})=>({Request:e,Response:t}))(i.global),{ReadableStream:St,TextEncoder:Rt}=i.global,kt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},as=e=>{e=i.merge.call({skipUndefined:!0},os,e);const{fetch:t,Request:n,Response:r}=e,s=t?ye(t):typeof fetch=="function",o=ye(n),a=ye(r);if(!s)return!1;const c=s&&ye(St),y=s&&(typeof Rt=="function"?(p=>g=>p.encode(g))(new Rt):async p=>new Uint8Array(await new n(p).arrayBuffer())),h=o&&c&&kt(()=>{let p=!1;const g=new n(v.origin,{body:new St,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),l=a&&c&&kt(()=>i.isReadableStream(new r("").body)),m={stream:l&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!m[p]&&(m[p]=(g,w)=>{let A=g&&g[p];if(A)return A.call(g);throw new b(`Response type '${p}' is not supported`,b.ERR_NOT_SUPPORT,w)})});const S=async p=>{if(p==null)return 0;if(i.isBlob(p))return p.size;if(i.isSpecCompliantForm(p))return(await new n(v.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(i.isArrayBufferView(p)||i.isArrayBuffer(p))return p.byteLength;if(i.isURLSearchParams(p)&&(p=p+""),i.isString(p))return(await y(p)).byteLength},R=async(p,g)=>{const w=i.toFiniteNumber(p.getContentLength());return w??S(g)};return async p=>{let{url:g,method:w,data:A,signal:I,cancelToken:P,timeout:D,onDownloadProgress:M,onUploadProgress:J,responseType:B,headers:Oe,withCredentials:pe="same-origin",fetchOptions:tt}=Qt(p),nt=t||fetch;B=B?(B+"").toLowerCase():"text";let he=ts([I,P&&P.toAbortSignal()],D),re=null;const K=he&&he.unsubscribe&&(()=>{he.unsubscribe()});let rt;try{if(J&&h&&w!=="get"&&w!=="head"&&(rt=await R(Oe,A))!==0){let V=new n(g,{method:"POST",body:A,duplex:"half"}),X;if(i.isFormData(A)&&(X=V.headers.get("content-type"))&&Oe.setContentType(X),V.body){const[ve,me]=yt(rt,Se(wt(J)));A=bt(V.body,_t,ve,me)}}i.isString(pe)||(pe=pe?"include":"omit");const x=o&&"credentials"in n.prototype,st={...tt,signal:he,method:w.toUpperCase(),headers:Oe.normalize().toJSON(),body:A,duplex:"half",credentials:x?pe:void 0};re=o&&new n(g,st);let z=await(o?nt(re,tt):nt(g,st));const ot=l&&(B==="stream"||B==="response");if(l&&(M||ot&&K)){const V={};["status","statusText","headers"].forEach(at=>{V[at]=z[at]});const X=i.toFiniteNumber(z.headers.get("content-length")),[ve,me]=M&&yt(X,Se(wt(M),!0))||[];z=new r(bt(z.body,_t,ve,()=>{me&&me(),K&&K()}),V)}B=B||"text";let nn=await m[i.findKey(m,B)||"text"](z,p);return!ot&&K&&K(),await new Promise((V,X)=>{Kt(V,X,{data:nn,headers:U.from(z.headers),status:z.status,statusText:z.statusText,config:p,request:re})})}catch(x){throw K&&K(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,p,re,x&&x.response),{cause:x.cause||x}):b.from(x,x&&x.code,p,re,x&&x.response)}}},is=new Map,Gt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let a=o.length,c=a,y,h,l=is;for(;c--;)y=o[c],h=l.get(y),h===void 0&&l.set(y,h=c?new Map:as(t)),l=h;return h};Gt();const Ze={http:$r,xhr:es,fetch:{get:Gt}};i.forEach(Ze,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $t=e=>`- ${e}`,cs=e=>i.isFunction(e)||e===null||e===!1;function us(e,t){e=i.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let a=0;a<n;a++){r=e[a];let c;if(s=r,!cs(r)&&(s=Ze[(c=String(r)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${c}'`);if(s&&(i.isFunction(s)||(s=s.get(t))))break;o[c||"#"+a]=s}if(!s){const a=Object.entries(o).map(([y,h])=>`adapter ${y} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
`+a.map($t).join(`
`):" "+$t(a[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Xt={getAdapter:us,adapters:Ze};function Ie(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fe(null,e)}function Et(e){return Ie(e),e.headers=U.from(e.headers),e.data=Ue.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt.getAdapter(e.adapter||de.adapter,e)(e).then(function(r){return Ie(e),r.data=Ue.call(e,e.transformResponse,r),r.headers=U.from(r.headers),r},function(r){return Jt(r)||(Ie(e),r&&r.response&&(r.response.data=Ue.call(e,e.transformResponse,r.response),r.response.headers=U.from(r.response.headers))),Promise.reject(r)})}const Yt="1.13.6",Te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const At={};Te.transitional=function(t,n,r){function s(o,a){return"[Axios v"+Yt+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,c)=>{if(t===!1)throw new b(s(a," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!At[a]&&(At[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,c):!0}};Te.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ls(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=t[o];if(a){const c=e[o],y=c===void 0||a(c,o,e);if(y!==!0)throw new b("option "+o+" must be "+y,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const _e={assertOptions:ls,validators:Te},L=_e.validators;let Q=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ht,response:new ht}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=G(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&_e.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean),legacyInterceptorReqResOrdering:L.transitional(L.boolean)},!1),s!=null&&(i.isFunction(s)?n.paramsSerializer={serialize:s}:_e.assertOptions(s,{encode:L.function,serialize:L.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_e.assertOptions(n,{baseUrl:L.spelling("baseURL"),withXsrfToken:L.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&i.merge(o.common,o[n.method]);o&&i.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=U.concat(a,o);const c=[];let y=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;y=y&&g.synchronous;const w=n.transitional||Xe;w&&w.legacyInterceptorReqResOrdering?c.unshift(g.fulfilled,g.rejected):c.push(g.fulfilled,g.rejected)});const h=[];this.interceptors.response.forEach(function(g){h.push(g.fulfilled,g.rejected)});let l,m=0,S;if(!y){const p=[Et.bind(this),void 0];for(p.unshift(...c),p.push(...h),S=p.length,l=Promise.resolve(n);m<S;)l=l.then(p[m++],p[m++]);return l}S=c.length;let R=n;for(;m<S;){const p=c[m++],g=c[m++];try{R=p(R)}catch(w){g.call(this,w);break}}try{l=Et.call(this,R)}catch(p){return Promise.reject(p)}for(m=0,S=h.length;m<S;)l=l.then(h[m++],h[m++]);return l}getUri(t){t=G(this.defaults,t);const n=Wt(t.baseURL,t.url,t.allowAbsoluteUrls);return zt(n,t.params,t.paramsSerializer)}};i.forEach(["delete","get","head","options"],function(t){Q.prototype[t]=function(n,r){return this.request(G(r||{},{method:t,url:n,data:(r||{}).data}))}});i.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,c){return this.request(G(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Q.prototype[t]=n(),Q.prototype[t+"Form"]=n(!0)});let ds=class Zt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{r.subscribe(c),o=c}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,c){r.reason||(r.reason=new fe(o,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zt(function(s){t=s}),cancel:t}}};function fs(e){return function(n){return e.apply(null,n)}}function ps(e){return i.isObject(e)&&e.isAxiosError===!0}const Ve={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ve).forEach(([e,t])=>{Ve[t]=e});function en(e){const t=new Q(e),n=xt(Q.prototype.request,t);return i.extend(n,Q.prototype,t,{allOwnKeys:!0}),i.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return en(G(e,s))},n}const T=en(de);T.Axios=Q;T.CanceledError=fe;T.CancelToken=ds;T.isCancel=Jt;T.VERSION=Yt;T.toFormData=Ae;T.AxiosError=b;T.Cancel=T.CanceledError;T.all=function(t){return Promise.all(t)};T.spread=fs;T.isAxiosError=ps;T.mergeConfig=G;T.AxiosHeaders=U;T.formToJSON=e=>Vt(i.isHTMLForm(e)?new FormData(e):e);T.getAdapter=Xt.getAdapter;T.HttpStatusCode=Ve;T.default=T;const{Axios:no,AxiosError:hs,CanceledError:ro,isCancel:so,CancelToken:oo,VERSION:ao,all:io,Cancel:co,isAxiosError:uo,spread:lo,toFormData:fo,AxiosHeaders:po,HttpStatusCode:ho,formToJSON:mo,getAdapter:yo,mergeConfig:wo}=T;function ms(e){if(e instanceof hs){const t=e.response?.data;if(t&&typeof t=="object"){if("error"in t&&t.error)return String(t.error);if("message"in t&&t.message)return String(t.message)}return typeof t=="string"&&t.trim()?t:e.message||"请求失败"}return e instanceof Error?e.message:"请求失败"}function ys(){const e=T.create({withCredentials:!0,timeout:3e4,headers:{"X-Requested-With":"XMLHttpRequest"}});return e.interceptors.request.use(t=>t),e.interceptors.response.use(t=>t,t=>Promise.reject(new Error(ms(t)))),e}const ws=ys();async function Pe(e){return(await ws.request(e)).data}function k(e,t){return Pe({url:e,method:"GET",...t})}function $(e,t,n){return Pe({url:e,method:"POST",data:t,...n})}function Ce(e,t,n){return Pe({url:e,method:"PUT",data:t,...n})}function E(e,t){return Pe({url:e,method:"DELETE",...t})}const gs=k,go=$;async function d(e){const t=await e;if(!t.success)throw new Error(t.message||"请求失败");return t.data}function bs(){const e=typeof window>"u"?"":window.localStorage.getItem("uid")||"",t=Number(e);if(!Number.isFinite(t)||t<=0)throw new Error("未获取到用户ID");return t}function _s(e){return`app_column_permissions:${String(e)}`}async function Ss(){const e=bs(),t=_s(e);try{const r=JSON.parse(window.localStorage.getItem(t)||"null");if(Array.isArray(r))return r.map(s=>String(s.column_key||"").trim().toLowerCase()).filter(Boolean)}catch{}const n=await gs(`/api/admin/user/${encodeURIComponent(String(e))}/column-permissions`,{params:{menu_type:"app"}});if(!n.success)throw new Error(n.error||"获取菜单权限失败");try{window.localStorage.setItem(t,JSON.stringify(n.items||[]))}catch{}return(n.items||[]).map(r=>String(r.column_key||"").trim().toLowerCase()).filter(Boolean)}const ie=cn({});let Tt=!1;function Rs(e){return Number.isFinite(e)?Math.max(0,Math.min(100,Math.round(e))):0}function ks(){return Date.now()}function Y(e){const t=ie[e.id],n=ks();ie[e.id]={id:e.id,filename:e.filename||t?.filename||"下载文件",status:e.status||t?.status||"running",path:e.path??t?.path,downloaded:Number(e.downloaded??t?.downloaded??0),total:Number(e.total??t?.total??0),percent:Rs(Number(e.percent??t?.percent??0)),error:e.error??t?.error,createdAt:t?.createdAt||n,updatedAt:n}}function $s(e){const t=e.detail;t?.id&&Y({id:t.id,status:t.status,path:t.path,downloaded:t.downloaded,total:t.total,percent:t.percent,error:t.error})}function tn(){Tt||typeof window>"u"||(Tt=!0,window.addEventListener("pywebview-download-progress",$s))}function Es(){return tn(),{items:We(()=>Object.values(ie).filter(t=>t.status!=="cancelled").sort((t,n)=>n.createdAt-t.createdAt)),clearDownloadProgress:et}}function et(e){delete ie[e]}function As(e){const t=e.replace(/[^a-zA-Z0-9._-]+/g,"-").slice(0,60)||"download";return`download:${Date.now()}:${Math.random().toString(16).slice(2)}:${t}`}async function bo(e,t,n=As(t)){tn();const r=un();if(!r?.save_file_from_url_new)return Y({id:n,filename:t,status:"failed",downloaded:0,total:0,percent:0,error:"当前客户端未提供下载能力"}),{success:!1,error:"当前客户端未提供下载能力"};Y({id:n,filename:t,status:"selecting",downloaded:0,total:0,percent:0});const s=r.save_file_from_url_with_progress?await r.save_file_from_url_with_progress(e,t,n):await r.save_file_from_url_new(e,t);if(s.success){const o=ie[n];Y({id:n,filename:t,status:"success",path:s.path,downloaded:o?.downloaded||o?.total||0,total:o?.total||o?.downloaded||0,percent:100})}else s.error==="用户取消"?(Y({id:n,filename:t,status:"cancelled",downloaded:0,total:0,percent:0}),et(n)):Y({id:n,filename:t,status:"failed",downloaded:0,total:0,percent:0,error:s.error||"下载失败"});return s}function Pt(e){const t=Number(e||0);return!Number.isFinite(t)||t<=0?"未知大小":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:t<1024*1024*1024?`${(t/1024/1024).toFixed(1)} MB`:`${(t/1024/1024/1024).toFixed(2)} GB`}function Ts(e){return e.status==="selecting"?"等待选择保存位置":e.status==="success"?"下载完成":e.status==="failed"?e.error||"下载失败":e.total>0?"正在下载,请等待完成后再打开":"正在下载,正在获取文件大小"}const Ps={key:0,class:"download-progress-panel"},Cs={class:"download-progress-head"},Os=["title"],vs=["onClick"],Ds={class:"download-progress-meta"},xs={class:"download-progress-track"},Ns={class:"download-progress-size"},Us=Je({__name:"DownloadProgressPanel",setup(e){const{items:t}=Es(),n=We(()=>t.value.slice(0,5));return(r,s)=>n.value.length?(C(),O("div",Ps,[s[0]||(s[0]=_("div",{class:"download-progress-title"},"下载进度",-1)),(C(!0),O(ee,null,oe(n.value,o=>(C(),O("div",{key:o.id,class:qe(["download-progress-item",o.status])},[_("div",Cs,[_("span",{class:"download-progress-name",title:o.filename},F(o.filename),9,Os),_("button",{type:"button",class:"download-progress-close",onClick:a=>Z(et)(o.id)},"×",8,vs)]),_("div",Ds,[_("span",null,F(Z(Ts)(o)),1),_("span",null,F(o.percent)+"%",1)]),_("div",xs,[_("div",{class:"download-progress-bar",style:ln({width:`${o.percent}%`})},null,4)]),_("div",Ns,F(Z(Pt)(o.downloaded))+" / "+F(Z(Pt)(o.total)),1)],2))),128))])):Ot("",!0)}}),Is=Ke(Us,[["__scopeId","data-v-5a9fa6a2"]]),Bs={class:"top-bar"},Ls={class:"nav-sections","aria-label":"顶部功能导航"},Fs={class:"nav-section-title"},qs={class:"nav-section-items"},Ms=["href"],Hs={class:"top-right"},js=Je({__name:"BrandTopBar",props:{active:{}},setup(e){const n=e.active,r=Fe(null),s=[{columnKey:"brand_front_tools",label:"前端工具",items:[{key:"collect-data",label:"采集数据",href:"/new_web_source/collect-data.html"},{key:"variant",label:"变体分析"},{key:"brand",label:"品牌检测",href:"/brand"},{key:"appearance-patent",label:"外观专利检测",href:"/new_web_source/appearance-patent.html"},{key:"similar-asin",label:"货源查询",href:"/new_web_source/similar-asin.html"},{key:"dedupe",label:"数据去重",href:"/new_web_source/dedupe.html"},{key:"split",label:"数据拆分",href:"/new_web_source/split.html"},{key:"convert",label:"格式转换",href:"/new_web_source/convert.html"}]},{columnKey:"brand_operation_tools",label:"运营工具",items:[{key:"delete-brand",label:"删除ASIN",href:"/new_web_source/delete-brand.html"},{key:"product-risk",label:"商品风险解决",href:"/new_web_source/product-risk.html"},{key:"shop-match",label:"定时匹配",href:"/new_web_source/shop-match.html"},{key:"pricing",label:"跟价",href:"/new_web_source/price-track.html"},{key:"patrol-delete",label:"巡店删除",href:"/new_web_source/patrol-delete.html"},{key:"query-asin",label:"查询ASIN",href:"/new_web_source/query-asin.html"},{key:"withdraw",label:"取款"},{key:"shop-status",label:"店铺状态查询"}]},{columnKey:"brand_logistics_tools",label:"后勤工具",items:[{key:"purchase",label:"采购"},{key:"erp",label:"ERP"}]}],o=We(()=>{if(r.value===null)return s;const a=new Set(r.value);return s.filter(c=>a.has(c.columnKey))});return dn(async()=>{try{r.value=await Ss()}catch{r.value=null}}),(a,c)=>(C(),O("header",Bs,[c[0]||(c[0]=_("div",{class:"logo-area"},[_("span",{class:"app-name"},"数富AI-亚马逊"),_("a",{href:"/home",class:"btn-home"},"返回首页")],-1)),_("nav",Ls,[(C(!0),O(ee,null,oe(o.value,y=>(C(),O("section",{key:y.columnKey,class:"nav-section"},[_("div",Fs,F(y.label),1),_("div",qs,[(C(!0),O(ee,null,oe(y.items,h=>(C(),O(ee,{key:h.key},[h.href?(C(),O("a",{key:0,href:h.href,class:qe(["nav-item",{active:Z(n)===h.key}])},F(h.label),11,Ms)):(C(),O("span",{key:1,class:qe(["nav-item disabled",{active:Z(n)===h.key}])},F(h.label),3))],64))),128))])]))),128))]),_("div",Hs,[Le(Un)]),Le(Is)]))}}),_o=Ke(js,[["__scopeId","data-v-74abee09"]]),zs=1e4,Vs=6e4,Js=5e3,Ks=3e4;function So(){return typeof document<"u"&&document.visibilityState!=="visible"?Vs:zs}function Ws(){return typeof document<"u"&&document.hidden?Ks:Js}const u="/newApi/api",Ct=new Map,Be=new Map;function f(){const e=typeof window>"u"?"":window.localStorage.getItem("uid")||"",t=Number(e);if(!Number.isFinite(t)||t<=0)throw new Error("未获取到用户ID");return t}function Qs(e){return Array.from(new Set((e||[]).map(t=>Number(t)).filter(t=>Number.isFinite(t)&&t>0))).sort((t,n)=>t-n)}function Gs(e,t){return`${e}::${t.join(",")}`}async function j(e,t,n={}){const r=Qs(t);if(!r.length)return{items:[],missingTaskIds:[]};const s=Gs(e,r),o=Date.now(),a=Ct.get(s);if(!n.force&&a&&a.expiresAt>o)return a.data;const c=Be.get(s);if(!n.force&&c)return await c;const y=d($(e,{taskIds:r})).then(h=>(Ct.set(s,{data:h,expiresAt:Date.now()+Ws()}),h)).finally(()=>{Be.delete(s)});return Be.set(s,y),y}function Ro(e){return d(k(`${u}/files/excel-info`,{params:{fileKey:e}}))}function ko(e){return d($(`${u}/dedupe/run`,{...e,user_id:f()}))}function $o(){return d(k(`${u}/dedupe/history`,{params:{user_id:f()}}))}function Eo(e){return d(E(`${u}/dedupe/history/${e}`,{params:{user_id:f()}}))}function Ao(e){return q(`/dedupe/results/${e}/download`)}function To(e){return d($(`${u}/split/run`,{...e,user_id:f()}))}function Po(){return d(k(`${u}/split/history`,{params:{user_id:f()}}))}function Co(e){return d(E(`${u}/split/history/${e}`,{params:{user_id:f()}}))}function Oo(e){return q(`/split/results/${e}/download`)}function vo(){return d(k(`${u}/convert/templates`))}function Do(e){return d($(`${u}/convert/run`,{...e,user_id:f()}))}function xo(){return d(k(`${u}/convert/history`,{params:{user_id:f()}}))}function No(e){return d(E(`${u}/convert/history/${e}`,{params:{user_id:f()}}))}function Uo(e){return q(`/convert/results/${e}/download`)}function Io(e){return d($(`${u}/delete-brand/run`,{...e,user_id:f()},{timeout:18e4}))}function Bo(){return d(k(`${u}/delete-brand/history`,{params:{user_id:f()}}))}function Lo(e){return d(E(`${u}/delete-brand/history/${e}`,{params:{user_id:f()}}))}function Fo(e){return q(`/delete-brand/tasks/${e}/download`)}function qo(e){return q(`/delete-brand/results/${e}/download`)}function Mo(){return d(k(`${u}/product-risk-resolve/candidates`,{params:{user_id:f()}}))}function Ho(e){return d($(`${u}/product-risk-resolve/candidates`,{user_id:f(),shop_name:e}))}function jo(e){return d(E(`${u}/product-risk-resolve/candidates/${e}`,{params:{user_id:f()}}))}function zo(){return d(k(`${u}/product-risk-resolve/country-preference`,{params:{user_id:f()}}))}function Vo(e){return d(Ce(`${u}/product-risk-resolve/country-preference`,{user_id:f(),country_codes:e}))}function Jo(e){return d($(`${u}/product-risk-resolve/match-shops`,{user_id:f(),shop_names:e}))}function Ko(){return d(k(`${u}/product-risk-resolve/dashboard`,{params:{user_id:f()}}))}function Wo(){return d(k(`${u}/product-risk-resolve/history`,{params:{user_id:f()}}))}function Qo(e){return d(E(`${u}/product-risk-resolve/history/${e}`,{params:{user_id:f()}}))}function Go(e){return d($(`${u}/product-risk-resolve/tasks`,{user_id:f(),items:e}))}function Xo(e){return d(E(`${u}/product-risk-resolve/tasks/${e}`,{params:{user_id:f()}}))}function Yo(e){return d(E(`${u}/product-risk-resolve/pending-shop-result`,{params:{user_id:f(),shop_name:e}}))}function Zo(e){return q(`/product-risk-resolve/results/${e}/download`)}function ea(){return d(k(`${u}/shop-match/candidates`,{params:{user_id:f()}}))}function ta(e){return d($(`${u}/shop-match/candidates`,{user_id:f(),shop_name:e}))}function na(e){return d(E(`${u}/shop-match/candidates/${e}`,{params:{user_id:f()}}))}function ra(){return d(k(`${u}/shop-match/country-preference`,{params:{user_id:f()}}))}function sa(e){return d(Ce(`${u}/shop-match/country-preference`,{user_id:f(),country_codes:e}))}function oa(e){return d($(`${u}/shop-match/match-shops`,{user_id:f(),shop_names:e}))}function aa(){return d(k(`${u}/shop-match/dashboard`,{params:{user_id:f()}}))}function ia(){return d(k(`${u}/shop-match/history`,{params:{user_id:f()}}))}function ca(e){return d(E(`${u}/shop-match/history/${e}`,{params:{user_id:f()}}))}function ua(e,t,n){return d($(`${u}/shop-match/tasks`,{user_id:f(),items:e,country_codes:t,schedule_times:n}))}function la(e){return d(E(`${u}/shop-match/tasks/${e}`,{params:{user_id:f()}}))}function da(e,t){return d($(`${u}/shop-match/tasks/${e}/activate?user_id=${encodeURIComponent(String(f()))}&stage_index=${encodeURIComponent(String(t))}`,void 0))}function fa(e){return q(`/shop-match/results/${e}/download`)}function pa(){return d(k(`${u}/patrol-delete/candidates`,{params:{user_id:f()}}))}function ha(e){return d($(`${u}/patrol-delete/candidates`,{user_id:f(),shop_name:e}))}function ma(e){return d(E(`${u}/patrol-delete/candidates/${e}`,{params:{user_id:f()}}))}function ya(){return d(k(`${u}/patrol-delete/conditions`,{params:{user_id:f()}}))}function wa(e){return d($(`${u}/patrol-delete/conditions`,{user_id:f(),condition_text:e}))}function ga(e){return d(E(`${u}/patrol-delete/conditions/${e}`,{params:{user_id:f()}}))}function ba(e){return d($(`${u}/patrol-delete/match-shops`,{user_id:f(),shop_names:e}))}function _a(){return d(k(`${u}/patrol-delete/dashboard`,{params:{user_id:f()}}))}function Sa(){return d(k(`${u}/patrol-delete/history`,{params:{user_id:f()}}))}function Ra(e){return j(`${u}/patrol-delete/tasks/progress/batch`,e)}function ka(e){return d($(`${u}/patrol-delete/tasks`,{user_id:f(),items:e}))}function $a(e,t){return d($(`${u}/patrol-delete/tasks/${e}/result`,t))}function Ea(e){return q(`/patrol-delete/results/${e}/download`)}function Aa(e){return d(E(`${u}/patrol-delete/tasks/${e}`,{params:{user_id:f()}}))}function Ta(e){return d(E(`${u}/patrol-delete/history/${e}`,{params:{user_id:f()}}))}function Pa(){return d(k(`${u}/query-asin/candidates`,{params:{user_id:f()}}))}function Ca(e){return d($(`${u}/query-asin/candidates`,{user_id:f(),shop_name:e}))}function Oa(e){return d(E(`${u}/query-asin/candidates/${e}`,{params:{user_id:f()}}))}function va(e){return d($(`${u}/query-asin/match-shops`,{user_id:f(),shop_names:e}))}function Da(){return d(k(`${u}/query-asin/dashboard`,{params:{user_id:f()}}))}function xa(){return d(k(`${u}/query-asin/history`,{params:{user_id:f()}}))}function Na(e){return j(`${u}/query-asin/tasks/progress/batch`,e)}function Ua(e){return d($(`${u}/query-asin/tasks`,{user_id:f(),items:e}))}function Ia(e,t){return d($(`${u}/query-asin/tasks/${e}/result`,t))}function Ba(e){return q(`/query-asin/results/${e}/download`)}function La(e){return d(E(`${u}/query-asin/tasks/${e}`,{params:{user_id:f()}}))}function Fa(e){return d(E(`${u}/query-asin/history/${e}`,{params:{user_id:f()}}))}function qa(e,t,n,r){return d($(`${u}/appearance-patent/parse`,{user_id:f(),files:e,ai_prompt:t,api_key:n,patent_token:r}))}function Ma(e){return d(k(`${u}/appearance-patent/tasks/${e}/queue-payload`,{params:{user_id:f()}}))}function Ha(){return d(k(`${u}/appearance-patent/dashboard`,{params:{user_id:f()}}))}function ja(){return d(k(`${u}/appearance-patent/history`,{params:{user_id:f(),limit:50}}))}function za(e,t={}){return j(`${u}/appearance-patent/tasks/progress/batch`,e,t)}function Va(e){return d($(`${u}/appearance-patent/tasks/${e}/activate?user_id=${encodeURIComponent(String(f()))}`,void 0))}function Ja(e){return d(E(`${u}/appearance-patent/tasks/${e}`,{params:{user_id:f()}}))}function Ka(e){return d(E(`${u}/appearance-patent/history/${e}`,{params:{user_id:f()}}))}function Wa(e){return q(`/appearance-patent/results/${e}/download`)}function Qa(e,t,n=!1){return d($(`${u}/similar-asin/parse`,{user_id:f(),files:e,api_key:t,img_switch:n}))}function Ga(){return d(k(`${u}/similar-asin/dashboard`,{params:{user_id:f()}}))}function Xa(){return d(k(`${u}/similar-asin/history`,{params:{user_id:f(),limit:50}}))}function Ya(e,t={}){return j(`${u}/similar-asin/tasks/progress/batch`,e,t)}function Za(e){return d($(`${u}/similar-asin/tasks/${e}/activate?user_id=${encodeURIComponent(String(f()))}`,void 0))}function ei(e){return d(E(`${u}/similar-asin/tasks/${e}`,{params:{user_id:f()}}))}function ti(e){return d(E(`${u}/similar-asin/history/${e}`,{params:{user_id:f()}}))}function ni(e){return q(`/similar-asin/results/${e}/download`)}function ri(){return d(k(`${u}/price-track/candidates?user_id=${encodeURIComponent(String(f()))}`))}function si(e){return d($(`${u}/price-track/candidates`,{userId:f(),shopName:e}))}function oi(e){return d(E(`${u}/price-track/candidates/${e}?user_id=${encodeURIComponent(String(f()))}`))}function ai(){return d(k(`${u}/price-track/country-preference?user_id=${encodeURIComponent(String(f()))}`))}function ii(e){return d(Ce(`${u}/price-track/country-preference`,{userId:f(),countryCodes:e}))}function ci(e,t){return d($(`${u}/price-track/match-shops`,{userId:f(),shopNames:e,asinFiles:t?.asinFiles||[],countryCodes:t?.countryCodes||[]}))}function ui(e){return j(`${u}/shop-match/tasks/progress/batch`,e)}function li(e){return j(`${u}/product-risk-resolve/tasks/progress/batch`,e)}function di(e){return j(`${u}/delete-brand/tasks/progress/batch`,e)}function fi(){return d(k(`${u}/price-track/dashboard?user_id=${encodeURIComponent(String(f()))}`))}function pi(){return d(k(`${u}/price-track/history?user_id=${encodeURIComponent(String(f()))}`))}function hi(e){return d(E(`${u}/price-track/history/${e}?user_id=${encodeURIComponent(String(f()))}`))}function mi(e){return d($(`${u}/price-track/tasks`,{...e,userId:f()}))}function yi(e){return d(E(`${u}/price-track/tasks/${e}?user_id=${encodeURIComponent(String(f()))}`))}function wi(e){return d($(`${u}/price-track/loop-runs`,{...e,userId:f()}))}function gi(e){return d(k(`${u}/price-track/loop-runs/${e}?user_id=${encodeURIComponent(String(f()))}`))}function bi(e){return d($(`${u}/price-track/loop-runs/${e}/dispatch-next?user_id=${encodeURIComponent(String(f()))}`,void 0))}function _i(e,t){return d($(`${u}/price-track/loop-runs/${e}/child-finished?user_id=${encodeURIComponent(String(f()))}`,{childTaskId:t}))}function Si(e){return d($(`${u}/price-track/loop-runs/${e}/stop?user_id=${encodeURIComponent(String(f()))}`,void 0))}function Ri(e){return j(`${u}/price-track/tasks/progress/batch`,e)}function ki(e){return q(`/price-track/results/${e}/download`)}function $i(e){return d(E(`${u}/price-track/pending-shop-result?user_id=${encodeURIComponent(String(f()))}&shop_name=${encodeURIComponent(e)}`))}function Ei(e){return d($(`${u}/collect-data/parse`,{...e,user_id:f()}))}function Ai(e){return d($(`${u}/collect-data/tasks/${e}/activate?user_id=${encodeURIComponent(String(f()))}`,void 0))}function Ti(){return d(k(`${u}/collect-data/dashboard`,{params:{user_id:f()}}))}function Pi(e=50){return d(k(`${u}/collect-data/history`,{params:{user_id:f(),limit:e}}))}function Ci(e,t={}){return j(`${u}/collect-data/tasks/progress/batch`,e,t)}function Oi(e){return d(E(`${u}/collect-data/tasks/${e}`,{params:{user_id:f()}}))}function vi(e){return d(E(`${u}/collect-data/history/${e}`,{params:{user_id:f()}}))}function Di(){return d(k(`${u}/collect-data/country-preference`,{params:{user_id:f()}}))}function xi(e){return d(Ce(`${u}/collect-data/country-preference`,{user_id:f(),country_codes:e}))}function q(e){let t=e.startsWith("http://")||e.startsWith("https://")?e:`${u}${e}`;!t.startsWith("http://")&&!t.startsWith("https://")&&typeof window<"u"&&(t=`${window.location.origin}${t}`);const n=t.includes("?")?"&":"?";return`${t}${n}user_id=${encodeURIComponent(String(f()))}`}export{Zo as $,ja as A,_o as B,Wa as C,Ja as D,Ka as E,Ys as F,za as G,Qa as H,Za as I,Ga as J,Xa as K,ni as L,ei as M,ti as N,Ya as O,Vo as P,zo as Q,Yo as R,Qo as S,Xo as T,Ko as U,Mo as V,Wo as W,li as X,Ho as Y,jo as Z,Jo as _,Ao as a,Ei as a$,Go as a0,ea as a1,aa as a2,ia as a3,ra as a4,ta as a5,na as a6,oa as a7,fa as a8,la as a9,_a as aA,Sa as aB,ha as aC,wa as aD,ga as aE,ma as aF,ba as aG,ka as aH,$a as aI,Ea as aJ,Aa as aK,Ta as aL,Ra as aM,Pa as aN,Da as aO,xa as aP,Ca as aQ,Oa as aR,va as aS,Ua as aT,Ia as aU,Ba as aV,La as aW,Fa as aX,Na as aY,xi as aZ,Di as a_,ca as aa,ua as ab,sa as ac,ui as ad,da as ae,ii as af,ai as ag,ri as ah,fi as ai,pi as aj,si as ak,oi as al,ci as am,$i as an,mi as ao,gi as ap,Si as aq,_i as ar,bi as as,wi as at,ki as au,hi as av,yi as aw,Ri as ax,pa as ay,ya as az,Ro as b,Ai as b0,Ti as b1,Pi as b2,vi as b3,Oi as b4,Ci as b5,go as b6,vo as c,Eo as d,Do as e,xo as f,$o as g,No as h,Uo as i,To as j,Po as k,Co as l,Oo as m,di as n,Io as o,qo as p,Fo as q,ko as r,bo as s,Bo as t,Lo as u,So as v,qa as w,Ma as x,Va as y,Ha as z};