PageSourceSearch

https://opc.fyun.cc/_next/static/chunks/1117-6a78c07f885dd995.js

js fyun.cc collected 2026-09-24 14:35:57 UTC 15,464 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1117],{21733:function(t,e,s){s.d(e,{A:function(){return h},z:function(){return o}});var r=s(45345),i=s(18238),n=s(11255),a=s(7989),h=class extends a.F{#t;#e;#s;#r;#i;#n;#a;constructor(t){super(),this.#a=!1,this.#n=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#s=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=c(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#n,...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=c(this.options);void 0!==t.data&&(this.setState(u(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(t,e){let s=(0,r.oE)(this.state.data,t,this.options);return this.#h({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#h({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,r.Nc)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,r.KC)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,r.Kp)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#s.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.#i&&(this.#a||this.#o()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#o(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(t,e){if("idle"!==this.state.fetchStatus&&this.#i?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let s=new AbortController,i=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},a=()=>{let t=(0,r.cG)(this.options,e),s=(()=>{let t={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(t),t})();return(this.#a=!1,this.options.persister)?this.options.persister(t,s,this):t(s)},h=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return i(t),t})();this.options.behavior?.onFetch(h,this),this.#e=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#h({type:"fetch",meta:h.fetchOptions?.meta}),this.#i=(0,n.Mz)({initialPromise:e?.initialPromise,fn:h.fetchFn,onCancel:t=>{t instanceof n.p8&&t.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(t,e)=>{this.#h({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let t=await this.#i.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#s.config.onSuccess?.(t,this),this.#s.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.p8){if(t.silent)return this.#i.promise;if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#h({type:"error",error:t}),this.#s.config.onError?.(t,this),this.#s.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#h(t){this.state=(e=>{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,...o(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...u(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?s:void 0,s;case"error":let r=t.error;
1return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),i.Vr.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:t})})}};function o(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function u(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c(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?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}},11713:function(t,e,s){let r;s.d(e,{a:function(){return E}});var i=s(87045),n=s(73252),a=s(18238),h=s(21733),o=s(24112),u=s(16803),c=s(45345),l=s(84554),d=class extends o.l{constructor(t,e){super(),this.options=e,this.#r=t,this.#u=null,this.#c=(0,u.O)(),this.bindMethods(),this.setOptions(e)}#r;#l=void 0;#d=void 0;#p=void 0;#f;#y;#c;#u;#v;#b;#m;#R;#S;#g;#C=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),p(this.#l,this.options)?this.#O():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#I(),this.#F(),this.#l.removeObserver(this)}setOptions(t){let e=this.options,s=this.#l;if(this.options=this.#r.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.Nc)(this.options.enabled,this.#l))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#l.setOptions(this.options),e._defaulted&&!(0,c.VS)(this.options,e)&&this.#r.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this});let r=this.hasListeners();r&&y(this.#l,s,this.options,e)&&this.#O(),this.updateResult(),r&&(this.#l!==s||(0,c.Nc)(this.options.enabled,this.#l)!==(0,c.Nc)(e.enabled,this.#l)||(0,c.KC)(this.options.staleTime,this.#l)!==(0,c.KC)(e.staleTime,this.#l))&&this.#w();let i=this.#U();r&&(this.#l!==s||(0,c.Nc)(this.options.enabled,this.#l)!==(0,c.Nc)(e.enabled,this.#l)||i!==this.#g)&&this.#E(i)}getOptimisticResult(t){let e=this.#r.getQueryCache().build(this.#r,t),s=this.createResult(e,t);return(0,c.VS)(this.getCurrentResult(),s)||(this.#p=s,this.#y=this.options,this.#f=this.#l.state),s}getCurrentResult(){return this.#p}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),"promise"!==s||(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#c.status||this.#c.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){this.#C.add(t)}getCurrentQuery(){return this.#l}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#r.defaultQueryOptions(t),s=this.#r.getQueryCache().build(this.#r,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#O({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#p))}#O(t){this.#T();let e=this.#l.fetch(this.options,t);return t?.throwOnError||(e=e.catch(c.ZT)),e}#w(){this.#I();let t=(0,c.KC)(this.options.staleTime,this.#l);if(n.m.isServer()||this.#p.isStale||!(0,c.PN)(t))return;let e=(0,c.Kp)(this.#p.dataUpdatedAt,t);this.#R=l.mr.setTimeout(()=>{this.#p.isStale||this.updateResult()},e+1)}#U(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#E(t){this.#F(),this.#g=t,!n.m.isServer()&&!1!==(0,c.Nc)(this.options.enabled,this.#l)&&(0,c.PN)(this.#g)&&0!==this.#g&&(this.#S=l.mr.setInterval(()=>
1{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#O()},this.#g))}#Q(){this.#w(),this.#E(this.#U())}#I(){void 0!==this.#R&&(l.mr.clearTimeout(this.#R),this.#R=void 0)}#F(){void 0!==this.#S&&(l.mr.clearInterval(this.#S),this.#S=void 0)}createResult(t,e){let s;let r=this.#l,i=this.options,n=this.#p,a=this.#f,o=this.#y,l=t!==r?t.state:this.#d,{state:d}=t,f={...d},b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&p(t,e),a=s&&y(t,r,e,i);(n||a)&&(f={...f,...(0,h.z)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:R,status:S}=f;s=f.data;let g=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===S){let t;n?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(t=n.data,g=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#m?.state.data,this.#m):e.placeholderData,void 0!==t&&(S="success",s=(0,c.oE)(n?.data,t,e),b=!0)}if(e.select&&void 0!==s&&!g){if(n&&s===a?.data&&e.select===this.#v)s=this.#b;else try{this.#v=e.select,s=e.select(s),s=(0,c.oE)(n?.data,s,e),this.#b=s,this.#u=null}catch(t){this.#u=t}}this.#u&&(m=this.#u,s=this.#b,R=Date.now(),S="error");let C="fetching"===f.fetchStatus,O="pending"===S,Q="error"===S,I=O&&C,F=void 0!==s,T={status:S,fetchStatus:f.fetchStatus,isPending:O,isSuccess:"success"===S,isError:Q,isInitialLoading:I,isLoading:I,data:s,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:R,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:C,isRefetching:C&&!O,isLoadingError:Q&&!F,isPaused:"paused"===f.fetchStatus,isPlaceholderData:b,isRefetchError:Q&&F,isStale:v(t,e),refetch:this.refetch,promise:this.#c,isEnabled:!1!==(0,c.Nc)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==T.data,s="error"===T.status&&!e,i=t=>{s?t.reject(T.error):e&&t.resolve(T.data)},n=()=>{i(this.#c=T.promise=(0,u.O)())},a=this.#c;switch(a.status){case"pending":t.queryHash===r.queryHash&&i(a);break;case"fulfilled":(s||T.data!==a.value)&&n();break;case"rejected":s&&T.error===a.reason||n()}}return T}updateResult(){let t=this.#p,e=this.createResult(this.#l,this.options);this.#f=this.#l.state,this.#y=this.options,void 0!==this.#f.data&&(this.#m=this.#l),(0,c.VS)(e,t)||(this.#p=e,this.#D({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#C.size)return!0;let r=new Set(s??this.#C);return this.options.throwOnError&&r.add("error"),Object.keys(this.#p).some(e=>this.#p[e]!==t[e]&&r.has(e))})()}))}#T(){let t=this.#r.getQueryCache().build(this.#r,this.options);if(t===this.#l)return;let e=this.#l;this.#l=t,this.#d=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#D(t){a.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#p)}),this.#r.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function p(t,e){return!1!==(0,c.Nc)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&f(t,e,e.refetchOnMount)}function f(t,e,s){if(!1!==(0,c.Nc)(e.enabled,t)&&"static"!==(0,c.KC)(e.staleTime,t)){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&v(t,e)}return!1}function y(t,e,s,r){return(t!==e||!1===(0,c.Nc)(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&v(t,s)}function v(t,e){return!1!==(0,c.Nc)(e.enabled,t)&&t.isStaleByTime((0,c.KC)(e.staleTime,t))}var b=s(2265),m=s(29827);s(57437);var R=b.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),S=()=>b.useContext(R),g=(t,e,s)=>{let r=(null==s?void 0:s.state.error)&&"function"==typeof t.throwOnError?(0,c.L3)(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&!e.isReset()&&(t.retryOnMount=!1)},C=t=>{b.useEffect(()=>{t.clearReset()},[t])},O=t=>{let{result:e,errorResetBoundary:s,throwOnError:r,query:i,suspense:n}=t;return e.isError&&!s.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(0,c.L3)(r,[e.error,i]))},Q=b.createContext(!1),I=()=>b.useContext(Q);Q.Provider;var F=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),s=t.staleTime;t.staleTime="function"==typeof s?(...t)=>e(s(...t)):e(s),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},T=(t,e)=>t.isLoading&&t.isFetching&&!e,w=(t,e)=>t?.suspense&&e.isPending,U=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function E(t,e){return function(t,e,s){var r,i,h,o;let u=I(),l=S(),d=(0,m.NL)(s),p=d.defaultQueryOptions(t);null===(i=d.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,p);let f=d.getQueryCache().get(p.queryHash);p._optimisticResults=u?"isRestoring":"optimistic",F(p),g(p,l,f),C(l);let y=!d.getQueryCache().get(p.queryHash),[v]=b.useState(()=>new e(d,p)),R=v.getOptimisticResult(p),Q=!u&&!1!==t.subscribed;if(b.useSyncExternalStore(b.useCallback(t=>{let e=Q?v.subscribe(a.Vr.batchCalls(t)):c.ZT;return v.updateResult(),e}
1,[v,Q]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),b.useEffect(()=>{v.setOptions(p)},[p,v]),w(p,R))throw U(p,v,l);if(O({result:R,errorResetBoundary:l,throwOnError:p.throwOnError,query:f,suspense:p.suspense}))throw R.error;if(null===(o=d.getDefaultOptions().queries)||void 0===o||null===(h=o._experimental_afterQuery)||void 0===h||h.call(o,p,R),p.experimental_prefetchInRender&&!n.m.isServer()&&T(R,u)){let t=y?U(p,v,l):null==f?void 0:f.promise;null==t||t.catch(c.ZT).finally(()=>{v.updateResult()})}return p.notifyOnChangeProps?R:v.trackResult(R)}(t,d,e)}}}]);

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.