PageSourceSearch

https://www.bandyplay.se/vendor.swr.6dcc6566f02919031d1c.js

js bandyplay.se collected 2026-09-25 06:45:55 UTC 11,952 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ff689b71-07a8-4e0d-8b3b-4a210e827280",e._sentryDebugIdIdentifier="sentry-dbid-ff689b71-07a8-4e0d-8b3b-4a210e827280")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"d90ac16e0aec0a5eeda665985099a5735ab0bd5b"}}catch(e){}}(),(self.webpackChunkstaylive_partnerplatform=self.webpackChunkstaylive_partnerplatform||[]).push([[8747],{19367:(e,t,n)=>{n.d(t,{BE:()=>K,Es:()=>V,Ht:()=>G,Tn:()=>d,X3:()=>k,ZH:()=>u,aw:()=>Y,b0:()=>l,bZ:()=>a,bu:()=>F,dO:()=>O,lK:()=>D,lg:()=>I,mF:()=>P,mf:()=>S,qm:()=>j,qv:()=>c,r9:()=>y,rL:()=>f,sb:()=>W,uv:()=>X});var r=n(96540);const a=new WeakMap,i={},o={},s=()=>{},u=s(),c=Object,l=e=>e===u,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),b="undefined",g=typeof window!=b,E=typeof document!=b,y=(e,t)=>{const n=a.get(e);return[()=>!l(t)&&e.get(t)||i,r=>{if(!l(t)){const a=e.get(t);t in o||(o[t]=a),n[5](t,f(a,r),a||i)}},n[6],()=>!l(t)&&t in o?o[t]:!l(t)&&e.get(t)||i]},p=new WeakMap;let h=0;const _=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(c(e)!==e||r||n==RegExp)a=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=p.get(e),a)return a;if(a=++h+"~",p.set(e,a),n==Array){for(a="@",i=0;i<e.length;i++)a+=_(e[i])+",";p.set(e,a)}if(n==c){a="#";const t=c.keys(e).sort();for(;!l(i=t.pop());)l(e[i])||(a+=i+":"+_(e[i])+",");p.set(e,a)}}return a};let w=!0;const[v,m]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],T={isOnline:()=>w,isVisible:()=>{const e=E&&document.visibilityState;return l(e)||"hidden"!==e}},R={initFocus:e=>(E&&document.addEventListener("visibilitychange",e),v("focus",e),()=>{E&&document.removeEventListener("visibilitychange",e),m("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return v("online",t),v("offline",n),()=>{m("online",t),m("offline",n)}}},O=!r.useId,k=!g||"Deno"in window,S=e=>g&&typeof window.requestAnimationFrame!=b?window.requestAnimationFrame(e):setTimeout(e,1),V=k?r.useEffect:r.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,C=!k&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),D=e=>{if(d(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_(e):"",t]};let A=0;const I=()=>++A,N=2;var F={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:N,RECONNECT_EVENT:1};async function P(...e){const[t,n,r,i]=e,o=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const c=o.rollbackOnError;let b=o.optimisticData;const g=!1!==o.revalidate,E=o.throwOnError;if(d(n)){const e=n,r=[],a=t.keys();for(let n=a.next();!n.done;n=a.next()){const a=n.value;!/^\$(inf|sub)\$/.test(a)&&e(t.get(a)._k)&&r.push(a)}return Promise.all(r.map(p))}return p(n);async function p(n){const[i]=D(n);if(!i)return;const[o,f]=y(t,i),[p,h,_]=a.get(t),w=p[i],v=()=>g&&(delete _[i],w&&w[0])?w[0](N).then((()=>o().data)):o().data;if(e.length<3)return v();let m,T=r;const R=I();h[i]=[R,0];const O=!l(b),k=o(),S=k.data,V=k._c,L=l(V)?S:V;if(O&&(b=d(b)?b(L):b,f({data:b,_c:L})),d(T))try{T=T(L)}catch(e){m=e}if(T&&d(T.then)){if(T=await T.catch((e=>{m=e}
1)),R!==h[i][0]){if(m)throw m;return T}m&&O&&(e=>"function"==typeof c?c(e):!1!==c)(m)&&(s=!0,T=L,f({data:T,_c:u}))}s&&(m||(d(s)&&(T=s(T,L)),f({data:T,_c:u}))),h[i][1]=I();const C=await v();if(f({_c:u}),!m)return s?C:T;if(E)throw m}}const M=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},x=(e,t)=>{if(!a.has(e)){const n=f(R,t),r={},i=P.bind(u,e);let o=s;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const a=c[t];if(a)for(const e of a)e(n,r)},b=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!k)){const t=n.initFocus(setTimeout.bind(u,M.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,M.bind(u,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return b(),[e,i,b,o]}return[e,a.get(e)[4]]},[H,q]=x(new Map),W=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!l(i)&&o>i||setTimeout(r,s,a)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:(e,t)=>_(e)==_(t),isPaused:()=>!1,cache:H,mutate:q,fallback:{}},T),Z=(e,t)=>{const n=f(e,t);if(t){const{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=f(a,o))}return n},U=(0,r.createContext)({}),K=e=>{const{value:t}=e,n=(0,r.useContext)(U),a=d(t),i=(0,r.useMemo)((()=>a?t(n):t),[a,n,t]),o=(0,r.useMemo)((()=>a?i:Z(n,i)),[a,n,i]),s=i&&i.provider,c=(0,r.useRef)(u);s&&!c.current&&(c.current=x(s(o.cache||H),i));const l=c.current;return l&&(o.cache=l[0],o.mutate=l[1]),V((()=>{if(l)return l[2]&&l[2](),l[3]}),[]),(0,r.createElement)(U.Provider,f(e,{value:o}))},z=g&&window.__SWR_DEVTOOLS_USE__,$=z?window.__SWR_DEVTOOLS_USE__:[],B=e=>d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],X=(e,t)=>{const[n,r]=D(e),[,,,i]=a.get(H);if(i[n])return i[n];const o=t(r);return i[n]=o,o},J=$.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=D(t),[,,,i]=a.get(H),o=i[r];return o?(delete i[r],o):n(...e)}),r))),j=e=>function(...t){const n=f(W,(0,r.useContext)(U)),[a,i,o]=B(t),s=Z(n,o);let u=e;const{use:c}=s,l=(c||[]).concat(J);for(let e=l.length;e--;)u=l[e](u);return u(a,i||s.fetcher||null,s)}
1,Y=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G=(e,t)=>(...n)=>{const[r,a,i]=B(n),o=(i.use||[]).concat(t);return e(r,a,{...i,use:o})};z&&(window.__SWR_DEVTOOLS_REACT__=r)},57626:(e,t,n)=>{n.d(t,{Ay:()=>u,BE:()=>s,uv:()=>i.uv});var r=n(96540),a=n(19888),i=n(19367);const o={dedupe:!0},s=i.qv.defineProperty(i.BE,"defaultValue",{value:i.sb}),u=(0,i.qm)(((e,t,n)=>{const{cache:s,compare:u,suspense:c,fallbackData:l,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:b,refreshWhenHidden:g,refreshWhenOffline:E,keepPreviousData:y}=n,[p,h,_]=i.bZ.get(s),[w,v]=(0,i.lK)(e),m=(0,r.useRef)(!1),T=(0,r.useRef)(!1),R=(0,r.useRef)(w),O=(0,r.useRef)(t),k=(0,r.useRef)(n),S=()=>k.current,V=()=>S().isVisible()&&S().isOnline(),[L,C,D,A]=(0,i.r9)(s,w),I=(0,r.useRef)({}).current,N=(0,i.b0)(l)?n.fallback[w]:l,F=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!u(e[r],t[r])){if(!(0,i.b0)(e[r]))return!1;if(!u(K,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)((()=>{const e=!!w&&!!t&&((0,i.b0)(d)?!S().isPaused()&&!c&&(!!(0,i.b0)(f)||f):d),n=t=>{const n=(0,i.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=L(),a=A(),o=n(r),s=r===a?o:n(a);let u=o;return[()=>{const e=n(L());return F(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]}),[s,w]),M=(0,a.useSyncExternalStore)((0,r.useCallback)((e=>D(w,((t,n)=>{F(n,t)||e()}))),[s,w]),P[0],P[1]),x=!m.current,H=p[w]&&p[w].length>0,q=M.data,W=(0,i.b0)(q)?N:q,Z=M.error,U=(0,r.useRef)(W),K=y?(0,i.b0)(q)?U.current:q:W,z=!(H&&!(0,i.b0)(Z))&&(x&&!(0,i.b0)(d)?d:!S().isPaused()&&(c?!(0,i.b0)(W)&&f:(0,i.b0)(W)||f)),$=!!(w&&t&&x&&z),B=(0,i.b0)(M.isValidating)?$:M.isValidating,X=(0,i.b0)(M.isLoading)?$:M.isLoading,J=(0,r.useCallback)((async e=>{const t=O.current;if(!w||!t||T.current||S().isPaused())return!1;let r,a,o=!0;const s=e||{},c=!_[w]||!s.dedupe,l=()=>i.dO?!T.current&&w===R.current&&m.current:w===R.current,d={isValidating:!1,isLoading:!1},f=()=>{C(d)},b=()=>{const e=_[w];e&&e[1]===a&&delete _[w]},g={isValidating:!0};(0,i.b0)(L().data)&&(g.isLoading=!0);try{if(c&&(C(g),n.loadingTimeout&&(0,i.b0)(L().data)&&setTimeout((()=>{o&&l()&&S().onLoadingSlow(w,n)}),n.loadingTimeout),_[w]=[t(v),(0,i.lg)()]),[r,a]=_[w],r=await r,c&&setTimeout(b,n.dedupingInterval),!_[w]||_[w][1]!==a)return c&&l()&&S().onDiscarded(w),!1;d.error=i.ZH;const e=h[w];if(!(0,i.b0)(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return f(),c&&l()&&S().onDiscarded(w),!1;const s=L().data;d.data=u(s,r)?s:r,c&&l()&&S().onSuccess(r,w,n)}catch(e){b();const t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&l()&&(t.onError(e,w,t),(!0===n||(0,i.Tn)(n)&&n(e))&&V()&&t.onErrorRetry(e,w,t,(e=>{const t=p[w];t&&t[0]&&t[0](i.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0}),[w,s]),j=(0,r.useCallback)(((...e)=>(0,i.mF)(s,R.current,...e)),[]);if((0,i.Es)((()=>{O.current=t,k.current=n,(0,i.b0)(q)||(U.current=q)})),(0,i.Es)((()=>{if(!w)return;const e=J.bind(i.ZH,o);let t=0;const n=(0,i.aw)(w,p,((n,r={})=>{if(n==i.bu.FOCUS_EVENT){const n=Date.now();S().revalidateOnFocus&&n>t&&V()&&(t=n+S().focusThrottleInterval,e())}else if(n==i.bu.RECONNECT_EVENT)S().revalidateOnReconnect&&V()&&e();else{if(n==i.bu.MUTATE_EVENT)return J();if(n==i.bu.ERROR_REVALIDATE_EVENT)return J(r)}}));return T.current=!1,R.current=w,m.current=!0,C({_k:v}),z&&((0,i.b0)(W)||i.X3?e():(0,i.mf)(e)),()=>{T.current=!0,n()}}),[w]),(0,i.Es)((()=>{let e;function t(){const t=(0,i.Tn)(b)?b(L().data):b;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L().error||!g&&!S().isVisible()||!E&&!S().isOnline()?t():J(o).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[b,g,E,w]),(0,r.useDebugValue)(K),c&&(0,i.b0)(W)&&w){if(!i.dO&&i.X3)throw new Error("Fallback data is required when using suspense in SSR.");throw O.current=t,k.current=n,T.current=!1,(0,i.b0)(Z)?J(o):Z}return{mutate:j,get data(){return I.data=!0,K},get error(){return I.error=!0,Z},get isValidating(){return I.isValidating=!0,B},get isLoading(){return I.isLoading=!0,X}}}))},45221:(e,t,n)=>{n.d(t,{Ay:()=>u});var r=n(96540),a=n(57626),i=n(19367),o=n(19888);const s=Promise.resolve(),u=(0,i.Ht)(a.Ay,(e=>(t,n,a)=>{const u=(0,r.useRef)(!1),{cache:c,initialSize:l=1,revalidateAll:d=!1,persistSize:f=!1,revalidateFirstPage:b=!0,revalidateOnMount:g=!1,parallel:E=!1}=a;let y;try{y=(e=>(0,i.lK)(e?e(0,null):null)[0])(t),y&&(y="$inf$"+y)}catch(e){}const[p,h,_]=(0,i.r9)(c,y),w=(0,r.useCallback)((()=>(0,i.b0)(p()._l)?l:p()._l),[c,y,l]);(0,o.useSyncExternalStore)((0,r.useCallback)((e=>y?_(y,(()=>{e()})):()=>{}),[c,y]),w,w);const v=(0,r.useCallback)((()=>{const e=p()._l;return(0,i.b0)(e)?l:e}),[y,l]),m=(0,r.useRef)(v());(0,i.Es)((()=>{u.current?y&&h({_l:f?m.current:v()}):u.current=!0}),[y,c]);const T=g&&!u.current,R=e(y,(async e=>{const r=p()._i,o=[],s=v(),[u]=(0,i.r9)(c,e),l=u().data,f=[];let g=null;for(let e=0;e<s;++e){const[s,u]=(0,i.lK)(t(e,E?null:g));if(!s)break;const[y,p]=(0,i.r9)(c,s);let h=y().data;const _=d||r||(0,i.b0)(h)||b&&!e&&!(0,i.b0)(l)||T||l&&!(0,i.b0)(l[e])&&!a.compare(l[e],h);if(n&&_){const t=async()=>{h=await n(u),p({data:h,_k:u}),o[e]=h};E?f.push(t):await t()}else o[e]=h;E||(g=h)}return E&&await Promise.all(f.map((e=>e()))),h({_i:i.ZH}),o}),a),O=(0,r.useCallback)((function(e,t){const n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return y?(r&&((0,i.b0)(e)?h({_i:!0}):h({_i:!1})),arguments.length?R.mutate(e,{...n,revalidate:r}):R.mutate()):s}),[y,c]),k=(0,r.useCallback)((e=>{if(!y)return s;const[,n]=(0,i.r9)(c,y);let r;if((0,i.Tn)(e)?r=e(v()):"number"==typeof e&&(r=e),"number"!=typeof r)return s;n({_l:r}),m.current=r;const a=[],[o]=(0,i.r9)(c,y);let u=null;for(let e=0;e<r;++e){const[n]=(0,i.lK)(t(e,u)),[r]=(0,i.r9)(c,n),s=n?r().data:i.ZH;if((0,i.b0)(s))return O(o().data);a.push(s),u=s}return O(a)}),[y,c,O,v]);return{size:v(),setSize:k,mutate:O,get data(){return R.data},get error(){return R.error},get isValidating(){return R.isValidating},get isLoading(){return R.isLoading}}}))}}]);

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.