1"use strict";(self.webpackChunkmagic_link_auth=self.webpackChunkmagic_link_auth||[]).push([[3541,1438,3614,102,443,302,7706,1257,1469,3099],{93614:(e,n,s)=>{s.r(n),s.d(n,{default:()=>t});const t={progressContainer:"LessonProgress_progressContainer__LCZ47",progressLabel:"LessonProgress_progressLabel__M+s4B",progressSlider:"LessonProgress_progressSlider__h2aV8",progressBar:"LessonProgress_progressBar__S7Zb1",progressFill:"LessonProgress_progressFill__qjmc0",completedText:"LessonProgress_completedText__yJtq+",updateButton:"LessonProgress_updateButton__pbg5G",notesSection:"LessonProgress_notesSection__QLGuc",notesLabel:"LessonProgress_notesLabel__4Aw8v",notesTextarea:"LessonProgress_notesTextarea__wU-cj",saveNotesButton:"LessonProgress_saveNotesButton__Nl2t+"}},96501:(e,n,s)=>{s.r(n),s.d(n,{default:()=>d});var t=s(82483),o=s(10443),r=s(50102),a=s(57318),i=s(7476),l=(s(119),s(70119),s(56723));const d=e=>{let{instructions:n,appletId:s}=e;const[d,c]=(0,t.useState)(0),x=n[d],p=e=>{const n=window[s];n&&"function"===typeof n.evalCommand?n.evalCommand(e):console.warn("GeoGebra applet is not available")};return(0,l.jsxs)("div",{style:{padding:"20px",border:"1px solid #ddd",borderRadius:"10px",backgroundColor:"#f0f8ff",maxWidth:"900px",margin:"20px auto"},children:[(0,l.jsx)("h3",{style:{textAlign:"center"},children:"Instructions"}),(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"20px"},children:[(0,l.jsx)("button",{onClick:()=>{d>0&&(c(d-1),n[d-1].geoGebraCommand&&p(n[d-1].geoGebraCommand))},disabled:0===d,style:{padding:"5px 10px",backgroundColor:"#f44336",color:"#fff",border:"none",borderRadius:"3px",cursor:0===d?"not-allowed":"pointer",height:"40px",alignSelf:"center"},children:"Previous"}),(0,l.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[x.text&&(0,l.jsx)(o.default,{text:x.text,initialVoice:x.voice}),x.component&&(0,l.jsx)("div",{style:{marginTop:"20px",width:"100%"},children:x.component}),x.geoGebraCommand&&(0,l.jsx)("button",{onClick:()=>p(x.geoGebraCommand),style:{marginTop:"10px",padding:"5px 10px",backgroundColor:"#4CAF50",color:"#fff",border:"none",borderRadius:"3px",cursor:"pointer"},children:x.commandButtonText||"Execute GeoGebra Command"}),(0,l.jsx)("hr",{style:{margin:"10px 0",width:"100%"}}),x.imageUrl&&(0,l.jsx)(i.default,{imageUrl:x.imageUrl}),x.videoUrl&&(0,l.jsx)(a.default,{videoUrl:x.videoUrl}),x.quizData&&(0,l.jsx)(r.default,{questionData:x.quizData})]}),(0,l.jsx)("button",{onClick:()=>{d<n.length-1&&(c(d+1),n[d+1].geoGebraCommand&&p(n[d+1].geoGebraCommand))},disabled:d===n.length-1,style:{padding:"5px 10px",backgroundColor:"#2196F3",color:"#fff",border:"none",borderRadius:"3px",cursor:d===n.length-1?"not-allowed":"pointer",height:"40px",alignSelf:"center"},children:"Next"})]})]})}},31438:(e,n,s)=>{s.r(n),s.d(n,{default:()=>l});var t=s(82483),o=s(47757),r=s(83099),a=s(93614),i=s(56723);const l=e=>{let{lessonId:n}=e;const{user:s}=(0,o.useAuth)(),[l,d]=(0,t.useState)(0),[c,x]=(0,t.useState)(!0),[p,u]=(0,t.useState)("");(0,t.useEffect)((()=>{(async()=>{if(s){x(!0);let e=await(0,r.getLessonProgress)(s.uid,n);e||(await(0,r.initializeLesson)(s.uid,n),e=await(0,r.getLessonProgress)(s.uid,n)),d(e.percentComplete||0);const t=await(0,r.getLessonNotes)(s.uid,n);u(t||""),x(!1)}})()}),[s,n]);return c?(0,i.jsx)("div",{children:"Loading progress..."}):s?(0,i.jsxs)("div",{className:a.default.progressContainer,children:[(0,i.jsxs)("label",{htmlFor:"progress-slider",className:a.default.progressLabel,children:["Lesson Progress: ",l,"%"]}),(0,i.jsx)("input",{id:"progress-slider",type:"range",min:"0",max:"100",value:l,onChange:e=>{d(Number(e.target.value))},className:a.default.progressSlider}),(0,i.jsx)("div",{className:a.default.progressBar,children:(0,i.jsx)("div",{className:a.default.progressFill,style:{width:`${l}%`}})}),100===l&&(0,i.jsx)("p",{className:a.default.completedText,children:"Lesson Completed!"}),(0,i.jsx)("button",{onClick:async()=>{s&&await(0,r.updateLessonProgress)(s.uid,n,l)},className:a.default.updateButton,children:"Update Progress"}),(0,i.jsxs)("div",{className:a.default.notesSection,children:[(0,i.jsx)("label",{htmlFor:"lesson-notes",className:a.default.notesLabel,children:"Your Notes"}),(0,i.jsx)("textarea",{id:"lesson-notes",value:p,onChange:e=>{u(e.target.value)},className:a.default.notesTextarea,placeholder:"Write your notes here..."}),(0,i.jsx)("button",{onClick:async()=>{s&&await(0,r.updateLessonNotes)(s.uid,n,p)},className:a.default.saveNotesButton,children:"Save Notes"})]})]}
1):(0,i.jsx)("div",{children:"Please log in to track your progress."})}},50102:(e,n,s)=>{s.r(n),s.d(n,{default:()=>i});var t=s(82483),o=s(57318),r=s(7476),a=s(56723);const i=e=>{let{questionData:n}=e;const[s,i]=(0,t.useState)(null),[l,d]=(0,t.useState)(!1),{question:c,options:x,correctAnswer:p,imageUrl:u,videoUrl:h}=n,g=e=>{i(e.target.value)};return(0,a.jsxs)("div",{style:{fontFamily:"Arial, sans-serif",maxWidth:"400px",backgroundColor:"#f0f0f0",padding:"15px",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",textAlign:"left"},children:[(0,a.jsx)("h3",{style:{marginTop:"0",marginBottom:"15px",fontSize:"1.2em",color:"#333",borderBottom:"1px solid #ddd",paddingBottom:"10px"},children:c}),u&&(0,a.jsx)(r.default,{imageUrl:u}),h&&(0,a.jsx)(o.default,{videoUrl:h}),x.map((e=>(0,a.jsx)("div",{style:{marginBottom:"10px"},children:(0,a.jsxs)("label",{style:{cursor:"pointer",display:"flex",alignItems:"center"},children:[(0,a.jsx)("input",{type:"radio",name:"quiz-option",value:e.key,checked:s===e.key,onChange:g,disabled:l,style:{marginRight:"10px"}}),(0,a.jsx)("span",{style:{fontSize:"0.9em"},children:e.text})]})},e.key))),l?(0,a.jsxs)("div",{style:{marginTop:"15px"},children:[s===p?(0,a.jsx)("p",{style:{color:"green",fontWeight:"bold",margin:"0 0 10px 0"},children:"Correct!"}):(0,a.jsxs)("p",{style:{color:"red",fontWeight:"bold",margin:"0 0 10px 0"},children:["Incorrect. The correct answer is"," ",(0,a.jsx)("span",{style:{textTransform:"uppercase"},children:p}),"."]}),(0,a.jsx)("button",{onClick:()=>{i(null),d(!1)},style:{padding:"8px 15px",backgroundColor:"#008CBA",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"0.9em",transition:"background-color 0.3s"},children:"Try Again"})]}):(0,a.jsx)("button",{onClick:()=>{s&&d(!0)},disabled:!s,style:{marginTop:"15px",padding:"8px 15px",backgroundColor:"#4CAF50",color:"#fff",border:"none",borderRadius:"4px",cursor:s?"pointer":"not-allowed",opacity:s?1:.6,fontSize:"0.9em",transition:"background-color 0.3s"},children:"Submit"})]})}},10443:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(82483),o=s(56723);const r=e=>{let{text:n,initialVoice:s}=e;const[r,a]=(0,t.useState)([]),[i,l]=(0,t.useState)(null),[d,c]=(0,t.useState)(!1),x={"Google UK English Female":"Samantha UK Female","Google UK English Male":"UK Male","Google \u0939\u093f\u0928\u094d\u0926\u0940":"Hindi",Default:"Default Voice"},p=["en-US","es-MX","en-GB","en-IE","en-AU","hi-IN"];(0,t.useEffect)((()=>{const e=()=>{let e=window.speechSynthesis.getVoices();e.unshift({name:"Default",lang:"en-US"});const n=e.filter((e=>(x.hasOwnProperty(e.name)||"Default"===e.name)&&(p.includes(e.lang)||"Default"===e.name)));let t;if(a(n),s)t=n.find((e=>e.name===s.name));else{const e=n.find((e=>"Google UK English Female"===e.name)),s=n.find((e=>"Default"!==e.name));t=e||s||n[0]}l(t)};e(),void 0!==window.speechSynthesis.onvoiceschanged&&(window.speechSynthesis.onvoiceschanged=e)}),[s]);const u=e=>x[e.name]||e.name;return(0,o.jsxs)("div",{style:{fontFamily:"Arial, sans-serif",maxWidth:"300px"},children:[(0,o.jsx)("p",{style:{marginBottom:"10px"},children:n}),(0,o.jsx)("select",{onChange:e=>l(r.find((n=>n.name===e.target.value))),style:{marginBottom:"10px",padding:"5px"},value:i?i.name:"",children:r.map((e=>(0,o.jsx)("option",{value:e.name,children:u(e)},e.name)))}),(0,o.jsx)("br",{}),(0,o.jsx)("button",{onClick:()=>{if("speechSynthesis"in window){const e=new SpeechSynthesisUtterance(n);i&&"Default"!==i.name&&(e.voice=i),e.rate=.9,e.pitch=1,e.onend=()=>c(!1),window.speechSynthesis.speak(e),c(!0)}else alert("Sorry, your browser doesn't support text to speech!")},disabled:d,style:{padding:"5px 10px",backgroundColor:"#2196F3",color:"#fff",border:"none",borderRadius:"3px",cursor:"pointer",marginRight:"10px"},children:"Read Aloud"}),(0,o.jsx)("button",{onClick:()=>{window.speechSynthesis.cancel(),c(!1)},disabled:!d,style:{padding:"5px 10px",backgroundColor:"#f44336",color:"#fff",border:"none",borderRadius:"3px",cursor:"pointer"},children:"Stop"})]})}},50302:(e,n,s)=>{s.r(n),s.d(n,{default:()=>a});s(82483);var t=s(50102),o=s(10443),r=s(56723);const a=e=>{let{text:n,quizData:s}=e;return(0,r.jsxs)("div",{style:{fontFamily:"Arial, sans-serif",maxWidth:"300px"},children:[(0,r.jsx)(o.default,{text:n}),s&&(0,r.jsx)(t.default,{questionData:s})]})}}
1,7706:(e,n,s)=>{s.r(n),s.d(n,{default:()=>o});s(82483);var t=s(56723);const o=e=>{let{url:n,label:s,color:o,openVideo:r}=e;return(0,t.jsx)("div",{style:{textAlign:"center",margin:"20px 0"},children:(0,t.jsxs)("button",{onClick:()=>r(n),style:{backgroundColor:o||"#007BFF",color:"white",padding:"10px 20px",fontSize:"16px",borderRadius:"8px",border:"none",cursor:"pointer"},children:["\ud83c\udfa5 ",s]})})}},31257:(e,n,s)=>{s.r(n),s.d(n,{default:()=>o});s(82483);var t=s(56723);const o=e=>{let{videoUrl:n,onClose:s}=e;return n?(0,t.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:(0,t.jsxs)("div",{style:{position:"relative",backgroundColor:"#fff",padding:"20px",borderRadius:"8px",maxWidth:"800px",width:"90%",textAlign:"center"},children:[(0,t.jsx)("button",{onClick:s,style:{position:"absolute",top:"10px",right:"10px",background:"red",color:"white",border:"none",fontSize:"16px",padding:"5px 10px",borderRadius:"5px",cursor:"pointer"},children:"\u2716 Close"}),(0,t.jsx)("iframe",{width:"100%",height:"400px",src:n,title:"Video Explanation",frameBorder:"0",allowFullScreen:!0})]})}):null}},13541:(e,n,s)=>{s.r(n),s.d(n,{default:()=>x});s(82483);var t=s(85091),o=s(31438),r=s(10443),a=s(50302),i=s(96501),l=(s(50102),s(57318),s(1469)),d=s(56723);const c=[{component:(0,d.jsx)(l.default,{})}],x=(r.default,r.default,r.default,a.default,r.default,()=>{const{H1:e}=(0,t.useGlobalComponents)();return(0,d.jsxs)("div",{style:{padding:"0.5rem",margin:"0 auto",textAlign:"center",width:"100%"},children:[(0,d.jsx)(e,{children:"Hyperbolic Functions"}),(0,d.jsx)("p",{children:"Build intuition for hyperbolic functions with interactive explainers, relatable stories, and exam-style walkthroughs."}),(0,d.jsx)(o.default,{lessonId:"partial_fractions"}),(0,d.jsxs)("div",{className:"App",children:[(0,d.jsx)("button",{onClick:()=>{window.open("https://www.notion.so/Handout-Rate-of-Change-1819bd832f4a805eac6cc4c60372dc9a?pvs=4","_blank")},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"4px",cursor:"pointer",marginBottom:"20px",fontSize:"16px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},children:"View Handout"}),(0,d.jsx)(i.default,{instructions:c,appletId:"partial_fractions"})]})]})})},1469:(e,n,s)=>{s.r(n),s.d(n,{default:()=>x});var t=s(82483),o=s(80736),r=s(82327),a=s(25413),i=(s(70119),s(31257)),l=s(7706),d=s(56723);const c={hyperbolicFunctions:"\n# **\ud83d\udccc Hyperbolic Functions & Their Derivatives**\n\ud83d\udca1 **Reminder for Students** \n- **Hyperbolic Cosine & Sine Definitions:** \n$\n\\cosh(x) = \\frac{e^x + e^{-x}}{2}, \\quad \\sinh(x) = \\frac{e^x - e^{-x}}{2}\n$\n- **Derivatives of Hyperbolic Functions:** \n$\n\\frac{d}{dx} \\cosh(x) = \\sinh(x), \\quad \\frac{d}{dx} \\sinh(x) = \\cosh(x)\n$\n- **Identity for $$ \\cosh^2(x) - \\sinh^2(x) = 1 $$**\n\n---\n\n## **\ud83d\udd35 Problem 377: Expressions for $$ \\cosh x + \\sinh x $$ and $$ \\cosh x - \\sinh x $$**\n\u2714 **Step 1: Use Definitions**\n$\n\\cosh(x) + \\sinh(x) = \\frac{e^x + e^{-x}}{2} + \\frac{e^x - e^{-x}}{2} = e^x\n$\n$\n\\cosh(x) - \\sinh(x) = \\frac{e^x + e^{-x}}{2} - \\frac{e^x - e^{-x}}{2} = e^{-x}\n$\n\n\ud83d\udccc **Final Answer:** \n\u2714 **$$ \\cosh x + \\sinh x = e^x $$** \n\u2714 **$$ \\cosh x - \\sinh x = e^{-x} $$**\n\n---\n\n## **\ud83d\udd35 Problem 380: Verifying $$ \\tanh(x)' = \\text{sech}^2(x) $$**\n\u2714 **Step 1: Use the Definition**\n$\n\\tanh(x) = \\frac{\\sinh(x)}{\\cosh(x)}\n$\n\u2714 **Step 2: Apply Quotient Rule**\n$\n\\frac{d}{dx} \\left( \\frac{\\sinh x}{\\cosh x} \\right) = \\frac{ \\cosh x \\cdot \\cosh x - \\sinh x \\cdot \\sinh x }{ \\cosh^2 x }\n$\n\u2714 **Step 3: Use Identity**\n$\n\\cosh^2 x - \\sinh^2 x = 1\n$\n\u2714 **Step 4: Final Answer**\n$\n\\tanh(x)' = \\frac{1}{\\cosh^2 x} = \\text{sech}^2(x)\n$\n\n\ud83d\udccc **Final Answer:** \u2705 **Proven**.\n\n---\n\n## **\ud83d\udd35 Problem 385: Derivative of $$ \\cosh(3x+1) $$**\n\u2714 **Step 1: Use Chain Rule**\n$\n\\frac{d}{dx} \\cosh(3x+1) = \\sinh(3x+1) \\cdot 3\n$\n\ud83d\udccc **Final Answer:** \n$\n3 \\sinh(3x+1)\n$\n\n---\n\n## **\ud83d\udd35 Problem 390: Derivative of $$ \\cosh^2(x) - \\sinh^2(x) $$**\n\u2714 **Step 1: Use Identity**\n$\n\\cosh^2(x) - \\sinh^2(x) = 1\n$\n\u2714 **Step 2: Derivative of Constant**\n$\n\\frac{d}{dx}(1) = 0\n$\n\ud83d\udccc **Final Answer:** \u2705 **Zero**\n\n---\n\n## \ud83c\udfa5 **Want a Video Explanation?**\nClick below to watch a **step-by-step video explanation**.\n\n"},x=()=>{const[e,n]=(0,t.useState)(null);return(0,d.jsxs)("div",{className:"p-6 max-w-4xl mx-auto bg-white shadow-lg rounded-xl border",children:[(0,d.jsx)(o.oz,{children:c.hyperbolicFunctions,remarkPlugins:[r.A],rehypePlugins:[a.A]}),(0,d.jsx)(i.default,{videoUrl:e,onClose:()=>n(null)}),(0,d.jsx)(l.default,{url:"https://www.youtube.com/embed/hyperbolic_functions",label:"Watch Video on Hyperbolic Functions",color:"#007BFF",openVideo:n})]})}},83099:(e,n,s)=>{s.r(n),s.d(n,{getLessonNotes:()=>d,getLessonProgress:()=>i,initializeLesson:()=>r,updateLessonNotes:()=>c,updateLessonProgress:()=>
1a,updateQuizScore:()=>l});var t=s(15821);const o=(0,t.aU)(),r=async(e,n)=>{const s=(0,t.H9)(o,"users",e,"progress",n);await(0,t.BN)(s,{percentComplete:0,lastAccessed:new Date,quizScores:{},notes:""},{merge:!0})},a=async(e,n,s)=>{const r=(0,t.H9)(o,"users",e,"progress",n);await(0,t.mZ)(r,{percentComplete:s,lastAccessed:new Date})},i=async(e,n)=>{const s=(0,t.H9)(o,"users",e,"progress",n),r=await(0,t.x7)(s);return r.exists()?r.data():null},l=async(e,n,s,r)=>{const a=(0,t.H9)(o,"users",e,"progress",n);await(0,t.mZ)(a,{[`quizScores.${s}`]:r,lastAccessed:new Date})},d=async(e,n)=>{const s=(0,t.H9)(o,"users",e,"progress",n),r=await(0,t.x7)(s);return r.exists()&&r.data().notes||""},c=async(e,n,s)=>{const r=(0,t.H9)(o,"users",e,"progress",n);await(0,t.mZ)(r,{notes:s,lastAccessed:new Date})}}}]); 2//# sourceMappingURL=3541.6162fd36.chunk.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.