1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1486],{1628:(e,t,s)=>{s.d(t,{B:()=>i,J:()=>c});var r=s(95155),a=s(12115),n=s(46482);let l=(0,a.createContext)(null),i=e=>{let{children:t}=e,[s,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>(n.o.initialize(),n.o.loadVolumeSettings(),()=>{n.o.cleanup()}),[]),(0,r.jsx)(l.Provider,{value:{playCorrect:()=>n.o.playCorrect(),playWrong:()=>n.o.playWrong(),playBadge:()=>n.o.playBadge(),playComplete:()=>n.o.playComplete(),setUIVolume:e=>n.o.setUIVolume(e),setMusicVolume:e=>n.o.setMusicVolume(e),setExerciseVolume:e=>n.o.setMusicVolume(e),setUserVolume:e=>n.o.setMusicVolume(e),getUIVolume:()=>n.o.getUIVolume(),getMusicVolume:()=>n.o.getMusicVolume(),getExerciseVolume:()=>n.o.getMusicVolume(),getUserVolume:()=>n.o.getMusicVolume(),isVolumeControlOpen:s,setVolumeControlOpen:i},children:t})},c=()=>{let e=(0,a.useContext)(l);if(!e)throw Error("useSoundEffects must be used within a SoundEffectsProvider");return e}},17008:(e,t,s)=>{s.d(t,{f:()=>i});var r=s(95155);s(12115);var a=s(70734),n=s(43226),l=s(2178);function i(e){let{isOpen:t,onClose:s,onContinue:i,sectionName:c,unlockedLevelsCount:o,nextSectionAvailable:d}=e;return(0,r.jsx)(a.lG,{open:t,onOpenChange:e=>!e&&s(),children:(0,r.jsxs)(a.Cf,{className:"sm:max-w-[500px]",children:[(0,r.jsxs)(a.c7,{children:[(0,r.jsx)(l.P.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:260,damping:20},children:(0,r.jsx)(a.L3,{className:"text-3xl text-center mb-4",children:(0,r.jsx)(l.P.span,{animate:{rotate:[0,10,-10,10,0]},transition:{duration:.5,repeat:2},className:"inline-block text-6xl",children:"\uD83C\uDF89"})})}),(0,r.jsx)(a.L3,{className:"text-2xl text-center",children:"Test-Out Complete!"}),(0,r.jsxs)(a.rr,{className:"text-center text-base mt-2",children:["Congratulations! You've mastered ",(0,r.jsx)("strong",{children:c})]})]}),(0,r.jsxs)(l.P.div,{className:"space-y-4 my-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,r.jsxs)("div",{className:"bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-950/30 dark:to-emerald-950/30 border-2 border-green-300 dark:border-green-700 rounded-lg p-6",children:[(0,r.jsx)("h4",{className:"font-bold text-green-900 dark:text-green-100 mb-3 text-center text-lg",children:"Your Rewards"}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)(l.P.div,{className:"flex items-center gap-3 bg-white/50 dark:bg-black/20 rounded-lg p-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3},children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-green-500 rounded-full flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-white text-lg",children:"\uD83D\uDD13"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("p",{className:"font-semibold text-green-900 dark:text-green-100",children:[o," Levels Unlocked"]}),(0,r.jsxs)("p",{className:"text-sm text-green-700 dark:text-green-300",children:["All ",c," levels are now available"]})]})]}),d&&(0,r.jsxs)(l.P.div,{className:"flex items-center gap-3 bg-white/50 dark:bg-black/20 rounded-lg p-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4},children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-action rounded-full flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-white text-lg",children:"\uD83D\uDE80"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("p",{className:"font-semibold text-green-900 dark:text-green-100",children:"Next Section Unlocked"}),(0,r.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:"Ready to continue your journey!"})]})]}),(0,r.jsxs)(l.P.div,{className:"flex items-center gap-3 bg-white/50 dark:bg-black/20 rounded-lg p-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5},children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-amber-500 rounded-full flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-white text-lg",children:"â"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("p",{className:"font-semibold text-green-900 dark:text-green-100",children:"Perfect Score!"}),(0,r.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:"50/50 correct answers - incredible!"})]})]})]})]}),(0,r.jsx)("div",{className:"text-center text-sm text-muted-foreground",children:(0,r.jsx)("p",{children:"You've proven your mastery. Keep up the amazing work! \uD83C\uDFB5"})})]}),(0,r.jsx)(a.Es,{children:(0,r.jsx)(n.$,{variant:"default",onClick:i,className:"w-full bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600",children:"Continue Your Journey â"})})]})})}},4838:(e,t,s)=>{s.d(t,{P:()=>o});var r=s(95155),a=s(12115),n=s(70734),l=s(43226),i=s(2178),c=s(1628);function o(e){let{isOpen:t,onClose:s,sectionName:o,attempts:d,requiredAttempts:x,correctAnswer:u}=e,{playWrong:m}=(0,c.J)();return(0,a.useEffect)(()=>{t&&m()},[t,m]),(0,r.jsx)(n.lG,{open:t,onOpenChange:e=>!e&&s(),children:(0,r.jsxs)(n.Cf,{className:"sm:max-w-[480px]",children:[(0,r.jsxs)(n.c7,{children:[(0,r.jsx)(i.P.div,{initial:{scale:.8,rotate:-2},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:260,damping:20},className:"flex justify-center mb-2",children:(0,r.jsx)("span",{className:"text-5xl",role:"img","aria-label":"warning",children:"â ï¸"})}),(0,r.jsx)(n.L3,{className:"text-2xl text-center",children:"Test-Out Failed"}),(0,r.jsxs)(n.rr,{className:"text-center text-base mt-2",children:["You missed a question in the ",(0,r.jsx)("strong",{children:o})," challenge."]})]}),(0,r.jsxs)("div",{className:"space-y-4 my-6",children:[(0,r.jsxs)("div",{className:"bg-red-950/30 border border-red-500/40 rounded-lg p-5",children:[(0,r.jsx)("h4",{className:"text-red-300 font-semibold mb-3",children:"Here's what happened"}),(0,r.jsxs)("ul",{className:"space-y-2 text-sm text-red-100/90",children:[(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)("span",{className:"mt-0.5",children:"â¢"}),(0,r.jsxs)("span",{children:["Progress stopped at ",(0,r.jsx)("strong",{children:d})," out of ",(0,r.jsx)("strong",{children:x})," flawless answers."]})]}),(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)("span",{className:"mt-0.5",children:"â¢"}),(0,r.jsxs)("span",{children:["The correct response was ",(0,r.jsx)("strong",{children:u}),"."]})]})]})]}),(0,r.jsx)("div",{className:"bg-card border border-border/40 rounded-lg p-4 text-sm text-slate-100/90",children:(0,r.jsx)("p",{children:"No worriesâpractice a bit more and you'll be ready to try again. You can restart the challenge whenever you're ready."})})]}),(0,r.jsx)(n.Es,{children:(0,r.jsx)(l.$,{variant:"default",onClick:s,className:"w-full bg-gradient-to-r from-slate-500 to-slate-600 hover:from-slate-600 hover:to-slate-700",children:"Back to Map"})})]})})}},66546:(e,t,s)=>{s.d(t,{P:()=>n});var r=s(12115),a=s(25571);function n(e,t){let s=(0,r.useRef)(!1),n=(0,r.useRef)({buildStats:e,onEarCoinsEarned:t});return n.current={buildStats:e,onEarCoinsEarned:t},(0,r.useCallback)((e,t)=>{if(s.current)return;s.current=!0;let r=n.current.buildStats(e,t);r&&(0,a.$)({...r,totalScore:r.totalScore-r.timeBonus,timeBonus:0},{onError:()=>{}}).then(e=>{if(e.earCoinsEarned){var t,s;null===(t=(s=n.current).onEarCoinsEarned)||void 0===t||t.call(s,e.earCoinsEarned,e.earCoinsBreakdown)}}).catch(()=>{})},[])}},84501:(e,t,s)=>{s.d(t,{M:()=>a});var r=s(12115);let a=e=>{let{onRepeat:t,onSkip:s,onBack:a,onNext:n,disabled:l=!1}=e,i=(0,r.useCallback)(e=>{var r;if(l)return;let i=e.target,c=null==i?void 0:null===(r=i.tagName)||void 0===r?void 0:r.toLowerCase();if("input"!==c&&"textarea"!==c&&"select"!==c&&(null==i||!i.isContentEditable)&&!document.querySelector('[role="dialog"],[data-radix-dialog-content]')){if("Space"===e.code&&t){e.preventDefault(),t();return}if("Escape"===e.key&&a){e.preventDefault(),a();return}if(("Enter"===e.key||"Enter"===e.code)&&n){e.preventDefault(),n();return}if("Backspace"===e.key&&s){e.preventDefault(),s();return}}},[t,s,a,n,l]);return(0,r.useEffect)(()=>(window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)),[i]),{getFunctionKeyMappings:()=>({repeat:"Space",skip:"Backspace",back:"Esc",next:"Enter"})}}}}]);
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.