PageSourceSearch

https://plus.rtl.de/9368-0cdb319ad347659f.bundle.js

js rtl.de collected 2026-09-24 08:26:39 UTC 9,751 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[9368],{47966(e,t,r){r.d(t,{I:()=>g});var s=r(76046),i=r(98313),n=r(68457),u=r(86677),a=r(93912),c=r(81062),o=r(54284),h=r(28883),l=class extends a.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,c.T)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#t;#c;#o;#h;#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.#v(),this.#m(),this.#s.removeObserver(this)}setOptions(e){const t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.nU)(this.options.enabled,this.#s))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});const s=this.hasListeners();s&&f(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),!s||this.#s===r&&(0,o.nU)(this.options.enabled,this.#s)===(0,o.nU)(t.enabled,this.#s)&&(0,o.d2)(this.options.staleTime,this.#s)===(0,o.d2)(t.staleTime,this.#s)||this.#b();const i=this.#g();!s||this.#s===r&&(0,o.nU)(this.options.enabled,this.#s)===(0,o.nU)(t.enabled,this.#s)&&i===this.#p||this.#I(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return s=this,i=r,!(0,o.f8)(s.getCurrentResult(),i)&&(this.#n=r,this.#a=this.options,this.#u=this.#s.state),r;var s,i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(e){this.#Q();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.lQ)),t}#b(){this.#v();const e=(0,o.d2)(this.options.staleTime,this.#s);if(i.H.isServer()||this.#n.isStale||!(0,o.gn)(e))return;const t=(0,o.j3)(this.#n.dataUpdatedAt,e)+1;this.#l=h.zs.setTimeout(()=>{this.#n.isStale||this.updateResult()},t)}#g(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#I(e){this.#m(),this.#p=e,!i.H.isServer()&&!1!==(0,o.nU)(this.options.enabled,this.#s)&&(0,o.gn)(this.#p)&&0!==this.#p&&(this.#d=h.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.#y()},this.#p))}#R(){this.#b(),this.#I(this.#g())}#v(){void 0!==this.#l&&(h.zs.clearTimeout(this.#l),this.#l=void 0)}#m(){void 0!==this.#d&&(h.zs.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#s,s=this.options,i=this.#n,n=this.#u,a=this.#a,h=e!==r?e.state:this.#i,{state:l}=e;let p,R={...l},v=!1;if(t._optimisticResults){const i=this.hasListeners(),n=!i&&d(e,t),a=i&&f(e,r,t,s);(n||a)&&(R={...R,...(0,u.k)(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(R.fetchStatus="idle")}let{error:m,errorUpdatedAt:Q,status:b}=R;p=R.data;let g=!1;if(void 0!==t.placeholderData&&void 0===p&&"pending"===b){let e;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=i.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,void 0!==e&&(b="success",p=(0,o.pl)(i?.data,e,t),v=!0)}if(t.select&&void 0!==p&&!g)if(i&&p===n?.data&&t.select===this.#c)p=this.#o;else try{this.#c=t.select,p=t.select(p),p=(0,o.pl)(i?.data,p,t),this.#o=p,this.#t=null}catch(e){this.#t=e}this.#t&&(m=this.#t,p=this.#o,Q=Date.now(),b="error");const I="fetching"===R.fetchStatus,O="pending"===b,T="error"===b,S=O&&I,E=void 0!==p,U={status:b,fetchStatus:R.fetchStatus,isPending:O,isSuccess:"success"===b,isError:T,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:R.dataUpdatedAt,error:m,errorUpdatedAt:Q,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:R.dataUpdateCount>h.dataUpdateCount||R.errorUpdateCount>h.errorUpdateCount,isFetching:I,isRefetching:I&&!O,isLoadingError:T&&!E,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:T&&E,isStale:y(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==U.data,s="error"===U.status&&!t,i=e=>{s?e.reject(U.error):t&&e.resolve(U.data)},n=()=>{const e=this.#r=U.promise=(0,c.T)();i(e)},u=this.#r;switch(u.status){case"pending":e.queryHash===r.queryHash&&i(u);break;case"fulfilled":(s||U.data!==u.value)&&n();break;case"rejected":s&&U.error===u.reason||n()}}return U}updateResult(){const e=this.#n,t=this.createResult(this.#s,this.options);this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#h=this.#s),(0,o.f8)(t,e)||(this.#n=t,this.#O({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;const s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>{const r=t;return this.#n[r]!==e[r]&&s.has(r)})})()}))}#Q(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;const t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#O(e){n.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function d(e,t){return function(e,t){return!1!==(0,o.nU)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===(0,o.nU)(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&p(e,t,t.refetchOnMount)}function p(e,t,r){if(!1!==(0,o.nU)(t.enabled,e)&&"static"!==(0,o.d2)(t.staleTime,e)){const s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&y(e,t)}return!1}function f(e,t,r,s){return(e!==t||!1===(0,o.nU)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&y(e,r)}function y(e,t){return!1!==(0,o.nU)(t.enabled,e)&&e.isStaleByTime((0,o.d2)(t.staleTime,e))}var R=r(66751),v=r(45576);r(3495);var m=R.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Q=R.createContext(!1),b=(Q.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function g(e,t){return function(e,t,r){const s=R.useContext(Q),u=R.useContext(m),a=(0,v.jE)(r),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const h=a.getQueryCache().get(c.queryHash),l=!1!==e.subscribed;c._optimisticResults=s?"isRestoring":l?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),s=e.staleTime;e.staleTime="function"==typeof s?(...e)=>r(s(...e)):r(s),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(c),((e,t,r)=>{const s=r?.state.error&&"function"==typeof e.throwOnError?(0,o.GU)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))})(c,u,h),(e=>{R.useEffect(()=>{e.clearReset()},[e])})(u);const d=!a.getQueryCache().get(c.queryHash),[p]=R.useState(()=>new t(a,c)),f=p.getOptimisticResult(c),y=!s&&l;if(R.useSyncExternalStore(R.useCallback(e=>{const t=y?p.subscribe(n.jG.batchCalls(e)):o.lQ;return p.updateResult(),t},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),R.useEffect(()=>{p.setOptions(c)},[c,p]),((e,t)=>e?.suspense&&t.isPending)(c,f))throw b(c,p,u);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.GU)(r,[e.error,s])))({result:f,errorResetBoundary:u,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw f.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!i.H.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,s)){const e=d?b(c,p,u):h?.promise;e?.catch(o.lQ).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?f:p.trackResult(f)}(e,l,t)}},39279(e,t,r){var s=r(66751),i=r(17570);r.d(t,["B",0,({multiSources:e}={})=>{const t={element:null,set:null},r=e=>{t.element=e,t.set&&t.set.current&&t.set.current(e)};return{Source:({children:r})=>{const[n,u]=s.useState(null);if(s.useLayoutEffect(()=>{const r={current:u};let s;return t.set&&(s=t.set,!e&&t.set.current&&t.set.current(null)),t.set=r,void 0!==t.element&&u(t.element),()=>{r.current=null,t.set=null,s&&s.current&&(t.set=s,void 0!==t.element&&s.current(t.element))}},[]),!n)return null;const a="function"==typeof r?r(n):r;return i.createPortal(a,n)},Target:({as:e="div",...t})=>s.createElement(e,{ref:r,...t}
1),useTargetRef:()=>r}}])}}]);
2//# sourceMappingURL=sourcemaps/9368-0cdb319ad347659f.bundle.js.map

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.