@fmdevui/fm-dev
Version:
Page level components developed based on Element Plus.
8 lines • 1.72 MB
JavaScript
/*! fm-dev v1.0.95 */(function(j,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","util","stream","assert","zlib","element-plus"],r):(j=typeof globalThis<"u"?globalThis:j||self,r(j.FmPlus={},j.Vue,j.crypto,j.require$$0,j.require$$1,j.require$$2,j.util,j.stream,j.require$$4,j.zlib,j.ElementPlus))})(this,function(j,r,r2,n6,Z7,Q7,ur,c5,n2,y5,Su){"use strict";const E2={class:"fm-transfer-panel"},o2={class:"fm-transfer-panel__header"},a2={class:"fm-transfer-panel__body"},i2={class:"fm-transfer-buttons__item"},l2={class:"fm-transfer-buttons__item"},s2={class:"fm-transfer-buttons__item"},C2={class:"fm-transfer-buttons__item"},F2={class:"fm-transfer-panel"},c2={class:"fm-transfer-panel__header"},B2={class:"fm-transfer-panel__body"};var D2=r.defineComponent({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(u,{emit:e}){const t=u,n=e,E=r.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),o=r.computed(()=>{let D=t.leftData.filter(p=>p[t.options.label].toLowerCase().includes(E.leftKeyword.toLowerCase()));if(E.leftChecked.length>0)for(let p=E.leftChecked.length-1;p>=0;p--)D.findIndex(A=>A[t.options.value]==E.leftChecked[p])==-1&&E.leftChecked.splice(p,1);return D}),a=D=>{E.leftChecked=D?o.value.filter(p=>p[t.options.disabled]==!1).map(p=>p[t.options.value]):[]},i=r.computed(()=>{const D=E.leftChecked.length;return D>0&&D<o.value.filter(h=>h[t.options.disabled]==!1).length});r.watch(()=>E.leftChecked,D=>{E.leftAllChecked=D.length>0&&D.length==o.value.filter(p=>p[t.options.disabled]==!1).length});const s=r.computed(()=>{let D=t.rightData.filter(p=>p[t.options.label].toLowerCase().includes(E.rightKeyword.toLowerCase()));if(E.rightChecked.length>0)for(let p=E.rightChecked.length-1;p>=0;p--)D.findIndex(A=>A[t.options.value]==E.rightChecked[p])==-1&&E.rightChecked.splice(p,1);return D}),l=D=>{E.rightChecked=D?s.value.filter(p=>p[t.options.disabled]==!1).map(p=>p[t.options.value]):[]},C=r.computed(()=>{const D=E.rightChecked.length;return D>0&&D<s.value.filter(h=>h[t.options.disabled]==!1).length});r.watch(()=>E.rightChecked,D=>{E.rightAllChecked=D.length>0&&D.length==s.value.filter(p=>p[t.options.disabled]==!1).length});const B=D=>{if(D[t.options.value]&&D[t.options.disabled]===!1){let p=t.leftData.filter(A=>D[t.options.value]==A[t.options.value]),h=t.leftData.filter(A=>D[t.options.value]!=A[t.options.value]);n("update:leftData",h),n("update:rightData",t.rightData.concat(p)),n("right"),E.leftChecked=E.leftChecked.filter(A=>D[t.options.value]!=A)}},c=()=>{if(E.leftChecked?.length>0){let D=t.leftData.filter(h=>E.leftChecked.some(A=>A==h[t.options.value])),p=t.leftData.filter(h=>E.leftChecked.every(A=>A!=h[t.options.value]));n("update:leftData",p),n("update:rightData",t.rightData.concat(D)),n("right"),E.leftChecked=[]}},m=()=>{if(o.value?.length>0){let D=o.value.filter(A=>A[t.options.disabled]==!1),p=t.leftData.filter(A=>D.some(x=>x[t.options.value]==A[t.options.value])),h=t.leftData.filter(A=>D.every(x=>x[t.options.value]!=A[t.options.value]));n("update:leftData",h),n("update:rightData",t.rightData.concat(p)),n("allRight"),E.leftChecked=[]}},F=D=>{if(D[t.options.value]&&D[t.options.disabled]===!1){let p=t.rightData.filter(A=>D[t.options.value]==A[t.options.value]),h=t.rightData.filter(A=>D[t.options.value]!=A[t.options.value]);n("update:leftData",t.leftData.concat(p)),n("update:rightData",h),n("left"),E.rightChecked=E.rightChecked.filter(A=>D[t.options.value]!=A)}},f=()=>{if(E.rightChecked?.length>0){let D=t.rightData.filter(h=>E.rightChecked.some(A=>A==h[t.options.value])),p=t.rightData.filter(h=>E.rightChecked.every(A=>A!=h[t.options.value]));n("update:leftData",t.leftData.concat(D)),n("update:rightData",p),n("left"),E.rightChecked=[]}},d=()=>{if(s.value?.length>0){let D=s.value.filter(A=>A[t.options.disabled]==!1),p=t.rightData.filter(A=>D.some(x=>x[t.options.value]==A[t.options.value])),h=t.rightData.filter(A=>D.every(x=>x[t.options.value]!=A[t.options.value]));n("update:leftData",t.leftData.concat(p)),n("update:rightData",h),n("allLeft"),E.rightChecked=[]}};return(D,p)=>{const h=r.resolveComponent("el-checkbox"),A=r.resolveComponent("el-input"),x=r.resolveComponent("el-checkbox-group"),_=r.resolveComponent("el-col"),g=r.resolveComponent("el-button"),y=r.resolveComponent("el-row");return r.openBlock(),r.createBlock(y,{gutter:10},{default:r.withCtx(()=>[r.createVNode(_,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",E2,[r.createElementVNode("p",o2,[r.createVNode(h,{modelValue:E.leftAllChecked,"onUpdate:modelValue":p[0]||(p[0]=w=>E.leftAllChecked=w),indeterminate:i.value,"validate-event":!1,onChange:a},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(E.leftChecked.length)+"/"+r.toDisplayString(t.leftData.length),1)]),r.createElementVNode("div",a2,[r.createVNode(A,{class:"transfer-panel__filter",modelValue:E.leftKeyword,"onUpdate:modelValue":p[1]||(p[1]=w=>E.leftKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(x,{modelValue:E.leftChecked,"onUpdate:modelValue":p[2]||(p[2]=w=>E.leftChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(w,v)=>(r.openBlock(),r.createBlock(h,{key:v,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>B(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1}),r.createVNode(_,{span:4,class:"fm-transfer-buttons"},{default:r.withCtx(()=>[r.createElementVNode("div",i2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:c})]),r.createElementVNode("div",l2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:f})]),r.createElementVNode("div",s2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:m})]),r.createElementVNode("div",C2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:d})])]),_:1}),r.createVNode(_,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",F2,[r.createElementVNode("p",c2,[r.createVNode(h,{modelValue:E.rightAllChecked,"onUpdate:modelValue":p[3]||(p[3]=w=>E.rightAllChecked=w),indeterminate:C.value,"validate-event":!1,onChange:l},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(E.rightChecked.length)+"/"+r.toDisplayString(t.rightData.length),1)]),r.createElementVNode("div",B2,[r.createVNode(A,{class:"transfer-panel__filter",modelValue:E.rightKeyword,"onUpdate:modelValue":p[4]||(p[4]=w=>E.rightKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(x,{modelValue:E.rightChecked,"onUpdate:modelValue":p[5]||(p[5]=w=>E.rightChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(w,v)=>(r.openBlock(),r.createBlock(h,{key:v,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>F(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1})]),_:1})}}});const d2={class:"notice-bar-warp-text-box"},p2=["innerHTML"];var A2=r.defineComponent({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(u,{emit:e}){const t=u,n=r.ref(null),E=r.ref(null),o=r.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});r.onMounted(async()=>{t.scrollable||a()});const a=()=>{r.nextTick(()=>{if(n.value&&E.value){o.warpOWidth=n.value.offsetWidth,o.textOWidth=E.value.scrollWidth,o.animationDuration=(o.textOWidth+o.warpOWidth)/t.speed,E.value.style.animation="none",E.value.offsetHeight,E.value.style.animation=`marquee ${o.animationDuration}s linear infinite`;const i=`
@keyframes marquee {
0% { transform: translateX(${o.warpOWidth}px); }
100% { transform: translateX(-${o.textOWidth}px); }
}
`,s=document.createElement("style");s.innerText=i,document.head.appendChild(s)}})};return(i,s)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:"fm-notice-bar",style:r.normalizeStyle({background:u.background,height:`${u.height}px`})},[r.createElementVNode("div",{class:"notice-bar-warp",style:r.normalizeStyle({color:u.color,fontSize:`${u.size}px`}),ref_key:"noticeBarWarpRef",ref:n},[u.leftIcon?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["notice-bar-warp-left-icon",u.leftIcon])},null,2)):r.createCommentVNode("v-if",!0),r.createElementVNode("div",d2,[r.createElementVNode("div",{class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:E},[r.createElementVNode("div",{innerHTML:t.text,"data-slate-editor":""},null,8,p2)],512)])],4)],4)),[[r.vShow,!o.isMode]])}}),m2={name:"dragVerify",props:{isPassing:{type:Boolean,default:!1},width:{type:Number,default:250},height:{type:Number,default:40},text:{type:String,default:"swiping to the right side"},successText:{type:String,default:"success"},background:{type:String,default:"#eee"},progressBarBg:{type:String,default:"#76c61d"},completedBg:{type:String,default:"#76c61d"},circle:{type:Boolean,default:!1},radius:{type:String,default:"4px"},handlerIcon:{type:String},successIcon:{type:String},handlerBg:{type:String,default:"#fff"},textSize:{type:String,default:"14px"},textColor:{type:String,default:"#333"},imgsrc:{type:String},showTips:{type:Boolean,default:!0},successTip:{type:String,default:"\u9A8C\u8BC1\u901A\u8FC7"},failTip:{type:String,default:"\u9A8C\u8BC1\u5931\u8D25"},diffDegree:{type:Number,default:10},minDegree:{type:Number,default:90},maxDegree:{type:Number,default:270}},mounted:function(){const u=this.$refs.dragVerify;u.style.setProperty("--textColor",this.textColor),u.style.setProperty("--width",Math.floor(this.width/2)+"px"),u.style.setProperty("--pwidth",-Math.floor(this.width/2)+"px")},computed:{handlerStyle:function(){return{width:this.height+"px",height:this.height+"px",background:this.handlerBg}},message:function(){return this.isPassing?"":this.text},successMessage:function(){return this.isPassing?this.successText:""},dragVerifyStyle:function(){return{width:this.width+"px",height:this.height+"px",lineHeight:this.height+"px",marginTop:"20px",background:this.background,borderRadius:this.circle?this.height/2+"px":this.radius}},dragVerifyImgStyle:function(){return{width:this.width+"px",height:this.width+"px",position:"relative",overflow:"hidden","border-radius":"50%"}},progressBarStyle:function(){return{background:this.progressBarBg,height:this.height+"px",borderRadius:this.circle?this.height/2+"px 0 0 "+this.height/2+"px":this.radius}},textStyle:function(){return{height:this.height+"px",width:this.width+"px",fontSize:this.textSize}},factor:function(){return this.minDegree==this.maxDegree?Math.floor(1+Math.random()*6)/10+1:1}},data(){return{isMoving:!1,x:0,isOk:!1,showBar:!1,showErrorTip:!1,ranRotate:0,cRotate:0,imgStyle:{}}},methods:{checkimgLoaded:function(){var u=this.minDegree,e=this.maxDegree,t=Math.floor(u+Math.random()*(e-u));this.ranRotate=t,this.imgStyle={transform:`rotateZ(${t}deg)`}},dragStart:function(u){this.isPassing||(this.isMoving=!0,this.x=u.pageX||u.touches[0].pageX),this.showBar=!0,this.showErrorTip=!1,this.$emit("handlerMove")},dragMoving:function(u){if(this.isMoving&&!this.isPassing){var e=(u.pageX||u.touches[0].pageX)-this.x,t=this.$refs.handler;t.style.left=e+"px";var n=this.$refs.progressBar;n.style.width=e+this.height/2+"px";var E=Math.ceil(e/(this.width-this.height)*this.maxDegree*this.factor);this.cRotate=E;var o=this.ranRotate-E;this.imgStyle={transform:`rotateZ(${o}deg)`}}},dragFinish:function(u){if(this.isMoving&&!this.isPassing){if(Math.abs(this.ranRotate-this.cRotate)>this.diffDegree){this.isOk=!0,this.imgStyle={transform:`rotateZ(${this.ranRotate}deg)`};var e=this;setTimeout(function(){var t=e.$refs.handler,n=e.$refs.progressBar;t.style.left="0",n.style.width="0",e.isOk=!1},500),this.showErrorTip=!0,this.$emit("passfail")}else this.passVerify();this.isMoving=!1}},passVerify:function(){this.$emit("update:isPassing",!0),this.isMoving=!1;var u=this.$refs.handler;u.children[0].className=this.successIcon,this.$refs.progressBar.style.background=this.completedBg,this.$refs.message.style["-webkit-text-fill-color"]="unset",this.$refs.message.style.animation="slidetounlock2 3s infinite",this.$refs.progressBar.style.color="#fff",this.$refs.progressBar.style.fontSize=this.textSize,this.$emit("passcallback")},reset:function(){this.reImg(),this.checkimgLoaded()},reImg:function(){this.$emit("update:isPassing",!1);const u=this.$options.data();for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&(this[n]=u[n]);var e=this.$refs.handler,t=this.$refs.message;e.style.left="0",this.$refs.progressBar.style.width="0",e.children[0].className=this.handlerIcon,t.style["-webkit-text-fill-color"]="transparent",t.style.animation="slidetounlock 3s infinite",t.style.color=this.background},refreshimg:function(){this.$emit("refresh")}},watch:{imgsrc:{immediate:!1,handler:function(){this.reImg()}}}},f2=(u,e)=>{const t=u.__vccOpts||u;for(const[n,E]of e)t[n]=E;return t};const h2={class:"drag-verify-container"},g2=["src"],x2={key:0,class:"tips success"},_2={key:1,class:"tips danger"};function v2(u,e,t,n,E,o){return r.openBlock(),r.createElementBlock("div",h2,[r.createElementVNode("div",{style:r.normalizeStyle([o.dragVerifyImgStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("img",{ref:"checkImg",src:t.imgsrc,class:r.normalizeClass(["check-img",{goOrigin:E.isOk}]),onLoad:e[0]||(e[0]=(...a)=>o.checkimgLoaded&&o.checkimgLoaded(...a)),style:r.normalizeStyle(E.imgStyle),alt:""},null,46,g2),t.showTips&&t.isPassing?(r.openBlock(),r.createElementBlock("div",x2,r.toDisplayString(t.successTip),1)):r.createCommentVNode("v-if",!0),t.showTips&&!t.isPassing&&E.showErrorTip?(r.openBlock(),r.createElementBlock("div",_2,r.toDisplayString(t.failTip),1)):r.createCommentVNode("v-if",!0)],4),r.createElementVNode("div",{ref:"dragVerify",class:"drag_verify",style:r.normalizeStyle(o.dragVerifyStyle),onMousemove:e[3]||(e[3]=(...a)=>o.dragMoving&&o.dragMoving(...a)),onMouseup:e[4]||(e[4]=(...a)=>o.dragFinish&&o.dragFinish(...a)),onMouseleave:e[5]||(e[5]=(...a)=>o.dragFinish&&o.dragFinish(...a)),onTouchmove:e[6]||(e[6]=r.withModifiers((...a)=>o.dragMoving&&o.dragMoving(...a),["prevent"])),onTouchend:e[7]||(e[7]=r.withModifiers((...a)=>o.dragFinish&&o.dragFinish(...a),["prevent"]))},[r.createElementVNode("div",{class:r.normalizeClass(["dv_progress_bar",{goFirst2:E.isOk}]),ref:"progressBar",style:r.normalizeStyle(o.progressBarStyle)},r.toDisplayString(o.successMessage),7),r.createElementVNode("div",{class:"dv_text",style:r.normalizeStyle(o.textStyle),ref:"message"},r.toDisplayString(o.message),5),r.createElementVNode("div",{class:r.normalizeClass(["dv_handler dv_handler_bg",{goFirst:E.isOk}]),onMousedown:e[1]||(e[1]=(...a)=>o.dragStart&&o.dragStart(...a)),onTouchstart:e[2]||(e[2]=r.withModifiers((...a)=>o.dragStart&&o.dragStart(...a),["prevent"])),ref:"handler",style:r.normalizeStyle([o.handlerStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("i",{class:r.normalizeClass(t.handlerIcon),style:{color:"#fff"}},null,2)],38)],36)])}var y2=f2(m2,[["render",v2],["__scopeId","data-v-9e8c9ed2"]]),b2=r.defineComponent({name:"Fmselect",__name:"index",props:r.mergeModels({optionData:{type:Array,default:[]},bvalue:{type:String,default:"id"},blabel:{type:String,default:"name"},elabel:{type:String,default:"\u8BF7\u9009\u62E9"}},{id:{type:Number,default:0},idModifiers:{},name:{type:String,default:""},nameModifiers:{}}),emits:r.mergeModels(["change"],["update:id","update:name"]),setup(u,{emit:e}){const t=r.useModel(u,"id"),n=r.useModel(u,"name"),E=u,o=e,a=i=>{const s=E.optionData.find(l=>l[E.bvalue]==i);n.value=s==null?"":s[E.blabel],o("change",s)};return(i,s)=>{const l=r.resolveComponent("el-option"),C=r.resolveComponent("el-select");return r.openBlock(),r.createBlock(C,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=B=>t.value=B),placeholder:"\u8BF7\u9009\u62E9",onChange:a},{default:r.withCtx(()=>[r.createVNode(l,{value:0,label:u.elabel},null,8,["label"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.optionData,(B,c)=>(r.openBlock(),r.createBlock(l,{key:c,value:B[u.bvalue],label:B[u.blabel]},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])}}});function er(u,e){return function(){return u.apply(e,arguments)}}const{toString:w2}=Object.prototype,{getPrototypeOf:E6}=Object,{iterator:y0,toStringTag:tr}=Symbol,b0=(u=>e=>{const t=w2.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),E5=u=>(u=u.toLowerCase(),e=>b0(e)===u),w0=u=>e=>typeof e===u,{isArray:Ee}=Array,ke=w0("undefined");function Se(u){return u!==null&&!ke(u)&&u.constructor!==null&&!ke(u.constructor)&&Wu(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const rr=E5("ArrayBuffer");function T2(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&rr(u.buffer),e}const k2=w0("string"),Wu=w0("function"),nr=w0("number"),Ne=u=>u!==null&&typeof u=="object",S2=u=>u===!0||u===!1,T0=u=>{if(b0(u)!=="object")return!1;const e=E6(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tr in u)&&!(y0 in u)},N2=u=>{if(!Ne(u)||Se(u))return!1;try{return Object.keys(u).length===0&&Object.getPrototypeOf(u)===Object.prototype}catch{return!1}},P2=E5("Date"),L2=E5("File"),V2=E5("Blob"),O2=E5("FileList"),M2=u=>Ne(u)&&Wu(u.pipe),R2=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||Wu(u.append)&&((e=b0(u))==="formdata"||e==="object"&&Wu(u.toString)&&u.toString()==="[object FormData]"))},z2=E5("URLSearchParams"),[I2,H2,q2,U2]=["ReadableStream","Request","Response","Headers"].map(E5),j2=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pe(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,E;if(typeof u!="object"&&(u=[u]),Ee(u))for(n=0,E=u.length;n<E;n++)e.call(null,u[n],n,u);else{if(Se(u))return;const o=t?Object.getOwnPropertyNames(u):Object.keys(u),a=o.length;let i;for(n=0;n<a;n++)i=o[n],e.call(null,u[i],i,u)}}function Er(u,e){if(Se(u))return null;e=e.toLowerCase();const t=Object.keys(u);let n=t.length,E;for(;n-- >0;)if(E=t[n],e===E.toLowerCase())return E;return null}const z5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,or=u=>!ke(u)&&u!==z5;function o6(){const{caseless:u}=or(this)&&this||{},e={},t=(n,E)=>{const o=u&&Er(e,E)||E;T0(e[o])&&T0(n)?e[o]=o6(e[o],n):T0(n)?e[o]=o6({},n):Ee(n)?e[o]=n.slice():e[o]=n};for(let n=0,E=arguments.length;n<E;n++)arguments[n]&&Pe(arguments[n],t);return e}const $2=(u,e,t,{allOwnKeys:n}={})=>(Pe(e,(E,o)=>{t&&Wu(E)?u[o]=er(E,t):u[o]=E},{allOwnKeys:n}),u),W2=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),G2=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},K2=(u,e,t,n)=>{let E,o,a;const i={};if(e=e||{},u==null)return e;do{for(E=Object.getOwnPropertyNames(u),o=E.length;o-- >0;)a=E[o],(!n||n(a,u,e))&&!i[a]&&(e[a]=u[a],i[a]=!0);u=t!==!1&&E6(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},Y2=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},J2=u=>{if(!u)return null;if(Ee(u))return u;let e=u.length;if(!nr(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},X2=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&E6(Uint8Array)),Z2=(u,e)=>{const n=(u&&u[y0]).call(u);let E;for(;(E=n.next())&&!E.done;){const o=E.value;e.call(u,o[0],o[1])}},Q2=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},ui=E5("HTMLFormElement"),ei=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,E){return n.toUpperCase()+E}),ar=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),ti=E5("RegExp"),ir=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};Pe(t,(E,o)=>{let a;(a=e(E,o,u))!==!1&&(n[o]=a||E)}),Object.defineProperties(u,n)},ri=u=>{ir(u,(e,t)=>{if(Wu(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(Wu(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ni=(u,e)=>{const t={},n=E=>{E.forEach(o=>{t[o]=!0})};return Ee(u)?n(u):n(String(u).split(e)),t},Ei=()=>{},oi=(u,e)=>u!=null&&Number.isFinite(u=+u)?u:e;function ai(u){return!!(u&&Wu(u.append)&&u[tr]==="FormData"&&u[y0])}const ii=u=>{const e=new Array(10),t=(n,E)=>{if(Ne(n)){if(e.indexOf(n)>=0)return;if(Se(n))return n;if(!("toJSON"in n)){e[E]=n;const o=Ee(n)?[]:{};return Pe(n,(a,i)=>{const s=t(a,E+1);!ke(s)&&(o[i]=s)}),e[E]=void 0,o}}return n};return t(u,0)},li=E5("AsyncFunction"),si=u=>u&&(Ne(u)||Wu(u))&&Wu(u.then)&&Wu(u.catch),lr=((u,e)=>u?setImmediate:e?((t,n)=>(z5.addEventListener("message",({source:E,data:o})=>{E===z5&&o===t&&n.length&&n.shift()()},!1),E=>{n.push(E),z5.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Wu(z5.postMessage)),Ci=typeof queueMicrotask<"u"?queueMicrotask.bind(z5):typeof process<"u"&&process.nextTick||lr;var H={isArray:Ee,isArrayBuffer:rr,isBuffer:Se,isFormData:R2,isArrayBufferView:T2,isString:k2,isNumber:nr,isBoolean:S2,isObject:Ne,isPlainObject:T0,isEmptyObject:N2,isReadableStream:I2,isRequest:H2,isResponse:q2,isHeaders:U2,isUndefined:ke,isDate:P2,isFile:L2,isBlob:V2,isRegExp:ti,isFunction:Wu,isStream:M2,isURLSearchParams:z2,isTypedArray:X2,isFileList:O2,forEach:Pe,merge:o6,extend:$2,trim:j2,stripBOM:W2,inherits:G2,toFlatObject:K2,kindOf:b0,kindOfTest:E5,endsWith:Y2,toArray:J2,forEachEntry:Z2,matchAll:Q2,isHTMLForm:ui,hasOwnProperty:ar,hasOwnProp:ar,reduceDescriptors:ir,freezeMethods:ri,toObjectSet:ni,toCamelCase:ei,noop:Ei,toFiniteNumber:oi,findKey:Er,global:z5,isContextDefined:or,isSpecCompliantForm:ai,toJSONObject:ii,isAsyncFn:li,isThenable:si,setImmediate:lr,asap:Ci,isIterable:u=>u!=null&&Wu(u[y0])};function tu(u,e,t,n,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),E&&(this.response=E,this.status=E.status?E.status:null)}H.inherits(tu,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const sr=tu.prototype,Cr={};["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(u=>{Cr[u]={value:u}}),Object.defineProperties(tu,Cr),Object.defineProperty(sr,"isAxiosError",{value:!0}),tu.from=(u,e,t,n,E,o)=>{const a=Object.create(sr);return H.toFlatObject(u,a,function(s){return s!==Error.prototype},i=>i!=="isAxiosError"),tu.call(a,u.message,e,t,n,E),a.cause=u,a.name=u.name,o&&Object.assign(a,o),a};var a6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var i6,Fr;function Fi(){return Fr||(Fr=1,i6=typeof self=="object"?self.FormData:window.FormData),i6}var ci=Fi(),cr=vu(ci);function l6(u){return H.isPlainObject(u)||H.isArray(u)}function Br(u){return H.endsWith(u,"[]")?u.slice(0,-2):u}function Dr(u,e,t){return u?u.concat(e).map(function(E,o){return E=Br(E),!t&&o?"["+E+"]":E}).join(t?".":""):e}function Bi(u){return H.isArray(u)&&!u.some(l6)}const Di=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function k0(u,e,t){if(!H.isObject(u))throw new TypeError("target must be an object");e=e||new(cr||FormData),t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,d){return!H.isUndefined(d[f])});const n=t.metaTokens,E=t.visitor||C,o=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(E))throw new TypeError("visitor must be a function");function l(F){if(F===null)return"";if(H.isDate(F))return F.toISOString();if(H.isBoolean(F))return F.toString();if(!s&&H.isBlob(F))throw new tu("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(F)||H.isTypedArray(F)?s&&typeof Blob=="function"?new Blob([F]):Buffer.from(F):F}function C(F,f,d){let D=F;if(F&&!d&&typeof F=="object"){if(H.endsWith(f,"{}"))f=n?f:f.slice(0,-2),F=JSON.stringify(F);else if(H.isArray(F)&&Bi(F)||(H.isFileList(F)||H.endsWith(f,"[]"))&&(D=H.toArray(F)))return f=Br(f),D.forEach(function(h,A){!(H.isUndefined(h)||h===null)&&e.append(a===!0?Dr([f],A,o):a===null?f:f+"[]",l(h))}),!1}return l6(F)?!0:(e.append(Dr(d,f,o),l(F)),!1)}const B=[],c=Object.assign(Di,{defaultVisitor:C,convertValue:l,isVisitable:l6});function m(F,f){if(!H.isUndefined(F)){if(B.indexOf(F)!==-1)throw Error("Circular reference detected in "+f.join("."));B.push(F),H.forEach(F,function(D,p){(!(H.isUndefined(D)||D===null)&&E.call(e,D,H.isString(p)?p.trim():p,f,c))===!0&&m(D,f?f.concat(p):[p])}),B.pop()}}if(!H.isObject(u))throw new TypeError("data must be an object");return m(u),e}function dr(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function pr(u,e){this._pairs=[],u&&k0(u,this,e)}const Ar=pr.prototype;Ar.append=function(e,t){this._pairs.push([e,t])},Ar.toString=function(e){const t=e?function(n){return e.call(this,n,dr)}:dr;return this._pairs.map(function(E){return t(E[0])+"="+t(E[1])},"").join("&")};function di(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s6(u,e,t){if(!e)return u;const n=t&&t.encode||di;H.isFunction(t)&&(t={serialize:t});const E=t&&t.serialize;let o;if(E?o=E(e,t):o=H.isURLSearchParams(e)?e.toString():new pr(e,t).toString(n),o){const a=u.indexOf("#");a!==-1&&(u=u.slice(0,a)),u+=(u.indexOf("?")===-1?"?":"&")+o}return u}class mr{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n)})}}var C6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pi=n6.URLSearchParams;const F6="abcdefghijklmnopqrstuvwxyz",fr="0123456789",hr={DIGIT:fr,ALPHA:F6,ALPHA_DIGIT:F6+F6.toUpperCase()+fr};var Ai={isNode:!0,classes:{URLSearchParams:pi,FormData:cr,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:hr,generateString:(u=16,e=hr.ALPHA_DIGIT)=>{let t="";const{length:n}=e,E=new Uint32Array(u);r2.randomFillSync(E);for(let o=0;o<u;o++)t+=e[E[o]%n];return t},protocols:["http","https","file","data"]};const c6=typeof window<"u"&&typeof document<"u",B6=typeof navigator=="object"&&navigator||void 0,mi=c6&&(!B6||["ReactNative","NativeScript","NS"].indexOf(B6.product)<0),fi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hi=c6&&window.location.href||"http://localhost";var gi=Object.freeze({__proto__:null,hasBrowserEnv:c6,hasStandardBrowserEnv:mi,hasStandardBrowserWebWorkerEnv:fi,navigator:B6,origin:hi}),gu={...gi,...Ai};function xi(u,e){return k0(u,new gu.classes.URLSearchParams,{visitor:function(t,n,E,o){return gu.isNode&&H.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function _i(u){return H.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vi(u){const e={},t=Object.keys(u);let n;const E=t.length;let o;for(n=0;n<E;n++)o=t[n],e[o]=u[o];return e}function gr(u){function e(t,n,E,o){let a=t[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),s=o>=t.length;return a=!a&&H.isArray(E)?E.length:a,s?(H.hasOwnProp(E,a)?E[a]=[E[a],n]:E[a]=n,!i):((!E[a]||!H.isObject(E[a]))&&(E[a]=[]),e(t,n,E[a],o)&&H.isArray(E[a])&&(E[a]=vi(E[a])),!i)}if(H.isFormData(u)&&H.isFunction(u.entries)){const t={};return H.forEachEntry(u,(n,E)=>{e(_i(n),E,t,0)}),t}return null}function yi(u,e,t){if(H.isString(u))try{return(e||JSON.parse)(u),H.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const Le={transitional:C6,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",E=n.indexOf("application/json")>-1,o=H.isObject(e);if(o&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return E?JSON.stringify(gr(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xi(e,this.formSerializer).toString();if((i=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return k0(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return o||E?(t.setContentType("application/json",!1),yi(e)):e}],transformResponse:[function(e){const t=this.transitional||Le.transitional,n=t&&t.forcedJSONParsing,E=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||E)){const a=!(t&&t.silentJSONParsing)&&E;try{return JSON.parse(e)}catch(i){if(a)throw i.name==="SyntaxError"?tu.from(i,tu.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gu.classes.FormData,Blob:gu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],u=>{Le.headers[u]={}});const bi=H.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"]);var wi=u=>{const e={};let t,n,E;return u&&u.split(`
`).forEach(function(a){E=a.indexOf(":"),t=a.substring(0,E).trim().toLowerCase(),n=a.substring(E+1).trim(),!(!t||e[t]&&bi[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};const xr=Symbol("internals");function Ve(u){return u&&String(u).trim().toLowerCase()}function S0(u){return u===!1||u==null?u:H.isArray(u)?u.map(S0):String(u)}function Ti(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const ki=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function D6(u,e,t,n,E){if(H.isFunction(n))return n.call(this,e,t);if(E&&(e=t),!!H.isString(e)){if(H.isString(n))return e.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(e)}}function Si(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ni(u,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(E,o,a){return this[n].call(this,e,E,o,a)},configurable:!0})})}let Vu=class{constructor(e){e&&this.set(e)}set(e,t,n){const E=this;function o(i,s,l){const C=Ve(s);if(!C)throw new Error("header name must be a non-empty string");const B=H.findKey(E,C);(!B||E[B]===void 0||l===!0||l===void 0&&E[B]!==!1)&&(E[B||s]=S0(i))}const a=(i,s)=>H.forEach(i,(l,C)=>o(l,C,s));if(H.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(H.isString(e)&&(e=e.trim())&&!ki(e))a(wi(e),t);else if(H.isObject(e)&&H.isIterable(e)){let i={},s,l;for(const C of e){if(!H.isArray(C))throw TypeError("Object iterator must return a key-value pair");i[l=C[0]]=(s=i[l])?H.isArray(s)?[...s,C[1]]:[s,C[1]]:C[1]}a(i,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=Ve(e),e){const n=H.findKey(this,e);if(n){const E=this[n];if(!t)return E;if(t===!0)return Ti(E);if(H.isFunction(t))return t.call(this,E,n);if(H.isRegExp(t))return t.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ve(e),e){const n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||D6(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let E=!1;function o(a){if(a=Ve(a),a){const i=H.findKey(n,a);i&&(!t||D6(n,n[i],i,t))&&(delete n[i],E=!0)}}return H.isArray(e)?e.forEach(o):o(e),E}clear(e){const t=Object.keys(this);let n=t.length,E=!1;for(;n--;){const o=t[n];(!e||D6(this,this[o],o,e,!0))&&(delete this[o],E=!0)}return E}normalize(e){const t=this,n={};return H.forEach(this,(E,o)=>{const a=H.findKey(n,o);if(a){t[a]=S0(E),delete t[o];return}const i=e?Si(o):String(o).trim();i!==o&&delete t[o],t[i]=S0(E),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(n,E)=>{n!=null&&n!==!1&&(t[E]=e&&H.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(E=>n.set(E)),n}static accessor(e){const n=(this[xr]=this[xr]={accessors:{}}).accessors,E=this.prototype;function o(a){const i=Ve(a);n[i]||(Ni(E,a),n[i]=!0)}return H.isArray(e)?e.forEach(o):o(e),this}};Vu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Vu.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}}),H.freezeMethods(Vu);function d6(u,e){const t=this||Le,n=e||t,E=Vu.from(n.headers);let o=n.data;return H.forEach(u,function(i){o=i.call(t,o,E.normalize(),e?e.status:void 0)}),E.normalize(),o}function _r(u){return!!(u&&u.__CANCEL__)}function b5(u,e,t){tu.call(this,u??"canceled",tu.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(b5,tu,{__CANCEL__:!0});function oe(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new tu("Request failed with status code "+t.status,[tu.ERR_BAD_REQUEST,tu.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Pi(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function Li(u,e){return e?u.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):u}function p6(u,e,t){let n=!Pi(e);return u&&(n||t==!1)?Li(u,e):e}var A6={},vr;function Vi(){if(vr)return A6;vr=1;var u=n6.parse,e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},t=String.prototype.endsWith||function(a){return a.length<=this.length&&this.indexOf(a,this.length-a.length)!==-1};function n(a){var i=typeof a=="string"?u(a):a||{},s=i.protocol,l=i.host,C=i.port;if(typeof l!="string"||!l||typeof s!="string"||(s=s.split(":",1)[0],l=l.replace(/:\d*$/,""),C=parseInt(C)||e[s]||0,!E(l,C)))return"";var B=o("npm_config_"+s+"_proxy")||o(s+"_proxy")||o("npm_config_proxy")||o("all_proxy");return B&&B.indexOf("://")===-1&&(B=s+"://"+B),B}function E(a,i){var s=(o("npm_config_no_proxy")||o("no_proxy")).toLowerCase();return s?s==="*"?!1:s.split(/[,\s]/).every(function(l){if(!l)return!0;var C=l.match(/^(.+):(\d+)$/),B=C?C[1]:l,c=C?parseInt(C[2]):0;return c&&c!==i?!0:/^[.*]/.test(B)?(B.charAt(0)==="*"&&(B=B.slice(1)),!t.call(a,B)):a!==B}):!0}function o(a){return process.env[a.toLowerCase()]||process.env[a.toUpperCase()]||""}return A6.getProxyForUrl=n,A6}var Oi=Vi(),Mi=vu(Oi),N0={exports:{}},P0={exports:{}},m6,yr;function Ri(){if(yr)return m6;yr=1;var u=1e3,e=u*60,t=e*60,n=t*24,E=n*7,o=n*365.25;m6=function(C,B){B=B||{};var c=typeof C;if(c==="string"&&C.length>0)return a(C);if(c==="number"&&isFinite(C))return B.long?s(C):i(C);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))};function a(C){if(C=String(C),!(C.length>100)){var B=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(C);if(B){var c=parseFloat(B[1]),m=(B[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*E;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*e;case"seconds":case"second":case"secs":case"sec":case"s":return c*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function i(C){var B=Math.abs(C);return B>=n?Math.round(C/n)+"d":B>=t?Math.round(C/t)+"h":B>=e?Math.round(C/e)+"m":B>=u?Math.round(C/u)+"s":C+"ms"}function s(C){var B=Math.abs(C);return B>=n?l(C,B,n,"day"):B>=t?l(C,B,t,"hour"):B>=e?l(C,B,e,"minute"):B>=u?l(C,B,u,"second"):C+" ms"}function l(C,B,c,m){var F=B>=c*1.5;return Math.round(C/c)+" "+m+(F?"s":"")}return m6}var f6,br;function zi(){if(br)return f6;br=1;function u(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=s,n.humanize=Ri(),n.destroy=C,Object.keys(e).forEach(B=>{n[B]=e[B]}),n.names=[],n.skips=[],n.formatters={};function t(B){let c=0;for(let m=0;m<B.length;m++)c=(c<<5)-c+B.charCodeAt(m),c|=0;return n.colors[Math.abs(c)%n.colors.length]}n.selectColor=t;function n(B){let c,m=null,F,f;function d(...D){if(!d.enabled)return;const p=d,h=Number(new Date),A=h-(c||h);p.diff=A,p.prev=c,p.curr=h,c=h,D[0]=n.coerce(D[0]),typeof D[0]!="string"&&D.unshift("%O");let x=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(g,y)=>{if(g==="%%")return"%";x++;const w=n.formatters[y];if(typeof w=="function"){const v=D[x];g=w.call(p,v),D.splice(x,1),x--}return g}),n.formatArgs.call(p,D),(p.log||n.log).apply(p,D)}return d.namespace=B,d.useColors=n.useColors(),d.color=n.selectColor(B),d.extend=E,d.destroy=n.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(F!==n.namespaces&&(F=n.namespaces,f=n.enabled(B)),f),set:D=>{m=D}}),typeof n.init=="function"&&n.init(d),d}function E(B,c){const m=n(this.namespace+(typeof c>"u"?":":c)+B);return m.log=this.log,m}function o(B){n.save(B),n.namespaces=B,n.names=[],n.skips=[];const c=(typeof B=="string"?B:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of c)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function a(B,c){let m=0,F=0,f=-1,d=0;for(;m<B.length;)if(F<c.length&&(c[F]===B[m]||c[F]==="*"))c[F]==="*"?(f=F,d=m,F++):(m++,F++);else if(f!==-1)F=f+1,d++,m=d;else return!1;for(;F<c.length&&c[F]==="*";)F++;return F===c.length}function i(){const B=[...n.names,...n.skips.map(c=>"-"+c)].join(",");return n.enable(""),B}function s(B){for(const c of n.skips)if(a(B,c))return!1;for(const c of n.names)if(a(B,c))return!0;return!1}function l(B){return B instanceof Error?B.stack||B.message:B}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return f6=u,f6}var wr;function Ii(){return wr||(wr=1,function(u,e){e.formatArgs=n,e.save=save,e.load=E,e.useColors=t,e.storage=o(),e.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;i.splice(1,0,s,"color: inherit");let l=0,C=0;i[0].replace(/%[a-zA-Z%]/g,B=>{B!=="%%"&&(l++,B==="%c"&&(C=l))}),i.splice(C,0,s)}e.log=console.debug||function(s){try{s?e.storage.setItem("debug",s):e.storage.removeItem("debug")}catch{}};function E(){let i;try{i=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function o(){try{return localStorage}catch{}}u.exports=zi()(e);const{formatters:a}=u.exports;a.j=function(i){try{return JSON.stringify(i)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}}(P0,P0.exports)),P0.exports}var h6,Tr;function Hi(){if(Tr)return h6;Tr=1;var u;return h6=function(){if(!u){try{u=Ii()("follow-redirects")}catch{}typeof u!="function"&&(u=function(){})}u.apply(null,arguments)},h6}var kr;function qi(){if(kr)return N0.exports;kr=1;var u=n6,e=u.URL,t=Z7,n=Q7,E=c5.Writable,o=n2,a=Hi();(function(){var O=typeof process<"u",k=typeof window<"u"&&typeof document<"u",I=q(Error.captureStackTrace);!O&&(k||!I)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var i=!1;try{o(new e(""))}catch(M){i=M.code==="ERR_INVALID_URL"}var s=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],l=["abort","aborted","connect","error","socket","timeout"],C=Object.create(null);l.forEach(function(M){C[M]=function(O,k,I){this._redirectable.emit(M,O,k,I)}});var B=w("ERR_INVALID_URL","Invalid URL",TypeError),c=w("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),m=w("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",c),F=w("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),f=w("ERR_STREAM_WRITE_AFTER_END","write after end"),d=E.prototype.destroy||h;function D(M,O){E.call(this),this._sanitizeOptions(M),this._options=M,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],O&&this.on("response",O);var k=this;this._onNativeResponse=function(I){try{k._processResponse(I)}catch(K){k.emit("error",K instanceof c?K:new c({cause:K}))}},this._performRequest()}D.prototype=Object.create(E.prototype),D.prototype.abort=function(){v(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},D.prototype.destroy=function(M){return v(this._currentRequest,M),d.call(this,M),this},D.prototype.write=function(M,O,k){if(this._ending)throw new f;if(!V(M)&&!J(M))throw new TypeError("data should be a string, Buffer or Uint8Array");if(q(O)&&(k=O,O=null),M.length===0){k&&k();return}this._requestBodyLength+M.length<=this._options.maxBodyLength?(this._requestBodyLength+=M.length,this._requestBodyBuffers.push({data:M,encoding:O}),this._currentRequest.write(M,O,k)):(this.emit("error",new F),this.abort())},D.prototype.end=function(M,O,k){if(q(M)?(k=M,M=O=null):q(O)&&(k=O,O=null),!M)this._ended=this._ending=!0,this._currentRequest.end(null,null,k);else{var I=this,K=this._currentRequest;this.write(M,O,function(){I._ended=!0,K.end(null,null,k)}),this._ending=!0}},D.prototype.setHeader=function(M,O){this._options.headers[M]=O,this._currentRequest.setHeader(M,O)},D.prototype.removeHeader=function(M){delete this._options.headers[M],this._currentRequest.removeHeader(M)},D.prototype.setTimeout=function(M,O){var k=this;function I(L){L.setTimeout(M),L.removeListener("timeout",L.destroy),L.addListener("timeout",L.destroy)}function K(L){k._timeout&&clearTimeout(k._timeout),k._timeout=setTimeout(function(){k.emit("timeout"),N()},M),I(L)}function N(){k._timeout&&(clearTimeout(k._timeout),k._timeout=null),k.removeListener("abort",N),k.removeListener("error",N),k.removeListener("response",N),k.removeListener("close",N),O&&k.removeListener("timeout",O),k.socket||k._currentRequest.removeListener("socket",K)}return O&&this.on("timeout",O),this.socket?K(this.socket):this._currentRequest.once("socket",K),this.on("socket",I),this.on("abort",N),this.on("error",N),this.on("response",N),this.on("close",N),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(M){D.prototype[M]=function(O,k){return this._currentRequest[M](O,k)}}),["aborted","connection","socket"].forEach(function(M){Object.defineProperty(D.prototype,M,{get:function(){return this._currentRequest[M]}})}),D.prototype._sanitizeOptions=function(M){if(M.headers||(M.headers={}),M.host&&(M.hostname||(M.hostname=M.host),delete M.host),!M.pathname&&M.path){var O=M.path.indexOf("?");O<0?M.pathname=M.path:(M.pathname=M.path.substring(0,O),M.search=M.path.substring(O))}},D.prototype._performRequest=function(){var M=this._options.protocol,O=this._options.nativeProtocols[M];if(!O)throw new TypeError("Unsupported protocol "+M);if(this._options.agents){var k=M.slice(0,-1);this._options.agent=this._options.agents[k]}var I=this._currentRequest=O.request(this._options,this._onNativeResponse);I._redirectable=this;for(var K of l)I.on(K,C[K]);if(this._currentUrl=/^\//.test(this._options.path)?u.format(this._options):this._options.path,this._isRedirect){var N=0,L=this,R=this._requestBodyBuffers;(function T(G){if(I===L._currentRequest)if(G)L.emit("error",G);else if(N<R.length){var W=R[N++];I.finished||I.write(W.data,W.encoding,T)}else L._ended&&I.end()})()}},D.prototype._processResponse=function(M){var O=M.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:M.headers,statusCode:O});var k=M.headers.location;if(!k||this._options.followRedirects===!1||O<300||O>=400){M.responseUrl=this._currentUrl,M.redirects=this._redirects,this.emit("response",M),this._requestBodyBuffers=[];return}if(v(this._currentRequest),M.destroy(),++this._redirectCount>this._options.maxRedirects)throw new m;var I,K=this._options.beforeRedirect;K&&(I=Object.assign({Host:M.req.getHeader("host")},this._options.headers));var N=this._options.method;((O===301||O===302)&&this._options.method==="POST"||O===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],y(/^content-/i,this._options.headers));var L=y(/^host$/i,this._options.headers),R=A(this._currentUrl),T=L||R.host,G=/^\w+:/.test(k)?this._currentUrl:u.format(Object.assign(R,{host:T})),W=x(k,G);if(a("redirecting to",W.href),this._isRedirect=!0,g(W,this._options),(W.protocol!==R.protocol&&W.protocol!=="https:"||W.host!==T&&!b(W.host,T))&&y(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),q(K)){var ru={headers:M.headers,statusCode:O},Q={url:G,method:N,headers:I};K(this._options,ru,Q),this._sanitizeOptions(this._options)}this._performRequest()};function p(M){var O={maxRedirects:21,maxBodyLength:10485760},k={};return Object.keys(M).forEach(function(I){var K=I+":",N=k[K]=M[I],L=O[I]=Object.create(N);function R(G,W,ru){return eu(G)?G=g(G):V(G)?G=g(A(G)):(ru=W,W=_(G),G={protocol:K}),q(W)&&(ru=W,W=null),W=Object.assign({maxRedirects:O.maxRedirects,maxBodyLength:O.maxBodyLength},G,W),W.nativeProtocols=k,!V(W.host)&&!V(W.hostname)&&(W.hostname="::1"),o.equal(W.protocol,K,"protocol mismatch"),a("options",W),new D(W,ru)}function T(G,W,ru){var Q=L.request(G,W,ru);return Q.end(),Q}Object.defineProperties(L,{request:{value:R,configurable:!0,enumer