import{_ as w,aB as re,ba as Xt,aD as T}from"./index-B7ckqKYM.js";var ie=function(){function n(){this.listeners=[]}var e=n.prototype;return e.subscribe=function(t){var i=this,s=t||function(){};return this.listeners.push(s),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==s}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},n}(),ye=typeof window>"u";function A(){}function Zt(n,e){return typeof n=="function"?n(e):n}function qe(n){return typeof n=="number"&&n>=0&&n!==1/0}function me(n){return Array.isArray(n)?n:[n]}function bt(n,e){return Math.max(n+(e||0)-Date.now(),0)}function le(n,e,r){return se(n)?typeof e=="function"?w({},r,{queryKey:n,queryFn:e}):w({},e,{queryKey:n}):n}function ri(n,e,r){return se(n)?typeof e=="function"?w({},r,{mutationKey:n,mutationFn:e}):w({},e,{mutationKey:n}):typeof n=="function"?w({},e,{mutationFn:n}):w({},n)}function j(n,e,r){return se(n)?[w({},e,{queryKey:n}),r]:[n||{},e]}function Yt(n,e){if(n===!0&&e===!0||n==null&&e==null)return"all";if(n===!1&&e===!1)return"none";var r=n??!e;return r?"active":"inactive"}function Ge(n,e){var r=n.active,t=n.exact,i=n.fetching,s=n.inactive,o=n.predicate,a=n.queryKey,c=n.stale;if(se(a)){if(t){if(e.queryHash!==Ke(a,e.options))return!1}else if(!ve(e.queryKey,a))return!1}var u=Yt(r,s);if(u==="none")return!1;if(u!=="all"){var f=e.isActive();if(u==="active"&&!f||u==="inactive"&&f)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||typeof i=="boolean"&&e.isFetching()!==i||o&&!o(e))}function Xe(n,e){var r=n.exact,t=n.fetching,i=n.predicate,s=n.mutationKey;if(se(s)){if(!e.options.mutationKey)return!1;if(r){if(z(e.options.mutationKey)!==z(s))return!1}else if(!ve(e.options.mutationKey,s))return!1}return!(typeof t=="boolean"&&e.state.status==="loading"!==t||i&&!i(e))}function Ke(n,e){var r=(e==null?void 0:e.queryKeyHashFn)||z;return r(n)}function z(n){var e=me(n);return en(e)}function en(n){return JSON.stringify(n,function(e,r){return Ue(r)?Object.keys(r).sort().reduce(function(t,i){return t[i]=r[i],t},{}):r})}function ve(n,e){return gt(me(n),me(e))}function gt(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(function(r){return!gt(n[r],e[r])}):!1}function be(n,e){if(n===e)return n;var r=Array.isArray(n)&&Array.isArray(e);if(r||Ue(n)&&Ue(e)){for(var t=r?n.length:Object.keys(n).length,i=r?e:Object.keys(e),s=i.length,o=r?[]:{},a=0,c=0;c<s;c++){var u=r?c:i[c];o[u]=be(n[u],e[u]),o[u]===n[u]&&a++}return t===s&&a===t?n:o}return e}function tn(n,e){if(n&&!e||e&&!n)return!1;for(var r in n)if(n[r]!==e[r])return!1;return!0}function Ue(n){if(!Ze(n))return!1;var e=n.constructor;if(typeof e>"u")return!0;var r=e.prototype;return!(!Ze(r)||!r.hasOwnProperty("isPrototypeOf"))}function Ze(n){return Object.prototype.toString.call(n)==="[object Object]"}function se(n){return typeof n=="string"||Array.isArray(n)}function nn(n){return new Promise(function(e){setTimeout(e,n)})}function Ye(n){Promise.resolve().then(n).catch(function(e){return setTimeout(function(){throw e})})}function Ot(){if(typeof AbortController=="function")return new AbortController}var rn=function(n){re(e,n);function e(){var t;return t=n.call(this)||this,t.setup=function(i){var s;if(!ye&&((s=window)!=null&&s.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},t}var r=e.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},r.setEventListener=function(i){var s,o=this;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(function(a){typeof a=="boolean"?o.setFocused(a):o.onFocus()})},r.setFocused=function(i){this.focused=i,i&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(i){i()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e}(ie),te=new rn,sn=function(n){re(e,n);function e(){var t;return t=n.call(this)||this,t.setup=function(i){var s;if(!ye&&((s=window)!=null&&s.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},t}var r=e.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},r.setEventListener=function(i){var s,o=this;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(function(a){typeof a=="boolean"?o.setOnline(a):o.onOnline()})},r.setOnline=function(i){this.online=i,i&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(i){i()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e}(ie),fe=new sn;function on(n){return Math.min(1e3*Math.pow(2,n),3e4)}function ge(n){return typeof(n==null?void 0:n.cancel)=="function"}var Rt=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function he(n){return n instanceof Rt}var wt=function(e){var r=this,t=!1,i,s,o,a;this.abort=e.abort,this.cancel=function(v){return i==null?void 0:i(v)},this.cancelRetry=function(){t=!0},this.continueRetry=function(){t=!1},this.continue=function(){return s==null?void 0:s()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(v,m){o=v,a=m});var c=function(m){r.isResolved||(r.isResolved=!0,e.onSuccess==null||e.onSuccess(m),s==null||s(),o(m))},u=function(m){r.isResolved||(r.isResolved=!0,e.onError==null||e.onError(m),s==null||s(),a(m))},f=function(){return new Promise(function(m){s=m,r.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){s=void 0,r.isPaused=!1,e.onContinue==null||e.onContinue()})},d=function v(){if(!r.isResolved){var m;try{m=e.fn()}catch(h){m=Promise.reject(h)}i=function(p){if(!r.isResolved&&(u(new Rt(p)),r.abort==null||r.abort(),ge(m)))try{m.cancel()}catch{}},r.isTransportCancelable=ge(m),Promise.resolve(m).then(c).catch(function(h){var p,y;if(!r.isResolved){var O=(p=e.retry)!=null?p:3,R=(y=e.retryDelay)!=null?y:on,b=typeof R=="function"?R(r.failureCount,h):R,P=O===!0||typeof O=="number"&&r.failureCount<O||typeof O=="function"&&O(r.failureCount,h);if(t||!P){u(h);return}r.failureCount++,e.onFail==null||e.onFail(r.failureCount,h),nn(b).then(function(){if(!te.isFocused()||!fe.isOnline())return f()}).then(function(){t?u(h):v()})}})}};d()},an=function(){function n(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var e=n.prototype;return e.batch=function(t){var i;this.transactions++;try{i=t()}finally{this.transactions--,this.transactions||this.flush()}return i},e.schedule=function(t){var i=this;this.transactions?this.queue.push(t):Ye(function(){i.notifyFn(t)})},e.batchCalls=function(t){var i=this;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];i.schedule(function(){t.apply(void 0,o)})}},e.flush=function(){var t=this,i=this.queue;this.queue=[],i.length&&Ye(function(){t.batchNotifyFn(function(){i.forEach(function(s){t.notifyFn(s)})})})},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},n}(),C=new an,St=console;function Oe(){return St}function un(n){St=n}var cn=function(){function n(r){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=r.meta,this.scheduleGc()}var e=n.prototype;return e.setOptions=function(t){var i;this.options=w({},this.defaultOptions,t),this.meta=t==null?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),qe(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,i){var s,o,a=this.state.data,c=Zt(t,a);return(s=(o=this.options).isDataEqual)!=null&&s.call(o,a,c)?c=a:this.options.structuralSharing!==!1&&(c=be(a,c)),this.dispatch({data:c,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),c},e.setState=function(t,i){this.dispatch({type:"setState",state:t,setStateOptions:i})},e.cancel=function(t){var i,s=this.promise;return(i=this.retryer)==null||i.cancel(t),s?s.then(A).catch(A):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some(function(t){return t.options.enabled!==!1})},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(t){return t.getCurrentResult().isStale})},e.isStaleByTime=function(t){return t===void 0&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!bt(this.state.dataUpdatedAt,t)},e.onFocus=function(){var t,i=this.observers.find(function(s){return s.shouldFetchOnWindowFocus()});i&&i.refetch(),(t=this.retryer)==null||t.continue()},e.onOnline=function(){var t,i=this.observers.find(function(s){return s.shouldFetchOnReconnect()});i&&i.refetch(),(t=this.retryer)==null||t.continue()},e.addObserver=function(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(function(i){return i!==t}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,i){var s=this,o,a,c;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){var f=this.observers.find(function(R){return R.options.queryFn});f&&this.setOptions(f.options)}var d=me(this.queryKey),v=Ot(),m={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(v)return s.abortSignalConsumed=!0,v.signal}});var h=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(m)):Promise.reject("Missing queryFn")},p={fetchOptions:i,options:this.options,queryKey:d,state:this.state,fetchFn:h,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var y;(y=this.options.behavior)==null||y.onFetch(p)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((a=p.fetchOptions)==null?void 0:a.meta)){var O;this.dispatch({type:"fetch",meta:(O=p.fetchOptions)==null?void 0:O.meta})}return this.retryer=new wt({fn:p.fetchFn,abort:v==null||(c=v.abort)==null?void 0:c.bind(v),onSuccess:function(b){s.setData(b),s.cache.config.onSuccess==null||s.cache.config.onSuccess(b,s),s.cacheTime===0&&s.optionalRemove()},onError:function(b){he(b)&&b.silent||s.dispatch({type:"error",error:b}),he(b)||(s.cache.config.onError==null||s.cache.config.onError(b,s),Oe().error(b)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var i=this;this.state=this.reducer(this.state,t),C.batch(function(){i.observers.forEach(function(s){s.onQueryUpdate(t)}),i.cache.notify({query:i,type:"queryUpdated",action:t})})},e.getDefaultState=function(t){var i=typeof t.initialData=="function"?t.initialData():t.initialData,s=typeof t.initialData<"u",o=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,a=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:a?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:a?"success":"idle"}},e.reducer=function(t,i){var s,o;switch(i.type){case"failed":return w({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return w({},t,{isPaused:!0});case"continue":return w({},t,{isPaused:!1});case"fetch":return w({},t,{fetchFailureCount:0,fetchMeta:(s=i.meta)!=null?s:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return w({},t,{data:i.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:(o=i.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=i.error;return he(a)&&a.revert&&this.revertState?w({},this.revertState):w({},t,{error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return w({},t,{isInvalidated:!0});case"setState":return w({},t,i.state);default:return t}},n}(),ln=function(n){re(e,n);function e(t){var i;return i=n.call(this)||this,i.config=t||{},i.queries=[],i.queriesMap={},i}var r=e.prototype;return r.build=function(i,s,o){var a,c=s.queryKey,u=(a=s.queryHash)!=null?a:Ke(c,s),f=this.get(u);return f||(f=new cn({cache:this,queryKey:c,queryHash:u,options:i.defaultQueryOptions(s),state:o,defaultOptions:i.getQueryDefaults(c),meta:s.meta}),this.add(f)),f},r.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},r.remove=function(i){var s=this.queriesMap[i.queryHash];s&&(i.destroy(),this.queries=this.queries.filter(function(o){return o!==i}),s===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},r.clear=function(){var i=this;C.batch(function(){i.queries.forEach(function(s){i.remove(s)})})},r.get=function(i){return this.queriesMap[i]},r.getAll=function(){return this.queries},r.find=function(i,s){var o=j(i,s),a=o[0];return typeof a.exact>"u"&&(a.exact=!0),this.queries.find(function(c){return Ge(a,c)})},r.findAll=function(i,s){var o=j(i,s),a=o[0];return Object.keys(a).length>0?this.queries.filter(function(c){return Ge(a,c)}):this.queries},r.notify=function(i){var s=this;C.batch(function(){s.listeners.forEach(function(o){o(i)})})},r.onFocus=function(){var i=this;C.batch(function(){i.queries.forEach(function(s){s.onFocus()})})},r.onOnline=function(){var i=this;C.batch(function(){i.queries.forEach(function(s){s.onOnline()})})},e}(ie),fn=function(){function n(r){this.options=w({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||hn(),this.meta=r.meta}var e=n.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){this.observers.indexOf(t)===-1&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter(function(i){return i!==t})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(A).catch(A)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t=this,i,s=this.state.status==="loading",o=Promise.resolve();return s||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){t.mutationCache.config.onMutate==null||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return t.options.onMutate==null?void 0:t.options.onMutate(t.state.variables)}).then(function(a){a!==t.state.context&&t.dispatch({type:"loading",context:a,variables:t.state.variables})})),o.then(function(){return t.executeMutation()}).then(function(a){i=a,t.mutationCache.config.onSuccess==null||t.mutationCache.config.onSuccess(i,t.state.variables,t.state.context,t)}).then(function(){return t.options.onSuccess==null?void 0:t.options.onSuccess(i,t.state.variables,t.state.context)}).then(function(){return t.options.onSettled==null?void 0:t.options.onSettled(i,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:i}),i}).catch(function(a){return t.mutationCache.config.onError==null||t.mutationCache.config.onError(a,t.state.variables,t.state.context,t),Oe().error(a),Promise.resolve().then(function(){return t.options.onError==null?void 0:t.options.onError(a,t.state.variables,t.state.context)}).then(function(){return t.options.onSettled==null?void 0:t.options.onSettled(void 0,a,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:a}),a})})},e.executeMutation=function(){var t=this,i;return this.retryer=new wt({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var i=this;this.state=dn(this.state,t),C.batch(function(){i.observers.forEach(function(s){s.onMutationUpdate(t)}),i.mutationCache.notify(i)})},n}();function hn(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function dn(n,e){switch(e.type){case"failed":return w({},n,{failureCount:n.failureCount+1});case"pause":return w({},n,{isPaused:!0});case"continue":return w({},n,{isPaused:!1});case"loading":return w({},n,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return w({},n,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return w({},n,{data:void 0,error:e.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return w({},n,e.state);default:return n}}var pn=function(n){re(e,n);function e(t){var i;return i=n.call(this)||this,i.config=t||{},i.mutations=[],i.mutationId=0,i}var r=e.prototype;return r.build=function(i,s,o){var a=new fn({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(s),state:o,defaultOptions:s.mutationKey?i.getMutationDefaults(s.mutationKey):void 0,meta:s.meta});return this.add(a),a},r.add=function(i){this.mutations.push(i),this.notify(i)},r.remove=function(i){this.mutations=this.mutations.filter(function(s){return s!==i}),i.cancel(),this.notify(i)},r.clear=function(){var i=this;C.batch(function(){i.mutations.forEach(function(s){i.remove(s)})})},r.getAll=function(){return this.mutations},r.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(s){return Xe(i,s)})},r.findAll=function(i){return this.mutations.filter(function(s){return Xe(i,s)})},r.notify=function(i){var s=this;C.batch(function(){s.listeners.forEach(function(o){o(i)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var i=this.mutations.filter(function(s){return s.state.isPaused});return C.batch(function(){return i.reduce(function(s,o){return s.then(function(){return o.continue().catch(A)})},Promise.resolve())})},e}(ie);function yn(){return{onFetch:function(e){e.fetchFn=function(){var r,t,i,s,o,a,c=(r=e.fetchOptions)==null||(t=r.meta)==null?void 0:t.refetchPage,u=(i=e.fetchOptions)==null||(s=i.meta)==null?void 0:s.fetchMore,f=u==null?void 0:u.pageParam,d=(u==null?void 0:u.direction)==="forward",v=(u==null?void 0:u.direction)==="backward",m=((o=e.state.data)==null?void 0:o.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[],p=Ot(),y=p==null?void 0:p.signal,O=h,R=!1,b=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},P=function(L,G,N,Y){return O=Y?[G].concat(O):[].concat(O,[G]),Y?[N].concat(L):[].concat(L,[N])},E=function(L,G,N,Y){if(R)return Promise.reject("Cancelled");if(typeof N>"u"&&!G&&L.length)return Promise.resolve(L);var I={queryKey:e.queryKey,signal:y,pageParam:N,meta:e.meta},H=b(I),ce=Promise.resolve(H).then(function(Gt){return P(L,N,Gt,Y)});if(ge(H)){var Ae=ce;Ae.cancel=H.cancel}return ce},S;if(!m.length)S=E([]);else if(d){var D=typeof f<"u",M=D?f:et(e.options,m);S=E(m,D,M)}else if(v){var k=typeof f<"u",U=k?f:mn(e.options,m);S=E(m,k,U,!0)}else(function(){O=[];var $=typeof e.options.getNextPageParam>"u",L=c&&m[0]?c(m[0],0,m):!0;S=L?E([],$,h[0]):Promise.resolve(P([],h[0],m[0]));for(var G=function(I){S=S.then(function(H){var ce=c&&m[I]?c(m[I],I,m):!0;if(ce){var Ae=$?h[I]:et(e.options,H);return E(H,$,Ae)}return Promise.resolve(P(H,h[I],m[I]))})},N=1;N<m.length;N++)G(N)})();var ue=S.then(function($){return{pages:$,pageParams:O}}),K=ue;return K.cancel=function(){R=!0,p==null||p.abort(),ge(S)&&S.cancel()},ue}}}}function et(n,e){return n.getNextPageParam==null?void 0:n.getNextPageParam(e[e.length-1],e)}function mn(n,e){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(e[0],e)}var ii=function(){function n(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new ln,this.mutationCache=r.mutationCache||new pn,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=n.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=te.subscribe(function(){te.isFocused()&&fe.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())}),this.unsubscribeOnline=fe.subscribe(function(){te.isFocused()&&fe.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())})},e.unmount=function(){var t,i;(t=this.unsubscribeFocus)==null||t.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},e.isFetching=function(t,i){var s=j(t,i),o=s[0];return o.fetching=!0,this.queryCache.findAll(o).length},e.isMutating=function(t){return this.mutationCache.findAll(w({},t,{fetching:!0})).length},e.getQueryData=function(t,i){var s;return(s=this.queryCache.find(t,i))==null?void 0:s.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map(function(i){var s=i.queryKey,o=i.state,a=o.data;return[s,a]})},e.setQueryData=function(t,i,s){var o=le(t),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,s)},e.setQueriesData=function(t,i,s){var o=this;return C.batch(function(){return o.getQueryCache().findAll(t).map(function(a){var c=a.queryKey;return[c,o.setQueryData(c,i,s)]})})},e.getQueryState=function(t,i){var s;return(s=this.queryCache.find(t,i))==null?void 0:s.state},e.removeQueries=function(t,i){var s=j(t,i),o=s[0],a=this.queryCache;C.batch(function(){a.findAll(o).forEach(function(c){a.remove(c)})})},e.resetQueries=function(t,i,s){var o=this,a=j(t,i,s),c=a[0],u=a[1],f=this.queryCache,d=w({},c,{active:!0});return C.batch(function(){return f.findAll(c).forEach(function(v){v.reset()}),o.refetchQueries(d,u)})},e.cancelQueries=function(t,i,s){var o=this,a=j(t,i,s),c=a[0],u=a[1],f=u===void 0?{}:u;typeof f.revert>"u"&&(f.revert=!0);var d=C.batch(function(){return o.queryCache.findAll(c).map(function(v){return v.cancel(f)})});return Promise.all(d).then(A).catch(A)},e.invalidateQueries=function(t,i,s){var o,a,c,u=this,f=j(t,i,s),d=f[0],v=f[1],m=w({},d,{active:(o=(a=d.refetchActive)!=null?a:d.active)!=null?o:!0,inactive:(c=d.refetchInactive)!=null?c:!1});return C.batch(function(){return u.queryCache.findAll(d).forEach(function(h){h.invalidate()}),u.refetchQueries(m,v)})},e.refetchQueries=function(t,i,s){var o=this,a=j(t,i,s),c=a[0],u=a[1],f=C.batch(function(){return o.queryCache.findAll(c).map(function(v){return v.fetch(void 0,w({},u,{meta:{refetchPage:c==null?void 0:c.refetchPage}}))})}),d=Promise.all(f).then(A);return u!=null&&u.throwOnError||(d=d.catch(A)),d},e.fetchQuery=function(t,i,s){var o=le(t,i,s),a=this.defaultQueryOptions(o);typeof a.retry>"u"&&(a.retry=!1);var c=this.queryCache.build(this,a);return c.isStaleByTime(a.staleTime)?c.fetch(a):Promise.resolve(c.state.data)},e.prefetchQuery=function(t,i,s){return this.fetchQuery(t,i,s).then(A).catch(A)},e.fetchInfiniteQuery=function(t,i,s){var o=le(t,i,s);return o.behavior=yn(),this.fetchQuery(o)},e.prefetchInfiniteQuery=function(t,i,s){return this.fetchInfiniteQuery(t,i,s).then(A).catch(A)},e.cancelMutations=function(){var t=this,i=C.batch(function(){return t.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(i).then(A).catch(A)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,i){var s=this.queryDefaults.find(function(o){return z(t)===z(o.queryKey)});s?s.defaultOptions=i:this.queryDefaults.push({queryKey:t,defaultOptions:i})},e.getQueryDefaults=function(t){var i;return t?(i=this.queryDefaults.find(function(s){return ve(t,s.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(t,i){var s=this.mutationDefaults.find(function(o){return z(t)===z(o.mutationKey)});s?s.defaultOptions=i:this.mutationDefaults.push({mutationKey:t,defaultOptions:i})},e.getMutationDefaults=function(t){var i;return t?(i=this.mutationDefaults.find(function(s){return ve(t,s.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(t!=null&&t._defaulted)return t;var i=w({},this.defaultOptions.queries,this.getQueryDefaults(t==null?void 0:t.queryKey),t,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=Ke(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return t!=null&&t._defaulted?t:w({},this.defaultOptions.mutations,this.getMutationDefaults(t==null?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},n}(),vn=function(n){re(e,n);function e(t,i){var s;return s=n.call(this)||this,s.client=t,s.options=i,s.trackedProps=[],s.selectError=null,s.bindMethods(),s.setOptions(i),s}var r=e.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),tt(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return Qe(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return Qe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(i,s){var o=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var c=this.hasListeners();c&&nt(this.currentQuery,a,this.options,o)&&this.executeFetch(),this.updateResult(s),c&&(this.currentQuery!==a||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();c&&(this.currentQuery!==a||this.options.enabled!==o.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},r.getOptimisticResult=function(i){var s=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,s);return this.createResult(o,s)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(i,s){var o=this,a={},c=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(i).forEach(function(u){Object.defineProperty(a,u,{configurable:!1,enumerable:!0,get:function(){return c(u),i[u]}})}),(s.useErrorBoundary||s.suspense)&&c("error"),a},r.getNextResult=function(i){var s=this;return new Promise(function(o,a){var c=s.subscribe(function(u){u.isFetching||(c(),u.isError&&(i!=null&&i.throwOnError)?a(u.error):o(u))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(i){return this.fetch(w({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},r.fetchOptimistic=function(i){var s=this,o=this.client.defaultQueryObserverOptions(i),a=this.client.getQueryCache().build(this.client,o);return a.fetch().then(function(){return s.createResult(a,o)})},r.fetch=function(i){var s=this;return this.executeFetch(i).then(function(){return s.updateResult(),s.currentResult})},r.executeFetch=function(i){this.updateQuery();var s=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(A)),s},r.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(ye||this.currentResult.isStale||!qe(this.options.staleTime))){var s=bt(this.currentResult.dataUpdatedAt,this.options.staleTime),o=s+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},r.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},r.updateRefetchInterval=function(i){var s=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(ye||this.options.enabled===!1||!qe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||te.isFocused())&&s.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(i,s){var o=this.currentQuery,a=this.options,c=this.currentResult,u=this.currentResultState,f=this.currentResultOptions,d=i!==o,v=d?i.state:this.currentQueryInitialState,m=d?this.currentResult:this.previousQueryResult,h=i.state,p=h.dataUpdatedAt,y=h.error,O=h.errorUpdatedAt,R=h.isFetching,b=h.status,P=!1,E=!1,S;if(s.optimisticResults){var D=this.hasListeners(),M=!D&&tt(i,s),k=D&&nt(i,o,s,a);(M||k)&&(R=!0,p||(b="loading"))}if(s.keepPreviousData&&!h.dataUpdateCount&&(m!=null&&m.isSuccess)&&b!=="error")S=m.data,p=m.dataUpdatedAt,b=m.status,P=!0;else if(s.select&&typeof h.data<"u")if(c&&h.data===(u==null?void 0:u.data)&&s.select===this.selectFn)S=this.selectResult;else try{this.selectFn=s.select,S=s.select(h.data),s.structuralSharing!==!1&&(S=be(c==null?void 0:c.data,S)),this.selectResult=S,this.selectError=null}catch(K){Oe().error(K),this.selectError=K}else S=h.data;if(typeof s.placeholderData<"u"&&typeof S>"u"&&(b==="loading"||b==="idle")){var U;if(c!=null&&c.isPlaceholderData&&s.placeholderData===(f==null?void 0:f.placeholderData))U=c.data;else if(U=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof U<"u")try{U=s.select(U),s.structuralSharing!==!1&&(U=be(c==null?void 0:c.data,U)),this.selectError=null}catch(K){Oe().error(K),this.selectError=K}typeof U<"u"&&(b="success",S=U,E=!0)}this.selectError&&(y=this.selectError,S=this.selectResult,O=Date.now(),b="error");var ue={status:b,isLoading:b==="loading",isSuccess:b==="success",isError:b==="error",isIdle:b==="idle",data:S,dataUpdatedAt:p,error:y,errorUpdatedAt:O,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>v.dataUpdateCount||h.errorUpdateCount>v.errorUpdateCount,isFetching:R,isRefetching:R&&b!=="loading",isLoadingError:b==="error"&&h.dataUpdatedAt===0,isPlaceholderData:E,isPreviousData:P,isRefetchError:b==="error"&&h.dataUpdatedAt!==0,isStale:$e(i,s),refetch:this.refetch,remove:this.remove};return ue},r.shouldNotifyListeners=function(i,s){if(!s)return!0;var o=this.options,a=o.notifyOnChangeProps,c=o.notifyOnChangePropsExclusions;if(!a&&!c||a==="tracked"&&!this.trackedProps.length)return!0;var u=a==="tracked"?this.trackedProps:a;return Object.keys(i).some(function(f){var d=f,v=i[d]!==s[d],m=u==null?void 0:u.some(function(p){return p===f}),h=c==null?void 0:c.some(function(p){return p===f});return v&&!h&&(!u||m)})},r.updateResult=function(i){var s=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!tn(this.currentResult,s)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(o.listeners=!0),this.notify(w({},o,i))}},r.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var s=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))}},r.onQueryUpdate=function(i){var s={};i.type==="success"?s.onSuccess=!0:i.type==="error"&&!he(i.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},r.notify=function(i){var s=this;C.batch(function(){i.onSuccess?(s.options.onSuccess==null||s.options.onSuccess(s.currentResult.data),s.options.onSettled==null||s.options.onSettled(s.currentResult.data,null)):i.onError&&(s.options.onError==null||s.options.onError(s.currentResult.error),s.options.onSettled==null||s.options.onSettled(void 0,s.currentResult.error)),i.listeners&&s.listeners.forEach(function(o){o(s.currentResult)}),i.cache&&s.client.getQueryCache().notify({query:s.currentQuery,type:"observerResultsUpdated"})})},e}(ie);function bn(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function tt(n,e){return bn(n,e)||n.state.dataUpdatedAt>0&&Qe(n,e,e.refetchOnMount)}function Qe(n,e,r){if(e.enabled!==!1){var t=typeof r=="function"?r(n):r;return t==="always"||t!==!1&&$e(n,e)}return!1}function nt(n,e,r,t){return r.enabled!==!1&&(n!==e||t.enabled===!1)&&(!r.suspense||n.state.status!=="error")&&$e(n,r)}function $e(n,e){return n.isStaleByTime(e.staleTime)}var gn=Xt.unstable_batchedUpdates;C.setBatchNotifyFunction(gn);var On=console;un(On);var rt=T.createContext(void 0),Et=T.createContext(!1);function Ct(n){return n&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=rt),window.ReactQueryClientContext):rt}var Rn=function(){var e=T.useContext(Ct(T.useContext(Et)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},si=function(e){var r=e.client,t=e.contextSharing,i=t===void 0?!1:t,s=e.children;T.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var o=Ct(i);return T.createElement(Et.Provider,{value:i},T.createElement(o.Provider,{value:r},s))};function wn(){var n=!1;return{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}}var Sn=T.createContext(wn()),En=function(){return T.useContext(Sn)};function Cn(n,e,r){return typeof e=="function"?e.apply(void 0,r):typeof e=="boolean"?e:!!n}function Fn(n,e){var r=T.useRef(!1),t=T.useState(0),i=t[1],s=Rn(),o=En(),a=s.defaultQueryObserverOptions(n);a.optimisticResults=!0,a.onError&&(a.onError=C.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=C.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=C.batchCalls(a.onSettled)),a.suspense&&(typeof a.staleTime!="number"&&(a.staleTime=1e3),a.cacheTime===0&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));var c=T.useState(function(){return new e(s,a)}),u=c[0],f=u.getOptimisticResult(a);if(T.useEffect(function(){r.current=!0,o.clearReset();var d=u.subscribe(C.batchCalls(function(){r.current&&i(function(v){return v+1})}));return u.updateResult(),function(){r.current=!1,d()}},[o,u]),T.useEffect(function(){u.setOptions(a,{listeners:!1})},[a,u]),a.suspense&&f.isLoading)throw u.fetchOptimistic(a).then(function(d){var v=d.data;a.onSuccess==null||a.onSuccess(v),a.onSettled==null||a.onSettled(v,null)}).catch(function(d){o.clearReset(),a.onError==null||a.onError(d),a.onSettled==null||a.onSettled(void 0,d)});if(f.isError&&!o.isReset()&&!f.isFetching&&Cn(a.suspense,a.useErrorBoundary,[f.error,u.getCurrentQuery()]))throw f.error;return a.notifyOnChangeProps==="tracked"&&(f=u.trackResult(f,a)),f}function oi(n,e,r){var t=le(n,e,r);return Fn(t,vn)}function Ft(n,e){return function(){return n.apply(e,arguments)}}const{toString:Pn}=Object.prototype,{getPrototypeOf:He}=Object,Se=(n=>e=>{const r=Pn.call(e);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Q=n=>(n=n.toLowerCase(),e=>Se(e)===n),Ee=n=>e=>typeof e===n,{isArray:X}=Array,ne=Ee("undefined");function An(n){return n!==null&&!ne(n)&&n.constructor!==null&&!ne(n.constructor)&&q(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Pt=Q("ArrayBuffer");function Tn(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Pt(n.buffer),e}const _n=Ee("string"),q=Ee("function"),At=Ee("number"),Ce=n=>n!==null&&typeof n=="object",xn=n=>n===!0||n===!1,de=n=>{if(Se(n)!=="object")return!1;const e=He(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Dn=Q("Date"),qn=Q("File"),Un=Q("Blob"),Qn=Q("FileList"),Nn=n=>Ce(n)&&q(n.pipe),Mn=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||q(n.append)&&((e=Se(n))==="formdata"||e==="object"&&q(n.toString)&&n.toString()==="[object FormData]"))},Ln=Q("URLSearchParams"),[In,Bn,jn,kn]=["ReadableStream","Request","Response","Headers"].map(Q),Kn=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(n,e,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let t,i;if(typeof n!="object"&&(n=[n]),X(n))for(t=0,i=n.length;t<i;t++)e.call(null,n[t],t,n);else{const s=r?Object.getOwnPropertyNames(n):Object.keys(n),o=s.length;let a;for(t=0;t<o;t++)a=s[t],e.call(null,n[a],a,n)}}function Tt(n,e){e=e.toLowerCase();const r=Object.keys(n);let t=r.length,i;for(;t-- >0;)if(i=r[t],e===i.toLowerCase())return i;return null}const J=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_t=n=>!ne(n)&&n!==J;function Ne(){const{caseless:n}=_t(this)&&this||{},e={},r=(t,i)=>{const s=n&&Tt(e,i)||i;de(e[s])&&de(t)?e[s]=Ne(e[s],t):de(t)?e[s]=Ne({},t):X(t)?e[s]=t.slice():e[s]=t};for(let t=0,i=arguments.length;t<i;t++)arguments[t]&&oe(arguments[t],r);return e}const $n=(n,e,r,{allOwnKeys:t}={})=>(oe(e,(i,s)=>{r&&q(i)?n[s]=Ft(i,r):n[s]=i},{allOwnKeys:t}),n),Hn=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),zn=(n,e,r,t)=>{n.prototype=Object.create(e.prototype,t),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),r&&Object.assign(n.prototype,r)},Jn=(n,e,r,t)=>{let i,s,o;const a={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),s=i.length;s-- >0;)o=i[s],(!t||t(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=r!==!1&&He(n)}while(n&&(!r||r(n,e))&&n!==Object.prototype);return e},Vn=(n,e,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=e.length;const t=n.indexOf(e,r);return t!==-1&&t===r},Wn=n=>{if(!n)return null;if(X(n))return n;let e=n.length;if(!At(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=n[e];return r},Gn=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&He(Uint8Array)),Xn=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=t.next())&&!i.done;){const s=i.value;e.call(n,s[0],s[1])}},Zn=(n,e)=>{let r;const t=[];for(;(r=n.exec(e))!==null;)t.push(r);return t},Yn=Q("HTMLFormElement"),er=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,t,i){return t.toUpperCase()+i}),it=(({hasOwnProperty:n})=>(e,r)=>n.call(e,r))(Object.prototype),tr=Q("RegExp"),xt=(n,e)=>{const r=Object.getOwnPropertyDescriptors(n),t={};oe(r,(i,s)=>{let o;(o=e(i,s,n))!==!1&&(t[s]=o||i)}),Object.defineProperties(n,t)},nr=n=>{xt(n,(e,r)=>{if(q(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const t=n[r];if(q(t)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},rr=(n,e)=>{const r={},t=i=>{i.forEach(s=>{r[s]=!0})};return X(n)?t(n):t(String(n).split(e)),r},ir=()=>{},sr=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Te="abcdefghijklmnopqrstuvwxyz",st="0123456789",Dt={DIGIT:st,ALPHA:Te,ALPHA_DIGIT:Te+Te.toUpperCase()+st},or=(n=16,e=Dt.ALPHA_DIGIT)=>{let r="";const{length:t}=e;for(;n--;)r+=e[Math.random()*t|0];return r};function ar(n){return!!(n&&q(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const ur=n=>{const e=new Array(10),r=(t,i)=>{if(Ce(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const s=X(t)?[]:{};return oe(t,(o,a)=>{const c=r(o,i+1);!ne(c)&&(s[a]=c)}),e[i]=void 0,s}}return t};return r(n,0)},cr=Q("AsyncFunction"),lr=n=>n&&(Ce(n)||q(n))&&q(n.then)&&q(n.catch),qt=((n,e)=>n?setImmediate:e?((r,t)=>(J.addEventListener("message",({source:i,data:s})=>{i===J&&s===r&&t.length&&t.shift()()},!1),i=>{t.push(i),J.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",q(J.postMessage)),fr=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof process<"u"&&process.nextTick||qt,l={isArray:X,isArrayBuffer:Pt,isBuffer:An,isFormData:Mn,isArrayBufferView:Tn,isString:_n,isNumber:At,isBoolean:xn,isObject:Ce,isPlainObject:de,isReadableStream:In,isRequest:Bn,isResponse:jn,isHeaders:kn,isUndefined:ne,isDate:Dn,isFile:qn,isBlob:Un,isRegExp:tr,isFunction:q,isStream:Nn,isURLSearchParams:Ln,isTypedArray:Gn,isFileList:Qn,forEach:oe,merge:Ne,extend:$n,trim:Kn,stripBOM:Hn,inherits:zn,toFlatObject:Jn,kindOf:Se,kindOfTest:Q,endsWith:Vn,toArray:Wn,forEachEntry:Xn,matchAll:Zn,isHTMLForm:Yn,hasOwnProperty:it,hasOwnProp:it,reduceDescriptors:xt,freezeMethods:nr,toObjectSet:rr,toCamelCase:er,noop:ir,toFiniteNumber:sr,findKey:Tt,global:J,isContextDefined:_t,ALPHABET:Dt,generateString:or,isSpecCompliantForm:ar,toJSONObject:ur,isAsyncFn:cr,isThenable:lr,setImmediate:qt,asap:fr};function g(n,e,r,t,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),t&&(this.request=t),i&&(this.response=i,this.status=i.status?i.status:null)}l.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const Ut=g.prototype,Qt={};["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(n=>{Qt[n]={value:n}});Object.defineProperties(g,Qt);Object.defineProperty(Ut,"isAxiosError",{value:!0});g.from=(n,e,r,t,i,s)=>{const o=Object.create(Ut);return l.toFlatObject(n,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),g.call(o,n.message,e,r,t,i),o.cause=n,o.name=n.name,s&&Object.assign(o,s),o};const hr=null;function Me(n){return l.isPlainObject(n)||l.isArray(n)}function Nt(n){return l.endsWith(n,"[]")?n.slice(0,-2):n}function ot(n,e,r){return n?n.concat(e).map(function(i,s){return i=Nt(i),!r&&s?"["+i+"]":i}).join(r?".":""):e}function dr(n){return l.isArray(n)&&!n.some(Me)}const pr=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Fe(n,e,r){if(!l.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!l.isUndefined(y[p])});const t=r.metaTokens,i=r.visitor||f,s=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(l.isDate(h))return h.toISOString();if(!c&&l.isBlob(h))throw new g("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(h)||l.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,p,y){let O=h;if(h&&!y&&typeof h=="object"){if(l.endsWith(p,"{}"))p=t?p:p.slice(0,-2),h=JSON.stringify(h);else if(l.isArray(h)&&dr(h)||(l.isFileList(h)||l.endsWith(p,"[]"))&&(O=l.toArray(h)))return p=Nt(p),O.forEach(function(b,P){!(l.isUndefined(b)||b===null)&&e.append(o===!0?ot([p],P,s):o===null?p:p+"[]",u(b))}),!1}return Me(h)?!0:(e.append(ot(y,p,s),u(h)),!1)}const d=[],v=Object.assign(pr,{defaultVisitor:f,convertValue:u,isVisitable:Me});function m(h,p){if(!l.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(h),l.forEach(h,function(O,R){(!(l.isUndefined(O)||O===null)&&i.call(e,O,l.isString(R)?R.trim():R,p,v))===!0&&m(O,p?p.concat(R):[R])}),d.pop()}}if(!l.isObject(n))throw new TypeError("data must be an object");return m(n),e}function at(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function ze(n,e){this._pairs=[],n&&Fe(n,this,e)}const Mt=ze.prototype;Mt.append=function(e,r){this._pairs.push([e,r])};Mt.toString=function(e){const r=e?function(t){return e.call(this,t,at)}:at;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function yr(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lt(n,e,r){if(!e)return n;const t=r&&r.encode||yr,i=r&&r.serialize;let s;if(i?s=i(e,r):s=l.isURLSearchParams(e)?e.toString():new ze(e,r).toString(t),s){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class ut{constructor(){this.handlers=[]}use(e,r,t){return this.handlers.push({fulfilled:e,rejected:r,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(t){t!==null&&e(t)})}}const It={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:ze,vr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,gr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:vr,Blob:br},protocols:["http","https","file","blob","url","data"]},Je=typeof window<"u"&&typeof document<"u",Le=typeof navigator=="object"&&navigator||void 0,Or=Je&&(!Le||["ReactNative","NativeScript","NS"].indexOf(Le.product)<0),Rr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wr=Je&&window.location.href||"http://localhost",Sr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Je,hasStandardBrowserEnv:Or,hasStandardBrowserWebWorkerEnv:Rr,navigator:Le,origin:wr},Symbol.toStringTag,{value:"Module"})),_={...Sr,...gr};function Er(n,e){return Fe(n,new _.classes.URLSearchParams,Object.assign({visitor:function(r,t,i,s){return _.isNode&&l.isBuffer(r)?(this.append(t,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Cr(n){return l.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Fr(n){const e={},r=Object.keys(n);let t;const i=r.length;let s;for(t=0;t<i;t++)s=r[t],e[s]=n[s];return e}function Bt(n){function e(r,t,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=r.length;return o=!o&&l.isArray(i)?i.length:o,c?(l.hasOwnProp(i,o)?i[o]=[i[o],t]:i[o]=t,!a):((!i[o]||!l.isObject(i[o]))&&(i[o]=[]),e(r,t,i[o],s)&&l.isArray(i[o])&&(i[o]=Fr(i[o])),!a)}if(l.isFormData(n)&&l.isFunction(n.entries)){const r={};return l.forEachEntry(n,(t,i)=>{e(Cr(t),i,r,0)}),r}return null}function Pr(n,e,r){if(l.isString(n))try{return(e||JSON.parse)(n),l.trim(n)}catch(t){if(t.name!=="SyntaxError")throw t}return(0,JSON.stringify)(n)}const ae={transitional:It,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const t=r.getContentType()||"",i=t.indexOf("application/json")>-1,s=l.isObject(e);if(s&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return i?JSON.stringify(Bt(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Er(e,this.formSerializer).toString();if((a=l.isFileList(e))||t.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Fe(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),Pr(e)):e}],transformResponse:[function(e){const r=this.transitional||ae.transitional,t=r&&r.forcedJSONParsing,i=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(t&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],n=>{ae.headers[n]={}});const Ar=l.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"]),Tr=n=>{const e={};let r,t,i;return n&&n.split(`
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),t=o.substring(i+1).trim(),!(!r||e[r]&&Ar[r])&&(r==="set-cookie"?e[r]?e[r].push(t):e[r]=[t]:e[r]=e[r]?e[r]+", "+t:t)}),e},ct=Symbol("internals");function ee(n){return n&&String(n).trim().toLowerCase()}function pe(n){return n===!1||n==null?n:l.isArray(n)?n.map(pe):String(n)}function _r(n){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=r.exec(n);)e[t[1]]=t[2];return e}const xr=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function _e(n,e,r,t,i){if(l.isFunction(t))return t.call(this,e,r);if(i&&(e=r),!!l.isString(e)){if(l.isString(t))return e.indexOf(t)!==-1;if(l.isRegExp(t))return t.test(e)}}function Dr(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,t)=>r.toUpperCase()+t)}function qr(n,e){const r=l.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{value:function(i,s,o){return this[t].call(this,e,i,s,o)},configurable:!0})})}class x{constructor(e){e&&this.set(e)}set(e,r,t){const i=this;function s(a,c,u){const f=ee(c);if(!f)throw new Error("header name must be a non-empty string");const d=l.findKey(i,f);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||c]=pe(a))}const o=(a,c)=>l.forEach(a,(u,f)=>s(u,f,c));if(l.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(l.isString(e)&&(e=e.trim())&&!xr(e))o(Tr(e),r);else if(l.isHeaders(e))for(const[a,c]of e.entries())s(c,a,t);else e!=null&&s(r,e,t);return this}get(e,r){if(e=ee(e),e){const t=l.findKey(this,e);if(t){const i=this[t];if(!r)return i;if(r===!0)return _r(i);if(l.isFunction(r))return r.call(this,i,t);if(l.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ee(e),e){const t=l.findKey(this,e);return!!(t&&this[t]!==void 0&&(!r||_e(this,this[t],t,r)))}return!1}delete(e,r){const t=this;let i=!1;function s(o){if(o=ee(o),o){const a=l.findKey(t,o);a&&(!r||_e(t,t[a],a,r))&&(delete t[a],i=!0)}}return l.isArray(e)?e.forEach(s):s(e),i}clear(e){const r=Object.keys(this);let t=r.length,i=!1;for(;t--;){const s=r[t];(!e||_e(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,t={};return l.forEach(this,(i,s)=>{const o=l.findKey(t,s);if(o){r[o]=pe(i),delete r[s];return}const a=e?Dr(s):String(s).trim();a!==s&&delete r[s],r[a]=pe(i),t[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return l.forEach(this,(t,i)=>{t!=null&&t!==!1&&(r[i]=e&&l.isArray(t)?t.join(", "):t)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const t=new this(e);return r.forEach(i=>t.set(i)),t}static accessor(e){const t=(this[ct]=this[ct]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=ee(o);t[a]||(qr(i,o),t[a]=!0)}return l.isArray(e)?e.forEach(s):s(e),this}}x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(x.prototype,({value:n},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(t){this[r]=t}}});l.freezeMethods(x);function xe(n,e){const r=this||ae,t=e||r,i=x.from(t.headers);let s=t.data;return l.forEach(n,function(a){s=a.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function jt(n){return!!(n&&n.__CANCEL__)}function Z(n,e,r){g.call(this,n??"canceled",g.ERR_CANCELED,e,r),this.name="CanceledError"}l.inherits(Z,g,{__CANCEL__:!0});function kt(n,e,r){const t=r.config.validateStatus;!r.status||!t||t(r.status)?n(r):e(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ur(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Qr(n,e){n=n||10;const r=new Array(n),t=new Array(n);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=t[s];o||(o=u),r[i]=c,t[i]=u;let d=s,v=0;for(;d!==i;)v+=r[d++],d=d%n;if(i=(i+1)%n,i===s&&(s=(s+1)%n),u-o<e)return;const m=f&&u-f;return m?Math.round(v*1e3/m):void 0}}function Nr(n,e){let r=0,t=1e3/e,i,s;const o=(u,f=Date.now())=>{r=f,i=null,s&&(clearTimeout(s),s=null),n.apply(null,u)};return[(...u)=>{const f=Date.now(),d=f-r;d>=t?o(u,f):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},t-d)))},()=>i&&o(i)]}const Re=(n,e,r=3)=>{let t=0;const i=Qr(50,250);return Nr(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-t,u=i(c),f=o<=a;t=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(d)},r)},lt=(n,e)=>{const r=n!=null;return[t=>e[0]({lengthComputable:r,total:n,loaded:t}),e[1]]},ft=n=>(...e)=>l.asap(()=>n(...e)),Mr=_.hasStandardBrowserEnv?function(){const e=_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent),r=document.createElement("a");let t;function i(s){let o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(o){const a=l.isString(o)?i(o):o;return a.protocol===t.protocol&&a.host===t.host}}():function(){return function(){return!0}}(),Lr=_.hasStandardBrowserEnv?{write(n,e,r,t,i,s){const o=[n+"="+encodeURIComponent(e)];l.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),l.isString(t)&&o.push("path="+t),l.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ir(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Br(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Kt(n,e){return n&&!Ir(e)?Br(n,e):e}const ht=n=>n instanceof x?{...n}:n;function W(n,e){e=e||{};const r={};function t(u,f,d){return l.isPlainObject(u)&&l.isPlainObject(f)?l.merge.call({caseless:d},u,f):l.isPlainObject(f)?l.merge({},f):l.isArray(f)?f.slice():f}function i(u,f,d){if(l.isUndefined(f)){if(!l.isUndefined(u))return t(void 0,u,d)}else return t(u,f,d)}function s(u,f){if(!l.isUndefined(f))return t(void 0,f)}function o(u,f){if(l.isUndefined(f)){if(!l.isUndefined(u))return t(void 0,u)}else return t(void 0,f)}function a(u,f,d){if(d in e)return t(u,f);if(d in n)return t(void 0,u)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,f)=>i(ht(u),ht(f),!0)};return l.forEach(Object.keys(Object.assign({},n,e)),function(f){const d=c[f]||i,v=d(n[f],e[f],f);l.isUndefined(v)&&d!==a||(r[f]=v)}),r}const $t=n=>{const e=W({},n);let{data:r,withXSRFToken:t,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=x.from(o),e.url=Lt(Kt(e.baseURL,e.url),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(l.isFormData(r)){if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...f]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...f].join("; "))}}if(_.hasStandardBrowserEnv&&(t&&l.isFunction(t)&&(t=t(e)),t||t!==!1&&Mr(e.url))){const u=i&&s&&Lr.read(s);u&&o.set(i,u)}return e},jr=typeof XMLHttpRequest<"u",kr=jr&&function(n){return new Promise(function(r,t){const i=$t(n);let s=i.data;const o=x.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=i,f,d,v,m,h;function p(){m&&m(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function O(){if(!y)return;const b=x.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:b,config:n,request:y};kt(function(D){r(D),p()},function(D){t(D),p()},E),y=null}"onloadend"in y?y.onloadend=O:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(O)},y.onabort=function(){y&&(t(new g("Request aborted",g.ECONNABORTED,n,y)),y=null)},y.onerror=function(){t(new g("Network Error",g.ERR_NETWORK,n,y)),y=null},y.ontimeout=function(){let P=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||It;i.timeoutErrorMessage&&(P=i.timeoutErrorMessage),t(new g(P,E.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,n,y)),y=null},s===void 0&&o.setContentType(null),"setRequestHeader"in y&&l.forEach(o.toJSON(),function(P,E){y.setRequestHeader(E,P)}),l.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),a&&a!=="json"&&(y.responseType=i.responseType),u&&([v,h]=Re(u,!0),y.addEventListener("progress",v)),c&&y.upload&&([d,m]=Re(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(f=b=>{y&&(t(!b||b.type?new Z(null,n,y):b),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const R=Ur(i.url);if(R&&_.protocols.indexOf(R)===-1){t(new g("Unsupported protocol "+R+":",g.ERR_BAD_REQUEST,n));return}y.send(s||null)})},Kr=(n,e)=>{const{length:r}=n=n?n.filter(Boolean):[];if(e||r){let t=new AbortController,i;const s=function(u){if(!i){i=!0,a();const f=u instanceof Error?u:this.reason;t.abort(f instanceof g?f:new Z(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,s(new g(`timeout ${e} of ms exceeded`,g.ETIMEDOUT))},e);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),n=null)};n.forEach(u=>u.addEventListener("abort",s));const{signal:c}=t;return c.unsubscribe=()=>l.asap(a),c}},$r=function*(n,e){let r=n.byteLength;if(r<e){yield n;return}let t=0,i;for(;t<r;)i=t+e,yield n.slice(t,i),t=i},Hr=async function*(n,e){for await(const r of zr(n))yield*$r(r,e)},zr=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:r,value:t}=await e.read();if(r)break;yield t}}finally{await e.cancel()}},dt=(n,e,r,t)=>{const i=Hr(n,e);let s=0,o,a=c=>{o||(o=!0,t&&t(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await i.next();if(u){a(),c.close();return}let d=f.byteLength;if(r){let v=s+=d;r(v)}c.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Pe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ht=Pe&&typeof ReadableStream=="function",Jr=Pe&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),zt=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Vr=Ht&&zt(()=>{let n=!1;const e=new Request(_.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),pt=64*1024,Ie=Ht&&zt(()=>l.isReadableStream(new Response("").body)),we={stream:Ie&&(n=>n.body)};Pe&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!we[e]&&(we[e]=l.isFunction(n[e])?r=>r[e]():(r,t)=>{throw new g(`Response type '${e}' is not supported`,g.ERR_NOT_SUPPORT,t)})})})(new Response);const Wr=async n=>{if(n==null)return 0;if(l.isBlob(n))return n.size;if(l.isSpecCompliantForm(n))return(await new Request(_.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(l.isArrayBufferView(n)||l.isArrayBuffer(n))return n.byteLength;if(l.isURLSearchParams(n)&&(n=n+""),l.isString(n))return(await Jr(n)).byteLength},Gr=async(n,e)=>{const r=l.toFiniteNumber(n.getContentLength());return r??Wr(e)},Xr=Pe&&(async n=>{let{url:e,method:r,data:t,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:d="same-origin",fetchOptions:v}=$t(n);u=u?(u+"").toLowerCase():"text";let m=Kr([i,s&&s.toAbortSignal()],o),h;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&Vr&&r!=="get"&&r!=="head"&&(y=await Gr(f,t))!==0){let E=new Request(e,{method:"POST",body:t,duplex:"half"}),S;if(l.isFormData(t)&&(S=E.headers.get("content-type"))&&f.setContentType(S),E.body){const[D,M]=lt(y,Re(ft(c)));t=dt(E.body,pt,D,M)}}l.isString(d)||(d=d?"include":"omit");const O="credentials"in Request.prototype;h=new Request(e,{...v,signal:m,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:t,duplex:"half",credentials:O?d:void 0});let R=await fetch(h);const b=Ie&&(u==="stream"||u==="response");if(Ie&&(a||b&&p)){const E={};["status","statusText","headers"].forEach(k=>{E[k]=R[k]});const S=l.toFiniteNumber(R.headers.get("content-length")),[D,M]=a&&lt(S,Re(ft(a),!0))||[];R=new Response(dt(R.body,pt,D,()=>{M&&M(),p&&p()}),E)}u=u||"text";let P=await we[l.findKey(we,u)||"text"](R,n);return!b&&p&&p(),await new Promise((E,S)=>{kt(E,S,{data:P,headers:x.from(R.headers),status:R.status,statusText:R.statusText,config:n,request:h})})}catch(O){throw p&&p(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,n,h),{cause:O.cause||O}):g.from(O,O&&O.code,n,h)}}),Be={http:hr,xhr:kr,fetch:Xr};l.forEach(Be,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const yt=n=>`- ${n}`,Zr=n=>l.isFunction(n)||n===null||n===!1,Jt={getAdapter:n=>{n=l.isArray(n)?n:[n];const{length:e}=n;let r,t;const i={};for(let s=0;s<e;s++){r=n[s];let o;if(t=r,!Zr(r)&&(t=Be[(o=String(r)).toLowerCase()],t===void 0))throw new g(`Unknown adapter '${o}'`);if(t)break;i[o||"#"+s]=t}if(!t){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
`+s.map(yt).join(`
`):" "+yt(s[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return t},adapters:Be};function De(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Z(null,n)}function mt(n){return De(n),n.headers=x.from(n.headers),n.data=xe.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Jt.getAdapter(n.adapter||ae.adapter)(n).then(function(t){return De(n),t.data=xe.call(n,n.transformResponse,t),t.headers=x.from(t.headers),t},function(t){return jt(t)||(De(n),t&&t.response&&(t.response.data=xe.call(n,n.transformResponse,t.response),t.response.headers=x.from(t.response.headers))),Promise.reject(t)})}const Vt="1.7.7",Ve={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ve[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const vt={};Ve.transitional=function(e,r,t){function i(s,o){return"[Axios v"+Vt+"] Transitional option '"+s+"'"+o+(t?". "+t:"")}return(s,o,a)=>{if(e===!1)throw new g(i(o," has been removed"+(r?" in "+r:"")),g.ERR_DEPRECATED);return r&&!vt[o]&&(vt[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,o,a):!0}};function Yr(n,e,r){if(typeof n!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const t=Object.keys(n);let i=t.length;for(;i-- >0;){const s=t[i],o=e[s];if(o){const a=n[s],c=a===void 0||o(a,s,n);if(c!==!0)throw new g("option "+s+" must be "+c,g.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const je={assertOptions:Yr,validators:Ve},B=je.validators;class V{constructor(e){this.defaults=e,this.interceptors={request:new ut,response:new ut}}async request(e,r){try{return await this._request(e,r)}catch(t){if(t instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{t.stack?s&&!String(t.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(t.stack+=`
`+s):t.stack=s}catch{}}throw t}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=W(this.defaults,r);const{transitional:t,paramsSerializer:i,headers:s}=r;t!==void 0&&je.assertOptions(t,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),i!=null&&(l.isFunction(i)?r.paramsSerializer={serialize:i}:je.assertOptions(i,{encode:B.function,serialize:B.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&l.merge(s.common,s[r.method]);s&&l.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),r.headers=x.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let f,d=0,v;if(!c){const h=[mt.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),v=h.length,f=Promise.resolve(r);d<v;)f=f.then(h[d++],h[d++]);return f}v=a.length;let m=r;for(d=0;d<v;){const h=a[d++],p=a[d++];try{m=h(m)}catch(y){p.call(this,y);break}}try{f=mt.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,v=u.length;d<v;)f=f.then(u[d++],u[d++]);return f}getUri(e){e=W(this.defaults,e);const r=Kt(e.baseURL,e.url);return Lt(r,e.params,e.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(e){V.prototype[e]=function(r,t){return this.request(W(t||{},{method:e,url:r,data:(t||{}).data}))}});l.forEach(["post","put","patch"],function(e){function r(t){return function(s,o,a){return this.request(W(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}V.prototype[e]=r(),V.prototype[e+"Form"]=r(!0)});class We{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const t=this;this.promise.then(i=>{if(!t._listeners)return;let s=t._listeners.length;for(;s-- >0;)t._listeners[s](i);t._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{t.subscribe(a),s=a}).then(i);return o.cancel=function(){t.unsubscribe(s)},o},e(function(s,o,a){t.reason||(t.reason=new Z(s,o,a),r(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=t=>{e.abort(t)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new We(function(i){e=i}),cancel:e}}}function ei(n){return function(r){return n.apply(null,r)}}function ti(n){return l.isObject(n)&&n.isAxiosError===!0}const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach(([n,e])=>{ke[e]=n});function Wt(n){const e=new V(n),r=Ft(V.prototype.request,e);return l.extend(r,V.prototype,e,{allOwnKeys:!0}),l.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Wt(W(n,i))},r}const F=Wt(ae);F.Axios=V;F.CanceledError=Z;F.CancelToken=We;F.isCancel=jt;F.VERSION=Vt;F.toFormData=Fe;F.AxiosError=g;F.Cancel=F.CanceledError;F.all=function(e){return Promise.all(e)};F.spread=ei;F.isAxiosError=ti;F.mergeConfig=W;F.AxiosHeaders=x;F.formToJSON=n=>Bt(l.isHTMLForm(n)?new FormData(n):n);F.getAdapter=Jt.getAdapter;F.HttpStatusCode=ke;F.default=F;export{ii as Q,ie as S,A as a,si as b,oi as c,F as d,hn as g,C as n,ri as p,Cn as s,Rn as u};