PageSourceSearch

https://assets.arcraiders.com/_next/static/chunks/644-2504e2a21d336b04.js

js arcraiders.com collected 2026-09-25 19:09:43 UTC 7,320 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[644],{1460:(e,t,a)=>{a.d(t,{Dp:()=>o,XH:()=>i,ij:()=>r,t9:()=>n,zV:()=>s});let r=["europe","north-america","brazil","east-asia","oceania"],n="europe",i={europe:"Europe","north-america":"North America",brazil:"South America","east-asia":"Asia",oceania:"Oceania"},o=e=>"string"==typeof e&&r.includes(e),s=(e,t)=>e.map(e=>{let a=e.regionTimestamps?.[t];return a?{...e,startTimestamp:a[0],endTimestamp:a[1]}:e})},6413:(e,t,a)=>{a.d(t,{ConditionNotificationsProvider:()=>T,Q:()=>v});var r=a(45264),n=a(94556),i=a(45292),o=a(11320);let s=e=>`mc�${e.conditionName}\x1f${e.mapDisplayName}\x1f${e.startTimestamp}`,l=(e,t)=>e.replace(/\{(\w+)\}/g,(e,a)=>t[a]??`{${a}}`),m=new Map,c=10*i.kg,u=({entry:e,labels:t,locale:a,registration:r,onFired:n})=>{let i=s(e);if(m.has(i))return;let u=e.startTimestamp,d=setTimeout(()=>{let s;if(m.delete(i),e.endTimestamp-e.startTimestamp>c&&Date.now()>e.endTimestamp-c)return void n?.(e);let u=[];for(let[t,a]of m)a.entry.conditionName===e.conditionName&&a.entry.startTimestamp===e.startTimestamp&&(u.push(a),clearTimeout(a.id),m.delete(t));let d=[e.mapDisplayName,...u.map(e=>e.entry.mapDisplayName)].join(", "),p={condition:e.conditionName,map:d},f=l(t.title,p),g=l(t.body,p),h=(s=a?`/${a}`:"",`${s}/map-conditions/${(0,o.Y)(e.conditionName)}`),N=`mc�${e.conditionName}\x1f${e.startTimestamp}`;for(let t of(r.showNotification(f,{body:g,tag:N,icon:`/icons/map-conditions/${(0,o.Y)(e.conditionName)}.svg`,timestamp:e.startTimestamp,navigate:h,data:{url:h}}).catch(()=>{}),n?.(e),u))n?.(t.entry)},u-Date.now());m.set(i,{id:d,fireAt:u,entry:e})},d=e=>{let t=m.get(e);t&&(clearTimeout(t.id),m.delete(e))},p=({subs:e,labels:t,locale:a,registration:r,onFired:n})=>{let i=new Map;for(let t of e)i.set(s(t),t);let o=new Set(m.keys());for(let e of o)i.has(e)||d(e);for(let[e,s]of i)o.has(e)||u({entry:s,labels:t,locale:a,registration:r,onFired:n})};var f=a(34317);let g=e=>`map-conditions-notify:${e}`,h=30*i.kg,N=e=>{try{let t=window.localStorage.getItem(g(e));if(!t)return[];let a=JSON.parse(t);if(!Array.isArray(a))return[];let r=Date.now(),n=[],i=new Set;for(let e of a){if(!e||"string"!=typeof e.conditionName||"string"!=typeof e.mapDisplayName||"number"!=typeof e.startTimestamp||"number"!=typeof e.endTimestamp||e.endTimestamp<r)continue;let t=s(e);i.has(t)||(i.add(t),n.push({conditionName:e.conditionName,mapDisplayName:e.mapDisplayName,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp}))}return n}catch{return[]}},w=(e,t)=>{window.localStorage.setItem(g(e),JSON.stringify(t))},y=(0,n.createContext)(null),T=({labels:e,locale:t,children:a})=>{let i=(({labels:e,locale:t})=>{let{region:a}=(0,f.useServerRegion)(),[r,i]=(0,n.useState)(null),[o,l]=(0,n.use
1State)("unsupported"),[m,c]=(0,n.useState)(null),[u,d]=(0,n.useState)([]),y=(0,n.useRef)(u);y.current=u;let T=(0,n.useRef)(a);T.current=a;let v=(0,n.useRef)(e);v.current=e;let S=(0,n.useRef)(t);S.current=t;let $=(0,n.useRef)(m);$.current=m,(0,n.useEffect)(()=>{let e="serviceWorker"in navigator&&"Notification"in window;if(i(e),!e)return;l(Notification.permission);let t=N(a);d(t),w(a,t)},[a]),(0,n.useEffect)(()=>{if(!r)return;let e=!1;return navigator.serviceWorker.register("/notifications-sw.js",{scope:"/"}).then(t=>{e||c(t)}).catch(()=>{e||i(!1)}),()=>{e=!0}},[r]),(0,n.useEffect)(()=>{if(!r)return;let e=e=>{e.key===g(a)&&d(N(a))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[r,a]),(0,n.useEffect)(()=>{if(!r)return;let e=null,t=()=>{e&&l("prompt"===e.state?"default":e.state)};return navigator.permissions?.query({name:"notifications"}).then(a=>{e=a,a.addEventListener("change",t)}).catch(()=>{}),()=>{e?.removeEventListener("change",t)}},[r]);let D=(0,n.useCallback)(e=>{let t=s(e);d(e=>{if(!e.some(e=>s(e)===t))return e;let a=e.filter(e=>s(e)!==t);return w(T.current,a),a})},[]);(0,n.useEffect)(()=>{r&&m&&"granted"===o&&p({subs:u,labels:e,locale:t,registration:m,onFired:D})},[r,m,o,u,e,t,D]),(0,n.useEffect)(()=>{if(!r||"granted"!==o)return;let e=window.setInterval(()=>{let e=$.current;if(!e)return;let t=N(T.current);if(t.length!==y.current.length){d(t),w(T.current,t);return}p({subs:y.current,labels:v.current,locale:S.current,registration:e,onFired:D})},h);return()=>window.clearInterval(e)},[r,o,D]);let E=(0,n.useCallback)(e=>{let t=s(e);return u.some(e=>s(e)===t)},[u]),k=(0,n.useCallback)(async e=>{if(!r)return;let t=s(e);if(u.some(e=>s(e)===t))return void d(e=>{let a=e.filter(e=>s(e)!==t);return w(T.current,a),a});let a=o;"default"===a&&l(a=await Notification.requestPermission()),"granted"===a&&d(t=>{let a=[...t,{conditionName:e.conditionName,mapDisplayName:e.mapDisplayName,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp}];return w(T.current,a),a})},[r,o,u]),L=(0,n.useCallback)(async(e,t)=>{if(!r||0===e.length)return;if(!t){let t=new Set(e.map(s));d(e=>{let a=e.filter(e=>!t.has(s(e)));return a.length===e.length?e:(w(T.current,a),a)});return}let a=o;"default"===a&&l(a=await Notification.requestPermission()),"granted"===a&&d(t=>{let a=new Set(t.map(s)),r=e.filter(e=>!a.has(s(e)));if(0===r.length)return t;let n=[...t,...r.map(e=>({conditionName:e.conditionName,mapDisplayName:e.mapDisplayName,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp}))];return w(T.current,n),n})},[r,o]);return{supported:r,permission:o,isSubscribed:E,toggle:k,setSubscriptions:L}})({labels:e,locale:t});return(0,r.jsx)(y.Provider,{value:i,children:a})},v=()=>(0,n.useContext)(y)},11320:(e,t,a)=>{a.d(t,{Y:()=>r});let r=e=>e.normalize("NFKD").toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")},14776:(e,t,a)=>{a.d(t,{N_:()=>s,a8:()=>m,rd:()=>c});var r=a(89533),n=a(12364),i=a(21851);let o=(0,n.A)({locales:i.O.map(e=>e.code),defaultLocale:i.g,localePrefix:{mode:"as-needed"}}),{Link:s,redirect:l,usePathname:m,useRouter:c,getPathname:u}=(0,r.A)(o)},21851:(e,t,a)=>{a.d(t,{O:()=>r,g:()=>n});let r=[{code:"en",name:"English",nameLocalized:"English"},{code:"de",name:"German",nameLocalized:"Deutsch"},{code:"fr",name:"French",nameLocalized:"Fran\xe7ais"},{code:"es",name:"Spanish",nameLocalized:"Espa\xf1ol"},{code:"it",name:"Italian",nameLocalized:"Italiano"},{code:"pt-BR",name:"Portuguese",nameLocalized:"Portugu\xeas (Brasil)"}],n="en"},34317:(e,t,a)=>{a.d(t,{ServerRegionProvider:()=>l,useServerRegion:()=>m});var r=a(45264),n=a(94556),i=a(1460);let o="map-conditions-region",s=(0,n.createContext)({region:i.t9,setRegion:()=>{}}),l=({children:e})=>{let[t,a]=(0,n.useState)(i.t9);return(0,n.useEffect)(()=>{let e=window.localStorage.getItem(o);(0,i.Dp)(e)&&a(e)},[]),(0,r.jsx)(s.Provider,{value:{region:t,setRegion:e=>{a(e),window.localStorage.setItem(o,e)}},children:e})},m=()=>(0,n.useContext)(s)},45292:(e,t,a)=>{a.d(t,{a3:()=>o,kg:()=>r,r6:()=>s,zt:()=>i});let r=6e4,n=e=>String(e).padStart(2,"0"),i=e=>{if(e<=0)return"00:00:00";
1let t=Math.floor(e/1e3),a=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return a>0?`${a}:${n(r)}:${n(i)}`:`${r}:${n(i)}`},o=e=>{let t=Math.floor(e/3600),a=Math.floor(e%3600/60);return t>0&&a>0?`${t}h ${a}m`:t>0?`${t}h`:`${a}m`},s=(e,t)=>{let a=new Date(e);return{dateStr:a.toLocaleDateString(t,{month:"short",day:"numeric"}),time:a.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit"})}}}}]);

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.