PageSourceSearch

https://raamatuvahetus.ee/assets/QueryClientProvider-Crbwa1qo.js

js raamatuvahetus.ee collected 2026-09-24 09:59:13 UTC 5,120 bytes, 1 lines download raw bytes

1var U=e=>{throw TypeError(e)};var D=(e,t,s)=>t.has(e)||U("Cannot "+s);var a=(e,t,s)=>(D(e,t,"read from private field"),s?s.call(e):t.get(e)),v=(e,t,s)=>t.has(e)?U("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),o=(e,t,s,r)=>(D(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);import{c as L,d as K,f as W,g as X,t as q}from"./AuthContext-zoQRqYYR.js";import{r as j,j as Y}from"./chunk-QMGIS6GS-BqmtbF44.js";var G=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y,f,E,z,_=(z=class extends G{constructor(){super();v(this,y);v(this,f);v(this,E);o(this,E,t=>{if(!L&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){a(this,f)||this.setEventListener(a(this,E))}onUnsubscribe(){var t;this.hasListeners()||((t=a(this,f))==null||t.call(this),o(this,f,void 0))}setEventListener(t){var s;o(this,E,t),(s=a(this,f))==null||s.call(this),o(this,f,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){a(this,y)!==t&&(o(this,y,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof a(this,y)=="boolean"?a(this,y):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},y=new WeakMap,f=new WeakMap,E=new WeakMap,z),$=new _;function g(){let e,t;const s=new Promise((n,l)=>{e=n,t=l});s.status="pending",s.catch(()=>{});function r(n){Object.assign(s,n),delete s.resolve,delete s.reject}return s.resolve=n=>{r({status:"fulfilled",value:n}),e(n)},s.reject=n=>{r({status:"rejected",reason:n}),t(n)},s}var k=K;function ee(){let e=[],t=0,s=i=>{i()},r=i=>{i()},n=k;const l=i=>{t?e.push(i):n(()=>{s(i)})},R=()=>{const i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(d=>{s(d)})})})};return{batch:i=>{let d;t++;try{d=i()}finally{t--,t||R()}return d},batchCalls:i=>(...d)=>{l(()=>{i(...d)})},schedule:l,setNotifyFunction:i=>{s=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{n=i}}}var oe=ee(),w,b,C,V,te=(V=class extends G{constructor(){super();v(this,w,!0);v(this,b);v(this,C);o(this,C,t=>{if(!L&&window.addEventListener){const s=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){a(this,b)||this.setEventListener(a(this,C))}onUnsubscribe(){var t;this.hasListeners()||((t=a(this,b))==null||t.call(this),o(this,b,void 0))}setEventListener(t){var s;o(this,C,t),(s=a(this,b))==null||s.call(this),o(this,b,t(this.setOnline.bind(this)))}setOnline(t){a(this,w)!==t&&(o(this,w,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return a(this,w)}},w=new WeakMap,b=new WeakMap,C=new WeakMap,V),I=new te;function se(e){return Math.min(1e3*2**e,3e4)}function re(e){return(e!=null?e:"online")==="online"?I.isOnline():!0}var ne=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function le(e){let t=!1,s=0,r;const n=g(),l=()=>n.status!=="pending",R=u=>{var h;if(!l()){const c=new ne(u);S(c),(h=e.onCancel)==null||h.call(e,c)}},i=()=>{t=!0},d=()=>{t=!1},T=()=>$.isFocused()&&(e.networkMode==="always"||I.isOnline())&&e.canRun(),P=()=>re(e.networkMode)&&e.canRun(),A=u=>{l()||(r==null||r(),n.resolve(u))},S=u=>{l()||(r==null||r(),n.reject(u))},M=()=>new Promise(u=>{var h;r=c=>{(l()||T())&&u(c)},(h=e.onPause)==null||h.call(e)}).then(()=>{var u;r=void 0,l()||(u=e.onContinue)==null||u.call(e)}),x=()=>{if(l())return;let u;const h=s===0?e.initialPromise:void 0;try{u=h!=null?h:e.fn()}catch(c){u=Promise.reject(c)}Promise.resolve(u).then(A).catch(c=>{var O,Q,N;if(l())return;const p=(O=e.retry)!=null?O:L?0:3,F=(Q=e.retryDelay)!=null?Q:se,H=typeof F=="function"?F(s,c):F,J=p===!0||typeof p=="number"&&s<p||typeof p=="function"&&p(s,c);if(t||!J){S(c);return}s++,(N=e.onFail)==null||N.call(e,s,c),W(H).then(()=>T()?void 0:M()).then(()=>{t?S(c):x()})})};return{promise:n,status:()=>n.status,cancel:R,continue:()=>
1(r==null||r(),n),cancelRetry:i,continueRetry:d,canStart:P,start:()=>(P()?x():M().then(x),n)}}var m,B,ce=(B=class{constructor(){v(this,m)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),X(this.gcTime)&&o(this,m,q.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:L?1/0:5*60*1e3)}clearGcTimeout(){a(this,m)&&(q.clearTimeout(a(this,m)),o(this,m,void 0))}},m=new WeakMap,B),Z=j.createContext(void 0),he=e=>{const t=j.useContext(Z);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},de=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Y.jsx(Z.Provider,{value:e,children:t}));export{ne as C,de as Q,ce as R,G as S,re as a,le as c,$ as f,oe as n,I as o,g as p,he as u};

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.