PageSourceSearch

https://flashcards.world/_next/static/chunks/1333.681d3ced775c5d88.js

js flashcards.world collected 2026-10-01 16:21:25 UTC 15,084 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1333,1798,4276],{4276:(e,t,a)=>{a.d(t,{Ay:()=>v,OG:()=>n,Qg:()=>x,VG:()=>i,j5:()=>l,sy:()=>o});var r=a(7964),s=a(4232);let n={old_first:0,new_first:1,alphabetically:2,numerical:3},l={difficulty:1,random:2,old_first:3,new_first:4,alphabetically:5,numerical:6},i={alphabetically:0,newFirst:1,oldFirst:2,lastUsed:3},o={ten:10,twenty:20,thirty:30,unlimited:1e4},c="flashcards-settings-changed",m=new Map,d=()=>null,u=e=>{if(m.has(e))return m.get(e);try{return window.localStorage.getItem(e)}catch{return null}},p=(e,t)=>{try{return null===e?t:JSON.parse(e)}catch{return t}},h=(e,t)=>{let a,n,l,i,o,h=(0,r.c)(13);h[0]!==e?(a=t=>{let a=a=>{let r="storage"===a.type?a.key:a.detail;(null===r||r===e)&&("storage"===a.type&&m.delete(e),t())};return window.addEventListener("storage",a),window.addEventListener(c,a),()=>{window.removeEventListener("storage",a),window.removeEventListener(c,a)}},h[0]=e,h[1]=a):a=h[1];let y=a;h[2]!==e?(n=()=>u(e),h[2]=e,h[3]=n):n=h[3];let g=n,x=(0,s.useSyncExternalStore)(y,g,d);h[4]!==t||h[5]!==x?(l=p(x,t),h[4]=t,h[5]=x,h[6]=l):l=h[6];let v=l;h[7]!==t||h[8]!==e?(i=a=>{let r=p(u(e),t),s=JSON.stringify("function"==typeof a?a(r):a);try{window.localStorage.setItem(e,s),m.delete(e)}catch{m.set(e,s)}window.dispatchEvent(new CustomEvent(c,{detail:e}))},h[7]=t,h[8]=e,h[9]=i):i=h[9];let b=i;return h[10]!==b||h[11]!==v?(o=[v,b],h[10]=b,h[11]=v,h[12]=o):o=h[12],o},y=e=>{let t=e.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");return`set${t||e.charAt(0).toUpperCase()+e.slice(1)}`},g=e=>`set${e.charAt(0).toUpperCase()+e.slice(1)}`,x=()=>{let e=(0,s.useMemo)(()=>({reverse_review:!1,write_term:!1,only_favorites:!1,show_as_grid:!1,display_images_only:!1,basic_review_zen_mode:!1,basic_review_images_below_text:!0,enable_scroll_basic_review:!1,show_category_headers:!0,cards_order:n.old_first,review_order:l.difficulty,review_method:0,decks_order:i.alphabetically,cards_number_in_review:o.twenty,selectedCategory:"",selectedCategories:[],cards_view_mode:"grid",tts_enabled:!0,tts_auto_play:!1,tts_rate:"1.0",tts_pitch:"1.0",tts_volume:"1.0",tts_voice_preference:{}}),[]),t={};for(let a in e){let r=e[a],[s,n]=h(a,r);t[a]=s;let l=y(a),i=g(a);t[l]=n,i!==l&&(t[i]=n)}return t},v=x},9417:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(7876),s=a(7964),n=a(4232),l=a(8623),i=a(9647),o=a.n(i),c=a(1472),m=a(9511);function d(e){return e.slice(0,-1)}let u=(0,l.zS)(function(e){let t,a,i,u,p,h,y,g,x,v,b,f,_,j,w,N,S,C,k,E,V,M,$,T,B,I,L,A,W,z,F,D,G,R,K,O,U,q,J,Q,Y,H=(0,s.c)(151),{onExit:P}=e,{t:X}
1=(0,m.B)(),[Z,ee]=(0,n.useState)(1),[et,ea]=(0,n.useState)(3),[er,es]=(0,n.useState)(15),[en,el]=(0,n.useState)(!0),[ei,eo]=(0,n.useState)(3),[ec,em]=(0,n.useState)(""),[ed,eu]=(0,n.useState)(""),[ep,eh]=(0,n.useState)("intro");H[0]===Symbol.for("react.memo_cache_sentinel")?(t=["intro","gameover"],H[0]=t):t=H[0],(0,l.fl)(!t.includes(ep));let[ey,eg]=(0,n.useState)(0);H[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{{let e=localStorage.getItem("brainGym_numberMemory_best");e&&eg(parseInt(e,10))}},i=[],H[1]=a,H[2]=i):(a=H[1],i=H[2]),(0,n.useEffect)(a,i),H[3]!==ey||H[4]!==ep||H[5]!==ec.length?(u=()=>{"gameover"===ep&&ec.length-1>ey&&(eg(ec.length-1),localStorage.setItem("brainGym_numberMemory_best",(ec.length-1).toString()))},p=[ep,ec.length,ey],H[3]=ey,H[4]=ep,H[5]=ec.length,H[6]=u,H[7]=p):(u=H[6],p=H[7]),(0,n.useEffect)(u,p),H[8]!==en||H[9]!==er||H[10]!==et?(h=()=>{ee(1),eo(3),y(1,et)},y=(e,t)=>{let a=e-1+(void 0===t?et:t);!en&&a>er&&(a=er),em((e=>{let t="";for(let a=0;a<e;a++)t+=Math.floor(10*Math.random()).toString();return t})(a)),eu(""),eh("ready")},H[8]=en,H[9]=er,H[10]=et,H[11]=h,H[12]=y):(h=H[11],y=H[12]),H[13]!==ep||H[14]!==ec.length?(g=()=>{let e;return"ready"===ep?e=setTimeout(()=>eh("show"),800):"show"===ep&&(e=setTimeout(()=>eh("input"),1500+400*ec.length)),()=>clearTimeout(e)},x=[ep,ec.length],H[13]=ep,H[14]=ec.length,H[15]=g,H[16]=x):(g=H[15],x=H[16]),(0,n.useEffect)(g,x),H[17]!==ed||H[18]!==Z||H[19]!==ei||H[20]!==ep||H[21]!==ec||H[22]!==y||H[23]!==et?(v=e=>{if("input"!==ep)return;"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(10);let t=ed+e;eu(t),t.length===ec.length&&(eh("evaluate"),setTimeout(()=>{if(t===ec){"u">typeof navigator&&navigator.vibrate&&navigator.vibrate([20,50,20]);let e=Z+1;ee(e),y(e,et)}else{"u">
1typeof navigator&&navigator.vibrate&&navigator.vibrate([50,100,50]);let e=ei-1;eo(e),e>0?y(Z,et):eh("gameover")}},t===ec?1e3:2e3))},H[17]=ed,H[18]=Z,H[19]=ei,H[20]=ep,H[21]=ec,H[22]=y,H[23]=et,H[24]=v):v=H[24];let ex=v;H[25]!==ep?(b=()=>{"input"===ep&&(eu(d),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(10))},H[25]=ep,H[26]=b):b=H[26];let ev=b;if(H[27]!==ev||H[28]!==ex||H[29]!==ep?(f=()=>{let e=e=>{(0,l.pr)(e)||"input"===ep&&(e.key>="0"&&e.key<="9"&&ex(e.key),"Backspace"===e.key&&ev())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},H[27]=ev,H[28]=ex,H[29]=ep,H[30]=f):f=H[30],H[31]!==ed||H[32]!==ep?(_=[ep,ed],H[31]=ed,H[32]=ep,H[33]=_):_=H[33],(0,n.useEffect)(f,_),"intro"===ep||"gameover"===ep){let e,t,a,s,n,l,i,m,d;return H[34]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{className:o().iconCircle,children:(0,r.jsx)(c.KuA,{})}),H[34]=e):e=H[34],H[35]!==X?(t=X("components.study.games.number_memory.title",{defaultValue:"Number Memory"}),H[35]=X,H[36]=t):t=H[36],H[37]!==t?(a=(0,r.jsx)("h2",{className:o().title,children:t}),H[37]=t,H[38]=a):a=H[38],H[39]!==ey||H[40]!==ed||H[41]!==en||H[42]!==Z||H[43]!==er||H[44]!==ep||H[45]!==ec||H[46]!==et||H[47]!==X?(s="gameover"===ep?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:o().subtitle,children:X("components.study.games.number_memory.game_over",{level:Z,digits:ec.length,defaultValue:`Game Over! You reached Level ${Z} (${ec.length} digits).`})}),(0,r.jsxs)("div",{className:o().errorDisplay,children:[(0,r.jsx)("span",{className:o().correctNum,children:X("components.study.games.number_memory.target",{sequence:ec,defaultValue:`Target: ${ec}`})}),(0,r.jsx)("span",{className:o().wrongNum,children:X("components.study.games.number_memory.yours",{input:ed,defaultValue:`Yours: ${ed}`})})]}),ec.length-1>ey&&ec.length-1>3&&(0,r.jsx)("div",{style:{color:"#22c55e",fontWeight:700,animation:"pulse 1s infinite",marginTop:"12px"},children:"New High Score!"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:o().subtitle,children:X("components.study.games.number_memory.description",{defaultValue:"Remember the number sequence. A classic test to expand your short-term working memory capacity."})}),ey>0&&(0,r.jsxs)("div",{style:{marginTop:"4px",fontSize:"1rem",color:"var(--text-secondary)",fontWeight:600},children:["Best Score: ",(0,r.jsxs)("span",{style:{color:"var(--color-primary)"},children:[ey," digits"]})]}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"8px",width:"100%",marginTop:"16px",background:"var(--section-bg)",padding:"16px",borderRadius:"12px",border:"1px solid var(--border-color)"},children:[(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsx)("label",{style:{fontSize:"0.95rem",color:"var(--text-color)",fontWeight:600},children:X("components.study.games.number_memory.starting_digits",{defaultValue:"Starting Digits"})}),(0,r.jsx)("span",{style:{fontWeight:700,color:"var(--color-primary)"},children:et})]}),(0,r.jsx)("input",{type:"range",min:"3",max:en?"15":Math.max(3,er),value:et,onChange:e=>{let t=parseInt(e.target.value);ea(t),!en&&t>er&&es(t)},style:{width:"100%",accentColor:"var(--color-primary)",cursor:"pointer"}}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",color:"var(--text-secondary)",fontWeight:500},children:[(0,r.jsx)("span",{children:"3"}),(0,r.jsx)("span",{children:en?"15":Math.max(3,er)})]}),(0,r.jsx)("hr",{style:{border:"none",borderTop:"1px solid var(--border-color)",margin:"8px 0"}}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px"},children:[(0,r.jsxs)("label",{style:{fontSize:"0.95rem",color:"var(--text-color)",fontWeight:600,display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[(0,r.jsx)("input",{type:"checkbox",checked:!en,onChange:e=>el(!e.target.checked),style:{width:"16px",height:"16px",accentColor:"var(--color-primary)",cursor:"pointer"}}),X("components.study.games.number_memory.limit_digits",{defaultValue:"Limit Maximum Digits"})]}),!en&&(0,r.jsx)("span",{style:{fontWeight:700,color:"var(--color-primary)"},children:er})]}),!en&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"range",min:Math.max(3,et),max:"20",value:er,onCh
1ange:e=>es(parseInt(e.target.value)),style:{width:"100%",accentColor:"var(--color-primary)",cursor:"pointer",marginTop:"4px"}}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",color:"var(--text-secondary)",fontWeight:500},children:[(0,r.jsx)("span",{children:Math.max(3,et)}),(0,r.jsx)("span",{children:"20"})]})]})]})]}),H[39]=ey,H[40]=ed,H[41]=en,H[42]=Z,H[43]=er,H[44]=ep,H[45]=ec,H[46]=et,H[47]=X,H[48]=s):s=H[48],H[49]!==P||H[50]!==ep||H[51]!==X?(n="gameover"===ep&&(0,r.jsx)("button",{className:o().ghostButton,onClick:P,children:X("components.study.games.number_memory.actions.exit",{defaultValue:"Exit"})}),H[49]=P,H[50]=ep,H[51]=X,H[52]=n):n=H[52],H[53]!==ep||H[54]!==X?(l="gameover"===ep?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Lsu,{})," ",X("components.study.games.number_memory.actions.try_again",{defaultValue:"Try Again"})]}):X("components.study.games.number_memory.actions.start",{defaultValue:"Start Training"}),H[53]=ep,H[54]=X,H[55]=l):l=H[55],H[56]!==h||H[57]!==l?(i=(0,r.jsx)("button",{className:o().primaryButton,onClick:h,children:l}),H[56]=h,H[57]=l,H[58]=i):i=H[58],H[59]!==n||H[60]!==i?(m=(0,r.jsxs)("div",{className:o().buttonRow,children:[n,i]}),H[59]=n,H[60]=i,H[61]=m):m=H[61],H[62]!==a||H[63]!==s||H[64]!==m?(d=(0,r.jsx)("div",{className:o().gameContainer,children:(0,r.jsxs)("div",{className:o().summaryCard,children:[e,a,s,m]})}),H[62]=a,H[63]=s,H[64]=m,H[65]=d):d=H[65],d}let eb=`Level ${Z}`;H[66]!==Z||H[67]!==X||H[68]!==eb?(j=X("components.study.games.number_memory.level",{level:Z,defaultValue:eb}),H[66]=Z,H[67]=X,H[68]=eb,H[69]=j):j=H[69],H[70]!==j?(w=(0,r.jsx)("span",{"data-study-decoration":!0,className:o().levelBadge,children:j}),H[70]=j,H[71]=w):w=H[71],H[72]===Symbol.for("react.memo_cache_sentinel")?(N=Array.from({length:3}),H[72]=N):N=H[72],H[73]!==ei||H[74]!==N?(S=(0,r.jsx)("div",{className:o().lives,children:N.map((e,t)=>(0,r.jsx)("div",{className:`${o().heart} ${t<ei?o().heartActive:o().heartLost}`,children:(0,r.jsx)(c.Mbv,{})},t))}),H[73]=ei,H[74]=N,H[75]=S):S=H[75],H[76]!==w||H[77]!==S?(C=(0,r.jsxs)("div",{className:o().statsBar,children:[w,S]}),H[76]=w,H[77]=S,H[78]=C):C=H[78],H[79]!==X?(k=X("components.study.games.number_memory.actions.exit",{defaultValue:"Exit"}),H[79]=X,H[80]=k):k=H[80],H[81]===Symbol.for("react.memo_cache_sentinel")?(E=(0,r.jsx)(c.QCr,{}),H[81]=E):E=H[81],H[82]!==P||H[83]!==k?(V=(0,r.jsx)("button",{className:o().closeButton,onClick:P,"aria-label":k,children:E}),H[82]=P,H[83]=k,H[84]=V):V=H[84],H[85]!==C||H[86]!==V?(M=(0,r.jsxs)("header",{className:o().header,children:[C,V]}),H[85]=C,H[86]=V,H[87]=M):M=H[87],H[88]!==ep||H[89]!==X?($="ready"===ep&&(0,r.jsx)("span",{className:o().textReady,children:X("components.study.games.number_memory.prompts.ready",{defaultValue:"Get Ready..."})}),H[88]=ep,H[89]=X,H[90]=$):$=H[90],H[91]!==ep||H[92]!==X?(T="show"===ep&&(0,r.jsx)("span",{className:o().textMemorize,children:X("components.study.games.number_memory.prompts.show",{defaultValue:"Memorize the number"})}),H[91]=ep,H[92]=X,H[93]=T):T=H[93],H[94]!==ep||H[95]!==X?(B="input"===ep&&(0,r.jsx)("span",{className:o().textRecall,children:X("components.study.games.number_memory.prompts.input",{defaultValue:"What was the number?"})}),H[94]=ep,H[95]=X,H[96]=B):B=H[96],H[97]!==ed||H[98]!==ep||H[99]!==ec||H[100]!==X?(I="evaluate"===ep&&ed===ec&&(0,r.jsx)("span",{className:o().textSuccess,children:X("components.study.games.number_memory.prompts.success",{defaultValue:"Correct!"})}),H[97]=ed,H[98]=ep,H[99]=ec,H[100]=X,H[101]=I):I=H[101],H[102]!==ed||H[103]!==ep||H[104]!==ec||H[105]!==X?(L="evaluate"===ep&&ed!==ec&&(0,r.jsx)("span",{className:o().textFail,children:X("components.study.games.number_memory.prompts.fail",{defaultValue:"Incorrect!"})}),H[102]=ed,H[103]=ep,H[104]=ec,H[105]=X,H[106]=L):L=H[106],H[107]!==$||H[108]!==T||H[109]!==B||H[110]!==I||H[111]!==L?(A=(0,r.jsxs)("div",{className:o().statusPrompt,children:[$,T,B,I,L]}),H[107]=$,H[108]=T,H[109]=B,H[110]=I,H[111]=L,H[112]=A):A=H[112],H[113]!==ed||H[114]!==ep||H[115]!==ec?(W=(0,r.jsx)("div",{className:o().sequenceDisplay,children:"show"===ep?(0,r.jsx)("div",{className:o().bigNumber,children:ec}):(0,r.jsx)("div",{className:`${o().bigNumber} ${o().inputNumber} ${"evaluate"===ep&&ed!==ec?o().shake:""}`,children:ed.padEnd(ec.length,"_").split("").map((e,t)=>(0,r.jsx)("span",{className:"_"===e?o().dim:"evaluate"===ep&&ed[t]!==ec[t]?o().redText:"",children:e},t))})}),H[113]=ed,H[114]=ep,H[115]=ec,H[116]=W):W=H[116];let ef=+("show"===ep),e_="show"===ep?"visible":"hidden";H[117]!==ef||H[118]!==e_?(z={opacity:ef,transition:"opacity 0.2s",visibility:e_},H[117]=ef,H[118]=e_,H[119]=z):z=H[119],H[120]!==ep||H[121]!==ec.length?(F="show"===ep&&(0,r.jsx)("div",{className:o().timerBarFill,style:{animationDuration:`${1500+400*ec.length}ms`}}),H[120]=ep,H[121]=ec.length,H[122]=F):F=H[122],H[123]!==z||H[124]!==F?(D=(0,r.jsx)("div",{className:o().timerBarWrapper,style:z,children:F}),H[123]=z,H[124]=F,H[125]=D):D=H[125];let ej=`${o().numpad} ${"input"!==ep?o().numpadDisabled:""}`;H[126]===Symbol.for("react.memo_cache_sentinel")?(G=[1,2,3,4,5,6,7,8,9],H[126]=G):G=H[126],H[127]!==ex||H[128]!==ep?(R=G.map(e=>(0,r.jsx)("button",{className:o().numKey,onClick:()=>ex(e.toString()),disabled:"input"!==ep,children:e},e)),H[127]=ex,H[128]=ep,H[129]=R):R=H[129],H[130]===Symbol.for("react.memo_cache_sentinel")?(K=(0,r.jsx)("div",{}),H[130]=K):K=H[130],H[131]!==ex?(O=()=>ex("0"),H[131]=ex,H[132]=O):O=H[132];let ew="input"!==ep;H[133]!==O||H[134]!==ew?(U=(0,r.jsx)("button",{className:o().numKey,onClick:O,disabled:ew,children:"0"}),H[133]=O,H[134]=ew,H[135]=U):U=H[135];let eN="input"!==ep;return H[136]===Symbol.for("react.memo_cache_sentinel")?(q=(0,r.jsx)(c.lBk,{}),H[136]=q):q=H[136],H[137]!==ev||H[138]!==eN?(J=(0,r.jsx)("button",{className:o().numKeyAction,onClick:ev,disabled:eN,children:q}),H[137]=ev,H[138]=eN,H[139]=J):J=H[139],H[140]!==ej||H[141]!==R||H[142]!==U||H[143]!==J?(Q=(0,r.jsxs)("div",{className:ej,children:[R,K,U,J]}),H[140]=ej,H[141]=R,H[142]=U,H[143]=J,H[144]=Q):Q=H[144],H[145]!==M||H[146]!==A||H[147]!==W||H[148]!==D||H[149]!==Q?(Y=(0,r.jsxs)("div",{className:o().gameContainer,children:[M,A,W,D,Q]}),H[145]=M,H[146]=A,H[147]=W,H[148]=D,H[149]=Q,H[150]=Y):Y=H[150],Y})}}]);
2//# sourceMappingURL=1333.681d3ced775c5d88.js.map

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.