PageSourceSearch

https://kitafund.com/_next/static/chunks/1487-2d4d4a8d2d81aaaa.js

js kitafund.com collected 2026-10-03 20:51:56 UTC 10,366 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1487],{5042:function(t,e,r){r.d(e,{z:function(){return o}});var s=r(89673),i=r(32599),n=r(47646),u=r(78210),l=r(50350);class o extends u.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),a(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let r=this.options,i=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 n=this.hasListeners();n&&h(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(e),n&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let u=this.computeRefetchInterval();n&&(this.currentQuery!==i||this.options.enabled!==r.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)}getOptimisticResult(t){let e=this.client.getQueryCache().build(this.client,t),r=this.createResult(e,t);return t.keepPreviousData||(void 0!==t.placeholderData?!r.isPlaceholderData:(0,s.VS)(this.getCurrentResult(),r))||(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}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||n.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 i=this.currentQuery,n=this.options,u=this.currentResult,o=this.currentResultState,c=this.currentResultOptions,p=t!==i,f=p?t.state:this.currentQueryInitialState,y=p?this.currentResult:this.previousQueryResult,{state:R}=t,{dataUpdatedAt:v,error:m,errorUpdatedAt:b,fetchStatus:S,status:Q}=R,I=!1,C=!1;if(e._optimisticResults){let r=this.hasListeners(),s=!r&&a(t,e),u=r&&h(t,i,e,n);(s||u)&&(S=(0,l.Kw)(t.options.networkMode)?"fetching":"paused",v||(Q="loading")),"isRestoring"===e._optimisticResults&&(S="idle")}if(e.keepPreviousData&&!R.dataUpdatedAt&&null!=y&&y.isSuccess&&"error"!==Q)r=y.data,v=y.dataUpdatedAt,Q=y.status,I=!0;else if(e.select&&void 0!==R.data){if(u&&R.data===(null==o?void 0:o.data)&&e.select===this.selectFn)r=this.selectResult;else try{this.selectFn=e.select,r=e.select(R.data),r=(0,s.oE)(null==u?void 0:u.data,r,e),this.selectResult=r,this.selectError=null}catch(t){this.selectError=t}}else r=R.data;if(void 0!==e.placeholderData&&void 0===r&&"loading"===Q){let t;if(null!=u&&u.isPlaceholderData&&e.placeholderData===(null==c?void 0:c.placeholderData))t=u.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&&(Q="success",r=(0,s.oE)(null==u?void 0:u.data,t,e),C=!0)}this.selectError&&(m=this.selectError,r=this.selectResult,b=Date.now(),Q="error");let E="fetching"===S,g="loading"===Q,O="error"===Q,T={status:Q,fetchStatus:S,isLoading:g,isSuccess:"success"===Q,isError:O,isInitialLoading:g&&E,data:r,dataUpdatedAt:v,error:m,errorUpdatedAt:b,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>f.dataUpdateCount||R.errorUpdateCount>f.errorUpdateCount,isFetching:E,isRefetching:E&&!g,isLoadingError:O&&0===R.dataUpdatedAt,isPaused:"paused"===S,isPlaceholderData:C,isPreviousData:I,isRefetchError:O&&0!==R.dataUpdatedAt,isStale:d(t,e),refetch:this.refetch,remove:this.remove};return T}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 i={cache:!0};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.trackedProps.size)return!0;let s=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(t=>{let r=this.currentResult[t]!==e[t];return r&&s.has(t)})})()&&(i.listeners=!0),this.notify({...i,...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,l.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){i.V.batch(()=>{var e,r,s,i,n,u,l,o;t.onSuccess?(null==(e=(r=this.options).onSuccess)||e.call(r,this.currentResult.data),null==(s=(i=this.options).onSettled)||s.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(l=(o=this.options).onSettled)||l.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 a(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&c(t,e,e.refetchOnMount)}function c(t,e,r){if(!1!==e.enabled){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&d(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)&&d(t,r)}function d(t,e){return t.isStaleByTime(e.staleTime)}},91369:function(t,e,r){let s;r.d(e,{r:function(){return S}});var i=r(50959),n=r(32599),u=r(66159);let l=u.useSyncExternalStore,o=i.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),a=()=>i.useContext(o);var c=r(73236);let h=i.createContext(!1),d=()=>i.useContext(h);h.Provider;let p=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},f=t=>{i.useEffect(()=>{t.clearReset()},[t])},y=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:s})=>{var i;return t.isError&&!e.isReset()&&!t.isFetching&&(i=[t.error,s],"function"==typeof r?r(...i):!!r)},R=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cac
1heTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},v=(t,e)=>t.isLoading&&t.isFetching&&!e,m=(t,e,r)=>(null==t?void 0:t.suspense)&&v(e,r),b=(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 S(t,e){let r=(0,c.NL)({context:t.context}),s=d(),u=a(),o=r.defaultQueryOptions(t);o._optimisticResults=s?"isRestoring":"optimistic",o.onError&&(o.onError=n.V.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=n.V.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=n.V.batchCalls(o.onSettled)),R(o),p(o,u),f(u);let[h]=i.useState(()=>new e(r,o)),v=h.getOptimisticResult(o);if(l(i.useCallback(t=>{let e=s?()=>void 0:h.subscribe(n.V.batchCalls(t));return h.updateResult(),e},[h,s]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),i.useEffect(()=>{h.setOptions(o,{listeners:!1})},[o,h]),m(o,v,s))throw b(o,h,u);if(y({result:v,errorResetBoundary:u,useErrorBoundary:o.useErrorBoundary,query:h.getCurrentQuery()}))throw v.error;return o.notifyOnChangeProps?v:h.trackResult(v)}},11487:function(t,e,r){r.d(e,{a:function(){return u}});var s=r(89673),i=r(5042),n=r(91369);function u(t,e,r){let u=(0,s._v)(t,e,r);return(0,n.r)(u,i.z)}}}]);

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.