1717-895f40cb2edfd6b5.js 8.6 KB

1
  1. "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1717],{52531:(e,t,n)=>{var i=n(74843);t.o=i.default},74843:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},2256:(e,t,n)=>{n.d(t,{N:()=>c});var i=n(57749),r=n(29340),s=n(68448),o=n(63337),u=n(34001);function c(e){let t=e+"CollectionProvider",[n,c]=(0,r.A)(t),[l,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:n}=e,r=i.useRef(null),s=i.useRef(new Map).current;return(0,u.jsx)(l,{scope:t,itemMap:s,collectionRef:r,children:n})};f.displayName=t;let h=e+"CollectionSlot",d=i.forwardRef((e,t)=>{let{scope:n,children:i}=e,r=a(h,n),c=(0,s.s)(t,r.collectionRef);return(0,u.jsx)(o.DX,{ref:c,children:i})});d.displayName=h;let y=e+"CollectionItemSlot",p="data-radix-collection-item",v=i.forwardRef((e,t)=>{let{scope:n,children:r,...c}=e,l=i.useRef(null),f=(0,s.s)(t,l),h=a(y,n);return i.useEffect(()=>(h.itemMap.set(l,{ref:l,...c}),()=>void h.itemMap.delete(l))),(0,u.jsx)(o.DX,{[p]:"",ref:f,children:r})});return v.displayName=y,[{Provider:f,Slot:d,ItemSlot:v},function(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},c]}},84664:(e,t,n)=>{n.d(t,{jH:()=>s});var i=n(57749);n(34001);var r=i.createContext(void 0);function s(e){let t=i.useContext(r);return e||t||"ltr"}},59147:(e,t,n)=>{n.d(t,{m:()=>s});var i=n(17637),r=n(65033),s=new class extends i.Q{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!r.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},98596:(e,t,n)=>{n.d(t,{j:()=>i});var i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},r=e=>setTimeout(e,0),s=i=>{t?e.push(i):r(()=>{n(i)})},o=()=>{let t=e;e=[],t.length&&r(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||o()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{r=e}}}()},71370:(e,t,n)=>{n.d(t,{t:()=>s});var i=n(17637),r=n(65033),s=new class extends i.Q{#i=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!r.S$&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}}},26957:(e,t,n)=>{n.d(t,{k:()=>r});var i=n(65033),r=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#r=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.S$?1/0:3e5))}clearGcTimeout(){this.#r&&(clearTimeout(this.#r),this.#r=void 0)}}},64497:(e,t,n)=>{n.d(t,{II:()=>f,v_:()=>c,wm:()=>a});var i=n(59147),r=n(71370),s=n(29315),o=n(65033);function u(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||r.t.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function a(e){return e instanceof l}function f(e){let t,n=!1,a=0,f=!1,h=(0,s.T)(),d=()=>i.m.isFocused()&&("always"===e.networkMode||r.t.isOnline())&&e.canRun(),y=()=>c(e.networkMode)&&e.canRun(),p=n=>{f||(f=!0,e.onSuccess?.(n),t?.(),h.resolve(n))},v=n=>{f||(f=!0,e.onError?.(n),t?.(),h.reject(n))},m=()=>new Promise(n=>{t=e=>{(f||d())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,f||e.onContinue?.()}),b=()=>{let t;if(f)return;let i=0===a?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if(f)return;let i=e.retry??(o.S$?0:3),r=e.retryDelay??u,s="function"==typeof r?r(a,t):r,c=!0===i||"number"==typeof i&&a<i||"function"==typeof i&&i(a,t);if(n||!c){v(t);return}a++,e.onFail?.(a,t),(0,o.yy)(s).then(()=>d()?void 0:m()).then(()=>{n?v(t):b()})})};return{promise:h,cancel:t=>{f||(v(new l(t)),e.abort?.())},continue:()=>(t?.(),h),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:y,start:()=>(y()?b():m().then(b),h)}}},17637:(e,t,n)=>{n.d(t,{Q:()=>i});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},29315:(e,t,n)=>{n.d(t,{T:()=>i});function i(){let e,t;let n=new Promise((n,i)=>{e=n,t=i});function i(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},n.reject=e=>{i({status:"rejected",reason:e}),t(e)},n}},65033:(e,t,n)=>{n.d(t,{Cp:()=>y,EN:()=>d,Eh:()=>l,F$:()=>h,MK:()=>a,S$:()=>i,ZM:()=>O,ZZ:()=>E,Zw:()=>s,d2:()=>c,f8:()=>p,gn:()=>o,hT:()=>S,j3:()=>u,lQ:()=>r,nJ:()=>f,pl:()=>g,y9:()=>j,yy:()=>w});var i="undefined"==typeof window||"Deno"in globalThis;function r(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function a(e,t){let{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:u}=e;if(o){if(i){if(t.queryHash!==h(o,t.options))return!1}else if(!y(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!r||r===t.state.fetchStatus)&&(!s||!!s(t))}function f(e,t){let{exact:n,status:i,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(d(t.options.mutationKey)!==d(s))return!1}else if(!y(t.options.mutationKey,s))return!1}return(!i||t.state.status===i)&&(!r||!!r(t))}function h(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function y(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!y(e[n],t[n]))}function p(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{setTimeout(t,e)})}function g(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let i=v(t)&&v(n);if(i||m(t)&&m(n)){let r=i?t:Object.keys(t),s=r.length,o=i?n:Object.keys(n),u=o.length,c=i?[]:{},l=0;for(let s=0;s<u;s++){let u=i?s:o[s];(!i&&r.includes(u)||i)&&void 0===t[u]&&void 0===n[u]?(c[u]=void 0,l++):(c[u]=e(t[u],n[u]),c[u]===t[u]&&void 0!==t[u]&&l++)}return s===u&&l===s?t:c}return n}(e,t):t}function j(e,t,n=0){let i=[...e,t];return n&&i.length>n?i.slice(1):i}function E(e,t,n=0){let i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var S=Symbol();function O(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},1412:(e,t,n)=>{n.d(t,{Ht:()=>u,jE:()=>o});var i=n(57749),r=n(34001),s=i.createContext(void 0),o=e=>{let t=i.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},u=e=>{let{client:t,children:n}=e;return i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,r.jsx)(s.Provider,{value:t,children:n})}},79455:(e,t,n)=>{function i(e,t){return"function"==typeof e?e(...t):!!e}function r(){}n.d(t,{G:()=>i,l:()=>r})}}]);