quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
4 lines • 93.9 kB
JavaScript
"use strict";const T=require("vue"),b=require("./platform-Dl0zaSyI.cjs"),ln=require("./index-D8siRAAk.cjs");function cn(t=""){throw new Error("请传入参数:"+t)}function yo(t){let e;const r=T.ref(!1),n=T.reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function o(f){n.text=f}function a(){const f=n.parent,v=p.ns;if(!f.vLoadingAddClassList){let y=f.getAttribute("loading-number");y=Number.parseInt(y)-1,y?f.setAttribute("loading-number",y.toString()):(b.removeClass(f,v.bm("parent","relative")),f.removeAttribute("loading-number")),b.removeClass(f,v.bm("parent","hidden"))}i(),c.unmount()}function i(){var f,v;(v=(f=p.$el)==null?void 0:f.parentNode)==null||v.removeChild(p.$el)}function s(){var f;t.beforeClose&&!t.beforeClose()||(r.value=!0,clearTimeout(e),e=setTimeout(u,400),n.visible=!1,(f=t.closed)==null||f.call(t))}function u(){if(!r.value)return;const f=n.parent;r.value=!1,f.vLoadingAddClassList=void 0,a()}const l=T.defineComponent({name:"ElLoading",setup(f,{expose:v}){const{ns:y,zIndex:h}=b.useGlobalComponentSettings("loading");return v({ns:y,zIndex:h}),()=>{const m=n.spinner||n.svg,S=T.h("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[T.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),A=n.text?T.h("p",{class:y.b("text")},[n.text]):void 0;return T.h(T.Transition,{name:y.b("fade"),onAfterLeave:u},{default:T.withCtx(()=>[T.withDirectives(T.createVNode("div",{style:{backgroundColor:n.background||""},class:[y.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[T.h("div",{class:y.b("spinner")},[S,A])]),[[T.vShow,n.visible]])])})}}}),c=T.createApp(l),p=c.mount(document.createElement("div"));return{...T.toRefs(n),setText:o,removeElLoadingChild:i,close:s,handleAfterLeave:u,vm:p,get $el(){return p.$el}}}let $e;const Dt=function(t={}){if(!b.isClient)return;const e=mo(t);if(e.fullscreen&&$e)return $e;const r=yo({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&($e=void 0)}});ho(e,e.parent,r),sr(e,e.parent,r),e.parent.vLoadingAddClassList=()=>sr(e,e.parent,r);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(r.$el),T.nextTick(()=>r.visible.value=e.visible),e.fullscreen&&($e=r),r},mo=t=>{var e,r,n,o;let a;return b.isString(t.target)?a=(e=document.querySelector(t.target))!=null?e:document.body:a=t.target||document.body,{parent:a===document.body||t.body?document.body:a,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:a===document.body&&((r=t.fullscreen)!=null?r:!0),lock:(n=t.lock)!=null?n:!1,customClass:t.customClass||"",visible:(o=t.visible)!=null?o:!0,beforeClose:t.beforeClose,closed:t.closed,target:a}},ho=async(t,e,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,o={};if(t.fullscreen)r.originalPosition.value=b.getStyle(document.body,"position"),r.originalOverflow.value=b.getStyle(document.body,"overflow"),o.zIndex=n();else if(t.parent===document.body){r.originalPosition.value=b.getStyle(document.body,"position"),await T.nextTick();for(const a of["top","left"]){const i=a==="top"?"scrollTop":"scrollLeft";o[a]=`${t.target.getBoundingClientRect()[a]+document.body[i]+document.documentElement[i]-Number.parseInt(b.getStyle(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])o[a]=`${t.target.getBoundingClientRect()[a]}px`}else r.originalPosition.value=b.getStyle(e,"position");for(const[a,i]of Object.entries(o))r.$el.style[a]=i},sr=(t,e,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?b.removeClass(e,n.bm("parent","relative")):b.addClass(e,n.bm("parent","relative")),t.fullscreen&&t.lock?b.addClass(e,n.bm("parent","hidden")):b.removeClass(e,n.bm("parent","hidden"))},Le=Symbol("ElLoading"),lr=(t,e)=>{var r,n,o,a;const i=e.instance,s=f=>b.isObject(e.value)?e.value[f]:void 0,u=f=>{const v=b.isString(f)&&(i==null?void 0:i[f])||f;return v&&T.ref(v)},l=f=>u(s(f)||t.getAttribute(`element-loading-${b.hyphenate(f)}`)),c=(r=s("fullscreen"))!=null?r:e.modifiers.fullscreen,p={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:c,target:(n=s("target"))!=null?n:c?void 0:t,body:(o=s("body"))!=null?o:e.modifiers.body,lock:(a=s("lock"))!=null?a:e.modifiers.lock};t[Le]={options:p,instance:Dt(p)}},vo=(t,e)=>{for(const r of Object.keys(e))T.isRef(e[r])&&(e[r].value=t[r])},cr={mounted(t,e){e.value&&lr(t,e)},updated(t,e){const r=t[Le];e.oldValue!==e.value&&(e.value&&!e.oldValue?lr(t,e):e.value&&e.oldValue?b.isObject(e.value)&&vo(e.value,r.options):r==null||r.instance.close())},unmounted(t){var e;(e=t[Le])==null||e.instance.close(),t[Le]=null}},go={install(t){t.directive("loading",cr),t.config.globalProperties.$loading=Dt},directive:cr,service:Dt},{colorDanger:ur,colorSuccess:Me,colorWarning:bo}=b.cssVars,wo={add:{name:"add",text:"新增",order:0,attrs:{type:"success",icon:"CirclePlus"}},edit:{name:"edit",text:"编辑",order:1,attrs:{type:"success",icon:"Edit"}},delete:{name:"delete",text:"删除",order:2,batchAble:!0,attrs:{type:"danger",icon:"Delete"},popconfirm:{icon:ln.warning_filled_default,iconColor:ur,confirmButtonType:"danger"}},pass:{name:"pass",text:"通过",order:3,batchAble:!0,validateForm:!0,attrs:{type:"success",icon:"Checked"},popconfirm:{icon:"CircleCheck",iconColor:Me,confirmButtonType:"success"}},reject:{name:"reject",text:"驳回",order:4,batchAble:!0,validateForm:!0,attrs:{type:"danger",icon:"Failed"},popconfirm:{icon:"CircleClose",iconColor:ur,confirmButtonType:"danger"}},repeal:{name:"repeal",text:"撤销",order:5,batchAble:!0,attrs:{type:"warning",icon:"TopLeft"}},import:{name:"import",text:"导入",handleClickType:"common",order:6,attrs:{type:"primary",icon:"Top"}},export:{name:"export",text:"导出",order:7,batchAble:!0,handleClickType:"common",attrs:{type:"primary",icon:"Bottom"},popconfirm:!0},upload:{name:"upload",text:"上传",order:8,attrs:{type:"primary",icon:"Upload"}},download:{name:"download",text:"下载",order:9,batchAble:!0,attrs:{type:"primary",icon:"Download"}},onShelf:{name:"onShelf",text:"上架",order:10,batchAble:!0,attrs:{type:"primary",icon:"Plus"},popconfirm:{iconColor:Me,confirmButtonType:"primary"}},offShelf:{name:"offShelf",text:"下架",order:10,batchAble:!0,attrs:{type:"danger",icon:"Minus"},popconfirm:{iconColor:Me,confirmButtonType:"danger"}},enable:{name:"enable",text:"启用",order:10,batchAble:!0,attrs:{type:"success",icon:"CircleCheck"},popconfirm:{iconColor:Me,confirmButtonType:"success"}},forbid:{name:"forbid",text:"禁用",order:11,batchAble:!0,attrs:{type:"warning",icon:"Remove"},popconfirm:{iconColor:bo,confirmButtonType:"warning"}},audit:{name:"audit",text:"审核",order:20,attrs:{type:"success",icon:"Edit"}},view:{name:"view",text:"详情",order:21,attrs:{type:"info",icon:"View"}},submit:{name:"submit",text:"提交",order:40,attrs:{type:"primary",icon:"Promotion"}},reset:{name:"reset",text:"重置",order:41,attrs:{icon:"RefreshLeft"}},log:{name:"log",text:"日志",order:42,attrs:{type:"primary",icon:"Tickets"}},link:{name:"link",text:"前往",order:50,attrs:{type:"info",icon:"Link"}}},{merge:fr}=b._;function un(t,e){const{text:r,attrs:n={}}=e,{type:o}=n,a={iconColor:b.getSysThemeColor(o),confirmButtonType:o},i=`确认${r}吗?`,s=b.typeOf(t);if(s==="String")return{title:t,...a};if(s==="Object")return{title:i,...a,...t};if(t===!0)return{title:i,...a};throw new Error(`暂未处理此种情况:${s}`)}function He(t,e,r,n=!1){const o=b.typeOf(t);let a={name:""};if(o==="String"){const l=Ft[t];if(!l)return{name:t};const{icon:c}=l.attrs||{};a=JSON.parse(JSON.stringify(l)),c&&(a.attrs.icon=c)}else if(o==="Object"){if(n)return t;const{name:l=cn()}=t;a=fr({},Ft[l],t)}else o==="Function"&&(a=He(t(e),e));const{auth:i,attrs:s,popconfirm:u}=a;if(i!=null&&i.length&&(a.auth=i.map(l=>{var f;if(typeof l!="object")return l;const{disabled:c,code:p}=l;return c&&((f=b.getUserInfo())==null?void 0:f.type)===p&&(s?s.disabled=!0:a.attrs={disabled:!0}),p})),u&&(a.popconfirm=un(u,a)),s){const{icon:l}=s;l&&b.typeOf(l)==="String"&&(s.icon=ln.Icons[l])}if(r){const{attrs:l,...c}=r;if(fr(a.attrs,l),c)for(const p in c)c[p]!==void 0&&(a[p]=c[p])}return a.handleClickType===void 0&&(a.handleClickType="common"),a}var rn,nn;const So=(nn=(rn=b.config)==null?void 0:rn.tpls)==null?void 0:nn.baseBtns,Ft=b.deepFreeze(b.getExportData(wo,So,"merge")),fn=()=>{const t=T.inject("openPopup"),e=T.inject("closePopup");return{openPopup:t,closePopup:e}};var fe=TypeError;const Eo={},Ao=Object.freeze(Object.defineProperty({__proto__:null,default:Eo},Symbol.toStringTag,{value:"Module"})),Oo=b.getAugmentedNamespace(Ao);var Qt=typeof Map=="function"&&Map.prototype,ct=Object.getOwnPropertyDescriptor&&Qt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,We=Qt&&ct&&typeof ct.get=="function"?ct.get:null,pr=Qt&&Map.prototype.forEach,Xt=typeof Set=="function"&&Set.prototype,ut=Object.getOwnPropertyDescriptor&&Xt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ze=Xt&&ut&&typeof ut.get=="function"?ut.get:null,dr=Xt&&Set.prototype.forEach,Po=typeof WeakMap=="function"&&WeakMap.prototype,ge=Po?WeakMap.prototype.has:null,Ro=typeof WeakSet=="function"&&WeakSet.prototype,be=Ro?WeakSet.prototype.has:null,xo=typeof WeakRef=="function"&&WeakRef.prototype,yr=xo?WeakRef.prototype.deref:null,To=Boolean.prototype.valueOf,Co=Object.prototype.toString,ko=Function.prototype.toString,_o=String.prototype.match,Zt=String.prototype.slice,K=String.prototype.replace,$o=String.prototype.toUpperCase,mr=String.prototype.toLowerCase,pn=RegExp.prototype.test,hr=Array.prototype.concat,G=Array.prototype.join,Mo=Array.prototype.slice,vr=Math.floor,Lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ft=Object.getOwnPropertySymbols,It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ce=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ce||!0)?Symbol.toStringTag:null,dn=Object.prototype.propertyIsEnumerable,gr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function br(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||pn.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-vr(-t):vr(t);if(n!==t){var o=String(n),a=Zt.call(e,o.length+1);return K.call(o,r,"$&_")+"."+K.call(K.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return K.call(e,r,"$&_")}var Bt=Oo,wr=Bt.custom,Sr=hn(wr)?wr:null,yn={__proto__:null,double:'"',single:"'"},No={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Xe=function t(e,r,n,o){var a=r||{};if(z(a,"quoteStyle")&&!z(yn,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=z(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return gn(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return s?br(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return s?br(e,l):l}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Ut(e)?"[Array]":"[Object]";var p=Zo(a,n);if(typeof o>"u")o=[];else if(vn(o,e)>=0)return"[Circular]";function f(L,V,W){if(V&&(o=Mo.call(o),o.push(V)),W){var ye={depth:a.depth};return z(a,"quoteStyle")&&(ye.quoteStyle=a.quoteStyle),t(L,ye,n+1,o)}return t(L,a,n+1,o)}if(typeof e=="function"&&!Er(e)){var v=Go(e),y=Ne(e,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+G.call(y,", ")+" }":"")}if(hn(e)){var h=ce?K.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):It.call(e);return typeof e=="object"&&!ce?me(h):h}if(Ko(e)){for(var m="<"+mr.call(String(e.nodeName)),S=e.attributes||[],A=0;A<S.length;A++)m+=" "+S[A].name+"="+mn(Do(S[A].value),"double",a);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+="</"+mr.call(String(e.nodeName))+">",m}if(Ut(e)){if(e.length===0)return"[]";var g=Ne(e,f);return p&&!Xo(g)?"["+jt(g,p)+"]":"[ "+G.call(g,", ")+" ]"}if(Lo(e)){var k=Ne(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!dn.call(e,"cause")?"{ ["+String(e)+"] "+G.call(hr.call("[cause]: "+f(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+G.call(k,", ")+" }"}if(typeof e=="object"&&i){if(Sr&&typeof e[Sr]=="function"&&Bt)return Bt(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ho(e)){var R=[];return pr&&pr.call(e,function(L,V){R.push(f(V,e,!0)+" => "+f(L,e))}),Ar("Map",We.call(e),R,p)}if(Jo(e)){var M=[];return dr&&dr.call(e,function(L){M.push(f(L,e))}),Ar("Set",ze.call(e),M,p)}if(Wo(e))return pt("WeakMap");if(Vo(e))return pt("WeakSet");if(zo(e))return pt("WeakRef");if(Bo(e))return me(f(Number(e)));if(jo(e))return me(f(Lt.call(e)));if(Uo(e))return me(To.call(e));if(Io(e))return me(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof b.commonjsGlobal<"u"&&e===b.commonjsGlobal)return"{ [object globalThis] }";if(!Fo(e)&&!Er(e)){var N=Ne(e,f),H=gr?gr(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",J=!H&&we&&Object(e)===e&&we in e?Zt.call(Q(e),8,-1):B?"Object":"",_e=H||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",oe=_e+(J||B?"["+G.call(hr.call([],J||[],B||[]),": ")+"] ":"");return N.length===0?oe+"{}":p?oe+"{"+jt(N,p)+"}":oe+"{ "+G.call(N,", ")+" }"}return String(e)};function mn(t,e,r){var n=r.quoteStyle||e,o=yn[n];return o+t+o}function Do(t){return K.call(String(t),/"/g,""")}function ne(t){return!we||!(typeof t=="object"&&(we in t||typeof t[we]<"u"))}function Ut(t){return Q(t)==="[object Array]"&&ne(t)}function Fo(t){return Q(t)==="[object Date]"&&ne(t)}function Er(t){return Q(t)==="[object RegExp]"&&ne(t)}function Lo(t){return Q(t)==="[object Error]"&&ne(t)}function Io(t){return Q(t)==="[object String]"&&ne(t)}function Bo(t){return Q(t)==="[object Number]"&&ne(t)}function Uo(t){return Q(t)==="[object Boolean]"&&ne(t)}function hn(t){if(ce)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!It)return!1;try{return It.call(t),!0}catch{}return!1}function jo(t){if(!t||typeof t!="object"||!Lt)return!1;try{return Lt.call(t),!0}catch{}return!1}var qo=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return qo.call(t,e)}function Q(t){return Co.call(t)}function Go(t){if(t.name)return t.name;var e=_o.call(ko.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function vn(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ho(t){if(!We||!t||typeof t!="object")return!1;try{We.call(t);try{ze.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Wo(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t,ge);try{be.call(t,be)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function zo(t){if(!yr||!t||typeof t!="object")return!1;try{return yr.call(t),!0}catch{}return!1}function Jo(t){if(!ze||!t||typeof t!="object")return!1;try{ze.call(t);try{We.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Vo(t){if(!be||!t||typeof t!="object")return!1;try{be.call(t,be);try{ge.call(t,ge)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Ko(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function gn(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return gn(Zt.call(t,0,e.maxStringLength),e)+n}var o=No[e.quoteStyle||"single"];o.lastIndex=0;var a=K.call(K.call(t,o,"\\$1"),/[\x00-\x1f]/g,Qo);return mn(a,"single",e)}function Qo(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$o.call(e.toString(16))}function me(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function Ar(t,e,r,n){var o=n?jt(r,n):G.call(r,", ");return t+" ("+e+") {"+o+"}"}function Xo(t){for(var e=0;e<t.length;e++)if(vn(t[e],`
`)>=0)return!1;return!0}function Zo(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=G.call(Array(t.indent+1)," ");else return null;return{base:r,prev:G.call(Array(e+1),r)}}function jt(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+G.call(t,","+r)+`
`+e.prev}function Ne(t,e){var r=Ut(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=z(t,o)?e(t[o],t):""}var a=typeof ft=="function"?ft(t):[],i;if(ce){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)z(t,u)&&(r&&String(Number(u))===u&&u<t.length||ce&&i["$"+u]instanceof Symbol||(pn.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof ft=="function")for(var l=0;l<a.length;l++)dn.call(t,a[l])&&n.push("["+e(a[l])+"]: "+e(t[a[l]],t));return n}var Yo=Xe,ea=fe,Ze=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},ta=function(t,e){if(t){var r=Ze(t,e);return r&&r.value}},ra=function(t,e,r){var n=Ze(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},na=function(t,e){return t?!!Ze(t,e):!1},oa=function(t,e){if(t)return Ze(t,e,!0)},aa=function(){var e,r={assert:function(n){if(!r.has(n))throw new ea("Side channel does not contain "+Yo(n))},delete:function(n){var o=e&&e.next,a=oa(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return ta(e,n)},has:function(n){return na(e,n)},set:function(n,o){e||(e={next:void 0}),ra(e,n,o)}};return r},bn=Object,ia=Error,sa=EvalError,la=RangeError,ca=ReferenceError,ua=SyntaxError,fa=URIError,pa=Math.abs,da=Math.floor,ya=Math.max,ma=Math.min,ha=Math.pow,va=Math.round,ga=Number.isNaN||function(e){return e!==e},ba=ga,wa=function(e){return ba(e)||e===0?e:e<0?-1:1},Sa=Object.getOwnPropertyDescriptor,Ie=Sa;if(Ie)try{Ie([],"length")}catch{Ie=null}var wn=Ie,Be=Object.defineProperty||!1;if(Be)try{Be({},"a",{value:1})}catch{Be=!1}var Ea=Be,dt,Or;function Aa(){return Or||(Or=1,dt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),dt}var yt,Pr;function Oa(){if(Pr)return yt;Pr=1;var t=typeof Symbol<"u"&&Symbol,e=Aa();return yt=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},yt}var mt,Rr;function Sn(){return Rr||(Rr=1,mt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),mt}var ht,xr;function En(){if(xr)return ht;xr=1;var t=bn;return ht=t.getPrototypeOf||null,ht}var vt,Tr;function Pa(){if(Tr)return vt;Tr=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var f=0;f<l.length;f+=1)c[f+u.length]=l[f];return c},a=function(u,l){for(var c=[],p=l,f=0;p<u.length;p+=1,f+=1)c[f]=u[p];return c},i=function(s,u){for(var l="",c=0;c<s.length;c+=1)l+=s[c],c+1<s.length&&(l+=u);return l};return vt=function(u){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(t+l);for(var c=a(arguments,1),p,f=function(){if(this instanceof p){var S=l.apply(this,o(c,arguments));return Object(S)===S?S:this}return l.apply(u,o(c,arguments))},v=r(0,l.length-c.length),y=[],h=0;h<v;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var m=function(){};m.prototype=l.prototype,p.prototype=new m,m.prototype=null}return p},vt}var gt,Cr;function Ye(){if(Cr)return gt;Cr=1;var t=Pa();return gt=Function.prototype.bind||t,gt}var bt,kr;function Yt(){return kr||(kr=1,bt=Function.prototype.call),bt}var wt,_r;function An(){return _r||(_r=1,wt=Function.prototype.apply),wt}var Ra=typeof Reflect<"u"&&Reflect&&Reflect.apply,xa=Ye(),Ta=An(),Ca=Yt(),ka=Ra,_a=ka||xa.call(Ca,Ta),$a=Ye(),Ma=fe,Na=Yt(),Da=_a,On=function(e){if(e.length<1||typeof e[0]!="function")throw new Ma("a function is required");return Da($a,Na,e)},St,$r;function Fa(){if($r)return St;$r=1;var t=On,e=wn,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return St=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(s){return a(s==null?s:o(s))}:!1,St}var Et,Mr;function La(){if(Mr)return Et;Mr=1;var t=Sn(),e=En(),r=Fa();return Et=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Et}var At,Nr;function Ia(){if(Nr)return At;Nr=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Ye();return At=r.call(t,e),At}var E,Ba=bn,Ua=ia,ja=sa,qa=la,Ga=ca,ue=ua,le=fe,Ha=fa,Wa=pa,za=da,Ja=ya,Va=ma,Ka=ha,Qa=va,Xa=wa,Pn=Function,Ot=function(t){try{return Pn('"use strict"; return ('+t+").constructor;")()}catch{}},Oe=wn,Za=Ea,Pt=function(){throw new le},Ya=Oe?function(){try{return arguments.callee,Pt}catch{try{return Oe(arguments,"callee").get}catch{return Pt}}}():Pt,ae=Oa()(),_=La(),ei=En(),ti=Sn(),Rn=An(),Re=Yt(),se={},ri=typeof Uint8Array>"u"||!_?E:_(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?E:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?E:ArrayBuffer,"%ArrayIteratorPrototype%":ae&&_?_([][Symbol.iterator]()):E,"%AsyncFromSyncIteratorPrototype%":E,"%AsyncFunction%":se,"%AsyncGenerator%":se,"%AsyncGeneratorFunction%":se,"%AsyncIteratorPrototype%":se,"%Atomics%":typeof Atomics>"u"?E:Atomics,"%BigInt%":typeof BigInt>"u"?E:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?E:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?E:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?E:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ua,"%eval%":eval,"%EvalError%":ja,"%Float16Array%":typeof Float16Array>"u"?E:Float16Array,"%Float32Array%":typeof Float32Array>"u"?E:Float32Array,"%Float64Array%":typeof Float64Array>"u"?E:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?E:FinalizationRegistry,"%Function%":Pn,"%GeneratorFunction%":se,"%Int8Array%":typeof Int8Array>"u"?E:Int8Array,"%Int16Array%":typeof Int16Array>"u"?E:Int16Array,"%Int32Array%":typeof Int32Array>"u"?E:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ae&&_?_(_([][Symbol.iterator]())):E,"%JSON%":typeof JSON=="object"?JSON:E,"%Map%":typeof Map>"u"?E:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ae||!_?E:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ba,"%Object.getOwnPropertyDescriptor%":Oe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?E:Promise,"%Proxy%":typeof Proxy>"u"?E:Proxy,"%RangeError%":qa,"%ReferenceError%":Ga,"%Reflect%":typeof Reflect>"u"?E:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?E:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ae||!_?E:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?E:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ae&&_?_(""[Symbol.iterator]()):E,"%Symbol%":ae?Symbol:E,"%SyntaxError%":ue,"%ThrowTypeError%":Ya,"%TypedArray%":ri,"%TypeError%":le,"%Uint8Array%":typeof Uint8Array>"u"?E:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?E:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?E:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?E:Uint32Array,"%URIError%":Ha,"%WeakMap%":typeof WeakMap>"u"?E:WeakMap,"%WeakRef%":typeof WeakRef>"u"?E:WeakRef,"%WeakSet%":typeof WeakSet>"u"?E:WeakSet,"%Function.prototype.call%":Re,"%Function.prototype.apply%":Rn,"%Object.defineProperty%":Za,"%Object.getPrototypeOf%":ei,"%Math.abs%":Wa,"%Math.floor%":za,"%Math.max%":Ja,"%Math.min%":Va,"%Math.pow%":Ka,"%Math.round%":Qa,"%Math.sign%":Xa,"%Reflect.getPrototypeOf%":ti};if(_)try{null.error}catch(t){var ni=_(_(t));Y["%Error.prototype%"]=ni}var oi=function t(e){var r;if(e==="%AsyncFunction%")r=Ot("async function () {}");else if(e==="%GeneratorFunction%")r=Ot("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ot("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return Y[e]=r,r},Dr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},xe=Ye(),Je=Ia(),ai=xe.call(Re,Array.prototype.concat),ii=xe.call(Rn,Array.prototype.splice),Fr=xe.call(Re,String.prototype.replace),Ve=xe.call(Re,String.prototype.slice),si=xe.call(Re,RegExp.prototype.exec),li=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ci=/\\(\\)?/g,ui=function(e){var r=Ve(e,0,1),n=Ve(e,-1);if(r==="%"&&n!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var o=[];return Fr(e,li,function(a,i,s,u){o[o.length]=s?Fr(u,ci,"$1"):i||a}),o},fi=function(e,r){var n=e,o;if(Je(Dr,n)&&(o=Dr[n],n="%"+o[0]+"%"),Je(Y,n)){var a=Y[n];if(a===se&&(a=oi(n)),typeof a>"u"&&!r)throw new le("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ue("intrinsic "+e+" does not exist!")},er=function(e,r){if(typeof e!="string"||e.length===0)throw new le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new le('"allowMissing" argument must be a boolean');if(si(/^%?[^%]*%?$/,e)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ui(e),o=n.length>0?n[0]:"",a=fi("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],ii(n,ai([0,1],l)));for(var c=1,p=!0;c<n.length;c+=1){var f=n[c],v=Ve(f,0,1),y=Ve(f,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new ue("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(u=!0),o+="."+f,i="%"+o+"%",Je(Y,i))s=Y[i];else if(s!=null){if(!(f in s)){if(!r)throw new le("base intrinsic for "+e+" exists, but the property is not available.");return}if(Oe&&c+1>=n.length){var h=Oe(s,f);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?s=h.get:s=s[f]}else p=Je(s,f),s=s[f];p&&!u&&(Y[i]=s)}}return s},xn=er,Tn=On,pi=Tn([xn("%String.prototype.indexOf%")]),Cn=function(e,r){var n=xn(e,!!r);return typeof n=="function"&&pi(e,".prototype.")>-1?Tn([n]):n},di=er,Te=Cn,yi=Xe,mi=fe,Lr=di("%Map%",!0),hi=Te("Map.prototype.get",!0),vi=Te("Map.prototype.set",!0),gi=Te("Map.prototype.has",!0),bi=Te("Map.prototype.delete",!0),wi=Te("Map.prototype.size",!0),kn=!!Lr&&function(){var e,r={assert:function(n){if(!r.has(n))throw new mi("Side channel does not contain "+yi(n))},delete:function(n){if(e){var o=bi(e,n);return wi(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return hi(e,n)},has:function(n){return e?gi(e,n):!1},set:function(n,o){e||(e=new Lr),vi(e,n,o)}};return r},Si=er,et=Cn,Ei=Xe,De=kn,Ai=fe,ie=Si("%WeakMap%",!0),Oi=et("WeakMap.prototype.get",!0),Pi=et("WeakMap.prototype.set",!0),Ri=et("WeakMap.prototype.has",!0),xi=et("WeakMap.prototype.delete",!0),Ti=ie?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Ai("Side channel does not contain "+Ei(o))},delete:function(o){if(ie&&o&&(typeof o=="object"||typeof o=="function")){if(e)return xi(e,o)}else if(De&&r)return r.delete(o);return!1},get:function(o){return ie&&o&&(typeof o=="object"||typeof o=="function")&&e?Oi(e,o):r&&r.get(o)},has:function(o){return ie&&o&&(typeof o=="object"||typeof o=="function")&&e?Ri(e,o):!!r&&r.has(o)},set:function(o,a){ie&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new ie),Pi(e,o,a)):De&&(r||(r=De()),r.set(o,a))}};return n}:De,Ci=fe,ki=Xe,_i=aa,$i=kn,Mi=Ti,Ni=Mi||$i||_i,Di=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ci("Side channel does not contain "+ki(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=Ni()),e.set(n,o)}};return r},Fi=String.prototype.replace,Li=/%20/g,Rt={RFC1738:"RFC1738",RFC3986:"RFC3986"},tr={default:Rt.RFC3986,formatters:{RFC1738:function(t){return Fi.call(t,Li,"+")},RFC3986:function(t){return String(t)}},RFC1738:Rt.RFC1738,RFC3986:Rt.RFC3986},Ii=tr,xt=Object.prototype.hasOwnProperty,X=Array.isArray,U=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Bi=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(X(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},_n=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Ui=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(X(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!xt.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return X(e)&&!X(r)&&(o=_n(e,n)),X(e)&&X(r)?(r.forEach(function(a,i){if(xt.call(e,i)){var s=e[i];s&&typeof s=="object"&&a&&typeof a=="object"?e[i]=t(s,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var s=r[i];return xt.call(a,i)?a[i]=t(a[i],s,n):a[i]=s,a},o)},ji=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},qi=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Tt=1024,Gi=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var s="",u=0;u<i.length;u+=Tt){for(var l=i.length>=Tt?i.slice(u,u+Tt):i,c=[],p=0;p<l.length;++p){var f=l.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===Ii.RFC1738&&(f===40||f===41)){c[c.length]=l.charAt(p);continue}if(f<128){c[c.length]=U[f];continue}if(f<2048){c[c.length]=U[192|f>>6]+U[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=U[224|f>>12]+U[128|f>>6&63]+U[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|l.charCodeAt(p)&1023),c[c.length]=U[240|f>>18]+U[128|f>>12&63]+U[128|f>>6&63]+U[128|f&63]}s+=c.join("")}return s},Hi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],s=Object.keys(i),u=0;u<s.length;++u){var l=s[u],c=i[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:l}),n.push(c))}return Bi(r),e},Wi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},zi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ji=function(e,r){return[].concat(e,r)},Vi=function(e,r){if(X(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},$n={arrayToObject:_n,assign:ji,combine:Ji,compact:Hi,decode:qi,encode:Gi,isBuffer:zi,isRegExp:Wi,maybeMap:Vi,merge:Ui},Mn=Di,Ue=$n,Se=tr,Ki=Object.prototype.hasOwnProperty,Nn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},q=Array.isArray,Qi=Array.prototype.push,Dn=function(t,e){Qi.apply(t,q(e)?e:[e])},Xi=Date.prototype.toISOString,Ir=Se.default,C={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ue.encode,encodeValuesOnly:!1,filter:void 0,format:Ir,formatter:Se.formatters[Ir],indices:!1,serializeDate:function(e){return Xi.call(e)},skipNulls:!1,strictNullHandling:!1},Zi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ct={},Yi=function t(e,r,n,o,a,i,s,u,l,c,p,f,v,y,h,m,S,A){for(var g=e,k=A,R=0,M=!1;(k=k.get(Ct))!==void 0&&!M;){var N=k.get(e);if(R+=1,typeof N<"u"){if(N===R)throw new RangeError("Cyclic object value");M=!0}typeof k.get(Ct)>"u"&&(R=0)}if(typeof c=="function"?g=c(r,g):g instanceof Date?g=v(g):n==="comma"&&q(g)&&(g=Ue.maybeMap(g,function(lt){return lt instanceof Date?v(lt):lt})),g===null){if(i)return l&&!m?l(r,C.encoder,S,"key",y):r;g=""}if(Zi(g)||Ue.isBuffer(g)){if(l){var H=m?r:l(r,C.encoder,S,"key",y);return[h(H)+"="+h(l(g,C.encoder,S,"value",y))]}return[h(r)+"="+h(String(g))]}var B=[];if(typeof g>"u")return B;var J;if(n==="comma"&&q(g))m&&l&&(g=Ue.maybeMap(g,l)),J=[{value:g.length>0?g.join(",")||null:void 0}];else if(q(c))J=c;else{var _e=Object.keys(g);J=p?_e.sort(p):_e}var oe=u?String(r).replace(/\./g,"%2E"):String(r),L=o&&q(g)&&g.length===1?oe+"[]":oe;if(a&&q(g)&&g.length===0)return L+"[]";for(var V=0;V<J.length;++V){var W=J[V],ye=typeof W=="object"&&W&&typeof W.value<"u"?W.value:g[W];if(!(s&&ye===null)){var st=f&&u?String(W).replace(/\./g,"%2E"):String(W),po=q(g)?typeof n=="function"?n(L,st):L:L+(f?"."+st:"["+st+"]");A.set(e,R);var ir=Mn();ir.set(Ct,A),Dn(B,t(ye,po,n,o,a,i,s,u,n==="comma"&&m&&q(g)?null:l,c,p,f,v,y,h,m,S,ir))}}return B},es=function(e){if(!e)return C;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||C.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Se.default;if(typeof e.format<"u"){if(!Ki.call(Se.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=Se.formatters[n],a=C.filter;(typeof e.filter=="function"||q(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Nn?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=C.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:C.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:C.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:C.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?C.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:C.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:C.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:C.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:C.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:C.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:C.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},ts=function(t,e){var r=t,n=es(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):q(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var s=Nn[n.arrayFormat],u=s==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var l=Mn(),c=0;c<o.length;++c){var p=o[c],f=r[p];n.skipNulls&&f===null||Dn(i,Yi(f,p,s,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var v=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""},te=$n,qt=Object.prototype.hasOwnProperty,Br=Array.isArray,x={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:te.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},rs=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Fn=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},ns="utf8=%26%2310003%3B",os="utf8=%E2%9C%93",as=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===os?l="utf-8":i[u]===ns&&(l="iso-8859-1"),s=u,u=i.length);for(u=0;u<i.length;++u)if(u!==s){var c=i[u],p=c.indexOf("]="),f=p===-1?c.indexOf("="):p+1,v,y;f===-1?(v=r.decoder(c,x.decoder,l,"key"),y=r.strictNullHandling?null:""):(v=r.decoder(c.slice(0,f),x.decoder,l,"key"),y=te.maybeMap(Fn(c.slice(f+1),r,Br(n[v])?n[v].length:0),function(m){return r.decoder(m,x.decoder,l,"value")})),y&&r.interpretNumericEntities&&l==="iso-8859-1"&&(y=rs(String(y))),c.indexOf("[]=")>-1&&(y=Br(y)?[y]:y);var h=qt.call(n,v);h&&r.duplicates==="combine"?n[v]=te.combine(n[v],y):(!h||r.duplicates==="last")&&(n[v]=y)}return n},is=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:Fn(e,r,o),s=t.length-1;s>=0;--s){var u,l=t[s];if(l==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:te.combine([],i);else{u=r.plainObjects?{__proto__:null}:{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(p,10);!r.parseArrays&&p===""?u={0:i}:!isNaN(f)&&l!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[],u[f]=i):p!=="__proto__"&&(u[p]=i)}i=u}return i},ss=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(a),l=u?a.slice(0,u.index):a,c=[];if(l){if(!n.plainObjects&&qt.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var p=0;n.depth>0&&(u=s.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&qt.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}if(u){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+a.slice(u.index)+"]")}return is(c,r,n,o)}},ls=function(e){if(!e)return x;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?x.charset:e.charset,n=typeof e.duplicates>"u"?x.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:x.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:x.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:x.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:x.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:x.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:x.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:x.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:x.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:x.decoder,delimiter:typeof e.delimiter=="string"||te.isRegExp(e.delimiter)?e.delimiter:x.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:x.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:x.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:x.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:x.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:x.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:x.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},cs=function(t,e){var r=ls(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?as(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var s=a[i],u=ss(s,n[s],r,typeof t=="string");o=te.merge(o,u,r)}return r.allowSparse===!0?o:te.compact(o)},us=ts,fs=cs,ps=tr,ds={formats:ps,parse:fs,stringify:us};const ys=b.getDefaultExportFromCjs(ds);function Ln(t,e){return function(){return t.apply(e,arguments)}}const{toString:ms}=Object.prototype,{getPrototypeOf:rr}=Object,tt=(t=>e=>{const r=ms.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>tt(e)===t),rt=t=>e=>typeof e===t,{isArray:pe}=Array,Pe=rt("undefined");function hs(t){return t!==null&&!Pe(t)&&t.constructor!==null&&!Pe(t.constructor)&&F(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const In=I("ArrayBuffer");function vs(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&In(t.buffer),e}const gs=rt("string"),F=rt("function"),Bn=rt("number"),nt=t=>t!==null&&typeof t=="object",bs=t=>t===!0||t===!1,je=t=>{if(tt(t)!=="object")return!1;const e=rr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ws=I("Date"),Ss=I("File"),Es=I("Blob"),As=I("FileList"),Os=t=>nt(t)&&F(t.pipe),Ps=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||F(t.append)&&((e=tt(t))==="formdata"||e==="object"&&F(t.toString)&&t.toString()==="[object FormData]"))},Rs=I("URLSearchParams"),[xs,Ts,Cs,ks]=["ReadableStream","Request","Response","Headers"].map(I),_s=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ce(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),pe(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const a=r?Object.getOwnPropertyNames(t):Object.keys(t),i=a.length;let s;for(n=0;n<i;n++)s=a[n],e.call(null,t[s],s,t)}}function Un(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jn=t=>!Pe(t)&&t!==Z;function Gt(){const{caseless:t}=jn(this)&&this||{},e={},r=(n,o)=>{const a=t&&Un(e,o)||o;je(e[a])&&je(n)?e[a]=Gt(e[a],n):je(n)?e[a]=Gt({},n):pe(n)?e[a]=n.slice():e[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ce(arguments[n],r);return e}const $s=(t,e,r,{allOwnKeys:n}={})=>(Ce(e,(o,a)=>{r&&F(o)?t[a]=Ln(o,r):t[a]=o},{allOwnKeys:n}),t),Ms=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ns=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Ds=(t,e,r,n)=>{let o,a,i;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)i=o[a],(!n||n(i,t,e))&&!s[i]&&(e[i]=t[i],s[i]=!0);t=r!==!1&&rr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Fs=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Ls=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!Bn(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Is=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&rr(Uint8Array)),Bs=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const a=o.value;e.call(t,a[0],a[1])}},Us=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},js=I("HTMLFormElement"),qs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ur=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Gs=I("RegExp"),qn=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ce(r,(o,a)=>{let i;(i=e(o,a,t))!==!