(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72076],{32495:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var i=r(83650),s=r(384940),n=new class extends i.Q{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!s.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}}},44708:(e,t,r)=>{"use strict";r.d(t,{q:()=>a});var i=r(694275),s=r(641563),n=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,s.PL)()})}getOptimisticResult(e){return e.behavior=(0,s.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,i=super.createResult(e,t),{isFetching:n,isRefetching:o,isError:a,isRefetchError:u}=i,l=r.fetchMeta?.fetchMore?.direction,c=a&&"forward"===l,h=n&&"forward"===l,d=a&&"backward"===l,f=n&&"backward"===l;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.rB)(t,r.data),hasPreviousPage:(0,s.RQ)(t,r.data),isFetchNextPageError:c,isFetchingNextPage:h,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:u&&!c&&!d,isRefetching:o&&!h&&!f}}},o=r(670657);function a(e,t){return(0,o.t)(e,n,t)}},67450:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var i=r(330633),s=r(97704),n=r(384940);function o(e){return e}function a(e,t,r){if("object"!=typeof t||null===t)return;let i=e.getMutationCache(),a=e.getQueryCache(),u=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??o,l=t.mutations||[],c=t.queries||[];l.forEach(({state:t,...s})=>{i.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...s},t)}),c.forEach(({queryKey:t,state:i,queryHash:o,meta:l,promise:c,dehydratedAt:h})=>{let d=c?(0,s.b)(c):void 0,f=void 0===i.data?d?.data:i.data,p=void 0===f?f:u(f),y=a.get(o),b=y?.state.status==="pending",m=y?.state.fetchStatus==="fetching";if(y){let e=d&&void 0!==h&&h>y.state.dataUpdatedAt;if(i.dataUpdatedAt>y.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=i;y.setState({...t,data:p})}}else y=a.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:l},{...i,data:p,fetchStatus:"idle",status:void 0!==p?"success":i.status});c&&!b&&!m&&(void 0===h||h>y.state.dataUpdatedAt)&&y.fetch(void 0,{initialPromise:Promise.resolve(c).then(u)}).catch(n.lQ)})}var u=r(455899),l=({children:e,options:t={},state:r,queryClient:s})=>{let n=(0,u.jE)(s),o=i.useRef(t);i.useEffect(()=>{o.current=t});let l=i.useMemo(()=>{if(r){if("object"!=typeof r)return;let e=n.getQueryCache(),t=r.queries||[],i=[],s=[];for(let r of t){let t=e.get(r.queryHash);t?(r.state.dataUpdatedAt>t.state.dataUpdatedAt||r.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==r.dehydratedAt&&r.dehydratedAt>t.state.dataUpdatedAt)&&s.push(r):i.push(r)}if(i.length>0&&a(n,{queries:i},o.current),s.length>0)return s}},[n,r]);return i.useEffect(()=>{l&&a(n,{queries:l},o.current)},[n,l]),e}},83650:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},97704:(e,t,r)=>{"use strict";r.d(t,{T:()=>s,b:()=>n});var i=r(384940);function s(){let e,t,r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r}function n(e){let t;if(e.then(e=>(t=e,e),i.lQ)?.catch(i.lQ),void 0!==t)return{data:t}}},138416:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,s:()=>o});var i=r(326113),s=r(573244),n=r(939328),o=class extends s.k{#i;#s;#n;#o;constructor(e){super(),this.#i=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#s=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#s.includes(e)||(this.#s.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#s=this.#s.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#s.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})},r={client:this.#i,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=(0,n.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let i="pending"===this.state.status,s=!this.#o.canStart();try{if(i)t();else{this.#a({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:s})}let n=await this.#o.start();return await this.#n.config.onSuccess?.(n,e,this.state.context,this,r),await this.options.onSuccess?.(n,e,this.state.context,r),await this.#n.config.onSettled?.(n,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(n,null,e,this.state.context,r),this.#a({type:"success",data:n}),n}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,r),await this.options.onError?.(t,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,t,e,this.state.context,r),t}finally{this.#a({type:"error",error:t})}}finally{this.#n.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#s.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},201475:(e,t,r)=>{"use strict";r.d(t,{A:()=>ta});var i,s,n={};function o(e,t){return function(){return e.apply(t,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:()=>eh,hasStandardBrowserEnv:()=>ef,hasStandardBrowserWebWorkerEnv:()=>ep,navigator:()=>ed,origin:()=>ey});var a=r(541503);let{toString:u}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:c,toStringTag:h}=Symbol,d=(e=>t=>{let r=u.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),f=e=>(e=e.toLowerCase(),t=>d(t)===e),p=e=>t=>typeof t===e,{isArray:y}=Array,b=p("undefined");function m(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let g=f("ArrayBuffer"),v=p("string"),w=p("function"),E=p("number"),O=e=>null!==e&&"object"==typeof e,R=e=>{if("object"!==d(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(h in e)&&!(c in e)},S=f("Date"),T=f("File"),C=f("Blob"),A=f("FileList"),P=f("URLSearchParams"),[x,j,_,D]=["ReadableStream","Request","Response","Headers"].map(f);function U(e,t,{allOwnKeys:r=!1}={}){let i,s;if(null!=e)if("object"!=typeof e&&(e=[e]),y(e))for(i=0,s=e.length;i0;)if(t===(r=i[s]).toLowerCase())return r;return null}let q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=e=>!b(e)&&e!==q,L=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&l(Uint8Array)),M=f("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B=f("RegExp"),Q=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};U(r,(r,s)=>{let n;!1!==(n=t(r,s,e))&&(i[s]=n||r)}),Object.defineProperties(e,i)},N=f("AsyncFunction"),H=(i="function"==typeof setImmediate,s=w(q.postMessage),i?setImmediate:s?((e,t)=>(q.addEventListener("message",({source:r,data:i})=>{r===q&&i===e&&t.length&&t.shift()()},!1),r=>{t.push(r),q.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),$="undefined"!=typeof queueMicrotask?queueMicrotask.bind(q):void 0!==a&&a.nextTick||H,G={isArray:y,isArrayBuffer:g,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||w(e.append)&&("formdata"===(t=d(e))||"object"===t&&w(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer)},isString:v,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:R,isEmptyObject:e=>{if(!O(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:x,isRequest:j,isResponse:_,isHeaders:D,isUndefined:b,isDate:S,isFile:T,isBlob:C,isRegExp:B,isFunction:w,isStream:e=>O(e)&&w(e.pipe),isURLSearchParams:P,isTypedArray:L,isFileList:A,forEach:U,merge:function e(){let{caseless:t,skipUndefined:r}=I(this)&&this||{},i={},s=(s,n)=>{let o=t&&F(i,n)||n;R(i[o])&&R(s)?i[o]=e(i[o],s):R(s)?i[o]=e({},s):y(s)?i[o]=s.slice():r&&b(s)||(i[o]=s)};for(let e=0,t=arguments.length;e(U(t,(t,i)=>{r&&w(t)?e[i]=o(t,r):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let s,n,o,a={};if(t=t||{},null==e)return t;do{for(n=(s=Object.getOwnPropertyNames(e)).length;n-- >0;)o=s[n],(!i||i(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=!1!==r&&l(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:f,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(y(e))return e;let t=e.length;if(!E(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,i=(e&&e[c]).call(e);for(;(r=i.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r,i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:M,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:Q,freezeMethods:e=>{Q(e,(t,r)=>{if(w(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(w(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(y(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:F,global:q,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[h]&&e[c])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[i]=e;let s=y(e)?[]:{};return U(e,(e,t)=>{let n=r(e,i+1);b(n)||(s[t]=n)}),t[i]=void 0,s}}return e};return r(e,0)},isAsyncFn:N,isThenable:e=>e&&(O(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:H,asap:$,isIterable:e=>null!=e&&w(e[c])};function K(e,t,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}G.inherits(K,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});let z=K.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{V[e]={value:e}}),Object.defineProperties(K,V),Object.defineProperty(z,"isAxiosError",{value:!0}),K.from=(e,t,r,i,s,n)=>{let o=Object.create(z);G.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let a=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return K.call(o,a,u,r,i,s),e&&null==o.cause&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",n&&Object.assign(o,n),o};var W=r(607010).Buffer;function J(e){return G.isPlainObject(e)||G.isArray(e)}function Z(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=Z(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let Y=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),ee=function(e,t,r){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,s=r.visitor||l,n=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(s))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!a&&G.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):W.from(e):e}function l(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(G.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var l;if(G.isArray(e)&&(l=e,G.isArray(l)&&!l.some(J))||(G.isFileList(e)||G.endsWith(r,"[]"))&&(a=G.toArray(e)))return r=Z(r),a.forEach(function(e,i){G.isUndefined(e)||null===e||t.append(!0===o?X([r],i,n):null===o?r:r+"[]",u(e))}),!1}return!!J(e)||(t.append(X(s,r,n),u(e)),!1)}let c=[],h=Object.assign(Y,{defaultVisitor:l,convertValue:u,isVisitable:J});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!G.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),G.forEach(r,function(r,n){!0===(!(G.isUndefined(r)||null===r)&&s.call(t,r,G.isString(n)?n.trim():n,i,h))&&e(r,i?i.concat(n):[n])}),c.pop()}}(e),t};function et(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function er(e,t){this._pairs=[],e&&ee(e,this,t)}let ei=er.prototype;function es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function en(e,t,r){let i;if(!t)return e;let s=r&&r.encode||es;G.isFunction(r)&&(r={serialize:r});let n=r&&r.serialize;if(i=n?n(t,r):G.isURLSearchParams(t)?t.toString():new er(t,r).toString(s)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ei.append=function(e,t){this._pairs.push([e,t])},ei.toString=function(e){let t=e?function(t){return e.call(this,t,et)}:et;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eo{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}let ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eu="undefined"!=typeof URLSearchParams?URLSearchParams:er,el="undefined"!=typeof FormData?FormData:null,ec="undefined"!=typeof Blob?Blob:null,eh="undefined"!=typeof window&&"undefined"!=typeof document,ed="object"==typeof navigator&&navigator||void 0,ef=eh&&(!ed||0>["ReactNative","NativeScript","NS"].indexOf(ed.product)),ep="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ey=eh&&window.location.href||"http://localhost",eb={...n,isBrowser:!0,classes:{URLSearchParams:eu,FormData:el,Blob:ec},protocols:["http","https","file","blob","url","data"]},em=function(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,r)=>{!function e(t,r,i,s){let n=t[s++];if("__proto__"===n)return!0;let o=Number.isFinite(+n),a=s>=t.length;return(n=!n&&G.isArray(i)?i.length:n,a)?G.hasOwnProp(i,n)?i[n]=[i[n],r]:i[n]=r:(i[n]&&G.isObject(i[n])||(i[n]=[]),e(t,r,i[n],s)&&G.isArray(i[n])&&(i[n]=function(e){let t,r,i={},s=Object.keys(e),n=s.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},eg={transitional:ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,i=t.getContentType()||"",s=i.indexOf("application/json")>-1,n=G.isObject(e);if(n&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return s?JSON.stringify(em(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(n){if(i.indexOf("application/x-www-form-urlencoded")>-1){var o,a;return(o=e,a=this.formSerializer,ee(o,new eb.classes.URLSearchParams,{visitor:function(e,t,r,i){return eb.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...a})).toString()}if((r=G.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return ee(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(n||s){t.setContentType("application/json",!1);var u=e;if(G.isString(u))try{return(0,JSON.parse)(u),G.trim(u)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(u)}return e}],transformResponse:[function(e){let t=this.transitional||eg.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eb.classes.FormData,Blob:eb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{eg.headers[e]={}});let ev=G.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"]),ew=e=>{let t,r,i,s={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!t||s[t]&&ev[t]||("set-cookie"===t?s[t]?s[t].push(r):s[t]=[r]:s[t]=s[t]?s[t]+", "+r:r)}),s},eE=Symbol("internals");function eO(e){return e&&String(e).trim().toLowerCase()}function eR(e){return!1===e||null==e?e:G.isArray(e)?e.map(eR):String(e)}let eS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eT(e,t,r,i,s){if(G.isFunction(i))return i.call(this,t,r);if(s&&(t=r),G.isString(t)){if(G.isString(i))return -1!==t.indexOf(i);if(G.isRegExp(i))return i.test(t)}}class eC{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function s(e,t,r){let s=eO(t);if(!s)throw Error("header name must be a non-empty string");let n=G.findKey(i,s);n&&void 0!==i[n]&&!0!==r&&(void 0!==r||!1===i[n])||(i[n||t]=eR(e))}let n=(e,t)=>G.forEach(e,(e,r)=>s(e,r,t));if(G.isPlainObject(e)||e instanceof this.constructor)n(e,t);else if(G.isString(e)&&(e=e.trim())&&!eS(e))n(ew(e),t);else if(G.isObject(e)&&G.isIterable(e)){let r={},i,s;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[s=t[0]]=(i=r[s])?G.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}n(r,t)}else null!=e&&s(t,e,r);return this}get(e,t){if(e=eO(e)){let r=G.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}if(G.isFunction(t))return t.call(this,e,r);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eO(e)){let r=G.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eT(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function s(e){if(e=eO(e)){let s=G.findKey(r,e);s&&(!t||eT(r,r[s],s,t))&&(delete r[s],i=!0)}}return G.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let s=t[r];(!e||eT(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,r={};return G.forEach(this,(i,s)=>{let n=G.findKey(r,s);if(n){t[n]=eR(i),delete t[s];return}let o=e?s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(s).trim();o!==s&&delete t[s],t[o]=eR(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&G.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eE]=this[eE]={accessors:{}}).accessors,r=this.prototype;function i(e){let i=eO(e);if(!t[i]){let s=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+s,{value:function(r,i,s){return this[t].call(this,e,r,i,s)},configurable:!0})}),t[i]=!0}}return G.isArray(e)?e.forEach(i):i(e),this}}function eA(e,t){let r=this||eg,i=t||r,s=eC.from(i.headers),n=i.data;return G.forEach(e,function(e){n=e.call(r,n,s.normalize(),t?t.status:void 0)}),s.normalize(),n}function eP(e){return!!(e&&e.__CANCEL__)}function ex(e,t,r){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError"}function ej(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}eC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(eC.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),G.freezeMethods(eC),G.inherits(ex,K,{__CANCEL__:!0});let e_=function(e,t){let r,i=Array(e=e||10),s=Array(e),n=0,o=0;return t=void 0!==t?t:1e3,function(a){let u=Date.now(),l=s[o];r||(r=u),i[n]=a,s[n]=u;let c=o,h=0;for(;c!==n;)h+=i[c++],c%=e;if((n=(n+1)%e)===o&&(o=(o+1)%e),u-r{s=n,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-s;a>=n?o(e,t):(r=e,i||(i=setTimeout(()=>{i=null,o(r)},n-a)))},()=>r&&o(r)]},eU=(e,t,r=3)=>{let i=0,s=e_(50,250);return eD(r=>{let n=r.loaded,o=r.lengthComputable?r.total:void 0,a=n-i,u=s(a);i=n,e({loaded:n,total:o,progress:o?n/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&n<=o?(o-n)/u:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},eF=(e,t)=>{let r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},eq=e=>(...t)=>G.asap(()=>e(...t)),eI=eb.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,eb.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(eb.origin),eb.navigator&&/(msie|trident)/i.test(eb.navigator.userAgent)):()=>!0,eL=eb.hasStandardBrowserEnv?{write(e,t,r,i,s,n,o){if("undefined"==typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];G.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),G.isString(i)&&a.push(`path=${i}`),G.isString(s)&&a.push(`domain=${s}`),!0===n&&a.push("secure"),G.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eM(e,t,r){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ek=e=>e instanceof eC?{...e}:e;function eB(e,t){t=t||{};let r={};function i(e,t,r,i){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:i},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function s(e,t,r,s){return G.isUndefined(t)?G.isUndefined(e)?void 0:i(void 0,e,r,s):i(e,t,r,s)}function n(e,t){if(!G.isUndefined(t))return i(void 0,t)}function o(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(r,s,n){return n in t?i(r,s):n in e?i(void 0,r):void 0}let u={url:n,method:n,data:n,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:(e,t,r)=>s(ek(e),ek(t),r,!0)};return G.forEach(Object.keys({...e,...t}),function(i){let n=u[i]||s,o=n(e[i],t[i],i);G.isUndefined(o)&&n!==a||(r[i]=o)}),r}let eQ=e=>{let t=eB({},e),{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:n,headers:o,auth:a}=t;if(t.headers=o=eC.from(o),t.url=en(eM(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),G.isFormData(r)){if(eb.hasStandardBrowserEnv||eb.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(G.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&o.set(e,r)})}}if(eb.hasStandardBrowserEnv&&(i&&G.isFunction(i)&&(i=i(t)),i||!1!==i&&eI(t.url))){let e=s&&n&&eL.read(n);e&&o.set(s,e)}return t},eN="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let i,s,n,o,a,u=eQ(e),l=u.data,c=eC.from(u.headers).normalize(),{responseType:h,onUploadProgress:d,onDownloadProgress:f}=u;function p(){o&&o(),a&&a(),u.cancelToken&&u.cancelToken.unsubscribe(i),u.signal&&u.signal.removeEventListener("abort",i)}let y=new XMLHttpRequest;function b(){if(!y)return;let i=eC.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());ej(function(e){t(e),p()},function(e){r(e),p()},{data:h&&"text"!==h&&"json"!==h?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:i,config:e,request:y}),y=null}y.open(u.method.toUpperCase(),u.url,!0),y.timeout=u.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(r(new K("Request aborted",K.ECONNABORTED,e,y)),y=null)},y.onerror=function(t){let i=new K(t&&t.message?t.message:"Network Error",K.ERR_NETWORK,e,y);i.event=t||null,r(i),y=null},y.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",i=u.transitional||ea;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new K(t,i.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,y)),y=null},void 0===l&&c.setContentType(null),"setRequestHeader"in y&&G.forEach(c.toJSON(),function(e,t){y.setRequestHeader(t,e)}),G.isUndefined(u.withCredentials)||(y.withCredentials=!!u.withCredentials),h&&"json"!==h&&(y.responseType=u.responseType),f&&([n,a]=eU(f,!0),y.addEventListener("progress",n)),d&&y.upload&&([s,o]=eU(d),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",o)),(u.cancelToken||u.signal)&&(i=t=>{y&&(r(!t||t.type?new ex(null,e,y):t),y.abort(),y=null)},u.cancelToken&&u.cancelToken.subscribe(i),u.signal&&(u.signal.aborted?i():u.signal.addEventListener("abort",i)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);if(m&&-1===eb.protocols.indexOf(m))return void r(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));y.send(l||null)})},eH=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController,s=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;i.abort(t instanceof K?t:new ex(t instanceof Error?t.message:t))}},n=t&&setTimeout(()=>{n=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t),o=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)}),e=null)};e.forEach(e=>e.addEventListener("abort",s));let{signal:a}=i;return a.unsubscribe=()=>G.asap(o),a}},e$=function*(e,t){let r,i=e.byteLength;if(!t||i{let s,n=eG(e,t),o=0,a=e=>{!s&&(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await n.next();if(t){a(),e.close();return}let s=i.byteLength;if(r){let e=o+=s;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},{isFunction:eV}=G,eW=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:eJ,TextEncoder:eZ}=G.global,eX=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eY=e=>{let t,{fetch:r,Request:i,Response:s}=e=G.merge.call({skipUndefined:!0},eW,e),n=r?eV(r):"function"==typeof fetch,o=eV(i),a=eV(s);if(!n)return!1;let u=n&&eV(eJ),l=n&&("function"==typeof eZ?(t=new eZ,e=>t.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer())),c=o&&u&&eX(()=>{let e=!1,t=new i(eb.origin,{body:new eJ,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=a&&u&&eX(()=>G.isReadableStream(new s("").body)),d={stream:h&&(e=>e.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})});let f=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new i(eb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await l(e)).byteLength:void 0},p=async(e,t)=>{let r=G.toFiniteNumber(e.getContentLength());return null==r?f(t):r};return async e=>{let t,{url:n,method:a,data:u,signal:l,cancelToken:f,timeout:y,onDownloadProgress:b,onUploadProgress:m,responseType:g,headers:v,withCredentials:w="same-origin",fetchOptions:E}=eQ(e),O=r||fetch;g=g?(g+"").toLowerCase():"text";let R=eH([l,f&&f.toAbortSignal()],y),S=null,T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(t=await p(v,u))){let e,r=new i(n,{method:"POST",body:u,duplex:"half"});if(G.isFormData(u)&&(e=r.headers.get("content-type"))&&v.setContentType(e),r.body){let[e,i]=eF(t,eU(eq(m)));u=ez(r.body,65536,e,i)}}G.isString(w)||(w=w?"include":"omit");let r=o&&"credentials"in i.prototype,l={...E,signal:R,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:u,duplex:"half",credentials:r?w:void 0};S=o&&new i(n,l);let f=await (o?O(S,E):O(n,l)),y=h&&("stream"===g||"response"===g);if(h&&(b||y&&T)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});let t=G.toFiniteNumber(f.headers.get("content-length")),[r,i]=b&&eF(t,eU(eq(b),!0))||[];f=new s(ez(f.body,65536,r,()=>{i&&i(),T&&T()}),e)}g=g||"text";let C=await d[G.findKey(d,g)||"text"](f,e);return!y&&T&&T(),await new Promise((t,r)=>{ej(t,r,{data:C,headers:eC.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:S})})}catch(t){if(T&&T(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,S),{cause:t.cause||t});throw K.from(t,t&&t.code,e,S)}}},e0=new Map,e1=e=>{let t=e&&e.env||{},{fetch:r,Request:i,Response:s}=t,n=[i,s,r],o=n.length,a,u,l=e0;for(;o--;)a=n[o],void 0===(u=l.get(a))&&l.set(a,u=o?new Map:eY(t)),l=u;return u};e1();let e3={http:null,xhr:eN,fetch:{get:e1}};G.forEach(e3,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e4=e=>`- ${e}`,e2=e=>G.isFunction(e)||null===e||!1===e,e5={getAdapter:function(e,t){let r,i,{length:s}=e=G.isArray(e)?e:[e],n={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new K("There is no suitable adapter to dispatch the request "+(s?e.length>1?"since :\n"+e.map(e4).join("\n"):" "+e4(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i}};function e6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ex(null,e)}function e8(e){return e6(e),e.headers=eC.from(e.headers),e.data=eA.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e5.getAdapter(e.adapter||eg.adapter,e)(e).then(function(t){return e6(e),t.data=eA.call(e,e.transformResponse,t),t.headers=eC.from(t.headers),t},function(t){return!eP(t)&&(e6(e),t&&t.response&&(t.response.data=eA.call(e,e.transformResponse,t.response),t.response.headers=eC.from(t.response.headers))),Promise.reject(t)})}let e9="1.13.2",e7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e7[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let te={};e7.transitional=function(e,t,r){function i(e,t){return"[Axios v"+e9+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,n)=>{if(!1===e)throw new K(i(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!te[s]&&(te[s]=!0,console.warn(i(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,n)}},e7.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),s=i.length;for(;s-- >0;){let n=i[s],o=t[n];if(o){let t=e[n],r=void 0===t||o(t,n,e);if(!0!==r)throw new K("option "+n+" must be "+r,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new K("Unknown option "+n,K.ERR_BAD_OPTION)}},validators:e7},tr=tt.validators;class ti{constructor(e){this.defaults=e||{},this.interceptors={request:new eo,response:new eo}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:s,paramsSerializer:n,headers:o}=t=eB(this.defaults,t);void 0!==s&&tt.assertOptions(s,{silentJSONParsing:tr.transitional(tr.boolean),forcedJSONParsing:tr.transitional(tr.boolean),clarifyTimeoutError:tr.transitional(tr.boolean)},!1),null!=n&&(G.isFunction(n)?t.paramsSerializer={serialize:n}:tt.assertOptions(n,{encode:tr.function,serialize:tr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tt.assertOptions(t,{baseUrl:tr.spelling("baseURL"),withXsrfToken:tr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=eC.concat(a,o);let u=[],l=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(l=l&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let h=0;if(!l){let e=[e8.bind(this),void 0];for(e.unshift(...u),e.push(...c),i=e.length,r=Promise.resolve(t);h{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,s){r.reason||(r.reason=new ex(e,i,s),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ts(function(t){e=t}),cancel:e}}}let tn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tn).forEach(([e,t])=>{tn[t]=e});let to=function e(t){let r=new ti(t),i=o(ti.prototype.request,r);return G.extend(i,ti.prototype,r,{allOwnKeys:!0}),G.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(eB(t,r))},i}(eg);to.Axios=ti,to.CanceledError=ex,to.CancelToken=ts,to.isCancel=eP,to.VERSION=e9,to.toFormData=ee,to.AxiosError=K,to.Cancel=to.CanceledError,to.all=function(e){return Promise.all(e)},to.spread=function(e){return function(t){return e.apply(null,t)}},to.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},to.mergeConfig=eB,to.AxiosHeaders=eC,to.formToJSON=e=>em(G.isHTMLForm(e)?new FormData(e):e),to.getAdapter=e5.getAdapter,to.HttpStatusCode=tn,to.default=to;let ta=to},232621:(e,t,r)=>{"use strict";r.d(t,{E:()=>p});var i=r(384940),s=r(263569),n=r(326113),o=r(83650),a=class extends o.Q{constructor(e={}){super(),this.config=e,this.#u=new Map}#u;build(e,t,r){let n=t.queryKey,o=t.queryHash??(0,i.F$)(n,t),a=this.get(o);return a||(a=new s.X({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#u.has(e.queryHash)||(this.#u.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#u.get(e.queryHash);t&&(e.destroy(),t===e&&this.#u.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#u.get(e)}getAll(){return[...this.#u.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.MK)(e,t)):t}notify(e){n.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u=r(138416),l=class extends o.Q{constructor(e={}){super(),this.config=e,this.#l=new Set,this.#c=new Map,this.#h=0}#l;#c;#h;build(e,t,r){let i=new u.s({client:e,mutationCache:this,mutationId:++this.#h,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#l.add(e);let t=c(e);if("string"==typeof t){let r=this.#c.get(t);r?r.push(e):this.#c.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#l.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#c.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#c.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#c.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#c.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){n.jG.batch(()=>{this.#l.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#l.clear(),this.#c.clear()})}getAll(){return Array.from(this.#l)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.nJ)(e,t))}notify(e){n.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return n.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.lQ))))}};function c(e){return e.options.scope?.id}var h=r(534336),d=r(32495),f=r(641563),p=class{#d;#n;#f;#p;#y;#b;#m;#g;constructor(e={}){this.#d=e.queryCache||new a,this.#n=e.mutationCache||new l,this.#f=e.defaultOptions||{},this.#p=new Map,this.#y=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#m=h.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#d.onFocus())}),this.#g=d.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#d.onOnline())}))}unmount(){this.#b--,0===this.#b&&(this.#m?.(),this.#m=void 0,this.#g?.(),this.#g=void 0)}isFetching(e){return this.#d.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#d.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#d.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,i.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#d.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let s=this.defaultQueryOptions({queryKey:e}),n=this.#d.get(s.queryHash),o=n?.state.data,a=(0,i.Zw)(t,o);if(void 0!==a)return this.#d.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return n.jG.batch(()=>this.#d.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#d.get(t.queryHash)?.state}removeQueries(e){let t=this.#d;n.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#d;return n.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(n.jG.batch(()=>this.#d.findAll(e).map(e=>e.cancel(r)))).then(i.lQ).catch(i.lQ)}invalidateQueries(e,t={}){return n.jG.batch(()=>(this.#d.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(n.jG.batch(()=>this.#d.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#d.build(this,t);return r.isStaleByTime((0,i.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,f.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(e){return e.behavior=(0,f.PL)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return d.t.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#d}getMutationCache(){return this.#n}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#p.set((0,i.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#p.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#y.set((0,i.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#y.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#d.clear(),this.#n.clear()}}},263569:(e,t,r)=>{"use strict";r.d(t,{X:()=>a,k:()=>u});var i=r(384940),s=r(326113),n=r(939328),o=r(573244),a=class extends o.k{#v;#w;#E;#i;#o;#f;#O;constructor(e){super(),this.#O=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#E=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#v=c(this.options),this.state=e.state??this.#v,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=c(this.options);void 0!==e.data&&(this.setState(l(e.data,e.dataUpdatedAt)),this.#v=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#E.remove(this)}setData(e,t){let r=(0,i.pl)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(i.lQ).catch(i.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#v)}isActive(){return this.observers.some(e=>!1!==(0,i.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,i.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,i.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#E.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#O?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#E.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#o?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#O=!0,r.signal)})},o=()=>{let e=(0,i.ZM)(this.options,t),r=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(e),e})();return(this.#O=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return s(e),e})();this.options.behavior?.onFetch(a,this),this.#w=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta}),this.#o=(0,n.II)({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof n.cc&&e.revert&&this.setState({...this.#w,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#o.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#E.config.onSuccess?.(e,this),this.#E.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.cc){if(e.silent)return this.#o.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#a({type:"error",error:e}),this.#E.config.onError?.(e,this),this.#E.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...l(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#w=e.manual?r:void 0,r;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#E.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function l(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},264116:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a});var i=r(330633),s=()=>{};function n(e,t){return Math.random()*(t-e+1)+e}function o(e,t){return Math.floor(n(e,t))}var a=(0,i.forwardRef)(({progress:e,height:t=2,className:r="",color:a="red",background:u="transparent",onLoaderFinished:l,transitionTime:c=300,loaderSpeed:h=500,waitingTime:d=1e3,shadow:f=!0,containerStyle:p={},style:y={},shadowStyle:b={},containerClassName:m=""},g)=>{let v=(0,i.useRef)(!1),[w,E]=(0,i.useState)(0),O=(0,i.useRef)({active:!1,refreshRate:1e3}),[R,S]=(0,i.useState)({active:!1,value:60}),T={height:"100%",background:a,transition:`all ${h}ms ease`,width:"0%"},C={boxShadow:`0 0 10px ${a}, 0 0 10px ${a}`,width:"5%",opacity:1,position:"absolute",height:"100%",transition:`all ${h}ms ease`,transform:"rotate(2deg) translate(0px, -2px)",left:"-10rem"},[A,P]=(0,i.useState)(T),[x,j]=(0,i.useState)(C);(0,i.useEffect)(()=>(v.current=!0,()=>{v.current=!1}),[]),(0,i.useImperativeHandle)(g,()=>({continuousStart(t,r=1e3){if(R.active)return;if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");let i=t||o(10,20);O.current={active:!0,refreshRate:r},E(i),_(i)},staticStart(t){if(O.current.active)return;if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");let r=t||o(30,60);S({active:!0,value:r}),E(r),_(r)},start(t="continuous",r,i){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");"continuous"===t?O.current={active:!0,refreshRate:i||1e3}:S({active:!0,value:r||20});let s=o(10,20),n=o(30,70),a=r||("continuous"===t?s:n);E(a),_(a)},complete(){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");E(100),_(100)},increase(t){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");E(e=>{let r=e+t;return _(r),r})},decrease(t){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");E(e=>{let r=e-t;return _(r),r})},getProgress:()=>w})),(0,i.useEffect)(()=>{P({...A,background:a}),j({...x,boxShadow:`0 0 10px ${a}, 0 0 5px ${a}`})},[a]),(0,i.useEffect)(()=>{if(g){if(g&&void 0!==e)return void console.warn('react-top-loading-bar: You can\'t use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.');_(w)}else e&&_(e)},[e]);let _=e=>{e>=100?(P({...A,width:"100%"}),f&&j({...x,left:e-10+"%"}),setTimeout(()=>{v.current&&(P({...A,opacity:0,width:"100%",transition:`all ${c}ms ease-out`,color:a}),setTimeout(()=>{v.current&&(O.current.active&&(O.current={...O.current,active:!1},E(0),_(0)),R.active&&(S({...R,active:!1}),E(0),_(0)),l&&l(),E(0),_(0))},c))},d)):(P(t=>({...t,width:e+"%",opacity:1,transition:e>0?`all ${h}ms ease`:""})),f&&j({...x,left:e-5.5+"%",transition:e>0?`all ${h}ms ease`:""}))};return function(e,t,r){let n=(0,i.useRef)(s);(0,i.useEffect)(()=>{n.current=e}),(0,i.useEffect)(()=>{},[void 0]),(0,i.useEffect)(()=>{if(null===t||!1===t)return;let e=setInterval(()=>n.current(),t);return()=>clearInterval(e)},[t])}(()=>{let e=n(Math.min(10,(100-w)/5),Math.min(20,(100-w)/3));w+e<95&&(E(w+e),_(w+e))},O.current.active?O.current.refreshRate:null),i.createElement("div",{className:m,style:{position:"fixed",top:0,left:0,height:t,background:u,zIndex:0x174876e7ff,width:"100%",...p}},i.createElement("div",{className:r,style:{...A,...y}},f?i.createElement("div",{style:{...x,...b}}):null))});i.createContext(void 0)},293114:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});var i=r(330633);r(424629);var s=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),n=()=>i.useContext(s)},326113:(e,t,r)=>{"use strict";r.d(t,{jG:()=>s});var i=r(864197).Zq,s=function(){let e=[],t=0,r=e=>{e()},s=e=>{e()},n=i,o=i=>{t?e.push(i):n(()=>{r(i)})},a=()=>{let t=e;e=[],t.length&&n(()=>{s(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{n=e}}}()},357606:(e,t,r)=>{"use strict";let i;r.d(t,{BE:()=>ea,Ay:()=>eu});var s=r(330633),n=r(397845),o=r(93134);let a=new WeakMap,u=()=>{},l=u(),c=Object,h=e=>e===l,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),p=e=>d(e.then),y={},b={},m="undefined",g=typeof window!=m,v=typeof document!=m,w=g&&"Deno"in window,E=()=>g&&typeof window.requestAnimationFrame!=m,O=(e,t)=>{let r=a.get(e);return[()=>!h(t)&&e.get(t)||y,i=>{if(!h(t)){let s=e.get(t);t in b||(b[t]=s),r[5](t,f(s,i),s||y)}},r[6],()=>!h(t)&&t in b?b[t]:!h(t)&&e.get(t)||y]},R=!0,[S,T]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],C={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),T("focus",e)}),initReconnect:e=>{let t=()=>{R=!0,e()},r=()=>{R=!1};return S("online",t),S("offline",r),()=>{T("online",t),T("offline",r)}}},A=!s.useId,P=!g||w,x=e=>E()?window.requestAnimationFrame(e):setTimeout(e,1),j=P?s.useEffect:s.useLayoutEffect,_="undefined"!=typeof navigator&&navigator.connection,D=!P&&_&&(["slow-2g","2g"].includes(_.effectiveType)||_.saveData),U=new WeakMap,F=e=>c.prototype.toString.call(e),q=(e,t)=>e===`[object ${t}]`,I=0,L=e=>{let t,r,i=typeof e,s=F(e),n=q(s,"Date"),o=q(s,"RegExp"),a=q(s,"Object");if(c(e)!==e||n||o)t=n?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(t=U.get(e))return t;if(t=++I+"~",U.set(e,t),Array.isArray(e)){for(r=0,t="@";r{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},k=0,B=()=>++k;async function Q(...e){let[t,r,i,s]=e,n=f({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{}),o=n.populateCache,u=n.rollbackOnError,c=n.optimisticData,y=e=>"function"==typeof u?u(e):!1!==u,b=n.throwOnError;if(d(r)){let e=[];for(let i of t.keys())!/^\$(inf|sub)\$/.test(i)&&r(t.get(i)._k)&&e.push(i);return Promise.all(e.map(m))}return m(r);async function m(r){let s,[u]=M(r);if(!u)return;let[f,m]=O(t,u),[g,v,w,E]=a.get(t),R=()=>{let e=g[u];return(d(n.revalidate)?n.revalidate(f().data,r):!1!==n.revalidate)&&(delete w[u],delete E[u],e&&e[0])?e[0](2).then(()=>f().data):f().data};if(e.length<3)return R();let S=i,T=!1,C=B();v[u]=[C,0];let A=!h(c),P=f(),x=P.data,j=P._c,_=h(j)?x:j;if(A&&m({data:c=d(c)?c(_,x):c,_c:_}),d(S))try{S=S(_)}catch(e){s=e,T=!0}if(S&&p(S)){if(S=await S.catch(e=>{s=e,T=!0}),C!==v[u][0]){if(T)throw s;return S}T&&A&&y(s)&&(o=!0,m({data:_,_c:l}))}if(o&&!T&&(d(o)?m({data:o(S,_),error:l,_c:l}):m({data:S,error:l,_c:l})),v[u][1]=B(),Promise.resolve(R()).then(()=>{m({_c:l})}),T){if(b)throw s;return}return S}}let N=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},H=(e,t)=>{if(!a.has(e)){let r=f(C,t),i=Object.create(null),s=Q.bind(l,e),n=u,o=Object.create(null),c=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},h=(t,r,i)=>{e.set(t,r);let s=o[t];if(s)for(let e of s)e(r,i)},d=()=>{if(!a.has(e)&&(a.set(e,[i,Object.create(null),Object.create(null),Object.create(null),s,h,c]),!P)){let t=r.initFocus(setTimeout.bind(l,N.bind(l,i,0))),s=r.initReconnect(setTimeout.bind(l,N.bind(l,i,1)));n=()=>{t&&t(),s&&s(),a.delete(e)}}};return d(),[e,s,d,n]}return[e,a.get(e)[4]]},$=o.j,[G,K]=H(new Map),z=f({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,i,s)=>{let n=r.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(h(n)||!(o>n))&&setTimeout(i,a,s)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:$,isPaused:()=>!1,cache:G,mutate:K,fallback:{}},{isOnline:()=>R,isVisible:()=>{let e=v&&document.visibilityState;return h(e)||"hidden"!==e}}),V=(e,t)=>{let r=f(e,t);if(t){let{use:i,fallback:s}=e,{use:n,fallback:o}=t;i&&n&&(r.use=i.concat(n)),s&&o&&(r.fallback=f(s,o))}return r},W=(0,s.createContext)({}),J=g&&window.__SWR_DEVTOOLS_USE__,Z=J?window.__SWR_DEVTOOLS_USE__:[],X=e=>d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>{let e=(0,s.useContext)(W);return(0,s.useMemo)(()=>f(z,e),[e])},ee=Z.concat(e=>(t,r,i)=>{let s=r&&((...e)=>{let[i]=M(t),[,,,s]=a.get(G);if(i.startsWith("$inf$"))return r(...e);let n=s[i];return h(n)?r(...e):(delete s[i],n)});return e(t,s,i)}),et=(e,t,r)=>{let i=t[e]||(t[e]=[]);return i.push(r),()=>{let e=i.indexOf(r);e>=0&&(i[e]=i[i.length-1],i.pop())}};J&&(window.__SWR_DEVTOOLS_REACT__=s);let er=()=>{},ei=er();new WeakMap;let es=s.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),en={dedupe:!0},eo=Promise.resolve(l),ea=c.defineProperty(e=>{let{value:t}=e,r=(0,s.useContext)(W),i=d(t),n=(0,s.useMemo)(()=>i?t(r):t,[i,r,t]),o=(0,s.useMemo)(()=>i?n:V(r,n),[i,r,n]),a=n&&n.provider,u=(0,s.useRef)(l);a&&!u.current&&(u.current=H(a(o.cache||G),n));let c=u.current;return c&&(o.cache=c[0],o.mutate=c[1]),j(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,s.createElement)(W.Provider,f(e,{value:o}))},"defaultValue",{value:z}),eu=(i=(e,t,r)=>{let{cache:i,compare:o,suspense:u,fallbackData:c,revalidateOnMount:y,revalidateIfStale:b,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:v,keepPreviousData:w}=r,[E,R,S,T]=a.get(i),[C,_]=M(e),D=(0,s.useRef)(!1),U=(0,s.useRef)(!1),F=(0,s.useRef)(C),q=(0,s.useRef)(t),I=(0,s.useRef)(r),L=()=>I.current,k=()=>L().isVisible()&&L().isOnline(),[N,H,$,G]=O(i,C),K=(0,s.useRef)({}).current,z=h(c)?h(r.fallback)?l:r.fallback[C]:c,V=(e,t)=>{for(let r in K)if("data"===r){if(!o(e[r],t[r])&&(!h(e[r])||!o(ea,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},W=(0,s.useMemo)(()=>{let e=!!C&&!!t&&(h(y)?!L().isPaused()&&!u&&!1!==b:y),r=t=>{let r=f(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},i=N(),s=G(),n=r(i),o=i===s?n:r(s),a=n;return[()=>{let e=r(N());return V(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>o]},[i,C]),J=(0,n.useSyncExternalStore)((0,s.useCallback)(e=>$(C,(t,r)=>{V(r,t)||e()}),[i,C]),W[0],W[1]),Z=!D.current,X=E[C]&&E[C].length>0,Y=J.data,ee=h(Y)?z&&p(z)?es(z):z:Y,er=J.error,ei=(0,s.useRef)(ee),ea=w?h(Y)?h(ei.current)?ee:ei.current:Y:ee,eu=(!X||!!h(er))&&(Z&&!h(y)?y:!L().isPaused()&&(u?!h(ee)&&b:h(ee)||b)),el=!!(C&&t&&Z&&eu),ec=h(J.isValidating)?el:J.isValidating,eh=h(J.isLoading)?el:J.isLoading,ed=(0,s.useCallback)(async e=>{let t,i,s=q.current;if(!C||!s||U.current||L().isPaused())return!1;let n=!0,a=e||{},u=!S[C]||!a.dedupe,c=()=>A?!U.current&&C===F.current&&D.current:C===F.current,f={isValidating:!1,isLoading:!1},p=()=>{H(f)},y=()=>{let e=S[C];e&&e[1]===i&&delete S[C]},b={isValidating:!0};h(N().data)&&(b.isLoading=!0);try{if(u&&(H(b),r.loadingTimeout&&h(N().data)&&setTimeout(()=>{n&&c()&&L().onLoadingSlow(C,r)},r.loadingTimeout),S[C]=[s(_),B()]),[t,i]=S[C],t=await t,u&&setTimeout(y,r.dedupingInterval),!S[C]||S[C][1]!==i)return u&&c()&&L().onDiscarded(C),!1;f.error=l;let e=R[C];if(!h(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return p(),u&&c()&&L().onDiscarded(C),!1;let a=N().data;f.data=o(a,t)?a:t,u&&c()&&L().onSuccess(t,C,r)}catch(r){y();let e=L(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,u&&c()&&(e.onError(r,C,e),(!0===t||d(t)&&t(r))&&(!L().revalidateOnFocus||!L().revalidateOnReconnect||k())&&e.onErrorRetry(r,C,e,e=>{let t=E[C];t&&t[0]&&t[0](3,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return n=!1,p(),!0},[C,i]),ef=(0,s.useCallback)((...e)=>Q(i,F.current,...e),[]);if(j(()=>{q.current=t,I.current=r,h(Y)||(ei.current=Y)}),j(()=>{if(!C)return;let e=ed.bind(l,en),t=0;L().revalidateOnFocus&&(t=Date.now()+L().focusThrottleInterval);let r=et(C,E,(r,i={})=>{if(0==r){let r=Date.now();L().revalidateOnFocus&&r>t&&k()&&(t=r+L().focusThrottleInterval,e())}else if(1==r)L().revalidateOnReconnect&&k()&&e();else if(2==r)return ed();else if(3==r)return ed(i)});return U.current=!1,F.current=C,D.current=!0,H({_k:_}),eu&&!S[C]&&(h(ee)||P?e():x(e)),()=>{U.current=!0,r()}},[C]),j(()=>{let e;function t(){let t=d(m)?m(N().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!N().error&&(g||L().isVisible())&&(v||L().isOnline())?ed(en).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,g,v,C]),(0,s.useDebugValue)(ea),u){let e=C&&h(ee);if(!A&&P&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(q.current=t,I.current=r,U.current=!1);let i=T[C];if(es(!h(i)&&e?ef(i):eo),!h(er)&&e)throw er;let s=e?ed(en):eo;!h(ea)&&e&&(s.status="fulfilled",s.value=!0),es(s)}return{mutate:ef,get data(){return K.data=!0,ea},get error(){return K.error=!0,er},get isValidating(){return K.isValidating=!0,ec},get isLoading(){return K.isLoading=!0,eh}}},function(...e){let t=Y(),[r,s,n]=X(e),o=V(t,n),a=i,{use:u}=o,l=(u||[]).concat(ee);for(let e=l.length;e--;)a=l[e](a);return a(r,s||o.fetcher||null,o)})},384940:(e,t,r)=>{"use strict";r.d(t,{BH:()=>m,Cp:()=>y,EN:()=>p,Eh:()=>c,F$:()=>f,GU:()=>x,MK:()=>h,S$:()=>s,ZM:()=>P,ZZ:()=>C,Zw:()=>o,d2:()=>l,f8:()=>g,gn:()=>a,hT:()=>A,j3:()=>u,lQ:()=>n,nJ:()=>d,pl:()=>R,rX:()=>S,y9:()=>T,yy:()=>O});var i=r(864197),s="undefined"==typeof window||"Deno"in globalThis;function n(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function h(e,t){let{type:r="all",exact:i,fetchStatus:s,predicate:n,queryKey:o,stale:a}=e;if(o){if(i){if(t.queryHash!==f(o,t.options))return!1}else if(!y(t.queryKey,o))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!s||s===t.state.fetchStatus)&&(!n||!!n(t))}function d(e,t){let{exact:r,status:i,predicate:s,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(n))return!1}else if(!y(t.options.mutationKey,n))return!1}return(!i||t.state.status===i)&&(!s||!!s(t))}function f(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function y(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>y(e[r],t[r]))}var b=Object.prototype.hasOwnProperty;function m(e,t){if(e===t)return e;let r=v(e)&&v(t);if(!r&&!(w(e)&&w(t)))return t;let i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),n=s.length,o=r?Array(n):{},a=0;for(let u=0;u{i.zs.setTimeout(t,e)})}function R(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?m(e,t):t}function S(e){return e}function T(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i}function C(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var A=Symbol();function P(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==A?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function x(e,t){return"function"==typeof e?e(...t):!!e}},391121:(e,t,r)=>{var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,s=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||n(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){if(!this._bodyArrayBuffer)return this.blob().then(d);var e=c(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}),this.text=function(){var e,t,r,i=c(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),i=0;i-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var n=/([?&])_=[^&]*/;n.test(this.url)?this.url=this.url.replace(n,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(s))}}),t}function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},p.call(b.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];g.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,s){return new Promise(function(n,o){var u=new b(e,s);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),i=r.shift().trim();if(i){var s=r.join(":").trim();t.append(i,s)}}),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var i="response"in c?c.response:c.responseText;setTimeout(function(){n(new g(i,r))},0)},c.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(u.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?c.withCredentials=!0:"omit"===u.credentials&&(c.withCredentials=!1),"responseType"in c&&(i.blob?c.responseType="blob":i.arrayBuffer&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?u.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){c.setRequestHeader(e,a(s.headers[e]))}),u.signal&&(u.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&u.signal.removeEventListener("abort",h)}),c.send(void 0===u._bodyInit?null:u._bodyInit)})}w.polyfill=!0,r.fetch||(r.fetch=w,r.Headers=l,r.Request=b,r.Response=g),t.Headers=l,t.Request=b,t.Response=g,t.fetch=w}({})}(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var n=i.fetch?i:s;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},449454:(e,t,r)=>{"use strict";r.d(t,{$1:()=>a,LJ:()=>n,wZ:()=>o});var i=r(330633),s=r(384940),n=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},o=e=>{i.useEffect(()=>{e.clearReset()},[e])},a=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(0,s.GU)(r,[e.error,i]))},455899:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>a,jE:()=>o});var i=r(330633),s=r(424629),n=i.createContext(void 0),o=e=>{let t=i.useContext(n);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(n.Provider,{value:e,children:t}))},478640:function(e,t){var r="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e,t,r,i=l(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=c(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),i=0;i-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(s))}}),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},f.call(y.prototype),f.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var g=[301,302,303,307,308];m.redirect=function(e,t){if(-1===g.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=i.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,i){return new Promise(function(s,n){var o=new y(r,i);if(o.signal&&o.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),i=r.shift().trim();if(i){var s=r.join(":").trim();t.append(i,s)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL"),s(new m("response"in a?a.response:a.responseText,r))},a.onerror=function(){n(TypeError("Network request failed"))},a.ontimeout=function(){n(TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",l)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,i.fetch||(i.fetch=v,i.Headers=u,i.Request=y,i.Response=m),e.Headers=u,e.Request=y,e.Response=m,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},534336:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var i=r(83650),s=r(384940),n=new class extends i.Q{#R;#t;#r;constructor(){super(),this.#r=e=>{if(!s.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#R!==e&&(this.#R=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#R?this.#R:globalThis.document?.visibilityState!=="hidden"}}},563089:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});var i=r(330633),s=i.createContext(!1),n=()=>i.useContext(s);s.Provider},573244:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var i=r(864197),s=r(384940),n=class{#S;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.gn)(this.gcTime)&&(this.#S=i.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.S$?1/0:3e5))}clearGcTimeout(){this.#S&&(i.zs.clearTimeout(this.#S),this.#S=void 0)}}},600538:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var i=r(694275),s=r(670657);function n(e,t){return(0,s.t)(e,i.$,t)}},636302:(e,t,r)=>{"use strict";r.d(t,{pe:()=>s});let{Axios:i,AxiosError:s,CanceledError:n,isCancel:o,CancelToken:a,VERSION:u,all:l,Cancel:c,isAxiosError:h,spread:d,toFormData:f,AxiosHeaders:p,HttpStatusCode:y,formToJSON:b,getAdapter:m,mergeConfig:g}=r(201475).A},641563:(e,t,r)=>{"use strict";r.d(t,{PL:()=>s,RQ:()=>u,rB:()=>a});var i=r(384940);function s(e){return{onFetch:(t,r)=>{let s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],l=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,d=async()=>{let r=!1,d=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},f=(0,i.ZM)(t.options,t.fetchOptions),p=async(e,s,n)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let o=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:n?"backward":"forward",meta:t.options.meta};return d(e),e})(),a=await f(o),{maxPages:u}=t.options,l=n?i.ZZ:i.y9;return{pages:l(e.pages,a,u),pageParams:l(e.pageParams,s,u)}};if(a&&u.length){let e="backward"===a,t={pages:u,pageParams:l},r=(e?o:n)(s,t);c=await p(t,r,e)}else{let t=e??u.length;do{let e=0===h?l[0]??s.initialPageParam:n(s,c);if(h>0&&null==e)break;c=await p(c,e),h++}while(ht.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=d}}}function n(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function o(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function a(e,t){return!!t&&null!=n(e,t)}function u(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}},670657:(e,t,r)=>{"use strict";r.d(t,{t:()=>h});var i=r(330633),s=r(326113),n=r(384940),o=r(455899),a=r(293114),u=r(449454),l=r(563089),c=r(864295);function h(e,t,r){let h=(0,l.w)(),d=(0,a.h)(),f=(0,o.jE)(r),p=f.defaultQueryOptions(e);f.getDefaultOptions().queries?._experimental_beforeQuery?.(p),p._optimisticResults=h?"isRestoring":"optimistic",(0,c.jv)(p),(0,u.LJ)(p,d),(0,u.wZ)(d);let y=!f.getQueryCache().get(p.queryHash),[b]=i.useState(()=>new t(f,p)),m=b.getOptimisticResult(p),g=!h&&!1!==e.subscribed;if(i.useSyncExternalStore(i.useCallback(e=>{let t=g?b.subscribe(s.jG.batchCalls(e)):n.lQ;return b.updateResult(),t},[b,g]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),i.useEffect(()=>{b.setOptions(p)},[p,b]),(0,c.EU)(p,m))throw(0,c.iL)(p,b,d);if((0,u.$1)({result:m,errorResetBoundary:d,throwOnError:p.throwOnError,query:f.getQueryCache().get(p.queryHash),suspense:p.suspense}))throw m.error;if(f.getDefaultOptions().queries?._experimental_afterQuery?.(p,m),p.experimental_prefetchInRender&&!n.S$&&(0,c.nE)(m,h)){let e=y?(0,c.iL)(p,b,d):f.getQueryCache().get(p.queryHash)?.promise;e?.catch(n.lQ).finally(()=>{b.updateResult()})}return p.notifyOnChangeProps?m:b.trackResult(m)}},694275:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var i=r(534336),s=r(326113),n=r(263569),o=r(83650),a=r(97704),u=r(384940),l=r(864197),c=class extends o.Q{constructor(e,t){super(),this.options=t,this.#i=e,this.#T=null,this.#C=(0,a.T)(),this.bindMethods(),this.setOptions(t)}#i;#A=void 0;#P=void 0;#x=void 0;#j;#_;#C;#T;#D;#U;#F;#q;#I;#L;#M=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#A.addObserver(this),h(this.#A,this.options)?this.#k():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#A,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#A,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#Q(),this.#N(),this.#A.removeObserver(this)}setOptions(e){let t=this.options,r=this.#A;if(this.options=this.#i.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Eh)(this.options.enabled,this.#A))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#H(),this.#A.setOptions(this.options),t._defaulted&&!(0,u.f8)(this.options,t)&&this.#i.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#A,observer:this});let i=this.hasListeners();i&&f(this.#A,r,this.options,t)&&this.#k(),this.updateResult(),i&&(this.#A!==r||(0,u.Eh)(this.options.enabled,this.#A)!==(0,u.Eh)(t.enabled,this.#A)||(0,u.d2)(this.options.staleTime,this.#A)!==(0,u.d2)(t.staleTime,this.#A))&&this.#$();let s=this.#G();i&&(this.#A!==r||(0,u.Eh)(this.options.enabled,this.#A)!==(0,u.Eh)(t.enabled,this.#A)||s!==this.#L)&&this.#K(s)}getOptimisticResult(e){var t,r;let i=this.#i.getQueryCache().build(this.#i,e),s=this.createResult(i,e);return t=this,r=s,(0,u.f8)(t.getCurrentResult(),r)||(this.#x=s,this.#_=this.options,this.#j=this.#A.state),s}getCurrentResult(){return this.#x}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#C.status||this.#C.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#M.add(e)}getCurrentQuery(){return this.#A}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#i.defaultQueryOptions(e),r=this.#i.getQueryCache().build(this.#i,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#k({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#x))}#k(e){this.#H();let t=this.#A.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.lQ)),t}#$(){this.#Q();let e=(0,u.d2)(this.options.staleTime,this.#A);if(u.S$||this.#x.isStale||!(0,u.gn)(e))return;let t=(0,u.j3)(this.#x.dataUpdatedAt,e);this.#q=l.zs.setTimeout(()=>{this.#x.isStale||this.updateResult()},t+1)}#G(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#A):this.options.refetchInterval)??!1}#K(e){this.#N(),this.#L=e,!u.S$&&!1!==(0,u.Eh)(this.options.enabled,this.#A)&&(0,u.gn)(this.#L)&&0!==this.#L&&(this.#I=l.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#k()},this.#L))}#B(){this.#$(),this.#K(this.#G())}#Q(){this.#q&&(l.zs.clearTimeout(this.#q),this.#q=void 0)}#N(){this.#I&&(l.zs.clearInterval(this.#I),this.#I=void 0)}createResult(e,t){let r,i=this.#A,s=this.options,o=this.#x,l=this.#j,c=this.#_,d=e!==i?e.state:this.#P,{state:y}=e,b={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&h(e,t),a=r&&f(e,i,t,s);(o||a)&&(b={...b,...(0,n.k)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:w}=b;r=b.data;let E=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===w){let e;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=o.data,E=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#F?.state.data,this.#F):t.placeholderData,void 0!==e&&(w="success",r=(0,u.pl)(o?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!E)if(o&&r===l?.data&&t.select===this.#D)r=this.#U;else try{this.#D=t.select,r=t.select(r),r=(0,u.pl)(o?.data,r,t),this.#U=r,this.#T=null}catch(e){this.#T=e}this.#T&&(g=this.#T,r=this.#U,v=Date.now(),w="error");let O="fetching"===b.fetchStatus,R="pending"===w,S="error"===w,T=R&&O,C=void 0!==r,A={status:w,fetchStatus:b.fetchStatus,isPending:R,isSuccess:"success"===w,isError:S,isInitialLoading:T,isLoading:T,data:r,dataUpdatedAt:b.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>d.dataUpdateCount||b.errorUpdateCount>d.errorUpdateCount,isFetching:O,isRefetching:O&&!R,isLoadingError:S&&!C,isPaused:"paused"===b.fetchStatus,isPlaceholderData:m,isRefetchError:S&&C,isStale:p(e,t),refetch:this.refetch,promise:this.#C,isEnabled:!1!==(0,u.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===A.status?e.reject(A.error):void 0!==A.data&&e.resolve(A.data)},r=()=>{t(this.#C=A.promise=(0,a.T)())},s=this.#C;switch(s.status){case"pending":e.queryHash===i.queryHash&&t(s);break;case"fulfilled":("error"===A.status||A.data!==s.value)&&r();break;case"rejected":("error"!==A.status||A.error!==s.reason)&&r()}}return A}updateResult(){let e=this.#x,t=this.createResult(this.#A,this.options);this.#j=this.#A.state,this.#_=this.options,void 0!==this.#j.data&&(this.#F=this.#A),(0,u.f8)(t,e)||(this.#x=t,this.#z({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#M.size)return!0;let i=new Set(r??this.#M);return this.options.throwOnError&&i.add("error"),Object.keys(this.#x).some(t=>this.#x[t]!==e[t]&&i.has(t))})()}))}#H(){let e=this.#i.getQueryCache().build(this.#i,this.options);if(e===this.#A)return;let t=this.#A;this.#A=e,this.#P=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#z(e){s.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#x)}),this.#i.getQueryCache().notify({query:this.#A,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.Eh)(t.enabled,e)&&"static"!==(0,u.d2)(t.staleTime,e)){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&p(e,t)}return!1}function f(e,t,r,i){return(e!==t||!1===(0,u.Eh)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&e.isStaleByTime((0,u.d2)(t.staleTime,e))}},784239:(e,t,r)=>{"use strict";r.d(t,{E:()=>y});var i=r(330633),s=r(326113),n=r(694275),o=r(83650),a=r(384940);function u(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var l=class extends o.Q{#i;#V;#u;#W;#s;#J;#Z;#X;#Y=[];constructor(e,t,r){super(),this.#i=e,this.#W=r,this.#u=[],this.#s=[],this.#V=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#ee(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#u=e,this.#W=t,s.jG.batch(()=>{let e=this.#s,t=this.#et(this.#u);this.#Y=t,t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),i=r.map(e=>e.getCurrentResult()),s=e.length!==r.length,n=r.some((t,r)=>t!==e[r]),o=s||n,l=!!o||i.some((e,t)=>{let r=this.#V[t];return!r||!(0,a.f8)(e,r)});(o||l)&&(o&&(this.#s=r),this.#V=i,this.hasListeners()&&(o&&(u(e,r).forEach(e=>{e.destroy()}),u(r,e).forEach(e=>{e.subscribe(t=>{this.#ee(e,t)})})),this.#z()))})}getCurrentResult(){return this.#V}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#et(e),i=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[i,e=>this.#er(e??i,t),()=>this.#ei(i,r)]}#ei(e,t){return t.map((r,i)=>{let s=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#er(e,t){return t?(this.#J&&this.#V===this.#X&&t===this.#Z||(this.#Z=t,this.#X=this.#V,this.#J=(0,a.BH)(this.#J,t(e))),this.#J):e}#et(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let i=t.get(r);i?i.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let i=this.#i.defaultQueryOptions(e),s=t.get(i.queryHash)?.shift()??new n.$(this.#i,i);r.push({defaultedQueryOptions:i,observer:s})}),r}#ee(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#V=function(e,t,r){let i=e.slice(0);return i[t]=r,i}(this.#V,r,t),this.#z())}#z(){if(this.hasListeners()){let e=this.#J,t=this.#ei(this.#V,this.#Y);e!==this.#er(t,this.#W?.combine)&&s.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#V)})})}}},c=r(455899),h=r(563089),d=r(293114),f=r(449454),p=r(864295);function y({queries:e,...t},r){let o=(0,c.jE)(r),u=(0,h.w)(),y=(0,d.h)(),b=i.useMemo(()=>e.map(e=>{let t=o.defaultQueryOptions(e);return t._optimisticResults=u?"isRestoring":"optimistic",t}),[e,o,u]);b.forEach(e=>{(0,p.jv)(e),(0,f.LJ)(e,y)}),(0,f.wZ)(y);let[m]=i.useState(()=>new l(o,b,t)),[g,v,w]=m.getOptimisticResult(b,t.combine),E=!u&&!1!==t.subscribed;i.useSyncExternalStore(i.useCallback(e=>E?m.subscribe(s.jG.batchCalls(e)):a.lQ,[m,E]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),i.useEffect(()=>{m.setQueries(b,t)},[b,t,m]);let O=g.some((e,t)=>(0,p.EU)(b[t],e))?g.flatMap((e,t)=>{let r=b[t];if(r){let t=new n.$(o,r);if((0,p.EU)(r,e))return(0,p.iL)(r,t,y);(0,p.nE)(e,u)&&(0,p.iL)(r,t,y)}return[]}):[];if(O.length>0)throw Promise.all(O);let R=g.find((e,t)=>{let r=b[t];return r&&(0,f.$1)({result:e,errorResetBoundary:y,throwOnError:r.throwOnError,query:o.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R?.error)throw R.error;return v(w())}},864197:(e,t,r)=>{"use strict";r.d(t,{Zq:()=>n,zs:()=>s});var i={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#es=i;#en=!1;setTimeoutProvider(e){this.#es=e}setTimeout(e,t){return this.#es.setTimeout(e,t)}clearTimeout(e){this.#es.clearTimeout(e)}setInterval(e,t){return this.#es.setInterval(e,t)}clearInterval(e){this.#es.clearInterval(e)}};function n(e){setTimeout(e,0)}},864295:(e,t,r)=>{"use strict";r.d(t,{EU:()=>n,iL:()=>o,jv:()=>i,nE:()=>s});var i=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},s=(e,t)=>e.isLoading&&e.isFetching&&!t,n=(e,t)=>e?.suspense&&t.isPending,o=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},939328:(e,t,r)=>{"use strict";r.d(t,{II:()=>c,cc:()=>l,v_:()=>u});var i=r(534336),s=r(32495),n=r(97704),o=r(384940);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||s.t.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let t,r=!1,c=0,h=(0,n.T)(),d=()=>"pending"!==h.status,f=()=>i.m.isFocused()&&("always"===e.networkMode||s.t.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),y=e=>{d()||(t?.(),h.resolve(e))},b=e=>{d()||(t?.(),h.reject(e))},m=()=>new Promise(r=>{t=e=>{(d()||f())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,d()||e.onContinue?.()}),g=()=>{let t;if(d())return;let i=0===c?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if(d())return;let i=e.retry??3*!o.S$,s=e.retryDelay??a,n="function"==typeof s?s(c,t):s,u=!0===i||"number"==typeof i&&cf()?void 0:m()).then(()=>{r?b(t):g()})})};return{promise:h,status:()=>h.status,cancel:t=>{if(!d()){let r=new l(t);b(r),e.onCancel?.(r)}},continue:()=>(t?.(),h),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:p,start:()=>(p()?g():m().then(g),h)}}},940654:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var i=r(330633),s=r(138416),n=r(326113),o=r(83650),a=r(384940),u=class extends o.Q{#i;#x=void 0;#eo;#ea;constructor(e,t){super(),this.#i=e,this.setOptions(t),this.bindMethods(),this.#eu()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#i.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#i.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#eo,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#eo?.state.status==="pending"&&this.#eo.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#eo?.removeObserver(this)}onMutationUpdate(e){this.#eu(),this.#z(e)}getCurrentResult(){return this.#x}reset(){this.#eo?.removeObserver(this),this.#eo=void 0,this.#eu(),this.#z()}mutate(e,t){return this.#ea=t,this.#eo?.removeObserver(this),this.#eo=this.#i.getMutationCache().build(this.#i,this.options),this.#eo.addObserver(this),this.#eo.execute(e)}#eu(){let e=this.#eo?.state??(0,s.$)();this.#x={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#z(e){n.jG.batch(()=>{if(this.#ea&&this.hasListeners()){let t=this.#x.variables,r=this.#x.context,i={client:this.#i,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#ea.onSuccess?.(e.data,t,r,i),this.#ea.onSettled?.(e.data,null,t,r,i)):e?.type==="error"&&(this.#ea.onError?.(e.error,t,r,i),this.#ea.onSettled?.(void 0,e.error,t,r,i))}this.listeners.forEach(e=>{e(this.#x)})})}},l=r(455899);function c(e,t){let r=(0,l.jE)(t),[s]=i.useState(()=>new u(r,e));i.useEffect(()=>{s.setOptions(e)},[s,e]);let o=i.useSyncExternalStore(i.useCallback(e=>s.subscribe(n.jG.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=i.useCallback((e,t)=>{s.mutate(e,t).catch(a.lQ)},[s]);if(o.error&&(0,a.GU)(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}}}]); //# sourceMappingURL=common-8b3b3138a49e7ffd.js.map