PageSourceSearch

https://samugiken.com/_next/static/chunks/9834-d5403968ed248b5c.js

js samugiken.com collected 2026-10-07 01:49:55 UTC 9,137 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9834],{66693:function(t,e,r){r.d(e,{z:function(){return l}});var s=r(90802),i=r(60121),n=r(14435),u=r(28523),a=r(86345),h=r(75243),o=r(4475),c=r(91978),l=class extends a.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,h.O)(),this.bindMethods(),this.setOptions(e)}#t;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#e;#h;#o;#c;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),d(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#s.removeObserver(this)}setOptions(t){let e=this.options,r=this.#s;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.TD)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#m(),this.#s.setOptions(this.options),e._defaulted&&!(0,o.VS)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&f(this.#s,r,this.options,e)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,o.TD)(this.options.enabled,this.#s)!==(0,o.TD)(e.enabled,this.#s)||(0,o.KC)(this.options.staleTime,this.#s)!==(0,o.KC)(e.staleTime,this.#s))&&this.#Q();let i=this.#T();s&&(this.#s!==r||(0,o.TD)(this.options.enabled,this.#s)!==(0,o.TD)(e.enabled,this.#s)||i!==this.#p)&&this.#g(i)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,o.VS)(this.getCurrentResult(),r)||(this.#n=r,this.#a=this.options,this.#u=this.#s.state),r}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),"promise"!==r||(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#s}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(t){this.#m();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(o.ZT)),e}#Q(){this.#b();let t=(0,o.KC)(this.options.staleTime,this.#s);if(i.m.isServer()||this.#n.isStale||!(0,o.PN)(t))return;let e=(0,o.Kp)(this.#n.dataUpdatedAt,t);this.#l=c.mr.setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#T(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#g(t){this.#v(),this.#p=t,!i.m.isServer()&&!1!==(0,o.TD)(this.options.enabled,this.#s)&&(0,o.PN)(this.#p)&&0!==this.#p&&(this.#d=c.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#y()},this.#p))}#R(){this.#Q(),this.#g(this.#T())}#b(){void 0!==this.#l&&(c.mr.clearTimeout(this.#l),this.#l=void 0)}#v(){void 0!==this.#d&&(c.mr.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let r;let s=this.#s,i=this.options,n=this.#n,a=this.#u,c=this.#a,l=t!==s?t.state:this.#i,{state:p}=t,R={...p},b=!1;if(e._optimisticResults){let r=this.hasListeners(),n=!r&&d(t,e),a=r&&f(t,s,e,i);(n||a)&&(R={...R,...(0,u.z)(p.data,t.options)}),"isRestoring"===e._optimisticResults&&(R.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:Q}=R;r=R.data;let T=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===Q){let t;n?.isPlaceholderData&&e.placeholderData===c?.placeholderData?(t=n.data,T=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#c?.state.data,this.#c):e.placeholderData,void 0!==t&&(Q="success",r=(0,o.oE)(n?.data,t,e),b=!0)}if(e.select&&void 0!==r&&!T){if(n&&r===a?.data&&e.select===this.#h)r=this.#o;else try{this.#h=e.select,r=e.select(r),r=(0,o.oE)(n?.data,r,e),this.#o=r,this.#e=null}catch(t){this.#e=t}}this.#e&&(v=this.#e,r=this.#o,m=Date.now(),Q="error");let g="fetching"===R.fetchStatus,O="pending"===Q,I="error"===Q,C=O&&g,S=void 0!==r,D={status:Q,fetchStatus:R.fetchStatus,isPending:O,isSuccess:"success"===Q,isError:I,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:R.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:R.dataUpdateCount>l.dataUpdateCount||R.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:I&&!S,isPaused:"paused"===R.fetchStatus,isPlaceholderData:b,isRefetchError:I&&S,isStale:y(t,e),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.TD)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==D.data,r="error"===D.status&&!e,i=t=>{r?t.reject(D.error):e&&t.resolve(D.data)},n=()=>{i(this.#r=D.promise=(0,h.O)())},u=this.#r;switch(u.status){case"pending":t.queryHash===s.queryHash&&i(u);break;case"fulfilled":(r||D.data!==u.value)&&n();break;case"rejected":r&&D.error===u.reason||n()}}return D}updateResult(){let t=this.#n,e=this.createResult(this.#s,this.options);this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#c=this.#s),(0,o.VS)(e,t)||(this.#n=e,this.#O({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(e=>this.#n[e]!==t[e]&&s.has(e))})()}))}#m(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#s)return;let e=this.#s;this.#s=t,this.#i=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#O(t){n.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function d(t,e){return!1!==(0,o.TD)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===(0,o.TD)(e.retryOnMount,t))||void 0!==t.state.data&&p(t,e,e.refetchOnMount)}function p(t,e,r){if(!1!==(0,o.TD)(e.enabled,t)&&"static"!==(0,o.KC)(e.staleTime,t)){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&y(t,e)}return!1}function f(t,e,r,s){return(t!==e||!1===(0,o.TD)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&y(t,r)}function y(t,e){return!1!==(0,o.TD)(e.enabled,t)&&t.isStaleByTime((0,o.KC)(e.staleTime,t))}},12882:function(t,e,r){let s;r.d(e,{r:function(){return Q}});var i=r(75271),n=r(14435),u=r(4475),a=r(60121),h=r(69947);r(52676);var o=i.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),c=()=>i.useContext(o),l=(t,e,r)=>{let s=r?.state.error&&"function"==typeof t.throwOnError?(0,u.L3)(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&!e.isReset()&&(t.retryOnMount=!1)},d=t=>{i.useEffect(()=>{t.clearReset()},[t])},p=({result:t,errorResetBoundary:e,throwOnError:r,query:s,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(i&&void 0===t.data||(0,u.L3)(r,[t.error,s])),f=i.createContext(!1),y=()=>i.useContext(f);f.Provider;var R=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},b=(t,e)=>t.isLoading&&t.isFetching&&!e,v=(t,e)=>t?.suspense&&e.isPending,m=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Q(t,e,r){let s=y(),o=c(),f=(0,h.NL)(r),Q=f.defaultQueryOptions(t);f.getDefaultOptions().queries?._experimental_beforeQuery?.(Q);let T=f.getQueryCache().get(Q.queryHash),g=!1!==t.subscribed;Q._optimisticResults=s?"isRestoring":g?"optimistic":void 0,R(Q),l(Q,o,T),d(o);let O=!f.getQueryCache().get(Q.queryHash),[I]=i.useState(()=>new e(f,Q)),C=I.getOptimisticResult(Q),S=!s&&g;if(i.useSyncExternalStore(i.useCallback(t=>{let e=S?I.subscribe(n.Vr.batchCalls(t)):u.ZT;return I.updateResult(),e},[I,S]),()=>I.getCurrentResult(),()=>I.getCurrentResult()),i.useEffect(()=>{I.setOptions(Q)},[Q,I]),v(Q,C))throw m(Q,I,o);if(p({result:C,errorResetBoundary:o,throwOnError:Q.throwOnError,query:T,suspense:Q.suspense}))throw C.error;if(f.getDefaultOptions().queries?._experimental_afterQuery?.(Q,C),Q.experimental_prefetchInRender&&!a.m.isServer()&&b(C,s)){let t=O?m(Q,I,o):T?.promise;t?.catch(u.ZT).finally(()=>{I.updateResult()})}return Q.notifyOnChangeProps?C:I.trackResult(C)}},69834:function(t,e,r){r.d(e,{a:function(){return n}});var s=r(66693),i=r(12882);function n(t,e){return(0,i.r)(t,s.z,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.