request-415f0ddb.js 53 KB

1
  1. import{ak as Je,e as We,I as Rn,w as I,G as Se,a as me,o as Ke,n as Pt,b as kt,q as ye,c as oe,r as C,N as Bt,h as re,ao as Cn,d as W,g as E,m as ne,f as Tn,T as Nt,ac as _t,i as Ft,v as Dt,F as xn,al as An}from"./app-4609564c.js";function Pn(){}const $=Object.assign,Lt=typeof window<"u",ve=e=>e!==null&&typeof e=="object",j=e=>e!=null,De=e=>typeof e=="function",kn=e=>ve(e)&&De(e.then)&&De(e.catch),It=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Bn=()=>Lt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function nt(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var r;s=ve(s)&&(r=s[o])!=null?r:""}),s}function Nn(e,t,n){return t.reduce((s,o)=>((!n||e[o]!==void 0)&&(s[o]=e[o]),s),{})}const Ar=e=>Array.isArray(e)?e:[e],ge=null,P=[Number,String],M={type:Boolean,default:!0},Pr=e=>({type:e,required:!0}),kr=()=>({type:Array,default:()=>[]}),_n=e=>({type:Number,default:e}),Br=e=>({type:P,default:e}),L=e=>({type:String,default:e});var ie=typeof window<"u";function st(e){return ie?requestAnimationFrame(e):-1}function Nr(e){st(()=>st(e))}var Fn=e=>e===window,ot=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),_r=e=>{const t=ye(e);if(Fn(t)){const n=t.innerWidth,s=t.innerHeight;return ot(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():ot(0,0)};function Fr(e){const t=Se(e,null);if(t){const n=re(),{link:s,unlink:o,internalChildren:r}=t;s(n),Je(()=>o(n));const i=oe(()=>r.indexOf(n));return{parent:t,index:i}}return{parent:null,index:C(-1)}}function Dn(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var r;Cn(o)&&(t.push(o),(r=o.component)!=null&&r.subTree&&(t.push(o.component.subTree),n(o.component.subTree.children)),o.children&&n(o.children))})};return n(e),t}var rt=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(s=>t.key!==void 0&&t.key!==null&&s.type===t.type&&s.key===t.key):n};function Ln(e,t,n){const s=Dn(e.subTree.children);n.sort((r,i)=>rt(s,r.vnode)-rt(s,i.vnode));const o=n.map(r=>r.proxy);t.sort((r,i)=>{const a=o.indexOf(r),d=o.indexOf(i);return a-d})}function Dr(e){const t=me([]),n=me([]),s=re();return{children:t,linkChildren:r=>{Bt(e,Object.assign({link:d=>{d.proxy&&(n.push(d),t.push(d.proxy),Ln(s,t,n))},unlink:d=>{const l=n.indexOf(d);t.splice(l,1),n.splice(l,1)},children:t,internalChildren:n},r))}}}function Ut(e){let t;Ke(()=>{e(),Pt(()=>{t=!0})}),kt(()=>{t&&e()})}function jt(e,t,n={}){if(!ie)return;const{target:s=window,passive:o=!1,capture:r=!1}=n;let i=!1,a;const d=f=>{if(i)return;const m=ye(f);m&&!a&&(m.addEventListener(e,t,{capture:r,passive:o}),a=!0)},l=f=>{if(i)return;const m=ye(f);m&&a&&(m.removeEventListener(e,t,r),a=!1)};Je(()=>l(s)),We(()=>l(s)),Ut(()=>d(s));let u;return Rn(s)&&(u=I(s,(f,m)=>{l(m),d(f)})),()=>{u==null||u(),l(s),i=!0}}var ce,ke;function In(){if(!ce&&(ce=C(0),ke=C(0),ie)){const e=()=>{ce.value=window.innerWidth,ke.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:ce,height:ke}}var Un=/scroll|auto|overlay/i,jn=ie?window:void 0;function $n(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zn(e,t=jn){let n=e;for(;n&&n!==t&&$n(n);){const{overflowY:s}=window.getComputedStyle(n);if(Un.test(s))return n;n=n.parentNode}return t}var le;function Lr(){if(!le&&(le=C("visible"),ie)){const e=()=>{le.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return le}var Mn=Symbol("van-field");function Ir(e){const t=Se(Mn,null);t&&!t.customValue.value&&(t.customValue.value=e,I(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}Bn();const qn=e=>e.stopPropagation();function $t(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&qn(e)}function Ur(e){const t=ye(e);if(!t)return!1;const n=window.getComputedStyle(t),s=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return s||o}const{width:jr,height:$r}=In();function N(e){if(j(e))return It(e)?"".concat(e,"px"):String(e)}function Hn(e){if(j(e)){if(Array.isArray(e))return{width:N(e[0]),height:N(e[1])};const t=N(e);return{width:t,height:t}}}function Vn(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const Jn=/-(\w)/g,zt=e=>e.replace(Jn,(t,n)=>n.toUpperCase()),zr=(e,t,n)=>Math.min(Math.max(e,t),n),{hasOwnProperty:Wn}=Object.prototype;function Kn(e,t,n){const s=t[n];j(s)&&(!Wn.call(e,n)||!ve(s)?e[n]=s:e[n]=Mt(Object(e[n]),s))}function Mt(e,t){return Object.keys(t).forEach(n=>{Kn(e,t,n)}),e}var Xn={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>"".concat(e,"年").concat(t,"月"),rangePrompt:e=>"最多选择 ".concat(e," 天")},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>"".concat(e,"折"),condition:e=>"满".concat(e,"元可用")},vanCouponCell:{title:"优惠券",count:e=>"".concat(e,"张可用")},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const it=C("zh-CN"),at=me({"zh-CN":Xn}),Gn={messages(){return at[it.value]},use(e,t){it.value=e,this.add({[e]:t})},add(e={}){Mt(at,e)}};var Yn=Gn;function Zn(e){const t=zt(e)+".";return(n,...s)=>{const o=Yn.messages(),r=nt(o,t+n)||nt(o,n);return De(r)?r(...s):r}}function Le(e,t){return t?typeof t=="string"?" ".concat(e,"--").concat(t):Array.isArray(t)?t.reduce((n,s)=>n+Le(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Le(e,s):""),""):""}function Qn(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?"".concat(e,"__").concat(t):e,"".concat(t).concat(Le(t,n)))}function V(e){const t="van-".concat(e);return[t,Qn(t),Zn(t)]}const es="van-haptics-feedback",Mr=500,ct=5;function ts(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const r=e.apply(null,t);kn(r)?r.then(i=>{i?n():s&&s()}).catch(o||Pn):r?n():s&&s()}else n()}function K(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(zt("-".concat(n)),e))},e}const qt=Symbol();function qr(e){const t=Se(qt,null);t&&I(t,n=>{n&&e()})}function Ht(e){const t=re();t&&$(t.proxy,e)}const[ns,lt]=V("badge"),ss={dot:Boolean,max:P,tag:L("div"),color:String,offset:Array,content:P,showZero:M,position:L("top-right")};var os=W({name:ns,props:ss,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:d}=e;return j(a)&&a!==""&&(d||a!==0&&a!=="0")},s=()=>{const{dot:a,max:d,content:l}=e;if(!a&&n())return t.content?t.content():j(d)&&It(l)&&+l>+d?"".concat(d,"+"):l},o=a=>a.startsWith("-")?a.replace("-",""):"-".concat(a),r=oe(()=>{const a={background:e.color};if(e.offset){const[d,l]=e.offset,{position:u}=e,[f,m]=u.split("-");t.default?(typeof l=="number"?a[f]=N(f==="top"?l:-l):a[f]=f==="top"?N(l):o(l),typeof d=="number"?a[m]=N(m==="left"?d:-d):a[m]=m==="left"?N(d):o(d)):(a.marginTop=N(l),a.marginLeft=N(d))}return a}),i=()=>{if(n()||e.dot)return E("div",{class:lt([e.position,{dot:e.dot,fixed:!!t.default}]),style:r.value},[s()])};return()=>{if(t.default){const{tag:a}=e;return E(a,{class:lt("wrapper")},{default:()=>[t.default(),i()]})}return i()}}});const rs=K(os);let is=2e3;const as=()=>++is,[cs,Hr]=V("config-provider"),ls=Symbol(cs),[us,ut]=V("icon"),ds=e=>e==null?void 0:e.includes("/"),fs={dot:Boolean,tag:L("i"),name:String,size:P,badge:P,color:String,badgeProps:Object,classPrefix:String};var hs=W({name:us,props:fs,setup(e,{slots:t}){const n=Se(ls,null),s=oe(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||ut());return()=>{const{tag:o,dot:r,name:i,size:a,badge:d,color:l}=e,u=ds(i);return E(rs,ne({dot:r,tag:o,class:[s.value,u?"":"".concat(s.value,"-").concat(i)],style:{color:l,fontSize:N(a)},content:d},e.badgeProps),{default:()=>{var f;return[(f=t.default)==null?void 0:f.call(t),u&&E("img",{class:ut("image"),src:i},null)]}})}}});const Vt=K(hs),[ps,ee]=V("loading"),ms=Array(12).fill(null).map((e,t)=>E("i",{class:ee("line",String(t+1))},null)),ys=E("svg",{class:ee("circular"),viewBox:"25 25 50 50"},[E("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),gs={size:P,type:L("circular"),color:String,vertical:Boolean,textSize:P,textColor:String};var bs=W({name:ps,props:gs,setup(e,{slots:t}){const n=oe(()=>$({color:e.color},Hn(e.size))),s=()=>{const r=e.type==="spinner"?ms:ys;return E("span",{class:ee("spinner",e.type),style:n.value},[t.icon?t.icon():r])},o=()=>{var r;if(t.default)return E("span",{class:ee("text"),style:{fontSize:N(e.textSize),color:(r=e.textColor)!=null?r:e.color}},[t.default()])};return()=>{const{type:r,vertical:i}=e;return E("div",{class:ee([r,{vertical:i}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const ws=K(bs),Es={show:Boolean,zIndex:P,overlay:M,duration:P,teleport:[String,Object],lockScroll:M,lazyRender:M,beforeClose:Function,overlayStyle:Object,overlayClass:ge,transitionAppear:Boolean,closeOnClickOverlay:M};function Ss(e,t){return e>t?"horizontal":t>e?"vertical":""}function vs(){const e=C(0),t=C(0),n=C(0),s=C(0),o=C(0),r=C(0),i=C(""),a=C(!0),d=()=>i.value==="vertical",l=()=>i.value==="horizontal",u=()=>{n.value=0,s.value=0,o.value=0,r.value=0,i.value="",a.value=!0};return{move:b=>{const h=b.touches[0];n.value=(h.clientX<0?0:h.clientX)-e.value,s.value=h.clientY-t.value,o.value=Math.abs(n.value),r.value=Math.abs(s.value);const y=10;(!i.value||o.value<y&&r.value<y)&&(i.value=Ss(o.value,r.value)),a.value&&(o.value>ct||r.value>ct)&&(a.value=!1)},start:b=>{u(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:r,direction:i,isVertical:d,isHorizontal:l,isTap:a}}let Y=0;const dt="van-overflow-hidden";function Os(e,t){const n=vs(),s="01",o="10",r=u=>{n.move(u);const f=n.deltaY.value>0?o:s,m=zn(u.target,e.value),{scrollHeight:b,offsetHeight:h,scrollTop:y}=m;let p="11";y===0?p=h>=b?"00":"01":y+h>=b&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(f,2))&&$t(u,!0)},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,{passive:!1}),Y||document.body.classList.add(dt),Y++},a=()=>{Y&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Y--,Y||document.body.classList.remove(dt))},d=()=>t()&&i(),l=()=>t()&&a();Ut(d),We(l),Tn(l),I(t,u=>{u?i():a()})}function Jt(e){const t=C(!1);return I(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const ft=()=>{var e;const{scopeId:t}=((e=re())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[Rs,Cs]=V("overlay"),Ts={show:Boolean,zIndex:P,duration:P,className:ge,lockScroll:M,lazyRender:M,customStyle:Object,teleport:[String,Object]};var xs=W({name:Rs,props:Ts,setup(e,{slots:t}){const n=C(),s=Jt(()=>e.show||!e.lazyRender),o=i=>{e.lockScroll&&$t(i,!0)},r=s(()=>{var i;const a=$(Vn(e.zIndex),e.customStyle);return j(e.duration)&&(a.animationDuration="".concat(e.duration,"s")),Ft(E("div",{ref:n,style:a,class:[Cs(),e.className]},[(i=t.default)==null?void 0:i.call(t)]),[[Dt,e.show]])});return jt("touchmove",o,{target:n}),()=>{const i=E(Nt,{name:"van-fade",appear:!0},{default:r});return e.teleport?E(_t,{to:e.teleport},{default:()=>[i]}):i}}});const As=K(xs),Ps=$({},Es,{round:Boolean,position:L("center"),closeIcon:L("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:L("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[ks,ht]=V("popup");var Bs=W({name:ks,inheritAttrs:!1,props:Ps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,r;const i=C(),a=C(),d=Jt(()=>e.show||!e.lazyRender),l=oe(()=>{const w={zIndex:i.value};if(j(e.duration)){const x=e.position==="center"?"animationDuration":"transitionDuration";w[x]="".concat(e.duration,"s")}return w}),u=()=>{o||(o=!0,i.value=e.zIndex!==void 0?+e.zIndex:as(),t("open"))},f=()=>{o&&ts(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},m=w=>{t("clickOverlay",w),e.closeOnClickOverlay&&f()},b=()=>{if(e.overlay)return E(As,ne({show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},ft(),{onClick:m}),{default:s["overlay-content"]})},h=w=>{t("clickCloseIcon",w),f()},y=()=>{if(e.closeable)return E(Vt,{role:"button",tabindex:0,name:e.closeIcon,class:[ht("close-icon",e.closeIconPosition),es],classPrefix:e.iconPrefix,onClick:h},null)};let p;const S=()=>{p&&clearTimeout(p),p=setTimeout(()=>{t("opened")})},v=()=>t("closed"),O=w=>t("keydown",w),B=d(()=>{var w;const{destroyOnClose:x,round:U,position:z,safeAreaInsetTop:vn,safeAreaInsetBottom:On,show:tt}=e;if(!(!tt&&x))return Ft(E("div",ne({ref:a,style:l.value,role:"dialog",tabindex:0,class:[ht({round:U,[z]:z}),{"van-safe-area-top":vn,"van-safe-area-bottom":On}],onKeydown:O},n,ft()),[(w=s.default)==null?void 0:w.call(s),y()]),[[Dt,tt]])}),T=()=>{const{position:w,transition:x,transitionAppear:U}=e,z=w==="center"?"van-fade":"van-popup-slide-".concat(w);return E(Nt,{name:x||z,appear:U,onAfterEnter:S,onAfterLeave:v},{default:B})};return I(()=>e.show,w=>{w&&!o&&(u(),n.tabindex===0&&Pt(()=>{var x;(x=a.value)==null||x.focus()})),!w&&o&&(o=!1,t("close"))}),Ht({popupRef:a}),Os(a,()=>e.show&&e.lockScroll),jt("popstate",()=>{e.closeOnPopstate&&(f(),r=!1)}),Ke(()=>{e.show&&u()}),kt(()=>{r&&(t("update:show",!0),r=!1)}),We(()=>{e.show&&e.teleport&&(f(),r=!0)}),Bt(qt,()=>e.show),()=>e.teleport?E(_t,{to:e.teleport},{default:()=>[b(),T()]}):E(xn,null,[b(),T()])}});const Ns=K(Bs);let Z=0;function _s(e){e?(Z||document.body.classList.add("van-toast--unclickable"),Z++):Z&&(Z--,Z||document.body.classList.remove("van-toast--unclickable"))}const[Fs,J]=V("toast"),Ds=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Ls={icon:String,show:Boolean,type:L("text"),overlay:Boolean,message:P,iconSize:P,duration:_n(2e3),position:L("middle"),teleport:[String,Object],wordBreak:String,className:ge,iconPrefix:String,transition:L("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:ge,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:P};var Wt=W({name:Fs,props:Ls,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const r=()=>{const f=e.show&&e.forbidClick;o!==f&&(o=f,_s(o))},i=f=>t("update:show",f),a=()=>{e.closeOnClick&&i(!1)},d=()=>clearTimeout(s),l=()=>{const{icon:f,type:m,iconSize:b,iconPrefix:h,loadingType:y}=e;if(f||m==="success"||m==="fail")return E(Vt,{name:f||m,size:b,class:J("icon"),classPrefix:h},null);if(m==="loading")return E(ws,{class:J("loading"),size:b,type:y},null)},u=()=>{const{type:f,message:m}=e;if(n.message)return E("div",{class:J("text")},[n.message()]);if(j(m)&&m!=="")return f==="html"?E("div",{key:0,class:J("text"),innerHTML:String(m)},null):E("div",{class:J("text")},[m])};return I(()=>[e.show,e.forbidClick],r),I(()=>[e.show,e.type,e.message,e.duration],()=>{d(),e.show&&e.duration>0&&(s=setTimeout(()=>{i(!1)},e.duration))}),Ke(r),Je(r),()=>E(Ns,ne({class:[J([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:d,"onUpdate:show":i},Nn(e,Ds)),{default:()=>[l(),u()]})}});function Is(){const e=me({show:!1}),t=o=>{e.show=o},n=o=>{$(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Ht({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function Us(e){const t=An(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const js={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let ue=[],$s=!1,pt=$({},js);const zs=new Map;function Kt(e){return ve(e)?e:{message:e}}function Ms(){const{instance:e,unmount:t}=Us({setup(){const n=C(""),{open:s,state:o,close:r,toggle:i}=Is(),a=()=>{},d=()=>E(Wt,ne(o,{onClosed:a,"onUpdate:show":i}),null);return I(n,l=>{o.message=l}),re().render=d,{open:s,close:r,message:n}}});return e}function qs(){if(!ue.length||$s){const e=Ms();ue.push(e)}return ue[ue.length-1]}function Hs(e={}){if(!Lt)return{};const t=qs(),n=Kt(e);return t.open($({},pt,zs.get(n.type||pt.type),n)),t}const Xt=e=>t=>Hs($({type:e},Kt(t))),Vr=Xt("success"),Ie=Xt("fail");K(Wt);function Gt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vs}=Object.prototype,{getPrototypeOf:Xe}=Object,Oe=(e=>t=>{const n=Vs.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>Oe(t)===e),Re=e=>t=>typeof t===e,{isArray:X}=Array,se=Re("undefined");function Js(e){return e!==null&&!se(e)&&e.constructor!==null&&!se(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yt=F("ArrayBuffer");function Ws(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yt(e.buffer),t}const Ks=Re("string"),k=Re("function"),Zt=Re("number"),Ce=e=>e!==null&&typeof e=="object",Xs=e=>e===!0||e===!1,de=e=>{if(Oe(e)!=="object")return!1;const t=Xe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gs=F("Date"),Ys=F("File"),Zs=F("Blob"),Qs=F("FileList"),eo=e=>Ce(e)&&k(e.pipe),to=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=Oe(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},no=F("URLSearchParams"),[so,oo,ro,io]=["ReadableStream","Request","Response","Headers"].map(F),ao=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ae(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),X(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(s=0;s<i;s++)a=r[s],t.call(null,e[a],a,e)}}function Qt(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const q=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),en=e=>!se(e)&&e!==q;function Ue(){const{caseless:e}=en(this)&&this||{},t={},n=(s,o)=>{const r=e&&Qt(t,o)||o;de(t[r])&&de(s)?t[r]=Ue(t[r],s):de(s)?t[r]=Ue({},s):X(s)?t[r]=s.slice():t[r]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&ae(arguments[s],n);return t}const co=(e,t,n,{allOwnKeys:s}={})=>(ae(t,(o,r)=>{n&&k(o)?e[r]=Gt(o,n):e[r]=o},{allOwnKeys:s}),e),lo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uo=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fo=(e,t,n,s)=>{let o,r,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)i=o[r],(!s||s(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Xe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ho=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},po=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!Zt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xe(Uint8Array)),yo=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},go=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},bo=F("HTMLFormElement"),wo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),mt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=F("RegExp"),tn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ae(n,(o,r)=>{let i;(i=t(o,r,e))!==!1&&(s[r]=i||o)}),Object.defineProperties(e,s)},So=e=>{tn(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(k(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vo=(e,t)=>{const n={},s=o=>{o.forEach(r=>{n[r]=!0})};return X(e)?s(e):s(String(e).split(t)),n},Oo=()=>{},Ro=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Be="abcdefghijklmnopqrstuvwxyz",yt="0123456789",nn={DIGIT:yt,ALPHA:Be,ALPHA_DIGIT:Be+Be.toUpperCase()+yt},Co=(e=16,t=nn.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function To(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xo=e=>{const t=new Array(10),n=(s,o)=>{if(Ce(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const r=X(s)?[]:{};return ae(s,(i,a)=>{const d=n(i,o+1);!se(d)&&(r[a]=d)}),t[o]=void 0,r}}return s};return n(e,0)},Ao=F("AsyncFunction"),Po=e=>e&&(Ce(e)||k(e))&&k(e.then)&&k(e.catch),sn=((e,t)=>e?setImmediate:t?((n,s)=>(q.addEventListener("message",({source:o,data:r})=>{o===q&&r===n&&s.length&&s.shift()()},!1),o=>{s.push(o),q.postMessage(n,"*")}))("axios@".concat(Math.random()),[]):n=>setTimeout(n))(typeof setImmediate=="function",k(q.postMessage)),ko=typeof queueMicrotask<"u"?queueMicrotask.bind(q):typeof process<"u"&&process.nextTick||sn,c={isArray:X,isArrayBuffer:Yt,isBuffer:Js,isFormData:to,isArrayBufferView:Ws,isString:Ks,isNumber:Zt,isBoolean:Xs,isObject:Ce,isPlainObject:de,isReadableStream:so,isRequest:oo,isResponse:ro,isHeaders:io,isUndefined:se,isDate:Gs,isFile:Ys,isBlob:Zs,isRegExp:Eo,isFunction:k,isStream:eo,isURLSearchParams:no,isTypedArray:mo,isFileList:Qs,forEach:ae,merge:Ue,extend:co,trim:ao,stripBOM:lo,inherits:uo,toFlatObject:fo,kindOf:Oe,kindOfTest:F,endsWith:ho,toArray:po,forEachEntry:yo,matchAll:go,isHTMLForm:bo,hasOwnProperty:mt,hasOwnProp:mt,reduceDescriptors:tn,freezeMethods:So,toObjectSet:vo,toCamelCase:wo,noop:Oo,toFiniteNumber:Ro,findKey:Qt,global:q,isContextDefined:en,ALPHABET:nn,generateString:Co,isSpecCompliantForm:To,toJSONObject:xo,isAsyncFn:Ao,isThenable:Po,setImmediate:sn,asap:ko};function g(e,t,n,s,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),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}c.inherits(g,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const on=g.prototype,rn={};["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=>{rn[e]={value:e}});Object.defineProperties(g,rn);Object.defineProperty(on,"isAxiosError",{value:!0});g.from=(e,t,n,s,o,r)=>{const i=Object.create(on);return c.toFlatObject(e,i,function(d){return d!==Error.prototype},a=>a!=="isAxiosError"),g.call(i,e.message,t,n,s,o),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const Bo=null;function je(e){return c.isPlainObject(e)||c.isArray(e)}function an(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function gt(e,t,n){return e?e.concat(t).map(function(o,r){return o=an(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function No(e){return c.isArray(e)&&!e.some(je)}const _o=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Te(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!c.isUndefined(p[y])});const s=n.metaTokens,o=n.visitor||u,r=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!d&&c.isBlob(h))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,p){let S=h;if(h&&!p&&typeof h=="object"){if(c.endsWith(y,"{}"))y=s?y:y.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&No(h)||(c.isFileList(h)||c.endsWith(y,"[]"))&&(S=c.toArray(h)))return y=an(y),S.forEach(function(O,B){!(c.isUndefined(O)||O===null)&&t.append(i===!0?gt([y],B,r):i===null?y:y+"[]",l(O))}),!1}return je(h)?!0:(t.append(gt(p,y,r),l(h)),!1)}const f=[],m=Object.assign(_o,{defaultVisitor:u,convertValue:l,isVisitable:je});function b(h,y){if(!c.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(h),c.forEach(h,function(S,v){(!(c.isUndefined(S)||S===null)&&o.call(t,S,c.isString(v)?v.trim():v,y,m))===!0&&b(S,y?y.concat(v):[v])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return b(e),t}function bt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Ge(e,t){this._pairs=[],e&&Te(e,this,t)}const cn=Ge.prototype;cn.append=function(t,n){this._pairs.push([t,n])};cn.toString=function(t){const n=t?function(s){return t.call(this,s,bt)}:bt;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ln(e,t,n){if(!t)return e;const s=n&&n.encode||Fo;c.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let r;if(o?r=o(t,n):r=c.isURLSearchParams(t)?t.toString():new Ge(t,n).toString(s),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Do{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const wt=Do,un={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lo=typeof URLSearchParams<"u"?URLSearchParams:Ge,Io=typeof FormData<"u"?FormData:null,Uo=typeof Blob<"u"?Blob:null,jo={isBrowser:!0,classes:{URLSearchParams:Lo,FormData:Io,Blob:Uo},protocols:["http","https","file","blob","url","data"]},Ye=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,$o=Ye&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),zo=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Mo=Ye&&window.location.href||"http://localhost",qo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ye,hasStandardBrowserEnv:$o,hasStandardBrowserWebWorkerEnv:zo,navigator:$e,origin:Mo},Symbol.toStringTag,{value:"Module"})),A={...qo,...jo};function Ho(e,t){return Te(e,new A.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,r){return A.isNode&&c.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Vo(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jo(e){const t={},n=Object.keys(e);let s;const o=n.length;let r;for(s=0;s<o;s++)r=n[s],t[r]=e[r];return t}function dn(e){function t(n,s,o,r){let i=n[r++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),d=r>=n.length;return i=!i&&c.isArray(o)?o.length:i,d?(c.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!a):((!o[i]||!c.isObject(o[i]))&&(o[i]=[]),t(n,s,o[i],r)&&c.isArray(o[i])&&(o[i]=Jo(o[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,o)=>{t(Vo(s),o,n,0)}),n}return null}function Wo(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ze={transitional:un,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,r=c.isObject(t);if(r&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o?JSON.stringify(dn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ho(t,this.formSerializer).toString();if((a=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Te(a?{"files[]":t}:t,d&&new d,this.formSerializer)}}return r||o?(n.setContentType("application/json",!1),Wo(t)):t}],transformResponse:[function(t){const n=this.transitional||Ze.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Ze.headers[e]={}});const Qe=Ze,Ko=c.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"]),Xo=e=>{const t={};let n,s,o;return e&&e.split("\n").forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||t[n]&&Ko[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Et=Symbol("internals");function Q(e){return e&&String(e).trim().toLowerCase()}function fe(e){return e===!1||e==null?e:c.isArray(e)?e.map(fe):String(e)}function Go(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Yo=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ne(e,t,n,s,o){if(c.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function Zo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Qo(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,r,i){return this[s].call(this,t,o,r,i)},configurable:!0})})}class xe{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function r(a,d,l){const u=Q(d);if(!u)throw new Error("header name must be a non-empty string");const f=c.findKey(o,u);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||d]=fe(a))}const i=(a,d)=>c.forEach(a,(l,u)=>r(l,u,d));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(c.isString(t)&&(t=t.trim())&&!Yo(t))i(Xo(t),n);else if(c.isHeaders(t))for(const[a,d]of t.entries())r(d,a,s);else t!=null&&r(n,t,s);return this}get(t,n){if(t=Q(t),t){const s=c.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Go(o);if(c.isFunction(n))return n.call(this,o,s);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Q(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ne(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function r(i){if(i=Q(i),i){const a=c.findKey(s,i);a&&(!n||Ne(s,s[a],a,n))&&(delete s[a],o=!0)}}return c.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!t||Ne(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,s={};return c.forEach(this,(o,r)=>{const i=c.findKey(s,r);if(i){n[i]=fe(o),delete n[r];return}const a=t?Zo(r):String(r).trim();a!==r&&delete n[r],n[a]=fe(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&c.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[Et]=this[Et]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=Q(i);s[a]||(Qo(o,i),s[a]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}}xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});c.freezeMethods(xe);const _=xe;function _e(e,t){const n=this||Qe,s=t||n,o=_.from(s.headers);let r=s.data;return c.forEach(e,function(a){r=a.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function fn(e){return!!(e&&e.__CANCEL__)}function G(e,t,n){g.call(this,e==null?"canceled":e,g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(G,g,{__CANCEL__:!0});function hn(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function er(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tr(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(d){const l=Date.now(),u=s[r];i||(i=l),n[o]=d,s[o]=l;let f=r,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),l-i<t)return;const b=u&&l-u;return b?Math.round(m*1e3/b):void 0}}function nr(e,t){let n=0,s=1e3/t,o,r;const i=(l,u=Date.now())=>{n=u,o=null,r&&(clearTimeout(r),r=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),f=u-n;f>=s?i(l,u):(o=l,r||(r=setTimeout(()=>{r=null,i(o)},s-f)))},()=>o&&i(o)]}const be=(e,t,n=3)=>{let s=0;const o=tr(50,250);return nr(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,d=i-s,l=o(d),u=i<=a;s=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:r,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},St=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},vt=e=>(...t)=>c.asap(()=>e(...t)),sr=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,or=A.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(s)&&i.push("path="+s),c.isString(o)&&i.push("domain="+o),r===!0&&i.push("secure"),document.cookie=i.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(){return null},remove(){}};function rr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ir(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pn(e,t){return e&&!rr(t)?ir(e,t):t}const Ot=e=>e instanceof _?{...e}:e;function H(e,t){t=t||{};const n={};function s(l,u,f,m){return c.isPlainObject(l)&&c.isPlainObject(u)?c.merge.call({caseless:m},l,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function o(l,u,f,m){if(c.isUndefined(u)){if(!c.isUndefined(l))return s(void 0,l,f,m)}else return s(l,u,f,m)}function r(l,u){if(!c.isUndefined(u))return s(void 0,u)}function i(l,u){if(c.isUndefined(u)){if(!c.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,f){if(f in t)return s(l,u);if(f in e)return s(void 0,l)}const d={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,u,f)=>o(Ot(l),Ot(u),f,!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=d[u]||o,m=f(e[u],t[u],u);c.isUndefined(m)&&f!==a||(n[u]=m)}),n}const mn=e=>{const t=H({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:r,headers:i,auth:a}=t;t.headers=i=_.from(i),t.url=ln(pn(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let d;if(c.isFormData(n)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[l,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(A.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&sr(t.url))){const l=o&&r&&or.read(r);l&&i.set(o,l)}return t},ar=typeof XMLHttpRequest<"u",cr=ar&&function(e){return new Promise(function(n,s){const o=mn(e);let r=o.data;const i=_.from(o.headers).normalize();let{responseType:a,onUploadProgress:d,onDownloadProgress:l}=o,u,f,m,b,h;function y(){b&&b(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function S(){if(!p)return;const O=_.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:O,config:e,request:p};hn(function(x){n(x),y()},function(x){s(x),y()},T),p=null}"onloadend"in p?p.onloadend=S:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(S)},p.onabort=function(){p&&(s(new g("Request aborted",g.ECONNABORTED,e,p)),p=null)},p.onerror=function(){s(new g("Network Error",g.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let B=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||un;o.timeoutErrorMessage&&(B=o.timeoutErrorMessage),s(new g(B,T.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,p)),p=null},r===void 0&&i.setContentType(null),"setRequestHeader"in p&&c.forEach(i.toJSON(),function(B,T){p.setRequestHeader(T,B)}),c.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),l&&([m,h]=be(l,!0),p.addEventListener("progress",m)),d&&p.upload&&([f,b]=be(d),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(u=O=>{p&&(s(!O||O.type?new G(null,e,p):O),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const v=er(o.url);if(v&&A.protocols.indexOf(v)===-1){s(new g("Unsupported protocol "+v+":",g.ERR_BAD_REQUEST,e));return}p.send(r||null)})},lr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const r=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof g?u:new G(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new g("timeout ".concat(t," of ms exceeded"),g.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(r):l.removeEventListener("abort",r)}),e=null)};e.forEach(l=>l.addEventListener("abort",r));const{signal:d}=s;return d.unsubscribe=()=>c.asap(a),d}},ur=lr,dr=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},fr=async function*(e,t){for await(const n of hr(e))yield*dr(n,t)},hr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Rt=(e,t,n,s)=>{const o=fr(e,t);let r=0,i,a=d=>{i||(i=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:l,value:u}=await o.next();if(l){a(),d.close();return}let f=u.byteLength;if(n){let m=r+=f;n(m)}d.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(d){return a(d),o.return()}},{highWaterMark:2})},Ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yn=Ae&&typeof ReadableStream=="function",pr=Ae&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gn=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},mr=yn&&gn(()=>{let e=!1;const t=new Request(A.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ct=64*1024,ze=yn&&gn(()=>c.isReadableStream(new Response("").body)),we={stream:ze&&(e=>e.body)};Ae&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!we[t]&&(we[t]=c.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new g("Response type '".concat(t,"' is not supported"),g.ERR_NOT_SUPPORT,s)})})})(new Response);const yr=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(A.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await pr(e)).byteLength},gr=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n==null?yr(t):n},br=Ae&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:r,timeout:i,onDownloadProgress:a,onUploadProgress:d,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:m}=mn(e);l=l?(l+"").toLowerCase():"text";let b=ur([o,r&&r.toAbortSignal()],i),h;const y=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let p;try{if(d&&mr&&n!=="get"&&n!=="head"&&(p=await gr(u,s))!==0){let T=new Request(t,{method:"POST",body:s,duplex:"half"}),w;if(c.isFormData(s)&&(w=T.headers.get("content-type"))&&u.setContentType(w),T.body){const[x,U]=St(p,be(vt(d)));s=Rt(T.body,Ct,x,U)}}c.isString(f)||(f=f?"include":"omit");const S="credentials"in Request.prototype;h=new Request(t,{...m,signal:b,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:S?f:void 0});let v=await fetch(h);const O=ze&&(l==="stream"||l==="response");if(ze&&(a||O&&y)){const T={};["status","statusText","headers"].forEach(z=>{T[z]=v[z]});const w=c.toFiniteNumber(v.headers.get("content-length")),[x,U]=a&&St(w,be(vt(a),!0))||[];v=new Response(Rt(v.body,Ct,x,()=>{U&&U(),y&&y()}),T)}l=l||"text";let B=await we[c.findKey(we,l)||"text"](v,e);return!O&&y&&y(),await new Promise((T,w)=>{hn(T,w,{data:B,headers:_.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:h})})}catch(S){throw y&&y(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,h),{cause:S.cause||S}):g.from(S,S&&S.code,e,h)}}),Me={http:Bo,xhr:cr,fetch:br};c.forEach(Me,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Tt=e=>"- ".concat(e),wr=e=>c.isFunction(e)||e===null||e===!1,bn={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let r=0;r<t;r++){n=e[r];let i;if(s=n,!wr(n)&&(s=Me[(i=String(n)).toLowerCase()],s===void 0))throw new g("Unknown adapter '".concat(i,"'"));if(s)break;o[i||"#"+r]=s}if(!s){const r=Object.entries(o).map(([a,d])=>"adapter ".concat(a," ")+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?"since :\n"+r.map(Tt).join("\n"):" "+Tt(r[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Me};function Fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G(null,e)}function xt(e){return Fe(e),e.headers=_.from(e.headers),e.data=_e.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bn.getAdapter(e.adapter||Qe.adapter)(e).then(function(s){return Fe(e),s.data=_e.call(e,e.transformResponse,s),s.headers=_.from(s.headers),s},function(s){return fn(s)||(Fe(e),s&&s.response&&(s.response.data=_e.call(e,e.transformResponse,s.response),s.response.headers=_.from(s.response.headers))),Promise.reject(s)})}const wn="1.7.9",Pe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pe[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const At={};Pe.transitional=function(t,n,s){function o(r,i){return"[Axios v"+wn+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(t===!1)throw new g(o(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!At[i]&&(At[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,i,a):!0}};Pe.spelling=function(t){return(n,s)=>(console.warn("".concat(s," is likely a misspelling of ").concat(t)),!0)};function Er(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const r=s[o],i=t[r];if(i){const a=e[r],d=a===void 0||i(a,r,e);if(d!==!0)throw new g("option "+r+" must be "+d,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+r,g.ERR_BAD_OPTION)}}const he={assertOptions:Er,validators:Pe},D=he.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new wt,response:new wt}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const r=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+="\n"+r):s.stack=r}catch(i){}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=H(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&he.assertOptions(s,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:he.assertOptions(o,{encode:D.function,serialize:D.function},!0)),he.assertOptions(n,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&c.merge(r.common,r[n.method]);r&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=_.concat(i,r);const a=[];let d=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(d=d&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,f=0,m;if(!d){const h=[xt.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,l),m=h.length,u=Promise.resolve(n);f<m;)u=u.then(h[f++],h[f++]);return u}m=a.length;let b=n;for(f=0;f<m;){const h=a[f++],y=a[f++];try{b=h(b)}catch(p){y.call(this,p);break}}try{u=xt.call(this,b)}catch(h){return Promise.reject(h)}for(f=0,m=l.length;f<m;)u=u.then(l[f++],l[f++]);return u}getUri(t){t=H(this.defaults,t);const n=pn(t.baseURL,t.url);return ln(n,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){Ee.prototype[t]=function(n,s){return this.request(H(s||{},{method:t,url:n,data:(s||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(s){return function(r,i,a){return this.request(H(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Ee.prototype[t]=n(),Ee.prototype[t+"Form"]=n(!0)});const pe=Ee;class et{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(o=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](o);s._listeners=null}),this.promise.then=o=>{let r;const i=new Promise(a=>{s.subscribe(a),r=a}).then(o);return i.cancel=function(){s.unsubscribe(r)},i},t(function(r,i,a){s.reason||(s.reason=new G(r,i,a),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new et(function(o){t=o}),cancel:t}}}const Sr=et;function vr(e){return function(n){return e.apply(null,n)}}function Or(e){return c.isObject(e)&&e.isAxiosError===!0}const qe={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(qe).forEach(([e,t])=>{qe[t]=e});const Rr=qe;function En(e){const t=new pe(e),n=Gt(pe.prototype.request,t);return c.extend(n,pe.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return En(H(e,o))},n}const R=En(Qe);R.Axios=pe;R.CanceledError=G;R.CancelToken=Sr;R.isCancel=fn;R.VERSION=wn;R.toFormData=Te;R.AxiosError=g;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=vr;R.isAxiosError=Or;R.mergeConfig=H;R.AxiosHeaders=_;R.formToJSON=e=>dn(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=bn.getAdapter;R.HttpStatusCode=Rr;R.default=R;const Cr=R,Tr="/assets/loading-7a4b8390.svg";class te{constructor(){if(typeof te.instance=="object")return te.instance;this.backgroundElement=document.createElement("div"),this.backgroundElement.style.background="#fff",this.backgroundElement.style.opacity=.5,this.backgroundElement.style.position="fixed",this.backgroundElement.style.zIndex=999999,this.backgroundElement.style.top=0,this.backgroundElement.style.left=0,this.backgroundElement.style.width="100%",this.backgroundElement.style.height="100%",this.backgroundElement.style.display="none",this.loadingElement=document.createElement("div"),this.loadingElement.style.position="fixed",this.loadingElement.style.zIndex=9999999,this.loadingElement.style.top="50%",this.loadingElement.style.left="50%",this.loadingElement.style.transform="translate(-50%, -50%)",this.loadingElement.style.width="100px",this.loadingElement.style.display="none",this.iconElement=document.createElement("img"),this.iconElement.src=Tr,this.loadingElement.appendChild(this.iconElement),document.body.appendChild(this.loadingElement),document.body.appendChild(this.backgroundElement),te.instance=this}show(){this.backgroundElement.style.display="block",this.loadingElement.style.display="flex"}hide(){this.backgroundElement.style.display="none",this.loadingElement.style.display="none"}}const He=new te,Sn=Cr.create({baseURL:window.location.origin.includes("localhost")||window.location.origin.includes("10.41")?"http://visitor.gloria.com.cn:8099":window.location.origin+":8066",timeout:5e4});let Ve=!0;Sn.interceptors.request.use(e=>(e!=null&&e.token&&(e.headers.Authorization=e.token),e!=null&&e.notLoading?Ve=!1:(He.show(),Ve=!0),e),e=>(e!=null&&e.message&&Ie((e==null?void 0:e.message)||"服务异常"),Promise.reject(e)));Sn.interceptors.response.use(e=>{He.hide();let t=e.data;return+(t==null?void 0:t.code)==1?t:(Ve&&(t!=null&&t.desc)&&Ie((t==null?void 0:t.desc)||"服务异常"),Promise.reject(t))},e=>{var t,n;return He.hide(),Ie(((n=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:n.decs)||"服务异常"),Promise.reject(e)});export{L as A,st as B,_r as C,Mr as D,kr as E,ts as F,Us as G,es as H,Vt as I,Is as J,Ar as K,ws as L,De as M,Hn as N,kn as O,Ns as P,Ie as Q,Sn as R,Vr as S,Dr as a,Ht as b,V as c,$r as d,Lr as e,jt as f,Nr as g,zr as h,Ur as i,K as j,Fr as k,Ir as l,Br as m,P as n,qr as o,$t as p,ge as q,$ as r,Pr as s,M as t,vs as u,N as v,jr as w,Nn as x,j as y,Lt as z};