(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5798],{69876:function(t,e,r){"use strict";r.d(e,{k:function(){return g}});var s=r(67294),n=r(60263),i=r(63706);let o={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var u=r(64523),c=r(11686),a=Object.defineProperty,l=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=(t,e,r)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||(e={}))d.call(e,r)&&y(t,r,e[r]);if(p)for(var r of p(e))f.call(e,r)&&y(t,r,e[r]);return t},v=(t,e)=>l(t,h(e)),R=(t,e)=>{var r={};for(var s in t)d.call(t,s)&&0>e.indexOf(s)&&(r[s]=t[s]);if(null!=t&&p)for(var s of p(t))0>e.indexOf(s)&&f.call(t,s)&&(r[s]=t[s]);return r};let m={},g=(0,s.forwardRef)((t,e)=>{let r=(0,n.N4)("Flex",m,t),{gap:a,rowGap:l,columnGap:h,align:p,justify:d,wrap:f,direction:y,sx:g}=r,j=R(r,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return s.createElement(u.x,v(b({},j),{sx:[{display:"flex"},t=>(0,c.M)({gap:a,rowGap:l,columnGap:h,align:p,justify:d,wrap:f,direction:y},t,o),...(0,i.R)(g)],ref:e}))});g.displayName="@mantine/core/Flex"},18552:function(t,e,r){var s=r(10852)(r(55639),"DataView");t.exports=s},53818:function(t,e,r){var s=r(10852)(r(55639),"Promise");t.exports=s},58525:function(t,e,r){var s=r(10852)(r(55639),"Set");t.exports=s},70577:function(t,e,r){var s=r(10852)(r(55639),"WeakMap");t.exports=s},9454:function(t,e,r){var s=r(44239),n=r(37005);t.exports=function(t){return n(t)&&"[object Arguments]"==s(t)}},38749:function(t,e,r){var s=r(44239),n=r(41780),i=r(37005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&n(t.length)&&!!o[s(t)]}},280:function(t,e,r){var s=r(25726),n=r(86916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!s(t))return n(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},7518:function(t){t.exports=function(t){return function(e){return t(e)}}},64160:function(t,e,r){var s=r(18552),n=r(57071),i=r(53818),o=r(58525),u=r(70577),c=r(44239),a=r(80346),l="[object Map]",h="[object Promise]",p="[object Set]",d="[object WeakMap]",f="[object DataView]",y=a(s),b=a(n),v=a(i),R=a(o),m=a(u),g=c;(s&&g(new s(new ArrayBuffer(1)))!=f||n&&g(new n)!=l||i&&g(i.resolve())!=h||o&&g(new o)!=p||u&&g(new u)!=d)&&(g=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,s=r?a(r):"";if(s)switch(s){case y:return f;case b:return l;case v:return h;case R:return p;case m:return d}return e}),t.exports=g},25726:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor,s="function"==typeof r&&r.prototype||e;return t===s}},86916:function(t,e,r){var s=r(5569)(Object.keys,Object);t.exports=s},31167:function(t,e,r){t=r.nmd(t);var s=r(31957),n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&s.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=u},5569:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},35694:function(t,e,r){var s=r(9454),n=r(37005),i=Object.prototype,o=i.hasOwnProperty,u=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(t){return n(t)&&o.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},98612:function(t,e,r){var s=r(23560),n=r(41780);t.exports=function(t){return null!=t&&n(t.length)&&!s(t)}},44144:function(t,e,r){t=r.nmd(t);var s=r(55639),n=r(95062),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,u=o&&o.exports===i?s.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||n},41609:function(t,e,r){var s=r(280),n=r(64160),i=r(35694),o=r(1469),u=r(98612),c=r(44144),a=r(25726),l=r(36719),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||i(t)))return!t.length;var e=n(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(a(t))return!s(t).length;for(var r in t)if(h.call(t,r))return!1;return!0}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},36719:function(t,e,r){var s=r(38749),n=r(7518),i=r(31167),o=i&&i.isTypedArray,u=o?n(o):s;t.exports=u},95062:function(t){t.exports=function(){return!1}},52924:function(t,e,r){"use strict";r.d(e,{z:function(){return c}});var s=r(32161),n=r(30081),i=r(15761),o=r(33989),u=r(72379);class c extends o.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.length&&(this.currentQuery.addObserver(this),a(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return l(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),(0,s.VS)(r,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=r.queryKey),this.updateQuery();let i=this.hasListeners();i&&h(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){let e=this.client.getQueryCache().build(this.client,t);return this.createResult(e,t)}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(r=>{Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),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),r=this.client.getQueryCache().build(this.client,e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,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(s.ZT)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),s.sk||this.currentResult.isStale||!(0,s.PN)(this.options.staleTime))return;let t=(0,s.Kp)(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,!s.sk&&!1!==this.options.enabled&&(0,s.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.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 r;let n=this.currentQuery,i=this.options,o=this.currentResult,c=this.currentResultState,l=this.currentResultOptions,d=t!==n,f=d?t.state:this.currentQueryInitialState,y=d?this.currentResult:this.previousQueryResult,{state:b}=t,{dataUpdatedAt:v,error:R,errorUpdatedAt:m,fetchStatus:g,status:j}=b,O=!1,x=!1;if(e._optimisticResults){let r=this.hasListeners(),s=!r&&a(t,e),o=r&&h(t,n,e,i);(s||o)&&(g=(0,u.Kw)(t.options.networkMode)?"fetching":"paused",v||(j="loading")),"isRestoring"===e._optimisticResults&&(g="idle")}if(e.keepPreviousData&&!b.dataUpdatedAt&&null!=y&&y.isSuccess&&"error"!==j)r=y.data,v=y.dataUpdatedAt,j=y.status,O=!0;else if(e.select&&void 0!==b.data){if(o&&b.data===(null==c?void 0:c.data)&&e.select===this.selectFn)r=this.selectResult;else try{this.selectFn=e.select,r=e.select(b.data),r=(0,s.oE)(null==o?void 0:o.data,r,e),this.selectResult=r,this.selectError=null}catch(t){this.selectError=t}}else r=b.data;if(void 0!==e.placeholderData&&void 0===r&&"loading"===j){let t;if(null!=o&&o.isPlaceholderData&&e.placeholderData===(null==l?void 0:l.placeholderData))t=o.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&&(j="success",r=(0,s.oE)(null==o?void 0:o.data,t,e),x=!0)}this.selectError&&(R=this.selectError,r=this.selectResult,m=Date.now(),j="error");let S="fetching"===g,I="loading"===j,Q="error"===j,E={status:j,fetchStatus:g,isLoading:I,isSuccess:"success"===j,isError:Q,isInitialLoading:I&&S,data:r,dataUpdatedAt:v,error:R,errorUpdatedAt:m,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>f.dataUpdateCount||b.errorUpdateCount>f.errorUpdateCount,isFetching:S,isRefetching:S&&!I,isLoadingError:Q&&0===b.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:x,isPreviousData:O,isRefetchError:Q&&0!==b.dataUpdatedAt,isStale:p(t,e),refetch:this.refetch,remove:this.remove};return E}updateResult(t){let e=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,s.VS)(r,e))return;this.currentResult=r;let n={cache:!0};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options;if("all"===t||!t&&!this.trackedProps.size)return!0;let r=new Set(null!=t?t:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>{let s=this.currentResult[t]!==e[t];return s&&r.has(t)})})()&&(n.listeners=!0),this.notify({...n,...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||(0,u.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){n.V.batch(()=>{var e,r,s,n,i,o,u,c;t.onSuccess?(null==(e=(r=this.options).onSuccess)||e.call(r,this.currentResult.data),null==(s=(n=this.options).onSettled)||s.call(n,this.currentResult.data,null)):t.onError&&(null==(i=(o=this.options).onError)||i.call(o,this.currentResult.error),null==(u=(c=this.options).onSettled)||u.call(c,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(t=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function a(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&l(t,e,e.refetchOnMount)}function l(t,e,r){if(!1!==e.enabled){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&p(t,e)}return!1}function h(t,e,r,s){return!1!==r.enabled&&(t!==e||!1===s.enabled)&&(!r.suspense||"error"!==t.state.status)&&p(t,r)}function p(t,e){return t.isStaleByTime(e.staleTime)}},67187:function(t,e,r){"use strict";let s;r.d(e,{r:function(){return g}});var n=r(67294),i=r(464),o=r(30081);let u=n.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),c=()=>n.useContext(u);var a=r(85945);let l=n.createContext(!1),h=()=>n.useContext(l);l.Provider;var p=r(24798);let d=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},f=t=>{n.useEffect(()=>{t.clearReset()},[t])},y=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&(0,p.L)(r,[t.error,s]),b=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},v=(t,e)=>t.isLoading&&t.isFetching&&!e,R=(t,e,r)=>(null==t?void 0:t.suspense)&&v(e,r),m=(t,e,r)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{r.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function g(t,e){let r=(0,a.NL)({context:t.context}),s=h(),u=c(),l=r.defaultQueryOptions(t);l._optimisticResults=s?"isRestoring":"optimistic",l.onError&&(l.onError=o.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=o.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=o.V.batchCalls(l.onSettled)),b(l),d(l,u),f(u);let[p]=n.useState(()=>new e(r,l)),v=p.getOptimisticResult(l);if((0,i.$)(n.useCallback(t=>s?()=>void 0:p.subscribe(o.V.batchCalls(t)),[p,s]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),n.useEffect(()=>{p.setOptions(l,{listeners:!1})},[l,p]),R(l,v,s))throw m(l,p,u);if(y({result:v,errorResetBoundary:u,useErrorBoundary:l.useErrorBoundary,query:p.getCurrentQuery()}))throw v.error;return l.notifyOnChangeProps?v:p.trackResult(v)}},36492:function(t,e,r){"use strict";r.d(e,{a:function(){return o}});var s=r(32161),n=r(52924),i=r(67187);function o(t,e,r){let o=(0,s._v)(t,e,r);return(0,i.r)(o,n.z)}}}]);