\ No newline at end of file
+404: This page could not be found.Test Mate
404
This page could not be found.
\ No newline at end of file
diff --git a/_next/static/sNyYE7OYh2pp-TM7rivvN/_buildManifest.js b/_next/static/AwdR7DeeWurjCbC1PVLrT/_buildManifest.js
similarity index 100%
rename from _next/static/sNyYE7OYh2pp-TM7rivvN/_buildManifest.js
rename to _next/static/AwdR7DeeWurjCbC1PVLrT/_buildManifest.js
diff --git a/_next/static/sNyYE7OYh2pp-TM7rivvN/_ssgManifest.js b/_next/static/AwdR7DeeWurjCbC1PVLrT/_ssgManifest.js
similarity index 100%
rename from _next/static/sNyYE7OYh2pp-TM7rivvN/_ssgManifest.js
rename to _next/static/AwdR7DeeWurjCbC1PVLrT/_ssgManifest.js
diff --git a/_next/static/chunks/app/page-b5454df2c65b96e9.js b/_next/static/chunks/app/page-b5454df2c65b96e9.js
new file mode 100644
index 0000000..501df73
--- /dev/null
+++ b/_next/static/chunks/app/page-b5454df2c65b96e9.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{5257:(e,t,s)=>{Promise.resolve().then(s.bind(s,6170))},3176:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"fill-in-the-blanks",question:"I see __ orange on the table.",blanks:["an"],note:"Articles"},{id:2,type:"fill-in-the-blanks",question:"The cat is __ the box.",blanks:["in"],note:"Prepositions"},{id:3,type:"multiple-choice",question:"Which is a proper noun?",options:["dog","park","Monday","Mumbai"],correctAnswers:["Mumbai"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:5,type:"matching",question:"Match the word with its opposite",leftItems:["Big","Happy"],rightItems:["Small","Sad"],correctMatches:{Big:"Small",Happy:"Sad"},note:"Opposites"},{id:6,type:"fill-in-the-blanks",question:"The bird is __ the tree.",blanks:["on"],note:"Prepositions"},{id:7,type:"multiple-choice",question:"What is 2 + 3?",options:["4","5","6","7"],correctAnswers:["5"],multipleAnswers:!1,note:"Addition with carryover"},{id:9,type:"multiple-choice",question:"Which shape has no corners?",options:["Square","Circle","Triangle","Rectangle"],correctAnswers:["Circle"],multipleAnswers:!1,note:"Solid shapes"},{id:10,type:"fill-in-the-blanks",question:"The __ is shining in the sky.",blanks:["sun"],note:"Vocabulary - Meaning"},{id:11,type:"multiple-choice",question:"What is the opposite of 'hot'?",options:["Cold","Warm","Cool","Dry"],correctAnswers:["Cold"],multipleAnswers:!1,note:"Opposites"},{id:12,type:"matching",question:"Match the animal with its home",leftItems:["Dog","Bird"],rightItems:["Nest","Kennel"],correctMatches:{Dog:"Kennel",Bird:"Nest"},note:"General knowledge"},{id:13,type:"multiple-choice",question:"What is 5 \xd7 3?",options:["8","12","15","18"],correctAnswers:["15"],multipleAnswers:!1,note:"Multiplication"},{id:14,type:"multiple-choice",question:"Which is a preposition?",options:["Tree","On","Fast","Happy"],correctAnswers:["On"],multipleAnswers:!1,note:"Prepositions"},{id:15,type:"fill-in-the-blanks",question:"The dog __ running fast.",blanks:["is"],note:"Verbs"},{id:16,type:"matching",question:"Match the shapes with their names",leftItems:["A square","A triangle"],rightItems:["Four sides","Three sides"],correctMatches:{"A square":"Four sides","A triangle":"Three sides"},note:"Solid shapes"},{id:17,type:"multiple-choice",question:"Which is a pronoun?",options:["She","Table","Blue","Run"],correctAnswers:["She"],multipleAnswers:!1,note:"Pronouns"},{id:18,type:"fill-in-the-blanks",question:"The boy and the girl are __ to school.",blanks:["going"],note:"Verbs"},{id:19,type:"multiple-choice",question:"What comes after 999?",options:["998","1000","1001","999"],correctAnswers:["1000"],multipleAnswers:!1,note:"Numerals and number names"}]}},6119:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"multiple-choice",question:"What is 654 \xd7 3?",options:["1902","1962","1842","1862"],correctAnswers:["1962"],multipleAnswers:!1,note:"Multiplication"},{id:2,type:"multiple-choice",question:"Which of these is NOT a proper noun?",options:["London","Car","Monday","Taj Mahal"],correctAnswers:["Car"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:4,type:"matching",question:"Match the synonyms",leftItems:["Brave","Quick"],rightItems:["Courageous","Fast"],correctMatches:{Brave:"Courageous",Quick:"Fast"},note:"Synonyms"},{id:5,type:"multiple-choice",question:"What is 923 - 567?",options:["356","366","356","346"],correctAnswers:["356"],multipleAnswers:!1,note:"Subtraction with borrowing"},{id:6,type:"fill-in-the-blanks",question:"A cube has __ faces.",blanks:["6"],note:"Solid shapes"},{id:7,type:"multiple-choice",question:"Which is a pronoun?",options:["He","Run","School","Jump"],correctAnswers:["He"],multipleAnswers:!1,note:"Pronouns"},{id:8,type:"multiple-choice",question:"What is 432 + 219?",options:["651","659","649","641"],correctAnswers:["651"],multipleAnswers:!1,note:"Addition with carryover"},{id:9,type:"fill-in-the-blanks",question:"The boy __ his homework yesterday.",blanks:["did"],note:"Verbs"},{id:10,type:"multiple-choice",question:"What is the smallest 4-digit number?",options:["999","1000","1001","9999"],correctAnswers:["1000"],multipleAnswers:!1,note:"Building numbers"}]}},3493:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"fill-in-the-blanks",question:"The __ is a star that gives us light and heat.",blanks:["sun"],note:"Vocabulary - Meaning"},{id:2,type:"multiple-choice",question:"Which of these is a proper noun?",options:["City","Ravi","Dog","Tree"],correctAnswers:["Ravi"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:3,type:"multiple-choice",question:"What is the opposite of 'soft'?",options:["Hard","Light","Big","Slow"],correctAnswers:["Hard"],multipleAnswers:!1,note:"Opposites"},{id:5,type:"matching",question:"Match the words with their meanings",leftItems:["Tiny","Fast"],rightItems:["Small","Quick"],correctMatches:{Tiny:"Small",Fast:"Quick"},note:"Synonyms"},{id:6,type:"fill-in-the-blanks",question:"There are __ apples in the basket.",blanks:["some"],note:"Articles"},{id:7,type:"multiple-choice",question:"What is 234 + 123?",options:["357","346","347","365"],correctAnswers:["357"],multipleAnswers:!1,note:"Addition with carryover"},{id:8,type:"multiple-choice",question:"What is 762 - 345?",options:["417","412","415","420"],correctAnswers:["417"],multipleAnswers:!1,note:"Subtraction with borrowing"},{id:9,type:"multiple-choice",question:"What is 12 \xd7 3?",options:["36","34","35","33"],correctAnswers:["36"],multipleAnswers:!1,note:"Multiplication"},{id:11,type:"fill-in-the-blanks",question:"The dog __ playing with the ball.",blanks:["is"],note:"Verbs"},{id:12,type:"multiple-choice",question:"Which is a conjunction?",options:["And","Apple","Run","He"],correctAnswers:["And"],multipleAnswers:!1,note:"Conjunctions"},{id:13,type:"multiple-choice",question:"What comes before 500?",options:["498","499","501","502"],correctAnswers:["499"],multipleAnswers:!1,note:"Numerals and number names"},{id:14,type:"matching",question:"Match the shapes with their properties",leftItems:["Sphere","Cube"],rightItems:["Round","Six faces"],correctMatches:{Sphere:"Round",Cube:"Six faces"},note:"Solid shapes"},{id:15,type:"multiple-choice",question:"What is the face value of 3 in 345?",options:["3","30","300","3 and 30"],correctAnswers:["3"],multipleAnswers:!1,note:"Place value and face value"}]}},6170:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var n=s(5155),i=s(2115);function r(e){let{selectUser:t}=e,[s,r]=(0,i.useState)([]),[l,o]=(0,i.useState)(""),[a,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!0);(0,i.useEffect)(()=>{d(!0);let e=localStorage.getItem("quizResults");e&&r(JSON.parse(e)),d(!1)},[]);let h=e=>{if(s.some(t=>t.user&&"string"==typeof t.user&&t.user.toLowerCase()===e.toLowerCase())){c("User already exists.");return}let n=crypto.randomUUID();localStorage.setItem("quizUserId",n);let i={id:n,user:e,type:"easy",score:0,totalQuestions:0,date:new Date().toISOString()},l=[...s,i];r(l),localStorage.setItem("quizResults",JSON.stringify(l)),c(""),t(i)},p=(0,n.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,n.jsx)("div",{className:"w-16 h-16 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"})});return(0,n.jsxs)("div",{className:"mx-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Add New User"}),(0,n.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!l.trim()){c("Please enter a name.");return}h(l.trim()),o("")},className:"flex gap-2 mb-8",children:[(0,n.jsx)("input",{type:"text",value:l,onChange:e=>o(e.target.value),placeholder:"Enter your name + label to remember this test",className:"flex-1 border rounded p-2 focus:outline-none focus:ring-2 focus:ring-blue-500"}),(0,n.jsx)("button",{type:"submit",className:"bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 transition-colors",children:"Add User"}),a&&(0,n.jsx)("p",{className:"text-red-500 mb-4",children:a})]}),u?p:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("h2",{className:"text-2xl font-bold mb-4",children:[0===s.length?"No":""," Test Results"]}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 mb-6",children:s.map(e=>{var t;return(0,n.jsxs)("div",{className:"bg-white border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow",children:[(0,n.jsx)("div",{className:"flex items-center justify-between p-4 bg-gray-50 border-b",children:(0,n.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,n.jsx)("div",{className:"h-10 w-10 flex items-center justify-center bg-blue-500 text-white text-xl font-bold rounded",children:(null===(t=e.user)||void 0===t?void 0:t[0])||"?"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"font-medium text-lg",children:e.user}),(0,n.jsx)("p",{className:"text-sm text-gray-500",suppressHydrationWarning:!0,children:function(e){let t=new Date(e),s="".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]," ").concat(t.getDate(),", ").concat(t.getFullYear()),n=t.getHours(),i=t.getMinutes(),r=n>=12?"PM":"AM";n=n%12||12;let l="".concat(n,":").concat(i.toString().padStart(2,"0")," ").concat(r);return"".concat(s," ").concat(l)}(e.date)})]})]})}),(0,n.jsxs)("div",{className:"p-4 grid grid-cols-3 gap-4 text-center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold",children:e.score}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Score"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold",children:e.totalQuestions}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Questions"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold capitalize",children:e.type}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Level"})]})]})]},e.user+e.date)})})]})]})}function l(e){let{selectQuizType:t}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Select Quiz Type"}),(0,n.jsx)("button",{onClick:()=>t("easy"),className:"bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 mr-2",children:"Easy"}),(0,n.jsx)("button",{onClick:()=>t("medium"),className:"bg-yellow-500 text-white px-4 py-2 rounded hover:bg-yellow-600 mr-2",children:"Medium"}),(0,n.jsx)("button",{onClick:()=>t("hard"),className:"bg-red-500 text-white px-4 py-2 rounded hover:bg-red-600",children:"Hard"})]})}function o(e){let{question:t,onAnswer:s,userAnswer:r}=e,[l,o]=(0,i.useState)(r||[]);(0,i.useEffect)(()=>{r?o(r):o(Array(t.blanks.length).fill(""))},[t,r]);let a=(e,t)=>{let n=[...l];n[e]=t,o(n),s(n)},c=t.question.split("__");return(0,n.jsx)("div",{children:c.map((e,t)=>(0,n.jsxs)("span",{children:[e,ta(t,e.target.value),className:"border border-gray-300 px-2 py-1 mx-1"})]},t))})}function a(e){let{question:t,onAnswer:s,userAnswer:i}=e,r=e=>{t.multipleAnswers?s((null==i?void 0:i.includes(e))?i.filter(t=>t!==e):[...i||[],e]):s([e])};return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-2",children:t.question}),t.options.map((e,s)=>(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsxs)("label",{className:"flex items-center",children:[(0,n.jsx)("input",{type:t.multipleAnswers?"checkbox":"radio",checked:null==i?void 0:i.includes(e),onChange:()=>r(e),className:"mr-2"}),e]})},s))]})}let c=e=>{let{question:t,onAnswer:s,userAnswer:r}=e,[l]=(0,i.useState)(t.leftItems),[o,a]=(0,i.useState)(t.rightItems),[c,u]=(0,i.useState)(null);(0,i.useEffect)(()=>{r&&a(Object.values(r))},[r]);let d=(e,t)=>{u(t),e.dataTransfer.effectAllowed="move"},h=(e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},p=(e,t)=>{if(e.preventDefault(),null===c)return;let n=[...o],[i]=n.splice(c,1);n.splice(t,0,i),a(n),u(null),s(l.reduce((e,t,s)=>(e[t]=n[s],e),{}))},m=()=>{u(null)};return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-4",children:t.question}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1/2 pr-4",children:l.map((e,t)=>(0,n.jsx)("div",{className:"mb-2 p-2 bg-gray-100 rounded",children:e},t))}),(0,n.jsx)("div",{className:"w-1/2 pl-4",children:o.map((e,t)=>(0,n.jsx)("div",{draggable:!0,onDragStart:e=>d(e,t),onDragOver:e=>h(e,t),onDrop:e=>p(e,t),onDragEnd:m,className:"mb-2 p-2 bg-blue-100 rounded cursor-move ".concat(c===t?"opacity-50":""),children:e},t))})]})]})};function u(e){let{question:t,onAnswer:s,userAnswer:i}=e;return(0,n.jsxs)("div",{className:"space-y-4",children:[(()=>{switch(t.type){case"fill-in-the-blanks":return(0,n.jsx)(o,{question:t,onAnswer:s,userAnswer:i});case"multiple-choice":return(0,n.jsx)(a,{question:t,onAnswer:s,userAnswer:i});case"matching":return(0,n.jsx)(c,{question:t,onAnswer:s,userAnswer:i});default:return(0,n.jsx)("div",{children:"Unsupported question type"})}})(),t.note&&(0,n.jsxs)("div",{className:"bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 rounded-md",children:[(0,n.jsx)("p",{className:"font-semibold",children:"Hint:"}),(0,n.jsx)("p",{children:t.note})]})]})}function d(e){let{questions:t,userAnswers:s,score:r,totalQuestions:l,resetQuiz:o}=e,[a,c]=(0,i.useState)(1),u=Math.ceil(t.length/5),d=5*a,h=d-5,p=t.slice(h,d),m=(e,t)=>{let i=s[h+t];switch(e.type){case"fill-in-the-blanks":return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold",children:"Your answer:"}),e.blanks.map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&" ",(0,n.jsx)("span",{className:e.includes(i[t])?"text-green-600":"text-red-600",children:i[t]||"_____"})]},t)),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Correct answer:"}),e.blanks.map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&" ",(0,n.jsx)("span",{className:"text-green-600",children:e[0]})]},t))]});case"multiple-choice":return(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"font-semibold",children:["Your answer:",(0,n.jsx)("span",{className:e.correctAnswers.every(e=>null==i?void 0:i.includes(e))?"text-green-600":"text-red-600",children:(null==i?void 0:i.join(", "))||"No answer"})]}),(0,n.jsxs)("p",{className:"font-semibold mt-2",children:["Correct answer:",(0,n.jsx)("span",{className:"text-green-600",children:e.correctAnswers.join(", ")})]})]});case"matching":return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold",children:"Your matches:"}),Object.entries(i||{}).map(t=>{let[s,i]=t;return(0,n.jsxs)("p",{className:e.correctMatches[s]===i?"text-green-600":"text-red-600",children:[s," ➔ ",i]},s)}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Correct matches:"}),Object.entries(e.correctMatches).map(e=>{let[t,s]=e;return(0,n.jsxs)("p",{className:"text-green-600",children:[t," ➔ ",s]},t)})]});default:return(0,n.jsx)("p",{children:"Unsupported question type"})}};return(0,n.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Quiz Results"}),(0,n.jsxs)("p",{className:"mb-4",children:["Your score: ",r," out of ",l]}),p.map((e,t)=>(0,n.jsxs)("div",{className:"mb-6 p-4 border rounded",children:[(0,n.jsxs)("h3",{className:"font-semibold mb-2",children:["Question ",h+t+1,":"]}),(0,n.jsx)("p",{className:"mb-2",children:e.question}),m(e,t)]},h+t)),(0,n.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,n.jsx)("button",{onClick:()=>c(e=>Math.max(e-1,1)),disabled:1===a,className:"bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-300",children:"Previous"}),(0,n.jsxs)("span",{children:["Page ",a," of ",u]}),(0,n.jsx)("button",{onClick:()=>c(e=>Math.min(e+1,u)),disabled:a===u,className:"bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-300",children:"Next"})]}),(0,n.jsx)("button",{onClick:o,className:"mt-6 bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600",children:"Start New Quiz"})]})}function h(e){let{quizType:t,user:r,resetQuiz:l}=e,[o,a]=(0,i.useState)([]),[c,h]=(0,i.useState)(0),[p,m]=(0,i.useState)({}),[x,b]=(0,i.useState)(!1),[g,y]=(0,i.useState)(0),[f,w]=(0,i.useState)(null),[j,N]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{N(!0),w(null);try{let e=[];switch(t){case"easy":e=s(3176).a.questions;break;case"medium":e=s(3493).a.questions;break;case"hard":e=s(6119).a.questions;break;default:e=[]}if(Array.isArray(e)&&e.length>0){let t=(function(e){if(!Array.isArray(e))return console.error("Input is not an array:",e),[];let t=[...e];for(let e=t.length-1;e>0;e--){let s=Math.floor(Math.random()*(e+1));[t[e],t[s]]=[t[s],t[e]]}return t})(e).slice(0,15);a(t)}else Array.isArray(e)&&0===e.length?w("No questions available for this quiz type."):e.error?w(e.error):w("Received invalid data from server")}catch(e){console.error("Error loading questions:",e),w("Failed to load questions: ".concat(e.message))}finally{N(!1)}})()},[t]);let A=(e,t)=>{if(!t)return!1;switch(e.type){case"fill-in-the-blanks":return Array.isArray(t)&&Array.isArray(e.blanks)&&e.blanks.every((e,s)=>t[s]&&e.includes(t[s]));case"multiple-choice":if(!Array.isArray(t)||!Array.isArray(e.correctAnswers))return!1;let s=[...t].sort();return JSON.stringify([...e.correctAnswers].sort())===JSON.stringify(s);case"matching":if(!t||!e.correctMatches)return!1;return JSON.stringify(e.correctMatches)===JSON.stringify(t);default:return!1}},v=()=>{let e=0;o.forEach((t,s)=>{A(t,p[s])&&e++}),y(e),b(!0);let s=localStorage.getItem("quizUserId");if(s){let n=JSON.parse(localStorage.getItem("quizResults")||"[]").map(n=>n.id===s?{...n,type:t,score:e,totalQuestions:o.length,date:new Date().toISOString()}:n);localStorage.setItem("quizResults",JSON.stringify(n))}};return j?(0,n.jsx)("div",{className:"text-center",children:"Loading questions..."}):f?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-red-500 mb-4",children:f}),(0,n.jsx)("button",{onClick:l,className:"bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600",children:"Try Again"})]}):x?(0,n.jsx)(d,{questions:o,userAnswers:p,score:g,totalQuestions:o.length,resetQuiz:l}):0===o.length?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-red-500 mb-4",children:"No questions available for this quiz type."}),(0,n.jsx)("button",{onClick:l,className:"bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600",children:"Try Another Quiz"})]}):(0,n.jsxs)("div",{children:[(0,n.jsxs)("h2",{className:"text-2xl font-bold mb-4",children:["Question ",c+1," of ",o.length]}),(0,n.jsx)(u,{question:o[c],onAnswer:e=>{m({...p,[c]:e})},userAnswer:p[c]}),(0,n.jsx)("button",{onClick:()=>{c{let e=localStorage.getItem("quizUsers");e&&t(JSON.parse(e))},[]),s)?a?(0,n.jsx)(h,{quizType:a,user:s,resetQuiz:()=>{o(null),c(null)}}):(0,n.jsx)(l,{selectQuizType:n=>{c(n);let i={...s,type:n},r=e.map(e=>e.id===i.id?i:e);t(r),localStorage.setItem("quizUsers",JSON.stringify(r)),o(i),c(n)}}):(0,n.jsx)(r,{users:e,addUser:s=>{let n={name:s},i=[...e,n];t(i),localStorage.setItem("quizUsers",JSON.stringify(i)),o(n)},selectUser:e=>{o(e)}})}function m(){return(0,n.jsxs)("main",{className:"container mx-auto p-4",children:[(0,n.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Test Mate App"}),(0,n.jsx)(p,{})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[441,517,358],()=>t(5257)),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/app/page-d67170bc1533bf8a.js b/_next/static/chunks/app/page-d67170bc1533bf8a.js
deleted file mode 100644
index 1ed1a64..0000000
--- a/_next/static/chunks/app/page-d67170bc1533bf8a.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{5257:(e,t,s)=>{Promise.resolve().then(s.bind(s,6170))},3176:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"fill-in-the-blanks",question:"I see __ orange on the table.",blanks:["an"],note:"Articles"},{id:2,type:"fill-in-the-blanks",question:"The cat is __ the box.",blanks:["in"],note:"Prepositions"},{id:3,type:"multiple-choice",question:"Which is a proper noun?",options:["dog","park","Monday","Mumbai"],correctAnswers:["Mumbai"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:5,type:"matching",question:"Match the word with its opposite",leftItems:["Big","Happy"],rightItems:["Small","Sad"],correctMatches:{Big:"Small",Happy:"Sad"},note:"Opposites"},{id:6,type:"fill-in-the-blanks",question:"The bird is __ the tree.",blanks:["on"],note:"Prepositions"},{id:7,type:"multiple-choice",question:"What is 2 + 3?",options:["4","5","6","7"],correctAnswers:["5"],multipleAnswers:!1,note:"Addition with carryover"},{id:9,type:"multiple-choice",question:"Which shape has no corners?",options:["Square","Circle","Triangle","Rectangle"],correctAnswers:["Circle"],multipleAnswers:!1,note:"Solid shapes"},{id:10,type:"fill-in-the-blanks",question:"The __ is shining in the sky.",blanks:["sun"],note:"Vocabulary - Meaning"},{id:11,type:"multiple-choice",question:"What is the opposite of 'hot'?",options:["Cold","Warm","Cool","Dry"],correctAnswers:["Cold"],multipleAnswers:!1,note:"Opposites"},{id:12,type:"matching",question:"Match the animal with its home",leftItems:["Dog","Bird"],rightItems:["Nest","Kennel"],correctMatches:{Dog:"Kennel",Bird:"Nest"},note:"General knowledge"},{id:13,type:"multiple-choice",question:"What is 5 \xd7 3?",options:["8","12","15","18"],correctAnswers:["15"],multipleAnswers:!1,note:"Multiplication"},{id:14,type:"multiple-choice",question:"Which is a preposition?",options:["Tree","On","Fast","Happy"],correctAnswers:["On"],multipleAnswers:!1,note:"Prepositions"},{id:15,type:"fill-in-the-blanks",question:"The dog __ running fast.",blanks:["is"],note:"Verbs"},{id:16,type:"matching",question:"Match the shapes with their names",leftItems:["A square","A triangle"],rightItems:["Four sides","Three sides"],correctMatches:{"A square":"Four sides","A triangle":"Three sides"},note:"Solid shapes"},{id:17,type:"multiple-choice",question:"Which is a pronoun?",options:["She","Table","Blue","Run"],correctAnswers:["She"],multipleAnswers:!1,note:"Pronouns"},{id:18,type:"fill-in-the-blanks",question:"The boy and the girl are __ to school.",blanks:["going"],note:"Verbs"},{id:19,type:"multiple-choice",question:"What comes after 999?",options:["998","1000","1001","999"],correctAnswers:["1000"],multipleAnswers:!1,note:"Numerals and number names"}]}},6119:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"multiple-choice",question:"What is 654 \xd7 3?",options:["1902","1962","1842","1862"],correctAnswers:["1962"],multipleAnswers:!1,note:"Multiplication"},{id:2,type:"multiple-choice",question:"Which of these is NOT a proper noun?",options:["London","Car","Monday","Taj Mahal"],correctAnswers:["Car"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:4,type:"matching",question:"Match the synonyms",leftItems:["Brave","Quick"],rightItems:["Courageous","Fast"],correctMatches:{Brave:"Courageous",Quick:"Fast"},note:"Synonyms"},{id:5,type:"multiple-choice",question:"What is 923 - 567?",options:["356","366","356","346"],correctAnswers:["356"],multipleAnswers:!1,note:"Subtraction with borrowing"},{id:6,type:"fill-in-the-blanks",question:"A cube has __ faces.",blanks:["6"],note:"Solid shapes"},{id:7,type:"multiple-choice",question:"Which is a pronoun?",options:["He","Run","School","Jump"],correctAnswers:["He"],multipleAnswers:!1,note:"Pronouns"},{id:8,type:"multiple-choice",question:"What is 432 + 219?",options:["651","659","649","641"],correctAnswers:["651"],multipleAnswers:!1,note:"Addition with carryover"},{id:9,type:"fill-in-the-blanks",question:"The boy __ his homework yesterday.",blanks:["did"],note:"Verbs"},{id:10,type:"multiple-choice",question:"What is the smallest 4-digit number?",options:["999","1000","1001","9999"],correctAnswers:["1000"],multipleAnswers:!1,note:"Building numbers"}]}},3493:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});let n={questions:[{id:1,type:"fill-in-the-blanks",question:"The __ is a star that gives us light and heat.",blanks:["sun"],note:"Vocabulary - Meaning"},{id:2,type:"multiple-choice",question:"Which of these is a proper noun?",options:["City","Ravi","Dog","Tree"],correctAnswers:["Ravi"],multipleAnswers:!1,note:"Common and Proper Nouns"},{id:3,type:"multiple-choice",question:"What is the opposite of 'soft'?",options:["Hard","Light","Big","Slow"],correctAnswers:["Hard"],multipleAnswers:!1,note:"Opposites"},{id:5,type:"matching",question:"Match the words with their meanings",leftItems:["Tiny","Fast"],rightItems:["Small","Quick"],correctMatches:{Tiny:"Small",Fast:"Quick"},note:"Synonyms"},{id:6,type:"fill-in-the-blanks",question:"There are __ apples in the basket.",blanks:["some"],note:"Articles"},{id:7,type:"multiple-choice",question:"What is 234 + 123?",options:["357","346","347","365"],correctAnswers:["357"],multipleAnswers:!1,note:"Addition with carryover"},{id:8,type:"multiple-choice",question:"What is 762 - 345?",options:["417","412","415","420"],correctAnswers:["417"],multipleAnswers:!1,note:"Subtraction with borrowing"},{id:9,type:"multiple-choice",question:"What is 12 \xd7 3?",options:["36","34","35","33"],correctAnswers:["36"],multipleAnswers:!1,note:"Multiplication"},{id:11,type:"fill-in-the-blanks",question:"The dog __ playing with the ball.",blanks:["is"],note:"Verbs"},{id:12,type:"multiple-choice",question:"Which is a conjunction?",options:["And","Apple","Run","He"],correctAnswers:["And"],multipleAnswers:!1,note:"Conjunctions"},{id:13,type:"multiple-choice",question:"What comes before 500?",options:["498","499","501","502"],correctAnswers:["499"],multipleAnswers:!1,note:"Numerals and number names"},{id:14,type:"matching",question:"Match the shapes with their properties",leftItems:["Sphere","Cube"],rightItems:["Round","Six faces"],correctMatches:{Sphere:"Round",Cube:"Six faces"},note:"Solid shapes"},{id:15,type:"multiple-choice",question:"What is the face value of 3 in 345?",options:["3","30","300","3 and 30"],correctAnswers:["3"],multipleAnswers:!1,note:"Place value and face value"}]}},6170:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var n=s(5155),i=s(2115);function r(e){let{selectUser:t}=e,[s,r]=(0,i.useState)([]),[l,o]=(0,i.useState)(""),[a,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!0);(0,i.useEffect)(()=>{d(!0);let e=localStorage.getItem("quizResults");e&&r(JSON.parse(e)),d(!1)},[]);let h=e=>{if(s.some(t=>t.user&&"string"==typeof t.user&&t.user.toLowerCase()===e.toLowerCase())){c("User already exists.");return}let n=crypto.randomUUID();localStorage.setItem("quizUserId",n);let i={id:n,user:e,type:"easy",score:0,totalQuestions:0,date:new Date().toISOString()},l=[...s,i];r(l),localStorage.setItem("quizResults",JSON.stringify(l)),c(""),t(i)},p=(0,n.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,n.jsx)("div",{className:"w-16 h-16 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"})});return(0,n.jsxs)("div",{className:"mx-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Add New User"}),(0,n.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!l.trim()){c("Please enter a name.");return}h(l.trim()),o("")},className:"flex gap-2 mb-8",children:[(0,n.jsx)("input",{type:"text",value:l,onChange:e=>o(e.target.value),placeholder:"Enter your name",className:"flex-1 border rounded p-2 focus:outline-none focus:ring-2 focus:ring-blue-500"}),(0,n.jsx)("button",{type:"submit",className:"bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 transition-colors",children:"Add User"}),a&&(0,n.jsx)("p",{className:"text-red-500 mb-4",children:a})]}),u?p:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("h2",{className:"text-2xl font-bold mb-4",children:[0===s.length?"No":""," Test Results"]}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 mb-6",children:s.map(e=>{var t;return(0,n.jsxs)("div",{className:"bg-white border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow",children:[(0,n.jsx)("div",{className:"flex items-center justify-between p-4 bg-gray-50 border-b",children:(0,n.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,n.jsx)("div",{className:"h-10 w-10 flex items-center justify-center bg-blue-500 text-white text-xl font-bold rounded",children:(null===(t=e.user)||void 0===t?void 0:t[0])||"?"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"font-medium text-lg",children:e.user}),(0,n.jsx)("p",{className:"text-sm text-gray-500",suppressHydrationWarning:!0,children:function(e){let t=new Date(e),s="".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]," ").concat(t.getDate(),", ").concat(t.getFullYear()),n=t.getHours(),i=t.getMinutes(),r=n>=12?"PM":"AM";n=n%12||12;let l="".concat(n,":").concat(i.toString().padStart(2,"0")," ").concat(r);return"".concat(s," ").concat(l)}(e.date)})]})]})}),(0,n.jsxs)("div",{className:"p-4 grid grid-cols-3 gap-4 text-center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold",children:e.score}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Score"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold",children:e.totalQuestions}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Questions"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-lg font-semibold capitalize",children:e.type}),(0,n.jsx)("div",{className:"text-sm text-gray-500",children:"Level"})]})]})]},e.user+e.date)})})]})]})}function l(e){let{selectQuizType:t}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Select Quiz Type"}),(0,n.jsx)("button",{onClick:()=>t("easy"),className:"bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 mr-2",children:"Easy"}),(0,n.jsx)("button",{onClick:()=>t("medium"),className:"bg-yellow-500 text-white px-4 py-2 rounded hover:bg-yellow-600 mr-2",children:"Medium"}),(0,n.jsx)("button",{onClick:()=>t("hard"),className:"bg-red-500 text-white px-4 py-2 rounded hover:bg-red-600",children:"Hard"})]})}function o(e){let{question:t,onAnswer:s,userAnswer:r}=e,[l,o]=(0,i.useState)(r||[]);(0,i.useEffect)(()=>{r?o(r):o(Array(t.blanks.length).fill(""))},[t,r]);let a=(e,t)=>{let n=[...l];n[e]=t,o(n),s(n)},c=t.question.split("__");return(0,n.jsx)("div",{children:c.map((e,t)=>(0,n.jsxs)("span",{children:[e,ta(t,e.target.value),className:"border border-gray-300 px-2 py-1 mx-1"})]},t))})}function a(e){let{question:t,onAnswer:s,userAnswer:i}=e,r=e=>{t.multipleAnswers?s((null==i?void 0:i.includes(e))?i.filter(t=>t!==e):[...i||[],e]):s([e])};return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-2",children:t.question}),t.options.map((e,s)=>(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsxs)("label",{className:"flex items-center",children:[(0,n.jsx)("input",{type:t.multipleAnswers?"checkbox":"radio",checked:null==i?void 0:i.includes(e),onChange:()=>r(e),className:"mr-2"}),e]})},s))]})}let c=e=>{let{question:t,onAnswer:s,userAnswer:r}=e,[l]=(0,i.useState)(t.leftItems),[o,a]=(0,i.useState)(t.rightItems),[c,u]=(0,i.useState)(null);(0,i.useEffect)(()=>{r&&a(Object.values(r))},[r]);let d=(e,t)=>{u(t),e.dataTransfer.effectAllowed="move"},h=(e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},p=(e,t)=>{if(e.preventDefault(),null===c)return;let n=[...o],[i]=n.splice(c,1);n.splice(t,0,i),a(n),u(null),s(l.reduce((e,t,s)=>(e[t]=n[s],e),{}))},m=()=>{u(null)};return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-4",children:t.question}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"w-1/2 pr-4",children:l.map((e,t)=>(0,n.jsx)("div",{className:"mb-2 p-2 bg-gray-100 rounded",children:e},t))}),(0,n.jsx)("div",{className:"w-1/2 pl-4",children:o.map((e,t)=>(0,n.jsx)("div",{draggable:!0,onDragStart:e=>d(e,t),onDragOver:e=>h(e,t),onDrop:e=>p(e,t),onDragEnd:m,className:"mb-2 p-2 bg-blue-100 rounded cursor-move ".concat(c===t?"opacity-50":""),children:e},t))})]})]})};function u(e){let{question:t,onAnswer:s,userAnswer:i}=e;return(0,n.jsxs)("div",{className:"space-y-4",children:[(()=>{switch(t.type){case"fill-in-the-blanks":return(0,n.jsx)(o,{question:t,onAnswer:s,userAnswer:i});case"multiple-choice":return(0,n.jsx)(a,{question:t,onAnswer:s,userAnswer:i});case"matching":return(0,n.jsx)(c,{question:t,onAnswer:s,userAnswer:i});default:return(0,n.jsx)("div",{children:"Unsupported question type"})}})(),t.note&&(0,n.jsxs)("div",{className:"bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 rounded-md",children:[(0,n.jsx)("p",{className:"font-semibold",children:"Hint:"}),(0,n.jsx)("p",{children:t.note})]})]})}function d(e){let{questions:t,userAnswers:s,score:r,totalQuestions:l,resetQuiz:o}=e,[a,c]=(0,i.useState)(1),u=Math.ceil(t.length/5),d=5*a,h=d-5,p=t.slice(h,d),m=(e,t)=>{let i=s[h+t];switch(e.type){case"fill-in-the-blanks":return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold",children:"Your answer:"}),e.blanks.map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&" ",(0,n.jsx)("span",{className:e.includes(i[t])?"text-green-600":"text-red-600",children:i[t]||"_____"})]},t)),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Correct answer:"}),e.blanks.map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&" ",(0,n.jsx)("span",{className:"text-green-600",children:e[0]})]},t))]});case"multiple-choice":return(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"font-semibold",children:["Your answer:",(0,n.jsx)("span",{className:e.correctAnswers.every(e=>null==i?void 0:i.includes(e))?"text-green-600":"text-red-600",children:(null==i?void 0:i.join(", "))||"No answer"})]}),(0,n.jsxs)("p",{className:"font-semibold mt-2",children:["Correct answer:",(0,n.jsx)("span",{className:"text-green-600",children:e.correctAnswers.join(", ")})]})]});case"matching":return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold",children:"Your matches:"}),Object.entries(i||{}).map(t=>{let[s,i]=t;return(0,n.jsxs)("p",{className:e.correctMatches[s]===i?"text-green-600":"text-red-600",children:[s," ➔ ",i]},s)}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Correct matches:"}),Object.entries(e.correctMatches).map(e=>{let[t,s]=e;return(0,n.jsxs)("p",{className:"text-green-600",children:[t," ➔ ",s]},t)})]});default:return(0,n.jsx)("p",{children:"Unsupported question type"})}};return(0,n.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Quiz Results"}),(0,n.jsxs)("p",{className:"mb-4",children:["Your score: ",r," out of ",l]}),p.map((e,t)=>(0,n.jsxs)("div",{className:"mb-6 p-4 border rounded",children:[(0,n.jsxs)("h3",{className:"font-semibold mb-2",children:["Question ",h+t+1,":"]}),(0,n.jsx)("p",{className:"mb-2",children:e.question}),m(e,t)]},h+t)),(0,n.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,n.jsx)("button",{onClick:()=>c(e=>Math.max(e-1,1)),disabled:1===a,className:"bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-300",children:"Previous"}),(0,n.jsxs)("span",{children:["Page ",a," of ",u]}),(0,n.jsx)("button",{onClick:()=>c(e=>Math.min(e+1,u)),disabled:a===u,className:"bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-300",children:"Next"})]}),(0,n.jsx)("button",{onClick:o,className:"mt-6 bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600",children:"Start New Quiz"})]})}function h(e){let{quizType:t,user:r,resetQuiz:l}=e,[o,a]=(0,i.useState)([]),[c,h]=(0,i.useState)(0),[p,m]=(0,i.useState)({}),[x,b]=(0,i.useState)(!1),[g,y]=(0,i.useState)(0),[f,w]=(0,i.useState)(null),[j,N]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{N(!0),w(null);try{let e=[];switch(t){case"easy":e=s(3176).a.questions;break;case"medium":e=s(3493).a.questions;break;case"hard":e=s(6119).a.questions;break;default:e=[]}if(Array.isArray(e)&&e.length>0){let t=(function(e){if(!Array.isArray(e))return console.error("Input is not an array:",e),[];let t=[...e];for(let e=t.length-1;e>0;e--){let s=Math.floor(Math.random()*(e+1));[t[e],t[s]]=[t[s],t[e]]}return t})(e).slice(0,15);a(t)}else Array.isArray(e)&&0===e.length?w("No questions available for this quiz type."):e.error?w(e.error):w("Received invalid data from server")}catch(e){console.error("Error loading questions:",e),w("Failed to load questions: ".concat(e.message))}finally{N(!1)}})()},[t]);let A=(e,t)=>{if(!t)return!1;switch(e.type){case"fill-in-the-blanks":return Array.isArray(t)&&Array.isArray(e.blanks)&&e.blanks.every((e,s)=>t[s]&&e.includes(t[s]));case"multiple-choice":if(!Array.isArray(t)||!Array.isArray(e.correctAnswers))return!1;let s=[...t].sort();return JSON.stringify([...e.correctAnswers].sort())===JSON.stringify(s);case"matching":if(!t||!e.correctMatches)return!1;return JSON.stringify(e.correctMatches)===JSON.stringify(t);default:return!1}},v=()=>{let e=0;o.forEach((t,s)=>{A(t,p[s])&&e++}),y(e),b(!0);let s=localStorage.getItem("quizUserId");if(s){let n=JSON.parse(localStorage.getItem("quizResults")||"[]").map(n=>n.id===s?{...n,type:t,score:e,totalQuestions:o.length,date:new Date().toISOString()}:n);localStorage.setItem("quizResults",JSON.stringify(n))}};return j?(0,n.jsx)("div",{className:"text-center",children:"Loading questions..."}):f?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-red-500 mb-4",children:f}),(0,n.jsx)("button",{onClick:l,className:"bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600",children:"Try Again"})]}):x?(0,n.jsx)(d,{questions:o,userAnswers:p,score:g,totalQuestions:o.length,resetQuiz:l}):0===o.length?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-red-500 mb-4",children:"No questions available for this quiz type."}),(0,n.jsx)("button",{onClick:l,className:"bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600",children:"Try Another Quiz"})]}):(0,n.jsxs)("div",{children:[(0,n.jsxs)("h2",{className:"text-2xl font-bold mb-4",children:["Question ",c+1," of ",o.length]}),(0,n.jsx)(u,{question:o[c],onAnswer:e=>{m({...p,[c]:e})},userAnswer:p[c]}),(0,n.jsx)("button",{onClick:()=>{c{let e=localStorage.getItem("quizUsers");e&&t(JSON.parse(e))},[]),s)?a?(0,n.jsx)(h,{quizType:a,user:s,resetQuiz:()=>{o(null),c(null)}}):(0,n.jsx)(l,{selectQuizType:n=>{c(n);let i={...s,type:n},r=e.map(e=>e.id===i.id?i:e);t(r),localStorage.setItem("quizUsers",JSON.stringify(r)),o(i),c(n)}}):(0,n.jsx)(r,{users:e,addUser:s=>{let n={name:s},i=[...e,n];t(i),localStorage.setItem("quizUsers",JSON.stringify(i)),o(n)},selectUser:e=>{o(e)}})}function m(){return(0,n.jsxs)("main",{className:"container mx-auto p-4",children:[(0,n.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Test Mate App"}),(0,n.jsx)(p,{})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[441,517,358],()=>t(5257)),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/index.html b/index.html
index cf3e05e..e7c02ee 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-Test Mate
Test Mate App
Add New User
\ No newline at end of file
+Test Mate
Test Mate App
Add New User
\ No newline at end of file
diff --git a/index.txt b/index.txt
index 86dc232..36da51e 100644
--- a/index.txt
+++ b/index.txt
@@ -2,7 +2,7 @@
2:I[5244,[],""]
3:I[3866,[],""]
4:I[7033,[],"ClientPageRoot"]
-5:I[6170,["974","static/chunks/app/page-d67170bc1533bf8a.js"],"default"]
+5:I[6170,["974","static/chunks/app/page-b5454df2c65b96e9.js"],"default"]
8:I[6213,[],"OutletBoundary"]
a:I[6213,[],"MetadataBoundary"]
c:I[6213,[],"ViewportBoundary"]
@@ -10,7 +10,7 @@ e:I[4835,[],""]
:HL["/test-mate/_next/static/media/569ce4b8f30dc480-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
:HL["/test-mate/_next/static/media/93f479601ee12b01-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
:HL["/test-mate/_next/static/css/472f86d0bda8659b.css","style"]
-0:{"P":null,"b":"sNyYE7OYh2pp-TM7rivvN","p":"/test-mate","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/test-mate/_next/static/css/472f86d0bda8659b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_97de87 __variable_d7a72a antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":"$L9"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","96SIvUMzLcpzIVfkE_IP6",{"children":[["$","$La",null,{"children":"$Lb"}],["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$e","$undefined"],"s":false,"S":true}
+0:{"P":null,"b":"AwdR7DeeWurjCbC1PVLrT","p":"/test-mate","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/test-mate/_next/static/css/472f86d0bda8659b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_97de87 __variable_d7a72a antialiased","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":"$L9"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","maHUKfYNkIV5zxQ5RFMz4",{"children":[["$","$La",null,{"children":"$Lb"}],["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$e","$undefined"],"s":false,"S":true}
6:{}
7:{}
d:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]