1import{r as d,j as s,B as I,b as W,c as M,z as H,af as B,i as z,g as u,f as q,ai as n,aj as w,ak as A,al as O,ah as Q,ag as T,x as V,am as $}from"./index-ERk_mVus.js";import{c as J,G as K,P as X,A as U,R as Y,b as Z}from"./RelatedCategories-B8pYiIY5.js";import{u as ee,L as se,G as ae}from"./setAppPlayed-DnEJ0dBZ.js";import{B as te}from"./BottomMarkdown-CF9b5bbo.js";/* empty css */import{S as ie}from"./SEOHelmet-D1Y6HGLI.js";import oe from"./404-dICJ8iXf.js";import{u as le}from"./useApps-CfTqh8Xv.js";import{I as p}from"./InHouseAd-D6QbOzPQ.js";import"./testConts-vN1Nohsa.js";import"./useCategories-CbYcUVDQ.js";import"./useCurUser-Bl6oaPHT.js";import"./GameIframe-BainghTu.js";import"./Icon-Dp7ANBG9.js";let f=null;function re(){var t;if(f!==null)return f;const i=document.querySelector('script[src*="adsbygoogle.js"]'),o=(t=i==null?void 0:i.src)==null?void 0:t.match(/client=(ca-pub-\d+)/);return f=(o==null?void 0:o[1])||"",f}function C({adSlot:i,className:o,style:t,fixedWidth:r,fixedHeight:c}){const m=d.useRef(null),l=r&&c,x=re();return d.useEffect(()=>{if(m.current!==i&&window.adsbygoogle)try{window.adsbygoogle.push({}),m.current=i}catch(j){console.error("AdSense error:",j)}},[i]),s.jsxs("div",{className:`egg-container ${o||""}`,style:t,children:[s.jsx("div",{className:"egg-wrapper",children:s.jsx("ins",{className:"adsbygoogle",style:l?{display:"inline-block",width:`${r}px`,height:`${c}px`}:{display:"block",width:"100%",height:"100%"},"data-ad-client":x,"data-ad-slot":i,...l?{}:{"data-ad-format":"auto","data-full-width-responsive":"true"}})}),s.jsx("span",{className:"egg-label",children:"Advertisement"})]})}function _({className:i,style:o}){return s.jsx("div",{className:`egg-container placeholder ${i||""}`,style:o,children:s.jsx("div",{className:"egg-wrapper"})})}function ne({adName:i,className:o,style:t}){return s.jsxs("div",{className:`egg-container ${o||""}`,style:t,children:[s.jsx("div",{className:"egg-wrapper",children:s.jsx("div",{"data-ad":i})}),s.jsx("span",{className:"egg-label",children:"Advertisement"})]})}const R=["https://unblocked-games.s3.amazonaws.com/index.html","https://duck.mathlife.org/","https://play.galatrix.com/lobby","https://d1wavj9j1zobfs.cloudfront.net/"];function F(){return R[Math.floor(Math.random()*R.length)]}const ye=()=>{var N,y,k;const o=(N=I().title)==null?void 0:N.toLowerCase(),t=le(),r=W(M),c=r==null?void 0:r.Apps,m=r==null?void 0:r.Categories,[l,x]=d.useState(typeof window<"u"?window.innerWidth:1024);d.useEffect(()=>{const a=()=>x(window.innerWidth);return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]);const j=d.useMemo(F,[]),L=d.useMemo(F,[]),e=t==null?void 0:t.find(a=>{var h;return((h=a.title)==null?void 0:h.toLowerCase())===o});ee(e);const P=H((e==null?void 0:e.title)||"");if(c||m||!(t!=null&&t.length))return s.jsx(se,{});if(!e)return s.jsx(oe,{});const v=new Set(((y=e.categories)==null?void 0:y.split(" "))||[]),b=B(t.filter(a=>a.is_listed!==!1&&a.id!==e.id&&Array.from(v).some(h=>{var S;return((S=a.categories)==null?void 0:S.includes(h))||!1}))).slice(0,50),g=Array.from(v)[0],D=z()&&g?J(e,u(!1),g,t):null,E=(k=e==null?void 0:e.categories)==null?void 0:k.split(" ").join(", "),G=q()?"https://www.youtube.com/@freezenova":Math.random()<.5?"https://www.youtube.com/@duckmath-games":"/join-chad.html";return s.jsxs("div",{children:[s.jsx(ie,{seo:{title:`${n(e.title)} Unblocked - ${u(!1)}`,description:(e==null?void 0:e.desc)||`Play ${n(e.title)} unblocked at school! Free online game with no downloads.`,keywords:`${E}, unblocked games, free games, online games, school games, unblocked`,image:e==null?void 0:e.icon},regular:{title:`${n(e.title)} Flashcards - ${u(!1)}`,description:`Study the ${n(e.title)} flashcard set. Master key concepts with spaced repetition and active recall.`,keywords:"flashcards, study, learning, education, memorization"},structuredData:D||void 0,noIndex:e.is_indexed===!1}),s.jsxs(K,{children:[s.jsx(X,{size:"1x1"}),s.jsx(ae,{app:e}),l>564&&s.jsx("li",{className:"egg-vertical-under-pill",children:(w(),s.jsx(p,{imageUrl:"/imgs/in_house/discord_vertical.jpg",linkUrl:G,className:"vertical"}))}),l>=1074&&s.jsx("li",{className:"egg-vertical-top-right",children:A()?s.jsx(_,{className:"vertical"}):w()?s.jsx(p,{imageUrl:"/imgs/in_house/duckmath-2.webp",linkUrl:j,className:"vertical"}):s.jsx(C,{adSlot:"6122096383",className:"vertical",fixedWidth:160,fixedHeight:600})}),l>=834&&s.jsx("li",{className:"egg-horizontal-under-game",children:O()?s.jsx(ne,{adName:l>=1344?"billboard-1":"leaderboard-1",className:"horizontal"}):A()?s.jsx(_,{className:"horizontal"}):w()?s.jsx(p,{imageUrl:l>=1344?"/imgs/in_house/duckmath.webp":"/imgs/in_house/duckmaths.webp",linkUrl:L,className:"horizontal"}):s.jsx(C,{adSlot:"8748259728",className:"horizontal",fixedWidth:l>=1344?970:728,fixedHeight:l>=1344?250:90})}),b.slice(0,2).map(a=>s.jsx(U,{title:a.title,icon:a.icon,id:String(a.id),size:"1x1",videoUrl:a.video_link},a.id)),b.slice(2).map(a=>s.jsx(U,{title:a.title,icon:a.icon,id:String(a.id),size:"1x1",videoUrl:a.video_link},a.id)),s.jsx(Y,{app:e})]}),z()&&s.jsx("div",{className:"px-4 pb-8",children:s.jsx(te,{rating:$(e).rating,totalRatings:$(e).totalVotes,title:n(e.title),breadcrumb:[{label:u(!1),href:"/"},{label:T(g),href:Q(g)||""},{label:n(e.title),href:V(P)||""}],content:`${(e==null?void 0:e.desc)||""} 2 3## Developer 4 5${(e==null?void 0:e.developer_name)||"N/A"} 6 7## Controls 8 9${(e==null?void 0:e.controls)||"N/A"} 10 11## Devices 12 13${n(e.title)} can be played on: ${(e==null?void 0:e.devices)||"N/A"} 14 15${Z(e,void 0,t)}`})})]})};export{ye as default};
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.