PageSourceSearch

https://smartargi.ai/_next/static/chunks/7450-46bdd60e860d5445.js

js smartargi.ai collected 2026-10-05 15:05:58 UTC 42,343 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7450],{4280:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73346).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4293:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{_:()=>n})},7323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(74488);r(84347),r(18641),t.useLocale=n.useLocale},8013:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var n=r(4293),a=r(44850),s=r.n(a),i=r(32567),o=r(84347),l=r(15646),u=(0,o.forwardRef)(function(e,t){let{defaultLocale:r,href:a,locale:u,localeCookie:c,onClick:d,prefetch:h,unprefixed:f,...p}=e,m=(0,l.A)(),v=null!=u&&u!==m,y=u||m,g=function(){let[e,t]=(0,o.useState)();return(0,o.useEffect)(()=>{t(window.location.host)},[]),e}(),w=g&&f&&(f.domains[g]===y||!Object.keys(f.domains).includes(g)&&m===r&&!u)?f.pathname:a,b=(0,i.usePathname)();return v&&(h&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),h=!1),o.createElement(s(),(0,n._)({ref:t,href:w,hrefLang:v?u:void 0,onClick:function(e){(function(e,t,r,n){if(!e||n===r||null==n||!t)return;let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:s,...i}=e;i.path||(i.path=""!==a?a:"/");let o="".concat(s,"=").concat(n,";");for(let[e,t]of Object.entries(i))o+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(o+="="+t),o+=";";document.cookie=o})(c,b,m,u),d&&d(e)},prefetch:h},p))})},9287:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(4293),a=r(84347),s=r(67300);function i(e){let{locale:t,...r}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return a.createElement(s.IntlProvider,(0,n._)({locale:t},r))}},14327:(e,t,r)=>{"use strict";r.d(t,{SpeedInsights:()=>h});var n=r(84347),a=r(32567),s=r(21565),i=()=>{window.si||(window.si=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];(window.siq=window.siq||[]).push(t)})};function o(){return"development"===function(){return"production"}()}function l(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}function u(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{var r,n;let a=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof window||null===t.route)return null;i();let r=t.scriptSrc?t.scriptSrc:o()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":t.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":t.basePath?"".concat(t.basePath,"/speed-insights/script.js"):"/_vercel/speed-insights/script.js";if(document.head.querySelector('script[src*="'.concat(r,'"]')))return null;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(t.framework?"/".concat(t.framework):""),n.dataset.sdkv="1.2.0",t.sampleRate&&(n.dataset.sampleRate=t.sampleRate.toString()),t.route&&(n.dataset.route=t.route),t.endpoint?n.dataset.endpoint=t.endpoint:t.basePath&&(n.dataset.endpoint="".concat(t.basePath,"/speed-insights/vitals")),t.dsn&&(n.dataset.dsn=t.dsn),o()&&!1===t.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log("[Vercel Speed Insights] Failed to load script from ".concat(r,". Please check if any content blockers are enabled and try again."))},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=null!=e?e:void 0}}}({framework:null!=(r=e.framework)?r:"react",basePath:null!=(n=e.basePath)?n:function(){if(void 0!==s&&void 0!==s.env)return s.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});a&&(t.current=a.setRoute)}},[e.route]),null}var c=()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,r=(0,a.usePathname)();return e?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=l(n);e.test(r)&&(r=r.replace(e,"/[".concat(t,"]")))}for(let[t,n]of e)if(Array.isArray(n)){let e=l(n.join("/"));e.test(r)&&(r=r.replace(e,"/[...".concat(t,"]")))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function d(e){let t=c();return n.createElement(u,{route:t,...e,framework:"next",basePath:function(){if(void 0!==s&&void 0!==s.env)return s.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function h(e){return n.createElement(n.Suspense,{fallback:null},n.createElement(d,{...e}))}},15646:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(32567),a=r(7323);let s="locale",i=!1;function o(){let e,t=(0,n.useParams)();try{e=(0,a.useLocale)()}catch(r){if("string"!=typeof(null==t?void 0:t[s]))throw r;i||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),i=!0),e=t[s]}return e}},18580:(e,t,r)=>{"use strict";var n=r(87682);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(".")}function s(e){return a(e.namespace,e.key)}function i(e){console.error(e)}function o(e,t){return n.memoize(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:n.strategies.variadic})}function l(e,t){return o(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)},t)}t.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},t.createIntlFormatters=function(e){return{getDateTimeFormat:l(Intl.DateTimeFormat,e.dateTime),getNumberFormat:l(Intl.NumberFormat,e.number),getPluralRules:l(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:l(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:l(Intl.ListFormat,e.list),getDisplayNames:l(Intl.DisplayNames,e.displayNames)}},t.defaultGetMessageFallback=s,t.defaultOnError=i,t.initializeConfig=function(e){let{getMessageFallback:t,messages:r,onError:n,...a}=e;return{...a,messages:r,onError:n||i,getMessageFallback:t||s}},t.joinPath=a,t.memoFn=o},18641:(e,t,r)=>{"use strict";t.IntlContext=r(84347).createContext(void 0)},26377:(e,t,r)=>{"use strict";r.d(t,{s:()=>i,t:()=>s});var n=r(84347);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}function i(...e){return n.useCallback(s(...e),e)}},29603:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,s:()=>i});var n=r(99576),a=r(88305),s=r(21853),i=class extends a.k{#e;#t;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#n({type:"continue"})};this.#r=(0,s.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#n({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let r="pending"===this.state.status,n=!this.#r.canStart();try{if(r)t();else{this.#n({type:"pending",variables:e,isPaused:n}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#n({type:"pending",context:t,variables:e,isPaused:n})}let a=await this.#r.start();return await this.#t.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#t.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#n({type:"success",data:a}),a}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#n({type:"error",error:t})}}finally{this.#t.runNext(this)}}#n(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},32567:(e,t,r)=>{"use strict";r.r(t);var n=r(991),a={};for(let e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a)},33183:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var n=r(4293),a=r(32567),s=r(84347),i=r(15646),o=r(21565);function l(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function u(e,t){let r;return"string"==typeof e?r=c(t,e):(r={...e},e.pathname&&(r.pathname=c(t,e.pathname))),r}function c(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}function d(e){return e.includes("[[...")}function h(e){return e.includes("[...")}function f(e){return e.includes("[")}var p=r(8013);let m=(0,s.forwardRef)(function(e,t){let{href:r,locale:o,localeCookie:c,localePrefixMode:d,prefix:h,...f}=e,m=(0,a.usePathname)(),v=(0,i.A)(),y=o!==v,[g,w]=(0,s.useState)(()=>l(r)&&("never"!==d||y)?u(r,h):r);return(0,s.useEffect)(()=>{m&&w(function(e,t){var r,n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!l(e))return e;let o=(r=i,(n=s)===r||n.startsWith("".concat(r,"/")));return(t!==a||o)&&null!=i?u(e,i):e}(r,o,v,m,h))},[v,r,o,m,h]),s.createElement(p.default,(0,n._)({ref:t,href:g,locale:o,localeCookie:c},f))});m.displayName="ClientLink"},34827:(e,t,r)=>{"use strict";r.d(t,{Analytics:()=>c});var n=r(84347),a=r(21565),s=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];(window.vaq=window.vaq||[]).push(t)})};function i(){return"undefined"!=typeof window}function o(){return"production"}function l(){return(i()?window.vam:o())||"production"}function u(){return"development"===l()}function c(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{var t;!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!i())return;!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=o();return}window.vam=e}(t.mode),s(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let r=t.scriptSrc?t.scriptSrc:u()?"https://va.vercel-scripts.com/v1/script.debug.js":t.basePath?"".concat(t.basePath,"/insights/script.js"):"/_vercel/insights/script.js";if(document.head.querySelector('script[src*="'.concat(r,'"]')))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),n.dataset.sdkv="1.5.0",t.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),t.endpoint?n.dataset.endpoint=t.endpoint:t.basePath&&(n.dataset.endpoint="".concat(t.basePath,"/insights")),t.dsn&&(n.dataset.dsn=t.dsn),n.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(r,". ").concat(e))},u()&&!1===t.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:null!=(t=e.basePath)?t:function(){if(void 0!==a&&void 0!==a.env)return a.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:r,path:n}=e;null==(t=window.va)||t.call(window,"pageview",{route:r,path:n})}({route:e.route,path:e.path})},[e.route,e.path]),null}},39752:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,ThemeProvider:()=>d});var n=r(84347),a=(e,t,r,n,a,s,i,o)=>
1{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&s?a.map(e=>s[e]||e):a;r?(l.classList.remove(...n),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),r=t,o&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},s=["light","dark"],i="(prefers-color-scheme: dark)",o="undefined"==typeof window,l=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(l))?e:u},d=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),h=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:a=!0,enableColorScheme:o=!0,storageKey:u="theme",themes:c=h,defaultTheme:d=a?"system":"light",attribute:f="data-theme",value:g,children:w,nonce:b,scriptProps:E}=e,[C,P]=n.useState(()=>m(u,d)),[x,T]=n.useState(()=>"system"===C?y():C),S=g?Object.values(g):c,A=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=y());let n=g?g[t]:t,i=r?v(b):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...S),n&&l.classList.add(n)):e.startsWith("data-")&&(n?l.setAttribute(e,n):l.removeAttribute(e))};if(Array.isArray(f)?f.forEach(u):u(f),o){let e=s.includes(d)?d:null,r=s.includes(t)?t:e;l.style.colorScheme=r}null==i||i()},[b]),k=n.useCallback(e=>{let t="function"==typeof e?e(C):e;P(t);try{localStorage.setItem(u,t)}catch(e){}},[C]),R=n.useCallback(e=>{T(y(e)),"system"===C&&a&&!t&&A("system")},[C,t]);n.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(R),R(e),()=>e.removeListener(R)},[R]),n.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?P(e.newValue):k(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),n.useEffect(()=>{A(null!=t?t:C)},[t,C]);let j=n.useMemo(()=>({theme:C,setTheme:k,forcedTheme:t,resolvedTheme:"system"===C?x:C,themes:a?[...c,"system"]:c,systemTheme:a?x:void 0}),[C,k,t,x,a,c]);return n.createElement(l.Provider,{value:j},n.createElement(p,{forcedTheme:t,storageKey:u,attribute:f,enableSystem:a,enableColorScheme:o,defaultTheme:d,value:g,themes:c,nonce:b,scriptProps:E}),w)},p=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:i,enableColorScheme:o,defaultTheme:l,value:u,themes:c,nonce:d,scriptProps:h}=e,f=JSON.stringify([s,r,l,t,c,u,i,o]).slice(1,-1);return n.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(f,")")}})}),m=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},41614:(e,t,r)=>{"use strict";r.d(t,{DX:()=>o,Dc:()=>u,TL:()=>i});var n=r(84347),a=r(26377),s=r(6859);function i(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...s}=e;if(n.isValidElement(r)){var i;let e,o,l=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),u=function(e,t){let r={...t};for(let n in t){let a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...e)=>{s(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...s}:"className"===n&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(s,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,a.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:a,...i}=e,o=n.Children.toArray(a),l=o.find(c);if(l){let e=l.props.children,a=o.map(t=>t!==l?t:n.Children.count(e)>
11?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,s.jsx)(t,{...i,ref:r,children:a})});return r.displayName=`${e}.Slot`,r}var o=i("Slot"),l=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},46650:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_1cffa3"}},57881:(e,t,r)=>{"use strict";r.d(t,{MX:()=>s,fX:()=>n,zP:()=>i});let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),s=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}},61835:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>i,bL:()=>l,s6:()=>o});var n=r(84347),a=r(96762),s=r(6859),i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),o=n.forwardRef((e,t)=>(0,s.jsx)(a.sG.span,{...e,ref:t,style:{...i,...e.style}}));o.displayName="VisuallyHidden";var l=o},67300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(84347),a=r(18580),s=r(18641);r(87682);var i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.IntlProvider=function(e){let{children:t,defaultTranslationValues:r,formats:o,getMessageFallback:l,locale:u,messages:c,now:d,onError:h,timeZone:f}=e,p=n.useMemo(()=>a.createCache(),[u]),m=n.useMemo(()=>a.createIntlFormatters(p),[p]),v=n.useMemo(()=>({...a.initializeConfig({locale:u,defaultTranslationValues:r,formats:o,getMessageFallback:l,messages:c,now:d,onError:h,timeZone:f}),formatters:m,cache:p}),[p,r,o,m,l,u,c,d,h,f]);return i.default.createElement(s.IntlContext.Provider,{value:v},t)}},73346:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(84347),a=r(57881),s=r(88399);let i=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:o,...l}=r;return(0,n.createElement)(s.A,{ref:i,iconNode:t,className:(0,a.zP)("lucide-".concat((0,a.fX)((0,a.MX)(e))),"lucide-".concat(e),o),...l})});return r.displayName=(0,a.MX)(e),r}},74488:(e,t,r)=>{"use strict";var n=r(84347),a=r(18641);function s(){let e=n.useContext(a.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=s,t.useLocale=function(){return s().locale}},87682:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?a:s;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function a(e,t,r,n){var a=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),s=t.get(a);return void 0===s&&(s=e.call(this,n),t.set(a,s)),s}function s(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),s=t.get(a);return void 0===s&&(s=e.apply(this,n),t.set(a,s)),s}r.r(t),r.d(t,{memoize:()=>n,strategies:()=>u});var i=function(){return JSON.stringify(arguments)},o=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),l={create:function(){return new o}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,s.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)}}},88399:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(84347),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},s=r(57881);let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...h}=e;return(0,n.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:r,strokeWidth:l?24*Number(o)/Number(i):o,className:(0,s.zP)("lucide",u),...h},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])})},95387:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>Z,LM:()=>U,VY:()=>ee,bL:()=>Y,bm:()=>er,hE:()=>J,rc:()=>et});var n=r(84347),a=r(54266),s=r(13041),i=r(26377),o=r(39566),l=r(90227),u=r(50214),c=r(54461),d=r(57807),h=r(96762),f=r(15050),p=r(49366),m=r(58270),v=r(61835),y=r(6859),g="ToastProvider",[w,b,E]=(0,o.N)("Toast"),[C,P]=(0,l.A)("Toast",[E]),[x,T]=C(g),S=e=>
1{let{__scopeToast:t,label:r="Notification",duration:a=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,u]=n.useState(null),[c,d]=n.useState(0),h=n.useRef(!1),f=n.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,y.jsx)(w.Provider,{scope:t,children:(0,y.jsx)(x,{scope:t,label:r,duration:a,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:n.useCallback(()=>d(e=>e+1),[]),onToastRemove:n.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};S.displayName=g;var A="ToastViewport",k=["F8"],R="toast.viewportPause",j="toast.viewportResume",O=n.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:a=k,label:s="Notifications ({hotkey})",...o}=e,l=T(A,r),c=b(r),d=n.useRef(null),f=n.useRef(null),p=n.useRef(null),m=n.useRef(null),v=(0,i.s)(t,m,l.onViewportChange),g=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;n.useEffect(()=>{let e=e=>{var t;0!==a.length&&a.every(t=>e[t]||e.code===t)&&(null==(t=m.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),n.useEffect(()=>{let e=d.current,t=m.current;if(E&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(R);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(j);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},a=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[E,l.isClosePausedRef]);let C=n.useCallback(e=>{let{tabbingDirection:t}=e,r=c().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[c]);return n.useEffect(()=>{let e=m.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,a,s;let r=document.activeElement,i=t.shiftKey;if(t.target===e&&i){null==(n=f.current)||n.focus();return}let o=C({tabbingDirection:i?"backwards":"forwards"}),l=o.findIndex(e=>e===r);X(o.slice(l+1))?t.preventDefault():i?null==(a=f.current)||a.focus():null==(s=p.current)||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,C]),(0,y.jsxs)(u.lg,{ref:d,role:"region","aria-label":s.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&(0,y.jsx)(I,{ref:f,onFocusFromOutsideViewport:()=>{X(C({tabbingDirection:"forwards"}))}}),(0,y.jsx)(w.Slot,{scope:r,children:(0,y.jsx)(h.sG.ol,{tabIndex:-1,...o,ref:v})}),E&&(0,y.jsx)(I,{ref:p,onFocusFromOutsideViewport:()=>{X(C({tabbingDirection:"backwards"}))}})]})});O.displayName=A;var F="ToastFocusProxy",I=n.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,s=T(F,r);return(0,y.jsx)(v.s6,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=s.viewport)?void 0:t.contains(r))||n()}})});I.displayName=F;var L="Toast",D=n.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:a,onOpenChange:i,...o}=e,[l,u]=(0,p.i)({prop:n,defaultProp:null==a||a,onChange:i,caller:L});return(0,y.jsx)(d.C,{present:r||l,children:(0,y.jsx)(N,{open:l,...o,ref:t,onClose:()=>u(!1),onPause:(0,f.c)(e.onPause),onResume:(0,f.c)(e.onResume),onSwipeStart:(0,s.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,s.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,s.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,s.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});D.displayName=L;var[M,q]=C(L,{onClose(){}}),N=n.forwardRef((e,t)=>{let{__scopeToast:r,type:o="foreground",duration:l,open:c,onClose:d,onEscapeKeyDown:p,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:b,onSwipeCancel:E,onSwipeEnd:C,...P}=e,x=T(L,r),[S,A]=n.useState(null),k=(0,i.s)(t,e=>A(e)),O=n.useRef(null),F=n.useRef(null),I=l||x.duration,D=n.useRef(0),q=n.useRef(I),N=n.useRef(0),{onToastAdd:Q,onToastRemove:K}=x,G=(0,f.c)(()=>{var e;(null==S?void 0:S.contains(document.activeElement))&&(null==(e=x.viewport)||e.focus()),d()}),V=n.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(N.current),D.current=new Date().getTime(),N.current=window.setTimeout(G,e))},[G]);n.useEffect(()=>{let e=x.viewport;if(e){let t=()=>{V(q.current),null==v||v()},r=()=>{let e=new Date().getTime()-D.current;q.current=q.current-e,window.clearTimeout(N.current),null==m||m()};return e.addEventListener(R,r),e.addEventListener(j,t),()=>{e.removeEventListener(R,r),e.removeEventListener(j,t)}}},[x.viewport,I,m,v,V]),n.useEffect(()=>{c&&!x.isClosePausedRef.current&&V(I)},[c,I,x.isClosePausedRef,V]),n.useEffect(()=>(Q(),()=>K()),[Q,K]);let H=n.useMemo(()=>S?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,a=""===t.dataset.radixToastAnnounceExclude;if(!n)if(a){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(S):null,[S]);return x.viewport?(0,y.jsxs)(y.Fragment,{children:[H&&(0,y.jsx)(_,{__scopeToast:r,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:H}),(0,y.jsx)(M,{scope:r,onClose:G,children:a.createPortal((0,y.jsx)(w.ItemSlot,{scope:r,children:(0,y.jsx)(u.bL,{asChild:!0,onEscapeKeyDown:(0,s.m)(p,()=>{x.isFocusedToastEscapeKeyDownRef.current||G(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,y.jsx)(h.sG.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":x.swipeDirection,...P,ref:k,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,s.m)(e.onKeyDown,e=>{"Escape"===e.key&&(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:(0,s.m)(e.onPointerDown,e=>{0===e.button&&(O.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,s.m)(e.onPointerMove,e=>{if(!O.current)return;let t=e.clientX-O.current.x,r=e.clientY-O.current.y,n=!!F.current,a=["left","right"].includes(x.swipeDirection),s=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,i=a?s(0,t):0,o=a?0:s(0,r),l="touch"===e.pointerType?10:2,u={x:i,y:o},c={originalEvent:e,delta:u};n?(F.current=u,W("toast.swipeMove",b,c,{discrete:!1})):$(u,x.swipeDirection,l)?(F.current=u,W("toast.swipeStart",g,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(O.current=null)}),onPointerUp:(0,s.m)(e.onPointerUp,e=>{let t=F.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),F.current=null,O.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};$(t,x.swipeDirection,x.swipeThreshold)?W("toast.swipeEnd",C,n,{discrete:!0}):W("toast.swipeCancel",E,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),_=e=>{let{__scopeToast:t,children:r,...a}=e,s=T(L,t),[i,o]=n.useState(!1),[l,u]=n.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,f.c)(e);(0,m.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>o(!0)),n.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,y.jsx)(c.Z,{asChild:!0,children:(0,y.jsx)(v.s6,{...a,children:i&&(0,y.jsxs)(y.Fragment,{children:[s.label," ",r]})})})},Q=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,y.jsx)(h.sG.div,{...n,ref:t})});Q.displayName="ToastTitle";var K=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,y.jsx)(h.sG.div,{...n,ref:t})});K.displayName="ToastDescription";var G="ToastAction",V=n.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,y.jsx)(B,{altText:r,asChild:!0,children:(0,y.jsx)(z,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(G,"`. Expected non-empty `string`.")),null)});V.displayName=G;var H="ToastClose",z=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,a=q(H,r);return(0,y.jsx)(B,{asChild:!0,children:(0,y.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,s.m)(e.onClick,a.onClose)})})});z.displayName=H;var B=n.forwardRef((e,t)=>
1{let{__scopeToast:r,altText:n,...a}=e;return(0,y.jsx)(h.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function W(e,t,r,n){let{discrete:a}=n,s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?(0,h.hO)(s,i):s.dispatchEvent(i)}var $=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),a=Math.abs(e.y),s=n>a;return"left"===t||"right"===t?s&&n>r:!s&&a>r};function X(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Z=S,U=O,Y=D,J=Q,ee=K,et=V,er=z},96762:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>o});var n=r(84347),a=r(54266),s=r(41614),i=r(6859),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,s.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:a,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a?r:t,{...s,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function l(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},96939:(e,t,r)=>{"use strict";r.d(t,{E:()=>m});var n=r(56373),a=r(58320),s=r(99576),i=r(81961),o=class extends i.Q{constructor(e={}){super(),this.config=e,this.#a=new Map}#a;build(e,t,r){let s=t.queryKey,i=t.queryHash??(0,n.F$)(s,t),o=this.get(i);return o||(o=new a.X({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#a.has(e.queryHash)||(this.#a.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#a.get(e.queryHash);t&&(e.destroy(),t===e&&this.#a.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#a.get(e)}getAll(){return[...this.#a.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n.MK)(e,t)):t}notify(e){s.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=r(29603),u=class extends i.Q{constructor(e={}){super(),this.config=e,this.#s=new Set,this.#i=new Map,this.#o=0}#s;#i;#o;build(e,t,r){let n=new l.s({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#s.add(e);let t=c(e);if("string"==typeof t){let r=this.#i.get(t);r?r.push(e):this.#i.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#s.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#i.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#i.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#i.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#i.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){s.jG.batch(()=>{this.#s.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#s.clear(),this.#i.clear()})}getAll(){return Array.from(this.#s)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.nJ)(e,t))}notify(e){s.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.lQ))))}};function c(e){return e.options.scope?.id}var d=r(72671),h=r(19782);function f(e){return{onFetch:(t,r)=>{let a=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let r=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},d=(0,n.ZM)(t.options,t.fetchOptions),h=async(e,a,s)=>{if(r)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);let i={client:t.client,queryKey:t.queryKey,pageParam:a,direction:s?"backward":"forward",meta:t.options.meta};c(i);let o=await d(i),{maxPages:l}=t.options,u=s?n.ZZ:n.y9;return{pages:u(e.pages,o,l),pageParams:u(e.pageParams,a,l)}};if(s&&i.length){let e="backward"===s,t={pages:i,pageParams:o},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:p)(a,t);l=await h(t,r,e)}else{let t=e??i.length;do{let e=0===u?o[0]??a.initialPageParam:p(a,l);if(u>0&&null==e)break;l=await h(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function p(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var m=class{#l;#t;#u;#c;#d;#h;#f;#p;constructor(e={}){this.#l=e.queryCache||new o,this.#t=e.mutationCache||new u,this.#u=e.defaultOptions||{},this.#c=new Map,this.#d=new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#f=d.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onFocus())}),this.#p=h.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#f?.(),this.#f=void 0,this.#p?.(),this.#p=void 0)}isFetching(e){return this.#l.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#l.build(this,t),a=r.state.data;return void 0===a?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#l.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let a=this.defaultQueryOptions({queryKey:e}),s=this.#l.get(a.queryHash),i=s?.state.data,o=(0,n.Zw)(t,i);if(void 0!==o)return this.#l.build(this,a).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return s.jG.batch(()=>this.#l.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state}removeQueries(e){let t=this.#l;s.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#l;return s.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(s.jG.batch(()=>this.#l.findAll(e).map(e=>e.cancel(r)))).then(n.lQ).catch(n.lQ)}invalidateQueries(e,t={}){return s.jG.batch(()=>(this.#l.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(s.jG.batch(()=>this.#l.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))).then(n.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#l.build(this,t);return r.isStaleByTime((0,n.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(e){return e.behavior=f(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.lQ).catch(n.lQ)}ensureInfiniteQueryData(e){return e.behavior=f(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return h.t.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#l}getMutationCache(){return this.#t}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#c.set((0,n.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#c.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#d.set((0,n.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#d.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#l.clear(),this.#t.clear()}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.