@perses-dev/alert-manager-plugin 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/__mf/js/{AlertManager.f762e62c.js → AlertManager.377d377b.js} +2 -2
  2. package/__mf/js/async/{1728.83bb9a7c.js → 1728.8a326412.js} +1 -1
  3. package/__mf/js/async/2842.993baf22.js +1 -0
  4. package/__mf/js/async/3468.1679f87f.js +1 -0
  5. package/__mf/js/async/3540.96681482.js +2 -0
  6. package/__mf/js/async/3981.84d12fdc.js +4 -0
  7. package/__mf/js/async/{7790.a75199e6.js → 430.74d85c4b.js} +5 -5
  8. package/__mf/js/async/{7862.556c038f.js → 5481.cf6703fd.js} +2 -2
  9. package/__mf/js/async/5570.d4dd47e0.js +1 -0
  10. package/__mf/js/async/{2954.3ac1f636.js → 573.ce8ce2ef.js} +1 -1
  11. package/__mf/js/async/{7422.33d76364.js → 7283.8c1cb6ee.js} +2 -2
  12. package/__mf/js/async/{7984.49fa1156.js → 7984.163a6ddb.js} +5 -5
  13. package/__mf/js/async/8711.c7dc09b8.js +2 -0
  14. package/__mf/js/async/9537.36ff6f15.js +1 -0
  15. package/__mf/js/async/983.36857235.js +1 -0
  16. package/__mf/js/async/{__federation_expose_AlertManagerAlertsExplorer.d4fb76c0.js → __federation_expose_AlertManagerAlertsExplorer.47ee46dc.js} +2 -2
  17. package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.22b0e5bc.js +1 -0
  18. package/__mf/js/async/__federation_expose_AlertManagerDatasource.7ee7440a.js +2 -0
  19. package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.35860f1b.js +2 -0
  20. package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.52a24c9e.js +2 -0
  21. package/__mf/js/async/__federation_expose_AlertTable.5d005bae.js +1 -0
  22. package/__mf/js/async/__federation_expose_SilenceTable.3fc487a4.js +2 -0
  23. package/__mf/js/async/__federation_expose_SilenceTable.3fc487a4.js.LICENSE.txt +9 -0
  24. package/__mf/js/{main.a1362788.js → main.259f5b24.js} +2 -2
  25. package/lib/cjs/model/alertmanager-client.js +3 -3
  26. package/lib/explore/AlertManagerAlertsExplorer.js.map +1 -1
  27. package/lib/explore/AlertManagerSilencesExplorer.js.map +1 -1
  28. package/lib/model/alertmanager-client.d.ts +1 -1
  29. package/lib/model/alertmanager-client.d.ts.map +1 -1
  30. package/lib/model/alertmanager-client.js +1 -1
  31. package/lib/model/alertmanager-client.js.map +1 -1
  32. package/lib/model/alertmanager-selectors.d.ts +1 -1
  33. package/lib/model/alertmanager-selectors.js.map +1 -1
  34. package/lib/plugins/types.d.ts +1 -1
  35. package/lib/plugins/types.js.map +1 -1
  36. package/mf-manifest.json +141 -109
  37. package/mf-stats.json +143 -111
  38. package/package.json +8 -7
  39. package/__mf/js/async/4397.d399eecb.js +0 -2
  40. package/__mf/js/async/4732.e866a740.js +0 -1
  41. package/__mf/js/async/573.214f2003.js +0 -2
  42. package/__mf/js/async/6593.acc8b704.js +0 -4
  43. package/__mf/js/async/733.22ab2a8a.js +0 -1
  44. package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.9ea3093c.js +0 -1
  45. package/__mf/js/async/__federation_expose_AlertManagerDatasource.2fbf067c.js +0 -2
  46. package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.d2527c12.js +0 -2
  47. package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.7aca31d3.js +0 -2
  48. package/__mf/js/async/__federation_expose_AlertTable.4a636b80.js +0 -1
  49. package/__mf/js/async/__federation_expose_SilenceTable.11259028.js +0 -1
  50. /package/__mf/css/async/{7790.85c2cbf6.css → 430.85c2cbf6.css} +0 -0
  51. /package/__mf/js/async/{4397.d399eecb.js.LICENSE.txt → 3540.96681482.js.LICENSE.txt} +0 -0
  52. /package/__mf/js/async/{6593.acc8b704.js.LICENSE.txt → 3981.84d12fdc.js.LICENSE.txt} +0 -0
  53. /package/__mf/js/async/{7790.a75199e6.js.LICENSE.txt → 430.74d85c4b.js.LICENSE.txt} +0 -0
  54. /package/__mf/js/async/{7862.556c038f.js.LICENSE.txt → 5481.cf6703fd.js.LICENSE.txt} +0 -0
  55. /package/__mf/js/async/{573.214f2003.js.LICENSE.txt → 7283.8c1cb6ee.js.LICENSE.txt} +0 -0
  56. /package/__mf/js/async/{7984.49fa1156.js.LICENSE.txt → 7984.163a6ddb.js.LICENSE.txt} +0 -0
  57. /package/__mf/js/async/{7422.33d76364.js.LICENSE.txt → 8711.c7dc09b8.js.LICENSE.txt} +0 -0
  58. /package/__mf/js/async/{__federation_expose_AlertManagerAlertsExplorer.d4fb76c0.js.LICENSE.txt → __federation_expose_AlertManagerAlertsExplorer.47ee46dc.js.LICENSE.txt} +0 -0
  59. /package/__mf/js/async/{__federation_expose_AlertManagerDatasource.2fbf067c.js.LICENSE.txt → __federation_expose_AlertManagerDatasource.7ee7440a.js.LICENSE.txt} +0 -0
  60. /package/__mf/js/async/{__federation_expose_AlertManagerSilencesExplorer.d2527c12.js.LICENSE.txt → __federation_expose_AlertManagerSilencesExplorer.35860f1b.js.LICENSE.txt} +0 -0
  61. /package/__mf/js/async/{__federation_expose_AlertManagerSilencesQuery.7aca31d3.js.LICENSE.txt → __federation_expose_AlertManagerSilencesQuery.52a24c9e.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7862.556c038f.js.LICENSE.txt */
2
- "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["7862"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>_,Hydrate:()=>tN,useInfiniteQuery:()=>tV,useIsMutating:()=>t_,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>V,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>N,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>tB,useQuery:()=>tT,onlineManager:()=>T,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tG,useMutation:()=>tW,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},U=["online","offline"],T=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return U.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{U.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||T.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!T.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let B=console,N=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class G{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _ extends G{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||B,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new _({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){N.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){N.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){N.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class W extends G{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||B,this.observers=[],this.state=t.state||J(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function J(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class V extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new W({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){N.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return N.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new V,this.logger=t.logger||B,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return N.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;N.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return N.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(N.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return N.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(N.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){N.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,N.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){N.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:J(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){N.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(N.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tU(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=N.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=N.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=N.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(N.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tT(t,e,s){return tU(y(t,e,s),tt)}function tK(t){return tU({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tU({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function tB(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tN=({children:t,options:e,state:s})=>(tB(s,e),t);function tG(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function t_(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tW(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(N.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tJ)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tJ(){}function tV(t,e,s){return tU(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);
1
+ /*! For license information please see 5481.cf6703fd.js.LICENSE.txt */
2
+ "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["5481"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>_,Hydrate:()=>tN,useInfiniteQuery:()=>tV,useIsMutating:()=>t_,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>V,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>N,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>tB,useQuery:()=>tT,onlineManager:()=>T,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tG,useMutation:()=>tW,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},U=["online","offline"],T=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return U.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{U.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||T.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!T.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let B=console,N=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class G{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _ extends G{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||B,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new _({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){N.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){N.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){N.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class W extends G{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||B,this.observers=[],this.state=t.state||J(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function J(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class V extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new W({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){N.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return N.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new V,this.logger=t.logger||B,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return N.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;N.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return N.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(N.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return N.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(N.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){N.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,N.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){N.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:J(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){N.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(N.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tU(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=N.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=N.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=N.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(N.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tT(t,e,s){return tU(y(t,e,s),tt)}function tK(t){return tU({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tU({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function tB(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tN=({children:t,options:e,state:s})=>(tB(s,e),t);function tG(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function t_(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tW(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(N.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tJ)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tJ(){}function tV(t,e,s){return tU(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["5570"],{34007(e,t,r){r.d(t,{A:()=>z});var o=r(70451),i=r(11750),n=r(81023),a=r(59238),l=r(77308),s=r(23434),c=r(72052),u=r(73397),d=r(24726),p=r(26952),h=r(11502),m=r(52855),f=r(47095),v=r(22402),g=r(62540);let b=(0,v.A)((0,g.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),x=(0,v.A)((0,g.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),A=(0,v.A)((0,g.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),$=(0,v.A)((0,g.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var w=r(17834);let k=(0,l.A)(h.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,d.A)(r.color||r.severity)}`]]}})((0,s.A)(({theme:e})=>{let t="light"===e.palette.mode?a.e$:a.a,r="light"===e.palette.mode?a.a:a.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,p.A)(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${m.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter((0,p.A)(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${m.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,p.A)(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),y=(0,l.A)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),S=(0,l.A)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),M=(0,l.A)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),C={success:(0,g.jsx)(b,{fontSize:"inherit"}),warning:(0,g.jsx)(x,{fontSize:"inherit"}),error:(0,g.jsx)(A,{fontSize:"inherit"}),info:(0,g.jsx)($,{fontSize:"inherit"})},z=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiAlert"}),{action:o,children:a,className:l,closeText:s="Close",color:p,components:h={},componentsProps:v={},icon:b,iconMapping:x=C,onClose:A,role:$="alert",severity:z="success",slotProps:j={},slots:R={},variant:B="standard",...W}=r,N={...r,color:p,severity:z,variant:B,colorSeverity:p||z},I=(e=>{let{variant:t,color:r,severity:o,classes:i}=e,a={root:["root",`color${(0,d.A)(r||o)}`,`${t}${(0,d.A)(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,n.A)(a,m.X,i)})(N),L={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...R},slotProps:{...v,...j}},[O,T]=(0,u.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(I.root,l),elementType:k,externalForwardedProps:{...L,...W},ownerState:N,additionalProps:{role:$,elevation:0}}),[H,E]=(0,u.A)("icon",{className:I.icon,elementType:y,externalForwardedProps:L,ownerState:N}),[V,P]=(0,u.A)("message",{className:I.message,elementType:S,externalForwardedProps:L,ownerState:N}),[G,X]=(0,u.A)("action",{className:I.action,elementType:M,externalForwardedProps:L,ownerState:N}),[_,D]=(0,u.A)("closeButton",{elementType:f.A,externalForwardedProps:L,ownerState:N}),[F,Z]=(0,u.A)("closeIcon",{elementType:w.A,externalForwardedProps:L,ownerState:N});return(0,g.jsxs)(O,{...T,children:[!1!==b?(0,g.jsx)(H,{...E,children:b||x[z]||C[z]}):null,(0,g.jsx)(V,{...P,children:a}),null!=o?(0,g.jsx)(G,{...X,children:o}):null,null==o&&A?(0,g.jsx)(G,{...X,children:(0,g.jsx)(_,{size:"small","aria-label":s,title:s,color:"inherit",onClick:A,...D,children:(0,g.jsx)(F,{fontSize:"small",...Z})})}):null]})})},52855(e,t,r){r.d(t,{A:()=>a,X:()=>n});var o=r(29009),i=r(46733);function n(e){return(0,i.Ay)("MuiAlert",e)}let a=(0,o.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"])},66395(e,t,r){r.d(t,{Ay:()=>A});var o=r(70451),i=r(11750),n=r(85351),a=r(20523),l=r(81023),s=r(77308),c=r(72052),u=r(56599);let d=o.createContext();var p=r(29009),h=r(46733);function m(e){return(0,h.Ay)("MuiGrid",e)}let f=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],v=(0,p.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...f.map(e=>`grid-xs-${e}`),...f.map(e=>`grid-sm-${e}`),...f.map(e=>`grid-md-${e}`),...f.map(e=>`grid-lg-${e}`),...f.map(e=>`grid-xl-${e}`)]);var g=r(62540);function b({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(e=>{""===r&&0!==t[e]&&(r=e)});let o=Object.keys(e).sort((t,r)=>e[t]-e[r]);return o.slice(0,o.indexOf(r))}let x=(0,s.A)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{container:o,direction:i,item:n,spacing:a,wrap:l,zeroMinWidth:s,breakpoints:c}=r,u=[];o&&(u=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];let o=[];return t.forEach(t=>{let i=e[t];Number(i)>0&&o.push(r[`spacing-${t}-${String(i)}`])}),o}(a,c,t));let d=[];return c.forEach(e=>{let o=r[e];o&&d.push(t[`grid-${e}-${String(o)}`])}),[t.root,o&&t.container,n&&t.item,s&&t.zeroMinWidth,...u,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},..."wrap"!==e.wrap&&{flexWrap:e.wrap}}),function({theme:e,ownerState:t}){let r=(0,n.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,n.NI)({theme:e},r,e=>{let t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${v.item}`]={maxWidth:"none"}),t})},function({theme:e,ownerState:t}){let{container:r,rowSpacing:o}=t,i={};if(r&&0!==o){let t,r=(0,n.kW)({values:o,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=b({breakpoints:e.breakpoints.values,values:r})),i=(0,n.NI)({theme:e},r,(r,o)=>{let i=e.spacing(r);return"0px"!==i?{marginTop:`calc(-1 * ${i})`,[`& > .${v.item}`]:{paddingTop:i}}:t?.includes(o)?{}:{marginTop:0,[`& > .${v.item}`]:{paddingTop:0}}})}return i},function({theme:e,ownerState:t}){let{container:r,columnSpacing:o}=t,i={};if(r&&0!==o){let t,r=(0,n.kW)({values:o,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=b({breakpoints:e.breakpoints.values,values:r})),i=(0,n.NI)({theme:e},r,(r,o)=>{let i=e.spacing(r);if("0px"!==i){let e=`calc(-1 * ${i})`;return{width:`calc(100% + ${i})`,marginLeft:e,[`& > .${v.item}`]:{paddingLeft:i}}}return t?.includes(o)?{}:{width:"100%",marginLeft:0,[`& > .${v.item}`]:{paddingLeft:0}}})}return i},function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((o,i)=>{let a={};if(t[i]&&(r=t[i]),!r)return o;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let l=(0,n.kW)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof l?l[i]:l;if(null==s)return o;let c=`${Math.round(r/s*1e8)/1e6}%`,u={};if(t.container&&t.item&&0!==t.columnSpacing){let r=e.spacing(t.columnSpacing);if("0px"!==r){let e=`calc(${c} + ${r})`;u={flexBasis:e,maxWidth:e}}}a={flexBasis:c,flexGrow:0,maxWidth:c,...u}}return 0===e.breakpoints.values[i]?Object.assign(o,a):o[e.breakpoints.up(i)]=a,o},{})}),A=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiGrid"}),{breakpoints:n}=(0,u.A)(),s=(0,a.A)(r),{className:p,columns:h,columnSpacing:f,component:v="div",container:b=!1,direction:A="row",item:$=!1,rowSpacing:w,spacing:k=0,wrap:y="wrap",zeroMinWidth:S=!1,...M}=s,C=o.useContext(d),z=b?h||12:C,j={},R={...M};n.keys.forEach(e=>{null!=M[e]&&(j[e]=M[e],delete R[e])});let B={...s,columns:z,container:b,direction:A,item:$,rowSpacing:w||k,columnSpacing:f||k,wrap:y,zeroMinWidth:S,spacing:k,...j,breakpoints:n.keys},W=(e=>{let{classes:t,container:r,direction:o,item:i,spacing:n,wrap:a,zeroMinWidth:s,breakpoints:c}=e,u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];let r=[];return t.forEach(t=>{let o=e[t];if(Number(o)>0){let e=`spacing-${t}-${String(o)}`;r.push(e)}}),r}(n,c));let d=[];c.forEach(t=>{let r=e[t];r&&d.push(`grid-${t}-${String(r)}`)});let p={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...u,"row"!==o&&`direction-xs-${String(o)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,l.A)(p,m,t)})(B);return(0,g.jsx)(d.Provider,{value:z,children:(0,g.jsx)(x,{ownerState:B,className:(0,i.A)(W.root,p),as:v,ref:t,...R})})})},68003(e,t,r){r.d(t,{A:()=>k});var o=r(70451),i=r(11750),n=r(81023),a=r(59238),l=r(24726),s=r(26952),c=r(32560),u=r(77308),d=r(23434),p=r(72052),h=r(29009),m=r(46733);function f(e){return(0,m.Ay)("MuiSwitch",e)}let v=(0,h.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var g=r(73397),b=r(62540);let x=(0,u.A)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,l.A)(r.edge)}`],t[`size${(0,l.A)(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${v.thumb}`]:{width:16,height:16},[`& .${v.switchBase}`]:{padding:4,[`&.${v.checked}`]:{transform:"translateX(16px)"}}}}]}),A=(0,u.A)(c.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{[`& .${v.input}`]:t.input},"default"!==r.color&&t[`color${(0,l.A)(r.color)}`]]}})((0,d.A)(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${v.checked}`]:{transform:"translateX(20px)"},[`&.${v.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${v.checked} + .${v.track}`]:{opacity:.5},[`&.${v.disabled} + .${v.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${"light"===e.palette.mode?.12:.2}`},[`& .${v.input}`]:{left:"-100%",width:"300%"}})),(0,d.A)(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((0,s.A)(["light"])).map(([t])=>({props:{color:t},style:{[`&.${v.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${v.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,a.a)(e.palette[t].main,.62):(0,a.e$)(e.palette[t].main,.55)}`}},[`&.${v.checked} + .${v.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),$=(0,u.A)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((0,d.A)(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${"light"===e.palette.mode?.38:.3}`}))),w=(0,u.A)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((0,d.A)(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=o.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:c="medium",sx:u,slots:d={},slotProps:h={},...m}=r,v={...r,color:a,edge:s,size:c},k=(e=>{let{classes:t,edge:r,size:o,color:i,checked:a,disabled:s}=e,c={root:["root",r&&`edge${(0,l.A)(r)}`,`size${(0,l.A)(o)}`],switchBase:["switchBase",`color${(0,l.A)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,n.A)(c,f,t);return{...t,...u}})(v),y={slots:d,slotProps:h},[S,M]=(0,g.A)("root",{className:(0,i.A)(k.root,o),elementType:x,externalForwardedProps:y,ownerState:v,additionalProps:{sx:u}}),[C,z]=(0,g.A)("thumb",{className:k.thumb,elementType:w,externalForwardedProps:y,ownerState:v}),j=(0,b.jsx)(C,{...z}),[R,B]=(0,g.A)("track",{className:k.track,elementType:$,externalForwardedProps:y,ownerState:v});return(0,b.jsxs)(S,{...M,children:[(0,b.jsx)(A,{type:"checkbox",icon:j,checkedIcon:j,ref:t,ownerState:v,...m,classes:{...k,root:k.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...h.switchBase&&{root:"function"==typeof h.switchBase?h.switchBase(v):h.switchBase},...h.input&&{input:"function"==typeof h.input?h.input(v):h.input}}}),(0,b.jsx)(R,{...B})]})})},86067(e,t,r){var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z","DeleteOutline")},17366(e,t,r){var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z","InformationOutline")},85180(e,t,r){r.r(t),r.d(t,{default:()=>n});var o=r(70451);function i(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function n(e){void 0===e&&(e={});var t,r,n,a,l,s,c=e.onResize,u=(0,o.useRef)(void 0);u.current=c;var d=e.round||Math.round,p=(0,o.useRef)(),h=(0,o.useState)({width:void 0,height:void 0}),m=h[0],f=h[1],v=(0,o.useRef)(!1);(0,o.useEffect)(function(){return v.current=!1,function(){v.current=!0}},[]);var g=(0,o.useRef)({width:void 0,height:void 0}),b=(t=(0,o.useCallback)(function(t){return p.current&&p.current.box===e.box&&p.current.round===d||(p.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",n=i(r,o,"inlineSize"),a=i(r,o,"blockSize"),l=n?d(n):void 0,s=a?d(a):void 0;if(g.current.width!==l||g.current.height!==s){var c={width:l,height:s};g.current.width=l,g.current.height=s,u.current?u.current(c):v.current||f(c)}})}),p.current.instance.observe(t,{box:e.box}),function(){p.current&&p.current.instance.unobserve(t)}},[e.box,d]),r=e.ref,n=(0,o.useRef)(null),(a=(0,o.useRef)(null)).current=r,l=(0,o.useRef)(null),(0,o.useEffect)(function(){s()}),s=(0,o.useCallback)(function(){var e=l.current,r=a.current,o=e||(r?r instanceof Element?r:r.current:null);n.current&&n.current.element===o&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:t,cleanup:o?t(o):void 0})},[t]),(0,o.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,o.useCallback)(function(e){l.current=e,s()},[s]));return(0,o.useMemo)(function(){return{ref:b,width:m.width,height:m.height}},[b,m.width,m.height])}}}]);
@@ -1,2 +1,2 @@
1
- "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["2954"],{42927(e,t,o){o.d(t,{A:()=>O});var r=o(70451),a=o(11750),p=o(81023),n=o(59238),i=o(32560),l=o(22402),s=o(62540);let d=(0,l.A)((0,s.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),u=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=o(24726),h=o(83926),g=o(29009),v=o(46733);function A(e){return(0,v.Ay)("MuiCheckbox",e)}let y=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var f=o(77308),b=o(23434),x=o(26952),w=o(72052),R=o(64606),T=o(73397);let M=(0,f.A)(i.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${(0,m.A)(o.size)}`],"default"!==o.color&&t[`color${(0,m.A)(o.color)}`]]}})((0,b.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${y.checked}, &.${y.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$=(0,s.jsx)(c,{}),k=(0,s.jsx)(d,{}),C=(0,s.jsx)(u,{}),O=r.forwardRef(function(e,t){let o=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:n=$,color:i="primary",icon:l=k,indeterminate:d=!1,indeterminateIcon:c=C,inputProps:u,size:h="medium",disableRipple:g=!1,className:v,slots:y={},slotProps:f={},...b}=o,x=d?c:l,O=d?c:n,z={...o,disableRipple:g,color:i,indeterminate:d,size:h},S=(e=>{let{classes:t,indeterminate:o,color:r,size:a}=e,n={root:["root",o&&"indeterminate",`color${(0,m.A)(r)}`,`size${(0,m.A)(a)}`]},i=(0,p.A)(n,A,t);return{...t,...i}})(z),j=f.input??u,[H,P]=(0,T.A)("root",{ref:t,elementType:M,className:(0,a.A)(S.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:f,...b},ownerState:z,additionalProps:{type:"checkbox",icon:r.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:r.cloneElement(O,{fontSize:O.props.fontSize??h}),disableRipple:g,slots:y,slotProps:{input:(0,R.A)("function"==typeof j?j(z):j,{"data-indeterminate":d})}}});return(0,s.jsx)(H,{...P,classes:S})})},91394(e,t,o){o.d(t,{A:()=>v});var r=o(70451),a=o(11750),p=o(81023),n=o(70872),i=o(77308),l=o(23434),s=o(72052),d=o(29009),c=o(46733);function u(e){return(0,c.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var m=o(62540);let h=(0,i.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})((0,l.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),g="table",v=r.forwardRef(function(e,t){let o=(0,s.b)({props:e,name:"MuiTable"}),{className:i,component:l=g,padding:d="normal",size:c="medium",stickyHeader:v=!1,...A}=o,y={...o,component:l,padding:d,size:c,stickyHeader:v},f=(e=>{let{classes:t,stickyHeader:o}=e;return(0,p.A)({root:["root",o&&"stickyHeader"]},u,t)})(y),b=r.useMemo(()=>({padding:d,size:c,stickyHeader:v}),[d,c,v]);return(0,m.jsx)(n.A.Provider,{value:b,children:(0,m.jsx)(h,{as:l,role:l===g?null:"table",ref:t,className:(0,a.A)(f.root,i),ownerState:y,...A})})})},70872(e,t,o){o.d(t,{A:()=>r});let r=o(70451).createContext()},91644(e,t,o){o.d(t,{A:()=>r});let r=o(70451).createContext()},5139(e,t,o){o.d(t,{A:()=>v});var r=o(70451),a=o(11750),p=o(81023),n=o(91644),i=o(77308),l=o(72052),s=o(29009),d=o(46733);function c(e){return(0,d.Ay)("MuiTableBody",e)}(0,s.A)("MuiTableBody",["root"]);var u=o(62540);let m=(0,i.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),h={variant:"body"},g="tbody",v=r.forwardRef(function(e,t){let o=(0,l.b)({props:e,name:"MuiTableBody"}),{className:r,component:i=g,...s}=o,d={...o,component:i},v=(e=>{let{classes:t}=e;return(0,p.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(n.A.Provider,{value:h,children:(0,u.jsx)(m,{className:(0,a.A)(v.root,r),as:i,ref:t,role:i===g?null:"rowgroup",ownerState:d,...s})})})},45271(e,t,o){o.d(t,{A:()=>f});var r=o(70451),a=o(11750),p=o(81023),n=o(59238),i=o(24726),l=o(70872),s=o(91644),d=o(77308),c=o(23434),u=o(72052),m=o(29009),h=o(46733);function g(e){return(0,h.Ay)("MuiTableCell",e)}let v=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var A=o(62540);let y=(0,d.A)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],t[`size${(0,i.A)(o.size)}`],"normal"!==o.padding&&t[`padding${(0,i.A)(o.padding)}`],"inherit"!==o.align&&t[`align${(0,i.A)(o.align)}`],o.stickyHeader&&t.stickyHeader]}})((0,c.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
1
+ "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["573"],{42927(e,t,o){o.d(t,{A:()=>O});var r=o(70451),a=o(11750),p=o(81023),n=o(59238),i=o(32560),l=o(22402),s=o(62540);let d=(0,l.A)((0,s.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),u=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=o(24726),h=o(83926),g=o(29009),v=o(46733);function A(e){return(0,v.Ay)("MuiCheckbox",e)}let y=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var f=o(77308),b=o(23434),x=o(26952),w=o(72052),R=o(64606),T=o(73397);let M=(0,f.A)(i.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${(0,m.A)(o.size)}`],"default"!==o.color&&t[`color${(0,m.A)(o.color)}`]]}})((0,b.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${y.checked}, &.${y.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$=(0,s.jsx)(c,{}),k=(0,s.jsx)(d,{}),C=(0,s.jsx)(u,{}),O=r.forwardRef(function(e,t){let o=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:n=$,color:i="primary",icon:l=k,indeterminate:d=!1,indeterminateIcon:c=C,inputProps:u,size:h="medium",disableRipple:g=!1,className:v,slots:y={},slotProps:f={},...b}=o,x=d?c:l,O=d?c:n,z={...o,disableRipple:g,color:i,indeterminate:d,size:h},S=(e=>{let{classes:t,indeterminate:o,color:r,size:a}=e,n={root:["root",o&&"indeterminate",`color${(0,m.A)(r)}`,`size${(0,m.A)(a)}`]},i=(0,p.A)(n,A,t);return{...t,...i}})(z),j=f.input??u,[H,P]=(0,T.A)("root",{ref:t,elementType:M,className:(0,a.A)(S.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:f,...b},ownerState:z,additionalProps:{type:"checkbox",icon:r.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:r.cloneElement(O,{fontSize:O.props.fontSize??h}),disableRipple:g,slots:y,slotProps:{input:(0,R.A)("function"==typeof j?j(z):j,{"data-indeterminate":d})}}});return(0,s.jsx)(H,{...P,classes:S})})},91394(e,t,o){o.d(t,{A:()=>v});var r=o(70451),a=o(11750),p=o(81023),n=o(70872),i=o(77308),l=o(23434),s=o(72052),d=o(29009),c=o(46733);function u(e){return(0,c.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var m=o(62540);let h=(0,i.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})((0,l.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),g="table",v=r.forwardRef(function(e,t){let o=(0,s.b)({props:e,name:"MuiTable"}),{className:i,component:l=g,padding:d="normal",size:c="medium",stickyHeader:v=!1,...A}=o,y={...o,component:l,padding:d,size:c,stickyHeader:v},f=(e=>{let{classes:t,stickyHeader:o}=e;return(0,p.A)({root:["root",o&&"stickyHeader"]},u,t)})(y),b=r.useMemo(()=>({padding:d,size:c,stickyHeader:v}),[d,c,v]);return(0,m.jsx)(n.A.Provider,{value:b,children:(0,m.jsx)(h,{as:l,role:l===g?null:"table",ref:t,className:(0,a.A)(f.root,i),ownerState:y,...A})})})},70872(e,t,o){o.d(t,{A:()=>r});let r=o(70451).createContext()},91644(e,t,o){o.d(t,{A:()=>r});let r=o(70451).createContext()},5139(e,t,o){o.d(t,{A:()=>v});var r=o(70451),a=o(11750),p=o(81023),n=o(91644),i=o(77308),l=o(72052),s=o(29009),d=o(46733);function c(e){return(0,d.Ay)("MuiTableBody",e)}(0,s.A)("MuiTableBody",["root"]);var u=o(62540);let m=(0,i.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),h={variant:"body"},g="tbody",v=r.forwardRef(function(e,t){let o=(0,l.b)({props:e,name:"MuiTableBody"}),{className:r,component:i=g,...s}=o,d={...o,component:i},v=(e=>{let{classes:t}=e;return(0,p.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(n.A.Provider,{value:h,children:(0,u.jsx)(m,{className:(0,a.A)(v.root,r),as:i,ref:t,role:i===g?null:"rowgroup",ownerState:d,...s})})})},45271(e,t,o){o.d(t,{A:()=>f});var r=o(70451),a=o(11750),p=o(81023),n=o(59238),i=o(24726),l=o(70872),s=o(91644),d=o(77308),c=o(23434),u=o(72052),m=o(29009),h=o(46733);function g(e){return(0,h.Ay)("MuiTableCell",e)}let v=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var A=o(62540);let y=(0,d.A)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],t[`size${(0,i.A)(o.size)}`],"normal"!==o.padding&&t[`padding${(0,i.A)(o.padding)}`],"inherit"!==o.align&&t[`align${(0,i.A)(o.align)}`],o.stickyHeader&&t.stickyHeader]}})((0,c.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
2
2
  ${"light"===e.palette.mode?(0,n.a)((0,n.X4)(e.palette.divider,1),.88):(0,n.e$)((0,n.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${v.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),f=r.forwardRef(function(e,t){let o,n=(0,u.b)({props:e,name:"MuiTableCell"}),{align:d="inherit",className:c,component:m,padding:h,scope:v,size:f,sortDirection:b,variant:x,...w}=n,R=r.useContext(l.A),T=r.useContext(s.A),M=T&&"head"===T.variant,$=v;"td"===(o=m||(M?"th":"td"))?$=void 0:!$&&M&&($="col");let k=x||T&&T.variant,C={...n,align:d,component:o,padding:h||(R&&R.padding?R.padding:"normal"),size:f||(R&&R.size?R.size:"medium"),sortDirection:b,stickyHeader:"head"===k&&R&&R.stickyHeader,variant:k},O=(e=>{let{classes:t,variant:o,align:r,padding:a,size:n,stickyHeader:l}=e,s={root:["root",o,l&&"stickyHeader","inherit"!==r&&`align${(0,i.A)(r)}`,"normal"!==a&&`padding${(0,i.A)(a)}`,`size${(0,i.A)(n)}`]};return(0,p.A)(s,g,t)})(C),z=null;return b&&(z="asc"===b?"ascending":"descending"),(0,A.jsx)(y,{as:o,ref:t,className:(0,a.A)(O.root,c),"aria-sort":z,scope:$,ownerState:C,...w})})},347(e,t,o){o.d(t,{A:()=>m});var r=o(70451),a=o(11750),p=o(81023),n=o(77308),i=o(72052),l=o(29009),s=o(46733);function d(e){return(0,s.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var c=o(62540);let u=(0,n.A)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=r.forwardRef(function(e,t){let o=(0,i.b)({props:e,name:"MuiTableContainer"}),{className:r,component:n="div",...l}=o,s={...o,component:n},m=(e=>{let{classes:t}=e;return(0,p.A)({root:["root"]},d,t)})(s);return(0,c.jsx)(u,{ref:t,as:n,className:(0,a.A)(m.root,r),ownerState:s,...l})})},70561(e,t,o){o.d(t,{A:()=>v});var r=o(70451),a=o(11750),p=o(81023),n=o(91644),i=o(77308),l=o(72052),s=o(29009),d=o(46733);function c(e){return(0,d.Ay)("MuiTableHead",e)}(0,s.A)("MuiTableHead",["root"]);var u=o(62540);let m=(0,i.A)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),h={variant:"head"},g="thead",v=r.forwardRef(function(e,t){let o=(0,l.b)({props:e,name:"MuiTableHead"}),{className:r,component:i=g,...s}=o,d={...o,component:i},v=(e=>{let{classes:t}=e;return(0,p.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(n.A.Provider,{value:h,children:(0,u.jsx)(m,{as:i,className:(0,a.A)(v.root,r),ref:t,role:i===g?null:"rowgroup",ownerState:d,...s})})})},3399(e,t,o){o.d(t,{A:()=>A});var r=o(70451),a=o(11750),p=o(81023),n=o(59238),i=o(91644),l=o(77308),s=o(23434),d=o(72052),c=o(29009),u=o(46733);function m(e){return(0,u.Ay)("MuiTableRow",e)}let h=(0,c.A)("MuiTableRow",["root","selected","hover","head","footer"]);var g=o(62540);let v=(0,l.A)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})((0,s.A)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,n.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,n.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),A=r.forwardRef(function(e,t){let o=(0,d.b)({props:e,name:"MuiTableRow"}),{className:n,component:l="tr",hover:s=!1,selected:c=!1,...u}=o,h=r.useContext(i.A),A={...o,component:l,hover:s,selected:c,head:h&&"head"===h.variant,footer:h&&"footer"===h.variant},y=(e=>{let{classes:t,selected:o,hover:r,head:a,footer:n}=e;return(0,p.A)({root:["root",o&&"selected",r&&"hover",a&&"head",n&&"footer"]},m,t)})(A);return(0,g.jsx)(v,{as:l,ref:t,className:(0,a.A)(y.root,n),role:"tr"===l?null:"row",ownerState:A,...u})})},65211(e,t,o){o.d(t,{A:()=>j});var r=o(70451),a=o(11750),p=o(3725),n=o(81023),i=o(59238),l=o(35216),s=o(93399),d=o(30443),c=o(77308),u=o(56599),m=o(23434),h=o(72052),g=o(24726),v=o(46823),A=o(48865),y=o(32398),f=o(29424),b=o(63392),x=o(2203),w=o(73397),R=o(32751),T=o(62540);let M=(0,c.A)(A.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})((0,m.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${R.A.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$=(0,c.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,g.A)(o.placement.split("-")[0])}`]]}})((0,m.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,i.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${R.A.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${R.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${R.A.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),k=(0,c.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,m.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,i.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),C=!1,O=new p.E,z={x:0,y:0};function S(e,t){return(o,...r)=>{t&&t(o,...r),e(o,...r)}}let j=r.forwardRef(function(e,t){let o=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:i=!1,children:c,classes:m,components:j={},componentsProps:H={},describeChild:P=!1,disableFocusListener:E=!1,disableHoverListener:B=!1,disableInteractive:L=!1,disableTouchListener:N=!1,enterDelay:I=100,enterNextDelay:W=0,enterTouchDelay:X=700,followCursor:F=!1,id:V,leaveDelay:U=0,leaveTouchDelay:_=1500,onClose:D,onOpen:J,open:Y,placement:q="bottom",PopperComponent:G,PopperProps:K={},slotProps:Q={},slots:Z={},title:ee,TransitionComponent:et,TransitionProps:eo,...er}=o,ea=r.isValidElement(c)?c:(0,T.jsx)("span",{children:c}),ep=(0,u.A)(),en=(0,l.I)(),[ei,el]=r.useState(),[es,ed]=r.useState(null),ec=r.useRef(!1),eu=L||F,em=(0,p.A)(),eh=(0,p.A)(),eg=(0,p.A)(),ev=(0,p.A)(),[eA,ey]=(0,x.A)({controlled:Y,default:!1,name:"Tooltip",state:"open"}),ef=eA,eb=(0,b.A)(V),ex=r.useRef(),ew=(0,y.A)(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),ev.clear()});r.useEffect(()=>ew,[ew]);let eR=e=>{O.clear(),C=!0,ey(!0),J&&!ef&&J(e)},eT=(0,y.A)(e=>{O.start(800+U,()=>{C=!1}),ey(!1),D&&ef&&D(e),em.start(ep.transitions.duration.shortest,()=>{ec.current=!1})}),eM=e=>{ec.current&&"touchstart"!==e.type||(ei&&ei.removeAttribute("title"),eh.clear(),eg.clear(),I||C&&W?eh.start(C?W:I,()=>{eR(e)}):eR(e))},e$=e=>{eh.clear(),eg.start(U,()=>{eT(e)})},[,ek]=r.useState(!1),eC=e=>{(0,s.A)(e.target)||(ek(!1),e$(e))},eO=e=>{ei||el(e.currentTarget),(0,s.A)(e.target)&&(ek(!0),eM(e))},ez=e=>{ec.current=!0;let t=ea.props;t.onTouchStart&&t.onTouchStart(e)};r.useEffect(()=>{if(ef)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eT(e)}},[eT,ef]);let eS=(0,f.A)((0,d.A)(ea),el,t);ee||0===ee||(ef=!1);let ej=r.useRef(),eH={},eP="string"==typeof ee;P?(eH.title=ef||!eP||B?null:ee,eH["aria-describedby"]=ef?eb:null):(eH["aria-label"]=eP?ee:null,eH["aria-labelledby"]=ef&&!eP?eb:null);let eE={...eH,...er,...ea.props,className:(0,a.A)(er.className,ea.props.className),onTouchStart:ez,ref:eS,...F?{onMouseMove:e=>{let t=ea.props;t.onMouseMove&&t.onMouseMove(e),z={x:e.clientX,y:e.clientY},ej.current&&ej.current.update()}}:{}},eB={};N||(eE.onTouchStart=e=>{ez(e),eg.clear(),em.clear(),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ev.start(X,()=>{document.body.style.WebkitUserSelect=ex.current,eM(e)})},eE.onTouchEnd=e=>{ea.props.onTouchEnd&&ea.props.onTouchEnd(e),ew(),eg.start(_,()=>{eT(e)})}),!B&&(eE.onMouseOver=S(eM,eE.onMouseOver),eE.onMouseLeave=S(e$,eE.onMouseLeave),eu||(eB.onMouseOver=eM,eB.onMouseLeave=e$)),!E&&(eE.onFocus=S(eO,eE.onFocus),eE.onBlur=S(eC,eE.onBlur),eu||(eB.onFocus=eO,eB.onBlur=eC));let eL={...o,isRtl:en,arrow:i,disableInteractive:eu,placement:q,PopperComponentProp:G,touch:ec.current},eN="function"==typeof Q.popper?Q.popper(eL):Q.popper,eI=r.useMemo(()=>{let e=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return K.popperOptions?.modifiers&&(e=e.concat(K.popperOptions.modifiers)),eN?.popperOptions?.modifiers&&(e=e.concat(eN.popperOptions.modifiers)),{...K.popperOptions,...eN?.popperOptions,modifiers:e}},[es,K.popperOptions,eN?.popperOptions]),eW=(e=>{let{classes:t,disableInteractive:o,arrow:r,touch:a,placement:p}=e,i={popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,g.A)(p.split("-")[0])}`],arrow:["arrow"]};return(0,n.A)(i,R.E,t)})(eL),eX="function"==typeof Q.transition?Q.transition(eL):Q.transition,eF={slots:{popper:j.Popper,transition:j.Transition??et,tooltip:j.Tooltip,arrow:j.Arrow,...Z},slotProps:{arrow:Q.arrow??H.arrow,popper:{...K,...eN??H.popper},tooltip:Q.tooltip??H.tooltip,transition:{...eo,...eX??H.transition}}},[eV,eU]=(0,w.A)("popper",{elementType:M,externalForwardedProps:eF,ownerState:eL,className:(0,a.A)(eW.popper,K?.className)}),[e_,eD]=(0,w.A)("transition",{elementType:v.A,externalForwardedProps:eF,ownerState:eL}),[eJ,eY]=(0,w.A)("tooltip",{elementType:$,className:eW.tooltip,externalForwardedProps:eF,ownerState:eL}),[eq,eG]=(0,w.A)("arrow",{elementType:k,className:eW.arrow,externalForwardedProps:eF,ownerState:eL,ref:ed});return(0,T.jsxs)(r.Fragment,{children:[r.cloneElement(ea,eE),(0,T.jsx)(eV,{as:G??A.A,placement:q,anchorEl:F?{getBoundingClientRect:()=>({top:z.y,left:z.x,right:z.x,bottom:z.y,width:0,height:0})}:ei,popperRef:ej,open:!!ei&&ef,id:eb,transition:!0,...eB,...eU,popperOptions:eI,children:({TransitionProps:e})=>(0,T.jsx)(e_,{timeout:ep.transitions.duration.shorter,...e,...eD,children:(0,T.jsxs)(eJ,{...eY,children:[ee,i?(0,T.jsx)(eq,{...eG}):null]})})})]})})},32751(e,t,o){o.d(t,{A:()=>n,E:()=>p});var r=o(29009),a=o(46733);function p(e){return(0,a.Ay)("MuiTooltip",e)}let n=(0,r.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7422.33d76364.js.LICENSE.txt */
2
- "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["7422"],{42927(e,t,r){r.d(t,{A:()=>$});var o=r(70451),a=r(11750),l=r(81023),n=r(59238),i=r(32560),s=r(22402),p=r(62540);let c=(0,s.A)((0,p.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=(0,s.A)((0,p.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=(0,s.A)((0,p.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var u=r(24726),m=r(83926),y=r(29009),b=r(46733);function f(e){return(0,b.Ay)("MuiCheckbox",e)}let g=(0,y.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var v=r(77308),A=r(23434),x=r(26952),w=r(72052),k=r(64606),P=r(73397);let j=(0,v.A)(i.A,{shouldForwardProp:e=>(0,m.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,u.A)(r.size)}`],"default"!==r.color&&t[`color${(0,u.A)(r.color)}`]]}})((0,A.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${g.checked}, &.${g.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${g.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),R=(0,p.jsx)(d,{}),C=(0,p.jsx)(c,{}),S=(0,p.jsx)(h,{}),$=o.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:n=R,color:i="primary",icon:s=C,indeterminate:c=!1,indeterminateIcon:d=S,inputProps:h,size:m="medium",disableRipple:y=!1,className:b,slots:g={},slotProps:v={},...A}=r,x=c?d:s,$=c?d:n,O={...r,disableRipple:y,color:i,indeterminate:c,size:m},B=(e=>{let{classes:t,indeterminate:r,color:o,size:a}=e,n={root:["root",r&&"indeterminate",`color${(0,u.A)(o)}`,`size${(0,u.A)(a)}`]},i=(0,l.A)(n,f,t);return{...t,...i}})(O),M=v.input??h,[z,_]=(0,P.A)("root",{ref:t,elementType:j,className:(0,a.A)(B.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:v,...A},ownerState:O,additionalProps:{type:"checkbox",icon:o.cloneElement(x,{fontSize:x.props.fontSize??m}),checkedIcon:o.cloneElement($,{fontSize:$.props.fontSize??m}),disableRipple:y,slots:g,slotProps:{input:(0,k.A)("function"==typeof M?M(O):M,{"data-indeterminate":c})}}});return(0,p.jsx)(z,{..._,classes:B})})},10740(e,t,r){r.d(t,{A:()=>x});var o=r(70451),a=r(11750),l=r(81023),n=r(42872),i=r(77308),s=r(23434),p=r(72052),c=r(88091),d=r(24726),h=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiFormControlLabel",e)}let y=(0,h.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var b=r(87842),f=r(73397),g=r(62540);let v=(0,i.A)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(r.labelPlacement)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"},[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),A=(0,i.A)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,s.A)(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}}))),x=o.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:h={},control:u,disabled:y,disableTypography:x,inputRef:w,label:k,labelPlacement:P="end",name:j,onChange:R,required:C,slots:S={},slotProps:$={},value:O,...B}=r,M=(0,n.A)(),z=y??u.props.disabled??M?.disabled,_=C??u.props.required,F={disabled:z,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===u.props[e]&&void 0!==r[e]&&(F[e]=r[e])});let T=(0,b.A)({props:r,muiFormControl:M,states:["error"]}),L={...r,disabled:z,labelPlacement:P,required:_,error:T.error},E=(e=>{let{classes:t,disabled:r,labelPlacement:o,error:a,required:n}=e,i={root:["root",r&&"disabled",`labelPlacement${(0,d.A)(o)}`,a&&"error",n&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,l.A)(i,m,t)})(L),N={slots:S,slotProps:{...h,...$}},[I,D]=(0,f.A)("typography",{elementType:c.A,externalForwardedProps:N,ownerState:L}),H=k;return null==H||H.type===c.A||x||(H=(0,g.jsx)(I,{component:"span",...D,className:(0,a.A)(E.label,D?.className),children:H})),(0,g.jsxs)(v,{className:(0,a.A)(E.root,s),ownerState:L,ref:t,...B,children:[o.cloneElement(u,F),_?(0,g.jsxs)("div",{children:[H,(0,g.jsxs)(A,{ownerState:L,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):H]})})},88091(e,t,r){r.d(t,{A:()=>g});var o=r(70451),a=r(11750),l=r(81023),n=r(90124),i=r(77308),s=r(23434),p=r(72052),c=r(24726),d=r(26952),h=r(47599),u=r(62540);let m={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},y=(0,n.Dg)(),b=(0,i.A)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,c.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((0,s.A)(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${(0,c.A)(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),f={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g=o.forwardRef(function(e,t){let{color:r,...o}=(0,p.b)({props:e,name:"MuiTypography"}),n=!m[r],i=y({...o,...n&&{color:r}}),{align:s="inherit",className:d,component:g,gutterBottom:v=!1,noWrap:A=!1,paragraph:x=!1,variant:w="body1",variantMapping:k=f,...P}=i,j={...i,align:s,color:r,className:d,component:g,gutterBottom:v,noWrap:A,paragraph:x,variant:w,variantMapping:k},R=g||(x?"p":k[w]||f[w])||"span",C=(e=>{let{align:t,gutterBottom:r,noWrap:o,paragraph:a,variant:n,classes:i}=e,s={root:["root",n,"inherit"!==e.align&&`align${(0,c.A)(t)}`,r&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return(0,l.A)(s,h.y,i)})(j);return(0,u.jsx)(b,{as:R,ref:t,className:(0,a.A)(C.root,d),...P,ownerState:j,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...P.style}})})},47599(e,t,r){r.d(t,{A:()=>n,y:()=>l});var o=r(29009),a=r(46733);function l(e){return(0,a.Ay)("MuiTypography",e)}let n=(0,o.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},32560(e,t,r){r.d(t,{A:()=>g});var o=r(70451),a=r(81023),l=r(24726),n=r(83926),i=r(77308),s=r(2203),p=r(42872),c=r(1337),d=r(29009),h=r(46733);function u(e){return(0,h.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=r(73397),y=r(62540);let b=(0,i.A)(c.A,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),f=(0,i.A)("input",{name:"MuiSwitchBase",shouldForwardProp:n.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),g=o.forwardRef(function(e,t){let{autoFocus:r,checked:o,checkedIcon:n,defaultChecked:i,disabled:c,disableFocusRipple:d=!1,edge:h=!1,icon:g,id:v,inputProps:A,inputRef:x,name:w,onBlur:k,onChange:P,onFocus:j,readOnly:R,required:C=!1,tabIndex:S,type:$,value:O,slots:B={},slotProps:M={},...z}=e,[_,F]=(0,s.A)({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),T=(0,p.A)(),L=c;T&&void 0===L&&(L=T.disabled);let E="checkbox"===$||"radio"===$,N={...e,checked:_,disabled:L,disableFocusRipple:d,edge:h},I=(e=>{let{classes:t,checked:r,disabled:o,edge:n}=e,i={root:["root",r&&"checked",o&&"disabled",n&&`edge${(0,l.A)(n)}`],input:["input"]};return(0,a.A)(i,u,t)})(N),D={slots:B,slotProps:{input:A,...M}},[H,W]=(0,m.A)("root",{ref:t,elementType:b,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...z},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),j&&j(t),T&&T.onFocus&&T.onFocus(t)},onBlur:t=>{e.onBlur?.(t),k&&k(t),T&&T.onBlur&&T.onBlur(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:L,role:void 0,tabIndex:null}}),[q,V]=(0,m.A)("input",{ref:x,elementType:f,className:I.input,externalForwardedProps:D,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;F(t),P&&P(e,t)})(t)}}),ownerState:N,additionalProps:{autoFocus:r,checked:o,defaultChecked:i,disabled:L,id:E?v:void 0,name:w,readOnly:R,required:C,tabIndex:S,type:$,..."checkbox"===$&&void 0===O?{}:{value:O}}});return(0,y.jsxs)(H,{...W,children:[(0,y.jsx)(q,{...V}),_?n:g]})})},37856(e,t,r){async function o(...e){let t=await globalThis.fetch(...e);if(!1===t.ok){let e=t.headers.get("content-type");if(e?.includes("application/json")){let e=await t.clone().json();if(e.error)throw new n(e.error,t.status);if(e.message)throw new n(e.message,t.status)}let r=await t.clone().text();if(r)throw new n(r,t.status);throw new l(t)}return t}async function a(...e){let t=await o(...e);if(!t.ok)throw new l(t);return await t.json()}r.d(t,{P7:()=>n,fk:()=>l,hd:()=>o,x6:()=>a});class l extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,l.prototype)}}class n extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,n.prototype)}}},2192(e,t,r){var o=r(70451),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,r){var o,l={},p=null,c=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(c=t.ref),t)n.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:a,type:e,key:p,ref:c,props:l,_owner:i.current}}t.Fragment=l,t.jsx=p,t.jsxs=p},62540(e,t,r){e.exports=r(2192)}}]);
1
+ /*! For license information please see 7283.8c1cb6ee.js.LICENSE.txt */
2
+ "use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["7283"],{42927(e,t,r){r.d(t,{A:()=>j});var o=r(70451),a=r(11750),l=r(81023),n=r(59238),i=r(32560),s=r(22402),p=r(62540);let c=(0,s.A)((0,p.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=(0,s.A)((0,p.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=(0,s.A)((0,p.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var u=r(24726),m=r(83926),y=r(29009),b=r(46733);function g(e){return(0,b.Ay)("MuiCheckbox",e)}let v=(0,y.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var f=r(77308),A=r(23434),x=r(26952),k=r(72052),P=r(64606),w=r(73397);let R=(0,f.A)(i.A,{shouldForwardProp:e=>(0,m.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,u.A)(r.size)}`],"default"!==r.color&&t[`color${(0,u.A)(r.color)}`]]}})((0,A.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,n.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${v.checked}, &.${v.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${v.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),C=(0,p.jsx)(d,{}),S=(0,p.jsx)(c,{}),$=(0,p.jsx)(h,{}),j=o.forwardRef(function(e,t){let r=(0,k.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:n=C,color:i="primary",icon:s=S,indeterminate:c=!1,indeterminateIcon:d=$,inputProps:h,size:m="medium",disableRipple:y=!1,className:b,slots:v={},slotProps:f={},...A}=r,x=c?d:s,j=c?d:n,B={...r,disableRipple:y,color:i,indeterminate:c,size:m},M=(e=>{let{classes:t,indeterminate:r,color:o,size:a}=e,n={root:["root",r&&"indeterminate",`color${(0,u.A)(o)}`,`size${(0,u.A)(a)}`]},i=(0,l.A)(n,g,t);return{...t,...i}})(B),z=f.input??h,[O,_]=(0,w.A)("root",{ref:t,elementType:R,className:(0,a.A)(M.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:f,...A},ownerState:B,additionalProps:{type:"checkbox",icon:o.cloneElement(x,{fontSize:x.props.fontSize??m}),checkedIcon:o.cloneElement(j,{fontSize:j.props.fontSize??m}),disableRipple:y,slots:v,slotProps:{input:(0,P.A)("function"==typeof z?z(B):z,{"data-indeterminate":c})}}});return(0,p.jsx)(O,{..._,classes:M})})},10740(e,t,r){r.d(t,{A:()=>x});var o=r(70451),a=r(11750),l=r(81023),n=r(42872),i=r(77308),s=r(23434),p=r(72052),c=r(88091),d=r(24726),h=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiFormControlLabel",e)}let y=(0,h.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var b=r(87842),g=r(73397),v=r(62540);let f=(0,i.A)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(r.labelPlacement)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"},[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),A=(0,i.A)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,s.A)(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}}))),x=o.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:h={},control:u,disabled:y,disableTypography:x,inputRef:k,label:P,labelPlacement:w="end",name:R,onChange:C,required:S,slots:$={},slotProps:j={},value:B,...M}=r,z=(0,n.A)(),O=y??u.props.disabled??z?.disabled,_=S??u.props.required,F={disabled:O,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===u.props[e]&&void 0!==r[e]&&(F[e]=r[e])});let L=(0,b.A)({props:r,muiFormControl:z,states:["error"]}),T={...r,disabled:O,labelPlacement:w,required:_,error:L.error},E=(e=>{let{classes:t,disabled:r,labelPlacement:o,error:a,required:n}=e,i={root:["root",r&&"disabled",`labelPlacement${(0,d.A)(o)}`,a&&"error",n&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,l.A)(i,m,t)})(T),N={slots:$,slotProps:{...h,...j}},[I,D]=(0,g.A)("typography",{elementType:c.A,externalForwardedProps:N,ownerState:T}),H=P;return null==H||H.type===c.A||x||(H=(0,v.jsx)(I,{component:"span",...D,className:(0,a.A)(E.label,D?.className),children:H})),(0,v.jsxs)(f,{className:(0,a.A)(E.root,s),ownerState:T,ref:t,...M,children:[o.cloneElement(u,F),_?(0,v.jsxs)("div",{children:[H,(0,v.jsxs)(A,{ownerState:T,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):H]})})},88091(e,t,r){r.d(t,{A:()=>v});var o=r(70451),a=r(11750),l=r(81023),n=r(90124),i=r(77308),s=r(23434),p=r(72052),c=r(24726),d=r(26952),h=r(47599),u=r(62540);let m={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},y=(0,n.Dg)(),b=(0,i.A)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,c.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((0,s.A)(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${(0,c.A)(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},v=o.forwardRef(function(e,t){let{color:r,...o}=(0,p.b)({props:e,name:"MuiTypography"}),n=!m[r],i=y({...o,...n&&{color:r}}),{align:s="inherit",className:d,component:v,gutterBottom:f=!1,noWrap:A=!1,paragraph:x=!1,variant:k="body1",variantMapping:P=g,...w}=i,R={...i,align:s,color:r,className:d,component:v,gutterBottom:f,noWrap:A,paragraph:x,variant:k,variantMapping:P},C=v||(x?"p":P[k]||g[k])||"span",S=(e=>{let{align:t,gutterBottom:r,noWrap:o,paragraph:a,variant:n,classes:i}=e,s={root:["root",n,"inherit"!==e.align&&`align${(0,c.A)(t)}`,r&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return(0,l.A)(s,h.y,i)})(R);return(0,u.jsx)(b,{as:C,ref:t,className:(0,a.A)(S.root,d),...w,ownerState:R,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...w.style}})})},47599(e,t,r){r.d(t,{A:()=>n,y:()=>l});var o=r(29009),a=r(46733);function l(e){return(0,a.Ay)("MuiTypography",e)}let n=(0,o.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},32560(e,t,r){r.d(t,{A:()=>v});var o=r(70451),a=r(81023),l=r(24726),n=r(83926),i=r(77308),s=r(2203),p=r(42872),c=r(1337),d=r(29009),h=r(46733);function u(e){return(0,h.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=r(73397),y=r(62540);let b=(0,i.A)(c.A,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),g=(0,i.A)("input",{name:"MuiSwitchBase",shouldForwardProp:n.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v=o.forwardRef(function(e,t){let{autoFocus:r,checked:o,checkedIcon:n,defaultChecked:i,disabled:c,disableFocusRipple:d=!1,edge:h=!1,icon:v,id:f,inputProps:A,inputRef:x,name:k,onBlur:P,onChange:w,onFocus:R,readOnly:C,required:S=!1,tabIndex:$,type:j,value:B,slots:M={},slotProps:z={},...O}=e,[_,F]=(0,s.A)({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),L=(0,p.A)(),T=c;L&&void 0===T&&(T=L.disabled);let E="checkbox"===j||"radio"===j,N={...e,checked:_,disabled:T,disableFocusRipple:d,edge:h},I=(e=>{let{classes:t,checked:r,disabled:o,edge:n}=e,i={root:["root",r&&"checked",o&&"disabled",n&&`edge${(0,l.A)(n)}`],input:["input"]};return(0,a.A)(i,u,t)})(N),D={slots:M,slotProps:{input:A,...z}},[H,W]=(0,m.A)("root",{ref:t,elementType:b,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...O},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),R&&R(t),L&&L.onFocus&&L.onFocus(t)},onBlur:t=>{e.onBlur?.(t),P&&P(t),L&&L.onBlur&&L.onBlur(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:T,role:void 0,tabIndex:null}}),[q,V]=(0,m.A)("input",{ref:x,elementType:g,className:I.input,externalForwardedProps:D,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;F(t),w&&w(e,t)})(t)}}),ownerState:N,additionalProps:{autoFocus:r,checked:o,defaultChecked:i,disabled:T,id:E?f:void 0,name:k,readOnly:C,required:S,tabIndex:$,type:j,..."checkbox"===j&&void 0===B?{}:{value:B}}});return(0,y.jsxs)(H,{...W,children:[(0,y.jsx)(q,{...V}),_?n:v]})})},2192(e,t,r){var o=r(70451),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,r){var o,l={},p=null,c=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(c=t.ref),t)n.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:a,type:e,key:p,ref:c,props:l,_owner:i.current}}t.Fragment=l,t.jsx=p,t.jsxs=p},62540(e,t,r){e.exports=r(2192)}}]);