1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3246,671,1865,934,2841,9628,5451,9868,2353],{39836:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(91051),a=n(15876),r=n(25451),d=n(47439),s=n(20784),c=n(8697),u=n.n(c),p=n(49617);function offsetWithin(e,t){let n=0,o=0,l=e;for(;l&&l!==t;)n+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;return{left:n,top:o}}t.Z=e=>{let{title:t,subtitle:n,section:c,scribbleLine1:v,scribbleLine2:m,priceDisplay:h,moduleId:g,actionText:_,cta:f,actionIcon:b,duration:x,disableBaseTilt:y=!1}=e,j=(0,l.useRef)(null),w=(0,l.useRef)(null),S=(0,l.useRef)(null),k=(0,l.useRef)(null),C=(0,l.useMemo)(()=>(0,p.Wu)(g),[g]),L=(0,a.p0)(t),M=(0,r.H3)((0,a.p0)(f||"")),{before:T,anchor:N,after:B,hasAnchor:D}=(0,l.useMemo)(()=>{let e=(0,p.wW)(L);return e.hasAnchor?e:v?(0,p.Ad)(L,C):e},[L,v,C]),R=(0,l.useMemo)(()=>(0,p.d$)(v,m,C),[v,m,C]),E=(0,l.useMemo)(()=>{let e=(0,p.Rj)(C+999);return(0,p.nO)(e,-2.5,2.5)},[C]),{cardRef:I,onMouseEnter:q,onMouseLeave:z}=(0,i.n)(E,y);(0,l.useMemo)(()=>{if(!h)return"";if(h.isFree)return"free";let e=h.subscriberPrice>0?h.subscriberPrice:h.basePrice;return"$".concat(e.toFixed(2))},[h]);let P=(0,a.p0)(c)||"Several News",F=(0,d.rP)(),W=F?[...(0,a.p0)(t||"").trim()?[]:["article_title"],...(0,a.p0)(n||"").trim()?[]:["article_subtitle"],...(0,a.p0)(c||"").trim()?[]:["section"]]:[],A=(0,l.useCallback)(()=>{let e=k.current,t=j.current,n=w.current,o=S.current;if(!e||!t||!n||!o||!D)return;e.innerHTML="";let l=offsetWithin(n,t),i=l.left-2,a=n.offsetWidth+4,r=l.top+n.offsetHeight-1,d=(0,p.Rj)(C+500),s=i+a*(0,p.nO)(d,.3,.7),c=r+2,u=o.querySelector("[data-scribble-line]");if(!u)return;let v=u.querySelectorAll("span");if(0===v.length)return;let m=v[0],h=v[v.length-1],g=offsetWithin(m,t),_=offsetWithin(h,t),f=g.left,b=_.left+h.offsetWidth,x=f+(b-f)*(0,p.nO)(d,.25,.75),y=g.top-3,L=(s+x)/2+(0,p.nO)(d,-25,25),M=(c+y)/2+(0,p.nO)(d,-15,15),T=(0,p.YO)(s,c,x,y,L,M,2.5,d),N=(0,p.Re)(i,a,r,R.color,d);e.innerHTML="\n ".concat(N,'\n <path d="').concat(T,'" fill="none" stroke="').concat(R.color,'" stroke-width="1.3" opacity="0.35" stroke-linecap="round" stroke-linejoin="round"/>\n ')},[D,C,R.color]);return(0,l.useEffect)(()=>{var e;if(!D)return;let t=!1,draw=()=>{t||requestAnimationFrame(()=>{t||requestAnimationFrame(()=>{t||A()})})};return"undefined"!=typeof document&&(null===(e=document.fonts)||void 0===e?void 0:e.ready)?document.fonts.ready.then(draw):draw(),()=>{t=!0}},[A,D]),(0,l.useEffect)(()=>{let e;if(!D)return;let onResize=()=>{clearTimeout(e),e=setTimeout(A,150)};return window.addEventListener("resize",onResize),()=>{window.removeEventListener("resize",onResize),clearTimeout(e)}},[A,D]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{className:u().svgFilters,xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"torn-edge-article",x:"-5%",y:"-5%",width:"115%",height:"120%",children:[(0,o.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.035",numOctaves:"6",seed:"2",result:"noise"}),(0,o.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"noise",scale:"6",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,o.jsx)("div",{className:u().tornCard,ref:I,onMouseEnter:q,onMouseLeave:z,children:(0,o.jsxs)("div",{className:u().paper,ref:j,children:[W.length?(0,o.jsx)(s.Z,{text:"fallback \xb7 missing: ".concat(W.join(", "))}):null,(0,o.jsxs)("div",{className:u().sectionBar,children:[(0,o.jsx)("span",{className:u().sectionName,style:{color:R.color},children:P}),(0,o.jsx)("div",{className:u().sectionMeta})]}),(0,o.jsx)("hr",{className:u().thinRule}),(0,o.jsx)("h3",{className:u().headline,children:D?(0,o.jsxs)(o.Fragment,{children:[T,(0,o.jsx)("span",{className:u().anchorText,ref:w,"data-anchor":!0,children:N}),B]}):L}),n&&(0,o.jsx)("p",{className:u().subtitle,children:(0,a.fj)(n)}),(R.line1Html||R.line2Html)&&(0,o.jsxs)("div",{className:u().scribble,ref:S,style:{fontFamily:"'".concat(R.pairing.primary,"', cursive")},children:[R.line1Html&&(0,o.jsx)("span",{className:u().scribbleLine,"data-scribble-line":!0,style:{color:R.color,opacity:R.opacity,transform:"rotate(".concat(R.rotation1.toFixed(1),"deg)")},dangerouslySetInnerHTML:{__html:R.line1Html}}),R.line2Html&&(0,o.jsx)("span",{className:u().scribbleLine,style:{color:R.color,opacity:R.opacity,transform:"rotate(".concat(R.rotation2.toFixed(1),"deg)")},dangerouslySetInnerHTML:{__html:R.line2Html}})]}),(M||_)&&(0,o.jsx)("div",{className:u().cardFooter,children:(0,o.jsxs)("span",{className:u().footerAction,children:[b&&(0,o.jsx)("span",{className:u().footerActionIcon,children:b}),(0,o.jsx)("span",{className:u().footerActionLabel,children:M||_})]})}),D&&(0,o.jsx)("svg",{className:u().connectorSvg,ref:k,xmlns:"http://www.w3.org/2000/svg"})]})})]})}},79129:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(46101);let a={paper:"#f2ede2",paperEdge:"#e8dfc8",catalogEdge:"#c9bf9a",catalogDeep:"#e0d2a8",inkSoft:"#6a5e44",muted:"#8a8270",oxblood:"#5a1f1a"},getHostname=e=>{if(!e)return"";try{return new URL(e).hostname.replace(/^www\./,"")}catch(e){return""}};t.Z=e=>{let{image:t,title:n,link:r}=e,d=(0,i.$)(),[s,c]=(0,l.useState)(!1),[u,p]=(0,l.useState)(!1),v=getHostname(r||"");return(0,o.jsx)("div",{style:{display:"block",width:"100%",boxSizing:"border-box",transition:"transform 200ms ease, filter 200ms ease",transform:s?"translateY(-3px)":"none",filter:s?"drop-shadow(2px 7px 9px rgba(40, 30, 18, 0.24)) drop-shadow(0 2px 3px rgba(0,0,0,0.12))":"drop-shadow(2px 4px 7px rgba(40, 30, 18, 0.20)) drop-shadow(0 1px 2px rgba(0,0,0,0.10))"},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:(0,o.jsxs)("div",{style:{position:"relative",width:"100%",boxSizing:"border-box",background:a.paper,border:"1px solid ".concat(a.paperEdge),borderRadius:1,padding:10},children:[(0,o.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:9,letterSpacing:"0.18em",textTransform:"uppercase",color:a.oxblood,fontWeight:600,display:"flex",alignItems:"center",gap:6,padding:"4px 6px 10px",minWidth:0},children:[(0,o.jsx)("span",{style:{display:"inline-flex",width:14,height:14,alignItems:"center",justifyContent:"center",border:"1px solid ".concat(a.oxblood),borderRadius:2,fontSize:8,fontWeight:700,lineHeight:1,flexShrink:0},children:"â"}),(0,o.jsx)("span",{children:d("exaImageTypeTagLabel")}),v?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:"\xb7"}),(0,o.jsx)("span",{style:{fontWeight:500,color:a.inkSoft,letterSpacing:"0.04em",textTransform:"lowercase",fontSize:10,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:v})]}):null]}),(0,o.jsx)("div",{style:{position:"relative",width:"100%",aspectRatio:"4 / 3",background:a.catalogDeep,border:"1px solid ".concat(a.catalogEdge),boxShadow:"0 1px 2px rgba(74,52,20,.15), inset 0 0 0 1px rgba(255,255,255,.18)",overflow:"hidden"},children:t&&!u?(0,o.jsx)("img",{src:t,alt:n||v||"Image",onError:()=>p(!0),style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}):(0,o.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a.muted},children:(0,o.jsxs)("svg",{width:"44",height:"44",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,o.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,o.jsx)("path",{d:"M21 15l-5-5L5 21"})]})})}),n?(0,o.jsx)("p",{style:{fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:"0.85rem",lineHeight:1.4,color:a.inkSoft,margin:"10px 6px 4px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},children:n}):null]})})}},2123:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(9473),a=n(89312),r=n(15876),d=n(25451);let getYouTubeId=e=>{if(!e)return"";try{let t=new URL(e),n=t.hostname.replace(/^www\./,"");if("youtu.be"===n)return t.pathname.slice(1).split("/")[0]||"";if(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")){let e=t.searchParams.get("v");if(e)return e;
1let n=t.pathname.split("/").filter(Boolean),o=n.findIndex(e=>"embed"===e||"shorts"===e||"live"===e);if(o>=0&&n[o+1])return n[o+1]}}catch(e){}return""},getHostname=e=>{if(!e)return"";try{return new URL(e).hostname.replace(/^www\./,"")}catch(e){return""}},s={paper:"#f2ede2",paperEdge:"#e8dfc8",catalog:"#f0e2c2",catalogEdge:"#c9bf9a",catalogDeep:"#e0d2a8",ink:"#1f1a10",inkSoft:"#6a5e44",muted:"#8a8270",oxblood:"#5a1f1a",filmLeader:"#1f1a10",ctaBorder:"rgba(74, 52, 20, 0.25)"},c="var(--font-serif)",u="var(--font-mono)",p=[8,16,24,32,40,48,56,64,72,80,88],v=[...p.map(e=>"radial-gradient(circle at ".concat(e,"% 6px, ").concat(s.paper," 3.5px, transparent 4px)")),...p.map(e=>"radial-gradient(circle at ".concat(e,"% calc(100% - 6px), ").concat(s.paper," 3.5px, transparent 4px)"))].join(", ");t.Z=e=>{let{title:t,link:n,summary:p,channelTitle:m,duration:h,image:g,cta:_}=e,[f,b]=(0,l.useState)(!1),[x,y]=(0,l.useState)(!1),j=(0,i.v9)(e=>{var t;return null===(t=e.myLearning)||void 0===t?void 0:t.phraseLabels}),w=(0,a.BV)("externalVideoLabel",j),S=(0,d.H3)((0,r.p0)(_||""))||(0,a.BV)("watchVideoLabel",j),k=(0,d.H3)((0,r.p0)(_||""))||(0,a.BV)("externalVideoCtaLabel",j),C=(0,l.useMemo)(()=>getYouTubeId(n||""),[n]),L=!!C,M=C?"https://img.youtube.com/vi/".concat(C,"/hqdefault.jpg"):"",T=(0,l.useMemo)(()=>getHostname(n||""),[n]),N=L?M:g&&!x?g:"",B={display:"inline-flex",width:14,height:14,alignItems:"center",justifyContent:"center",border:"1px solid ".concat(s.oxblood),borderRadius:2,fontSize:8,fontWeight:700,lineHeight:1,flexShrink:0},D={fontFamily:u,fontSize:9,letterSpacing:"0.18em",textTransform:"uppercase",color:s.oxblood,fontWeight:600,display:"flex",alignItems:"center",gap:6,minWidth:0},R={fontFamily:u,fontSize:9,letterSpacing:"0.16em",textTransform:"uppercase",color:s.oxblood,fontWeight:600,display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,paddingTop:10,borderTop:"1px dashed ".concat(s.ctaBorder)},E={display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"clip",overflowClipMargin:"content-box",overflowWrap:"anywhere",lineHeight:1.35,minWidth:0},I={display:"inline-block",transition:"transform 200ms ease",transform:f?"translateX(3px)":"translateX(0)"},q={color:s.muted,fontWeight:500,letterSpacing:"0.12em",flexShrink:0};return L?(0,o.jsx)("div",{style:{display:"block",width:"100%",boxSizing:"border-box",transition:"transform 200ms ease, filter 200ms ease",transform:f?"translateY(-3px)":"none",filter:f?"drop-shadow(2px 7px 9px rgba(40, 30, 18, 0.24)) drop-shadow(0 2px 3px rgba(0,0,0,0.12))":"drop-shadow(2px 4px 7px rgba(40, 30, 18, 0.20)) drop-shadow(0 1px 2px rgba(0,0,0,0.10))"},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:(0,o.jsxs)("div",{style:{position:"relative",width:"100%",boxSizing:"border-box",background:s.paper,border:"1px solid ".concat(s.paperEdge),borderRadius:1,overflow:"hidden"},children:[(0,o.jsxs)("div",{style:{...D,padding:"14px 18px 10px"},children:[(0,o.jsx)("span",{style:B,children:"â¶"}),(0,o.jsx)("span",{children:w}),m?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:"\xb7"}),(0,o.jsx)("span",{style:{fontWeight:500,color:s.inkSoft,letterSpacing:"0.04em",textTransform:"none",fontSize:10,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:(0,r.p0)(m)})]}):null]}),(0,o.jsx)("div",{style:{position:"relative",background:s.filmLeader,padding:"12px 0",backgroundImage:v},children:(0,o.jsx)("div",{style:{position:"relative",margin:"0 22px"},children:(0,o.jsxs)("div",{style:{position:"relative",aspectRatio:"16 / 9",background:"#3a2d22",overflow:"hidden",border:"1px solid rgba(0,0,0,.6)",boxShadow:"0 2px 8px rgba(0,0,0,.4), inset 0 0 60px rgba(0,0,0,.2)"},children:[(0,o.jsx)("img",{src:M,alt:(0,r.p0)(t)||"Video still",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block",filter:"sepia(.45) saturate(.6) contrast(.95) brightness(.92) hue-rotate(-8deg)"}}),h?(0,o.jsx)("div",{style:{position:"absolute",bottom:7,right:7,fontFamily:u,fontSize:9,fontWeight:600,letterSpacing:"0.12em",color:"#fff",background:"rgba(0,0,0,.72)",padding:"2px 6px",borderRadius:1},children:"TX ".concat(h)}):null,(0,o.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:46,height:46,borderRadius:"50%",background:s.oxblood,backgroundImage:"radial-gradient(circle at 35% 28%, rgba(255,255,255,.22) 0%, transparent 55%), radial-gradient(circle at 60% 85%, rgba(0,0,0,.18) 0%, transparent 60%)",boxShadow:"0 3px 10px rgba(0,0,0,.45), 0 0 0 2px rgba(242, 237, 226, .2), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.24)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:(0,o.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"7px 0 7px 12px",borderColor:"transparent transparent transparent ".concat(s.paper),marginLeft:3,filter:"drop-shadow(0 1px 1px rgba(0,0,0,.3))"}})})]})})}),(0,o.jsxs)("div",{style:{padding:"14px 18px 16px"},children:[t?(0,o.jsx)("h3",{style:{fontFamily:c,fontSize:"1.3rem",fontWeight:400,lineHeight:1.2,color:s.ink,letterSpacing:"-0.012em",margin:"0 0 12px",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},children:(0,r.p0)(t)}):null,p?(0,o.jsx)("p",{style:{fontFamily:c,fontSize:"0.9rem",lineHeight:1.5,color:s.ink,margin:"0 0 14px",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},children:(0,r.fj)(p)}):null,(0,o.jsxs)("div",{style:R,children:[(0,o.jsxs)("span",{style:E,children:[S," ",(0,o.jsx)("span",{style:I,children:"â"})]}),(0,o.jsx)("span",{style:q,children:"".concat(h?"".concat(h," \xb7 "):"","YouTube")})]})]})]})}):(0,o.jsx)("div",{style:{position:"relative",display:"block",width:"100%",boxSizing:"border-box",transition:"transform 200ms ease, filter 200ms ease",transform:f?"translateY(-3px)":"none",filter:f?"drop-shadow(2px 7px 9px rgba(40, 30, 18, 0.24)) drop-shadow(0 2px 3px rgba(0,0,0,0.12))":"drop-shadow(2px 4px 7px rgba(40, 30, 18, 0.20)) drop-shadow(0 1px 2px rgba(0,0,0,0.10))"},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:(0,o.jsxs)("div",{style:{position:"relative",width:"100%",boxSizing:"border-box",background:s.
1catalog,backgroundImage:"repeating-linear-gradient(180deg, transparent 0, transparent 24px, rgba(74,52,20,.05) 24px, rgba(74,52,20,.05) 25px), radial-gradient(ellipse at top left, rgba(255,255,255,.4), transparent 55%), radial-gradient(ellipse at bottom right, rgba(74,52,20,.05), transparent 60%)",border:"1px solid ".concat(s.catalogEdge),borderRadius:1,padding:"18px 22px 26px"},children:[T?(0,o.jsx)("div",{style:{...D,marginBottom:12},children:(0,o.jsx)("span",{style:{fontWeight:500,color:s.inkSoft,letterSpacing:"0.04em",textTransform:"lowercase",fontSize:10,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:T})}):null,t?(0,o.jsx)("h3",{style:{fontFamily:c,fontSize:"1.35rem",fontWeight:400,lineHeight:1.15,color:s.ink,letterSpacing:"-0.012em",margin:"0 0 6px",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},children:(0,r.p0)(t)}):null,m?(0,o.jsxs)("p",{style:{fontFamily:c,fontStyle:"italic",fontSize:"0.9rem",color:s.inkSoft,margin:"0 0 14px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[(0,o.jsx)("span",{style:{color:s.muted},children:"by "}),(0,r.p0)(m)]}):null,(0,o.jsx)("div",{style:{position:"relative",width:"100%",aspectRatio:"16 / 9",marginBottom:14,background:s.catalogDeep,border:"1px solid ".concat(s.catalogEdge),boxShadow:"0 1px 2px rgba(74,52,20,.15), inset 0 0 0 1px rgba(255,255,255,.18)",overflow:"hidden"},children:N?(0,o.jsx)("img",{src:N,alt:(0,r.p0)(t)||T||"Website preview",onError:()=>y(!0),style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block",filter:"sepia(.15) saturate(.88) contrast(.95)"}}):(0,o.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:s.muted},children:(0,o.jsxs)("svg",{width:"44",height:"44",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,o.jsx)("path",{d:"M3 12h18"}),(0,o.jsx)("path",{d:"M12 3a14 14 0 0 1 0 18"}),(0,o.jsx)("path",{d:"M12 3a14 14 0 0 0 0 18"})]})})}),p?(0,o.jsx)("p",{style:{fontFamily:c,fontSize:"0.9rem",lineHeight:1.5,color:s.ink,margin:"0 0 16px",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},children:(0,r.fj)(p)}):null,(0,o.jsxs)("div",{style:R,children:[(0,o.jsxs)("span",{style:E,children:[k," ",(0,o.jsx)("span",{style:I,children:"â"})]}),h?(0,o.jsx)("span",{style:q,children:h}):null]}),(0,o.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",bottom:6,left:"50%",transform:"translateX(-50%)",width:14,height:5,borderRadius:"50%",background:"rgba(74, 52, 20, 0.32)",boxShadow:"inset 0 1px 2px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.4)"}})]})})}},45082:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return QuantumJourney_ModuleCard}});var o=n(85893),l=n(67294),i=n(11163),a=n(9473),r=n(24900),d=n.n(r),s=n(38765),c=n(76364),u=n(68864),p=n(10865),v=n(91051),m=n(28119),h=n(30438),g=n(81566),_=n(89312),f=n(15876),b=n(57849),x=n(26321),y=n(39836),j=n(29701),w=n(25005),S=n(2123),k=n(79129),C=n(25451),L=n(49617),M=n(71739),T=n.n(M);let N={discover:{accent:"#0d9488",deep:"#0f766e",wash:"rgba(13, 148, 136, 0.09)"},deepen:{accent:"#4f46e5",deep:"#4338ca",wash:"rgba(79, 70, 229, 0.09)"},practice:{accent:"#b45309",deep:"#92400e",wash:"rgba(180, 83, 9, 0.09)"},master:{accent:"#be123c",deep:"#9f1239",wash:"rgba(190, 18, 60, 0.09)"},story:{accent:"#7c3aed",deep:"#6d28d9",wash:"rgba(124, 58, 237, 0.09)"}},B={accent:"#57534e",deep:"#44403c",wash:"rgba(87, 83, 78, 0.09)"},D=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];var QuantumJourney_ChapterCard=e=>{var t;let{title:n,pitch:i,mode:a,index:r,timeEstimate:d,scribbleLine1:s,scribbleLine2:c,cta:u,priceDisplay:p,moduleId:m,disableBaseTilt:h=!1}=e,g=(0,l.useMemo)(()=>(0,L.Wu)(m),[m]),_=(0,f.p0)(n||"")||"Chapter",b=(0,f.p0)(i||""),x=String(null!=a?a:"").trim().toLowerCase(),y=null!==(t=N[x])&&void 0!==t?t:B,j=(0,l.useMemo)(()=>{let e="number"==typeof r?function(e){let t=Math.floor(e);if(!Number.isFinite(t)||t<=0||t>3999)return"";let n="";for(let[e,o]of D)for(;t>=e;)n+=o,t-=e;return n}(r):"";return e?"Chapter ".concat(e):"Chapter"},[r]),w=(0,l.useMemo)(()=>{let e=(0,L.Rj)(g+731);return(0,L.nO)(e,-2.2,2.2)},[g]),{cardRef:S,onMouseEnter:k,onMouseLeave:M}=(0,v.n)(w,h),R=(0,l.useMemo)(()=>{let e=[s,c].map(e=>
1(0,f.p0)(e||"").trim()).filter(Boolean);if(0===e.length)return null;let t=L.R$[0];return e.map((e,n)=>(0,L.XV)({text:e,color:"#3c6ea5",fontSize:.95,pairing:t,rng:(0,L.Rj)(g+41*(n+1))}))},[s,c,g]),E=(0,l.useMemo)(()=>{if(!p)return"";if(p.isFree)return"free";let e=p.subscriberPrice>0?p.subscriberPrice:p.basePrice;return e>0?"$".concat(e.toFixed(2)):"free"},[p]),I=(0,f.p0)(d||"").trim(),q=(0,C.H3)((0,f.p0)(u||""))||"read it";return(0,o.jsxs)("div",{ref:S,className:T().chapter,onMouseEnter:k,onMouseLeave:M,style:{"--accent":y.accent,"--accent-deep":y.deep,"--accent-wash":y.wash},children:[(0,o.jsx)("span",{className:T().stack,"aria-hidden":"true"}),(0,o.jsx)("span",{className:"".concat(T().stack," ").concat(T().stack2),"aria-hidden":"true"}),(0,o.jsxs)("div",{className:T().leaf,children:[(0,o.jsx)("span",{className:T().spine,"aria-hidden":"true"}),(0,o.jsx)("span",{className:T().ribbon,"aria-hidden":"true"}),(0,o.jsxs)("div",{className:T().head,children:[(0,o.jsx)("span",{className:T().numeral,children:j}),x?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:T().modeDot,"aria-hidden":"true"}),(0,o.jsx)("span",{className:T().mode,children:x})]}):null]}),(0,o.jsx)("div",{className:T().headRule,"aria-hidden":"true"}),(0,o.jsx)("h3",{className:T().title,children:_}),b?(0,o.jsx)("p",{className:T().deck,children:b}):null,R?(0,o.jsx)("div",{className:T().scribble,"aria-hidden":"true",children:R.map((e,t)=>(0,o.jsx)("span",{className:T().scribbleLine,dangerouslySetInnerHTML:{__html:e}},t))}):null,(0,o.jsxs)("div",{className:T().foot,children:[(0,o.jsxs)("span",{className:T().meta,children:[I?(0,o.jsxs)("span",{children:[I," read"]}):null,I&&E?(0,o.jsx)("span",{className:T().metaSep,"aria-hidden":"true"}):null,E?(0,o.jsx)("span",{className:"free"===E?T().free:void 0,children:E}):null]}),(0,o.jsxs)("span",{className:T().cta,children:[(0,o.jsx)("span",{className:T().ctaLabel,children:q}),(0,o.jsx)("span",{className:T().ctaArrow,"aria-hidden":"true",children:"â"})]})]}),(0,o.jsx)("span",{className:T().curl,"aria-hidden":"true"})]})]})},R=n(14131),E=n(32353),I=n(60214),q=n(46101),QuantumJourney_ModuleCard=e=>{var t,n,r,L,M,T,N,B,D,z,P,F,W,A,H,V,J,O,Q,Z,K,G,Y,X,U,$,ee,et,en,eo,el,ei,ea,er,ed,es,ec,eu,ep,ev,em,eh,eg,e_,ef,eb,ex,ey,ej,ew,eS,ek,eC,eL,eM,eT,eN,eB,eD,eR,eE,eI,eq,ez,eP,eF,eW,eA,eH,eV,eJ,eO,eQ,eZ,eK,eG,eY,eX,eU,e$,e0,e1,e2,e5,e4,e3,e8,e6,e9,e7,te,tt,tn,to,tl,ti,ta,tr,td,ts,tc,tu,tp,tv,tm,th,tg,t_,tf,tb,tx,ty,tj,tw,tS,tk,tC,tL,tM,tT,tN,tB,tD,tR,tE,tI,tq,tz,tP;let{number:tF,module:tW,modules:tA,currentIndex:tH,onComplete:tV,onNextModule:tJ,activeFilter:tO,isCurrent:tQ=!1,isCompleted:tZ=!1,setActiveTab:tK,openInSidebar:tG=!1,onOpenInSidebar:tY,fakePodcastQuestHandler:tX,questCreatingModuleId:tU=null,displayLayout:t$,onModuleClick:t0,disableBaseTilt:t1=!1,hideCardHeader:t2=!1,hideCardShell:t5=!1}=e,t4=(0,q.$)(),t3=(0,i.useRouter)(),t8=(0,a.v9)(e=>{var t,n;return null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(t=n.user)||void 0===t?void 0:t.isAuth}),t6=(0,a.v9)(e=>{var t;return null==e?void 0:null===(t=e.myLearning)||void 0===t?void 0:t.phraseLabels}),t9=(0,a.v9)(e=>{var t,n,o;return null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(n=o.user)||void 0===n?void 0:null===(t=n.subscription)||void 0===t?void 0:t.status}),t7=(0,a.v9)(e=>{var t,n;return null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(t=n.user)||void 0===t?void 0:t.subscribed}),ne=tW.type,nt=(0,l.useMemo)(()=>(0,I.t)(tW),[tW]),nn="component"===ne&&(null==tW?void 0:tW._sectionKey)==="components",no=nn||t5&&"component"===ne,nl="component"===ne&&((null==tW?void 0:tW.is_json_preview_equals)===!0||(null==tW?void 0:null===(t=tW.data)||void 0===t?void 0:t.is_json_preview_equals)===!0||(null==tW?void 0:tW.has_body)===!1),{getComponentTypeLabel:ni}=(0,b.hQ)(),[na,nr]=(0,l.useState)(!1),{isModalOpen:nd,requiresAuth:ns,openModal:nc,closeModal:nu}=(0,c.Z)(tW,ne,t8,tK),{createCourseHandler:np,handleCardClick:nv,handleButtonClick:nm,handleCardLinkClick:nh,moduleHref:ng,isLoading:n_}=(0,u.d)(tW,ne,t8,ns,nc,nr,tK,tG,tY,tH,tX,t0),nf=null!=tU&&(String(tU)===String(null!==(tE=null==tW?void 0:tW.id)&&void 0!==tE?tE:"")||Str
1ing(tU)===String(null!==(tI=null==tW?void 0:tW.module_id)&&void 0!==tI?tI:"")),nb=(0,l.useMemo)(()=>{if(t1)return 0;let e=(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id)||tH,t="string"==typeof e?e.split("").reduce((e,t)=>e+t.charCodeAt(0),0):e||0,n=49297*Math.sin(9301*t+49297);return(n-Math.floor(n))*5-2.5},[null==tW?void 0:tW.id,null==tW?void 0:tW.module_id,tH,t1]),{cardRef:nx,onMouseEnter:ny,onMouseLeave:nj}=(0,v.n)(nb,t1),nw="fake_podcast"===ne||"article"===ne||"course"===ne||"chat"===ne||"expert_chat"===ne||"chapter"===ne||"page"===ne,{handleNextModule:nS}=(0,p.f)(tA,tH,nu,tJ);(0,l.useEffect)(()=>{let e=window.innerWidth<=767;return nd?(document.body.classList.add("modal-open"),document.body.style.overflow="hidden"):(document.body.classList.remove("modal-open"),document.body.style.overflow="",e&&(document.body.style.position="")),()=>{document.body.classList.remove("modal-open"),document.body.style.overflow="",e&&(document.body.style.position="")}},[nd]);let nk=(0,m.YQ)(tW,ne,tH,t6),nC=(0,m.Eb)(tW,ne,t6),nL=(0,m.g9)(tW),nM=(0,m.g9)(tW),nT=(0,m.L2)(tW,ne,t6),nN=(0,m.aX)(ne),nB=(0,m.O2)(tA,tH),nD=(null==tW?void 0:null===(n=tW.data)||void 0===n?void 0:n.component_type)||(null==tW?void 0:null===(r=tW.data)||void 0===r?void 0:r.type)||(null==tW?void 0:tW.component_type),nR="component"===ne?ni(nD):null,nE=(null==nR?void 0:nR.phraseVariableName)?(0,_.BV)(nR.phraseVariableName,t6):null,nI="component"===ne&&nR?"".concat(nR.emoji?nR.emoji+" ":"").concat(nE||nR.name):"component"===ne&&null===nR&&nD?nD.replace(/_/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()):(0,m.vf)(ne,t6),nq="exa_search"===ne||"exa_external_search"===ne||"search"===ne,nz=(0,m.hX)(ne),nP=null!==(tq=null==tW?void 0:null===(L=tW.scribble)||void 0===L?void 0:L.line1)&&void 0!==tq?tq:null==tW?void 0:null===(T=tW.data)||void 0===T?void 0:null===(M=T.scribble)||void 0===M?void 0:M.line1,nF=null!==(tz=null==tW?void 0:null===(N=tW.scribble)||void 0===N?void 0:N.line2)&&void 0!==tz?tz:null==tW?void 0:null===(D=tW.data)||void 0===D?void 0:null===(B=D.scribble)||void 0===B?void 0:B.line2,nW=null==nI?void 0:nI.replace(/\s+/g,""),nA=(0,m.aT)(tW,"active"===t9||"trialing"===t9||"yes"===t7),nH=ng?"a":"div",nV=ng?{href:ng,onClick:nh,rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"none"}}:{onClick:nv},renderContentPreview=()=>(0,o.jsx)(h.l,{module:tW,moduleType:ne,getDuration:()=>nL,getDurationLabel:()=>nM,handleCardClick:nv,hideChildPreviews:nn});if("close_data"===ne||"metadata"===ne||"last_metadata"===ne||"user_message"===ne)return null;let nJ="chat"===ne?"expert_chat":"fake_podcast"===ne?"podcast":"related_concepts"===ne?"concept":ne,nO="chat"===tO?"expert_chat":"fake_podcast"===tO?"podcast":tO;if(nO&&"all"!==nO&&nJ!==nO)return null;let nQ="related_concepts"===ne,nZ="concept"===ne,nK=("video"===ne||"podcast"===ne||"search"===ne||"concept"===ne||"fable"===ne||"scroll"===ne||"component"===ne)&&(tW.module_pitch||tW.pitch||tW.title)||nk,nG=nK?(0,f.p0)(String(nK).replace(/^type:\s*["']?[\w-]+["']?\s*/i,"")).trim():nK;return(0,o.jsxs)(o.Fragment,{children:[nd?(0,o.jsx)("div",{className:d().modalScrollContainer,children:(0,o.jsx)("div",{className:d().modalContentWrapper,children:(0,g.r)({module:tW,moduleType:ne,number:tF,isModalOpen:nd,onClose:()=>nu(),onComplete:()=>{null==tV||tV(),nu()},onNextModule:nS,hasNextModule:nB,getTitle:()=>nk,getDescription:()=>nC,getTypeIcon:()=>nN,getDuration:()=>nL})})}):!t3.query.modal&&(0,o.jsxs)("div",{className:"".concat(nw||"exa_search"===ne||"exa_external_search"===ne||"search"===ne||"exa_image"===ne||no||nQ||nZ?"":"min-h-[50vh]"," relatedTabModuleCard\n ").concat(d().card,"\n ").concat(nQ?d().conceptMapCard:"","\n ").concat(nZ?d().chalkboardConceptCard:"","\n ").concat(d()["".concat(ne,"Card")]||"","\n ").concat(nD&&"POSTCARD"===String(nD).toUpperCase()&&d().postcardCard||"","\n ").concat(nD&&"FORTUNE_COOKIE"===String(nD).toUpperCase()&&d().fortuneCookieCard||"","\n ").concat(nD&&("JOKE"===String(nD).toUpperCase()||"JOKE_CARD"===String(nD).toUpperCase())&&d().jokeCard||"","\n ").concat(no?d().componentSuggestionCard:"","\n ").concat(tQ?d().current:"","\n ").concat(tZ?d().completed:"","\n ").concat("vertical"===t$?d().cardLayoutVertical:"","\n ").concat("horizontal"===t$?d().cardLayoutHorizontal:"","\n "),"data-type":ne,"data-component-subtype":nD||void 0,"data-bare-component":no?"true":void 0,"data-modal-open":nd,ref:nw?void 0:nx,onMouseEnter:nw?void 0:ny,onMouseLeave:nw?void 0:nj,children:[nf?(0,o.jsx)("div",{className:d().questCreatingOverlay,"aria-busy":"true","aria-label":t4("creatingBookLabel"),children:(0,o.jsx)("span",{className:d().questCreatingSpinner})}):null,(0,o.jsx)(nH,{className:d().cardContent,...nV,children:"fake_podcast"===ne?(0,o.jsx)(x.Z,{title:tW.module_pitch||tW.pitch||tW.title||nk,speakersHint:tW.speakers_hint||(null===(z=tW.data)||void 0===z?void 0:z.speakers_hint)||(null===(P=tW.content_json)||void 0===P?void 0:P.speakers_hint)||(null===(W=tW.data)||void 0===W?void 0:null===(F=W.module_json)||void 0===F?void 0:F.speakers_hint)||(null===(A=tW.module_json)||void 0===A?void 0:A.speakers_hint),scribbleLine1:nP,scribbleLine2:nF,priceDisplay:nA,duration:nL,moduleId:(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id),disableBaseTilt:t1}):"course"===ne?(0,o.jsx)(j.Z,{title:(null==tW?void 0:null===(H=tW.data)||void 0===H?void 0:H.title)||(null==tW?void 0:tW.module_pitch)||
1(null==tW?void 0:tW.pitch)||nk,description:(null==tW?void 0:null===(V=tW.data)||void 0===V?void 0:V.course_description)||(null==tW?void 0:null===(J=tW.data)||void 0===J?void 0:J.description),premise:null==tW?void 0:null===(O=tW.data)||void 0===O?void 0:O.premise,roleId:null==tW?void 0:null===(Q=tW.data)||void 0===Q?void 0:Q.roleId,role:null==tW?void 0:null===(Z=tW.data)||void 0===Z?void 0:Z.role,guideType:null==tW?void 0:null===(K=tW.data)||void 0===K?void 0:K.guide_type,topicsLabel:null==tW?void 0:null===(G=tW.data)||void 0===G?void 0:G.topics_label,topics:null==tW?void 0:null===(Y=tW.data)||void 0===Y?void 0:Y.topics,topicTitle:null==tW?void 0:null===(X=tW.data)||void 0===X?void 0:X.topic_title,scribbleLine1:nP,scribbleLine2:nF,priceDisplay:nA,moduleId:(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id),disableBaseTilt:t1}):"article"===ne?(0,o.jsx)(y.Z,{cta:(0,C.Ov)(tW),title:(null==tW?void 0:null===(U=tW.content_json)||void 0===U?void 0:U.article_title)||(null==tW?void 0:tW.article_title)||(null==tW?void 0:null===($=tW.data)||void 0===$?void 0:$.title)||nk,subtitle:(null==tW?void 0:null===(ee=tW.content_json)||void 0===ee?void 0:ee.article_subtitle)||(null==tW?void 0:tW.article_subtitle)||(null==tW?void 0:null===(et=tW.data)||void 0===et?void 0:et.subt
1itle),section:(null==tW?void 0:null===(en=tW.content_json)||void 0===en?void 0:en.section)||(null==tW?void 0:tW.section)||(null==tW?void 0:null===(eo=tW.data)||void 0===eo?void 0:eo.section),scribbleLine1:nP,scribbleLine2:nF,priceDisplay:nA,moduleId:(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id),disableBaseTilt:t1}):"chat"===ne||"expert_chat"===ne?(0,o.jsx)(w.Z,{caller:nt.caller,reason:nt.reason,emoji:nt.emoji,mode:nt.mode,color:nt.color,openingMessage:nt.openingMessage,cta:(0,C.Ov)(tW)||nt.cta,index:null!==(tP=nt.index)&&void 0!==tP?tP:tH,themeSeed:String(t3.query.panoply||t3.query.search||"")}):"chapter"===ne?(0,o.jsx)(QuantumJourney_ChapterCard,{title:(null==tW?void 0:tW.title)||(null==tW?void 0:null===(el=tW.data)||void 0===el?void 0:el.title)||(null==tW?void 0:null===(ei=tW.content_json)||void 0===ei?void 0:ei.title)||nk,pitch:(null==tW?void 0:tW.pitch)||(null==tW?void 0:null===(er=tW.content_json)||void 0===er?void 0:null===(ea=er.preview)||void 0===ea?void 0:ea.pitch)||(null==tW?void 0:null===(ec=tW.data)||void 0===ec?void 0:null===(es=ec.content_json)||void 0===es?void 0:null===(ed=es.preview)||void 0===ed?void 0:ed.pitch)||(null==tW?void 0:tW.description)||(null==tW?void 0:tW.generation_context),mode:(null==tW?void 0:null===(ep=tW.content_json)||void 0===ep?void 0:null===(eu=ep.preview)||void 0===eu?void 0:eu.mode)||(null==tW?void 0:null===(ev=tW.content_json)||void 0===ev?void 0:ev.mode)||(null==tW?void 0:null===(em=tW.data)||void 0===em?void 0:em.chapter_mode)||(null==tW?void 0:null===(eh=tW.data)||void 0===eh?void 0:eh.mode),index:"number"==typeof(null==tW?void 0:null===(eg=tW.content_json)||void 0===eg?void 0:eg.index)?tW.content_json.index:"number"==typeof(null==tW?void 0:null===(ef=tW.data)||void 0===ef?void 0:null===(e_=ef.content_json)||void 0===e_?void 0:e_.index)?tW.data.content_json.index:void 0,timeEstimate:(null==tW?void 0:tW.time_estimate)||(null==tW?void 0:null===(ex=tW.content_json)||void 0===ex?void 0:null===(eb=ex.preview)||void 0===eb?void 0:eb.time_estimate)||nL,scribbleLine1:nP||(null==tW?void 0:null===(ew=tW.content_json)||void 0===ew?void 0:null===(ej=ew.preview)||void 0===ej?void 0:null===(ey=ej.scribble)||void 0===ey?void 0:ey.line1),scribbleLine2:nF||(null==tW?void 0:null===(eC=tW.content_json)||void 0===eC?void 0:null===(ek=eC.preview)||void 0===ek?void 0:null===(eS=ek.scribble)||void 0===eS?void 0:eS.line2),cta:(0,C.Ov)(tW),priceDisplay:nA,moduleId:(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id),disableBaseTilt:t1}):"page"===ne?(0,o.jsx)(R.Z,{title:(null==tW?void 0:tW.title)||(null==tW?void 0:null===(eL=tW.data)||void 0===eL?void 0:eL.title)||(null==tW?void 0:null===(eM=tW.content_json)||void 0===eM?void 0:eM.title)||nk,pitch:(null==tW?void 0:tW.pitch)||(null==tW?void 0:null===(eN=tW.content_json)||void 0===eN?void 0:null===(eT=eN.preview)||void 0===eT?void 0:eT.pitch)||(null==tW?void 0:null===(eR=tW.data)||void 0===eR?void 0:null===(eD=eR.content_json)||void 0===eD?void 0:null===(eB=eD.preview)||void 0===eB?void 0:eB.pitch)||(null==tW?void 0:tW.description)||(null==tW?void 0:tW.generation_context),pageType:(0,E.lZ)(tW),depth:(null==tW?void 0:null===(eI=tW.content_json)||void 0===eI?void 0:null===(eE=eI.preview)||void 0===eE?void 0:eE.depth)||(null==tW?void 0:null===(eq=tW.content_json)||void 0===eq?void 0:eq.depth)||(null==tW?void 0:null===(eF=tW.data)||void 0===eF?void 0:null===(eP=eF.content_json)||void 0===eP?void 0:null===(ez=eP.preview)||void 0===ez?void 0:ez.depth)||(null==tW?void 0:null===(eA=tW.content_json)||void 0===eA?void 0:null===(eW=eA.preview)||void 0===eW?void 0:eW.mode)||(null==tW?void 0:null===(eH=tW.content_json)||void 0===eH?void 0:eH.mode)||(null==tW?void 0:null===(eO=tW.data)||void 0===eO?void 0:null===(eJ=eO.content_json)||void 0===eJ?void 0:null===(eV=eJ.preview)||void 0===eV?void 0:eV.mode)||(null==tW?void 0:null===(eQ=tW.data)||void 0===eQ?void 0:eQ.chapter_mode)||(null==tW?void 0:null===(eZ=tW.data)||void 0===eZ?void 0:eZ.mode),timeEstimate:(null==tW?void 0:tW.time_estimate)||(null==tW?void 0:null===(eG=tW.content_json)||void 0===eG?void 0:null===(eK=eG.preview)||void 0===eK?void 0:eK.time_estimate)||nL,cta:(0,C.Ov)(tW),preview:(null==tW?void 0:null===(eY=tW.content_json)||void 0===eY?void 0:eY.preview)||(null==tW?void 0:null===(eU=tW.data)||void 0===eU?void 0:null===(eX=eU.content_json)||void 0===eX?void 0:eX.preview)||(null==tW?void 0:tW.content_json),priceDisplay:nA,moduleId:(null==tW?void 0:tW.id)||(null==tW?void 0:tW.module_id),disableBaseTilt:t1}):"exa_image"===ne?(0,o.jsx)(k.Z,{image:(null==tW?void 0:tW.image)||(null==tW?void 0:tW.image_url)||(null==tW?void 0:tW.url)||(null==tW?void 0:null===(e$=tW.data)||void 0===e$?void 0:e$.image)||(null==tW?void 0:null===(e0=tW.data)||void 0===e0?void 0:e0.image_url)||(null==tW?void 0:null===(e1=tW.data)||void 0===e1?void 0:e1.url)||(null==tW?void 0:null===(e2=tW.content_json)||void 0===e2?void 0:e2.image)||(null==tW?void 0:null===(e4=tW.data)||void 0===e4?void 0:null===(e5=e4.content_json)||void 0===e5?void 0:e5.image),title:(null==tW?void 0:tW.caption)||nG||nK,link:(null==tW?void 0:tW.link)||(null==tW?void 0:null===(e3=tW.data)||void 0===e3?void 0:e3.link)||(null==tW?void 0:null===(e8=tW.content_json)||void 0===e8?void 0:e8.link)||(null==tW?void 0:null===(e9=tW.data)||void 0===e9?void 0:null===(e6=e9.content_json)||void 0===e6?void 0:e6.link)}):"exa_search"===ne||"exa_external_search"===ne||"search"===ne?(0,o.jsx)(S.Z,{cta:(0,C.Ov)(tW),title:nG||nK,link:(null==tW?void 0:null===(te=tW.data)||void 0===te?void 0:null===(e7=te.content_json)||void 0===e7?void 0:e7.link)||(null==tW?void 0:null===(tt=tW.content_json)||void 0===tt?void 0:tt.link)||(null==tW?void 0:null===(tn=tW.data)||void 0===tn?void 0:tn.link)||(null==tW?void 0:tW.link)||(null==tW?void 0:null===(to=tW.data)||void 0===to?void 0:to.url),image:(null==tW?void 0:null===(ti=tW.data)||void 0===ti?void 0:null===(tl=ti.content_json)||void 0===tl?void 0:tl.image)||(null==tW?void 0:null===(ta=tW.content_json)||void 0===ta?void 0:ta.image)||(null==tW?void 0:null===(tr=tW.data)||void 0===tr?void 0:tr.image)||(null==tW?void 0:tW.image),summary:"exa_search"===ne?(null==tW?void 0:null===(td=tW.data)||void 0===td?void 0:td.summary)||"":(null==tW?void 0:null===(ts=tW.data)||void 0===ts?void 0:ts.summary)||(null==tW?void 0:tW.summary)||(null==tW?void 0:null===(tu=tW.data)||void 0===tu?void 0:null===(tc=tu.content_json)||void 0===tc?void 0:tc.summary)||(null==tW?void 0:null===(tp=tW.content_json)||void 0===tp?void 0:tp.summary)||(null==tW?void 0:null===(tv=tW.data)||void 0===tv?void 0:tv.description)||(null==tW?void 0:tW.description)||(null==tW?void 0:null===(th=tW.data)||void 0===th?void 0:null===(tm=th.
1content_json)||void 0===tm?void 0:tm.text)||(null==tW?void 0:null===(tg=tW.content_json)||void 0===tg?void 0:tg.text),channelTitle:(null==tW?void 0:null===(t_=tW.data)||void 0===t_?void 0:t_.channelTitle)||(null==tW?void 0:tW.channelTitle)||(null==tW?void 0:null===(tb=tW.data)||void 0===tb?void 0:null===(tf=tb.content_json)||void 0===tf?void 0:tf.channelTitle)||(null==tW?void 0:null===(tx=tW.content_json)||void 0===tx?void 0:tx.channelTitle)||(null==tW?void 0:null===(ty=tW.data)||void 0===ty?void 0:ty.author)||(null==tW?void 0:tW.author),duration:(null==tW?void 0:null===(tj=tW.data)||void 0===tj?void 0:tj.videoDuration)||(null==tW?void 0:tW.videoDuration)||(null==tW?void 0:null===(tS=tW.data)||void 0===tS?void 0:null===(tw=tS.content_json)||void 0===tw?void 0:tw.videoDuration)||(null==tW?void 0:null===(tk=tW.content_json)||void 0===tk?void 0:tk.videoDuration)||(null==tW?void 0:null===(tC=tW.data)||void 0===tC?void 0:tC.duration)||(null==tW?void 0:tW.duration)||(null==tW?void 0:null===(tM=tW.data)||void 0===tM?void 0:null===(tL=tM.content_json)||void 0===tL?void 0:tL.duration)||(null==tW?void 0:null===(tT=tW.content_json)||void 0===tT?void 0:tT.duration)||(null==tW?void 0:null===(tN=tW.data)||void 0===tN?void 0:tN.length)||(null==tW?void 0:null===(tB=tW.content_json)||void 0===tB?void 0:tB.length)||nL}):no?(0,o.jsx)("div",{className:d().componentSuggestionContent,children:renderContentPreview()}):(0,o.jsxs)(o.Fragment,{children:[!t2&&!nQ&&!nZ&&(0,o.jsxs)("div",{className:d().cardHeader,children:[(0,o.jsx)("h3",{className:d().cardTitle,children:nG||nK}),nI&&!nq&&(0,o.jsx)("div",{className:"".concat(d().typeTag," ").concat(d()["typeTag".concat(nI.replace(/\s+/g,""))]||""),children:nI})]}),(0,o.jsxs)("div",{className:d().cardBody,children:[renderContentPreview(),(nP||nF)&&(0,o.jsx)("div",{className:d().scribbleArea,children:(0,o.jsxs)("div",{className:[d().handwrittenText,d()["handwritten".concat(ne)],nW?d()["handwritten".concat(nW)]:""].filter(Boolean).join(" "),children:[nP?(0,o.jsx)("div",{className:d().scribbleLine1,children:(0,f.p0)(nP)}):null,nF?(0,o.jsx)("div",{className:d().scribbleLine2,children:(0,f.p0)(nF)}):null]})})]})]})}),"fake_podcast"!==ne&&"article"!==ne&&"course"!==ne&&"chat"!==ne&&"expert_chat"!==ne&&"exa_search"!==ne&&"exa_external_search"!==ne&&"search"!==ne&&"exa_image"!==ne&&"scroll"!==ne&&"chapter"!==ne&&"page"!==ne&&"bullet"!==ne&&!no&&!nQ&&!nZ&&(0,o.jsxs)("div",{className:d().cardFooter,children:[nT.length>0&&!nl&&(0,o.jsx)("button",{className:"cursor-pointer ".concat(d().actionButton," ").concat(d()["action".concat((null==ne?void 0:null===(tD=ne.charAt(0))||void 0===tD?void 0:tD.toUpperCase())+(null==ne?void 0:ne.slice(1)))]),onClick:nm,disabled:n_||nf,children:n_||nf?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"inline-block animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),(0,_.BV)("loadingLabel",t6)]}):(0,o.jsxs)(o.Fragment,{children:[nz&&(0,o.jsx)("span",{className:d().buttonIcon,children:nz}),(0,o.jsx)("span",{className:d().ctaClamp,children:nT})]})}),(0,o.jsx)("div",{className:d().cardMetadata,children:tZ&&(0,o.jsx)("span",{className:d().metadataText,children:t4("accessedLabel")})})]})]}),na&&(0,o.jsx)(s.Z,{title:(null==tW?void 0:null===(tR=tW.data)||void 0===tR?void 0:tR.title)||(0,_.BV)("expertPersonaTitle",t6)||"Expert Persona",onUpdate:e=>{e&&np(e),nr(!1)}})]})}},25005:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(15876),a=n(25451),r=n(56630),d=n.n(r),s=n(46101);let c=["charcoal","maroon","navy"],u=[8,18,12,26,16,30,20,10,24,14,28,12,20,8,16,22,10,18,26,12,20,14,8,16],fmt=e=>"".concat(Math.floor(e/60),":").concat(String(Math.floor(e%60)).padStart(2,"0"));t.Z=e=>{let{caller:t,reason:n,emoji:r,mode:p,openingMessage:v,cta:m,index:h=0,themeSeed:g=""}=e,_=(0,s.$)(),f=function(e){let t=c.slice(),n=function(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)>>>0;return t}(e);for(let e=t.length-1;e>0;e--){n=1103515245*n+12345>>>0;let o=n%(e+1);[t[e],t[o]]=[t[o],t[e]]}return t}(g),b=Number.isFinite(h)&&h>=0?Math.floor(h):0,x=f[b%f.length],[y,j]=(0,l.useState)(0),[w,S]=(0,l.useState)(!1),k=(0,l.useRef)(null),stop=()=>{k.current&&clearInterval(k.current),k.current=null,S(!1)};(0,l.useEffect)(()=>()=>{k.current&&clearInterval(k.current)},[]);let C=w?Math.round(u.length*y/9):0,L=p?String(p).trim():"live",M=n?(0,i.p0)(n):"",T=v?(0,i.p0)(v):"",N=(0,a.H3)((0,i.p0)(m||""))||"Call back";return(0,o.jsxs)("div",{className:d().card,"data-card-face":"chat","data-theme":x,children:[(0,o.jsxs)("div",{className:d().head,children:[(0,o.jsx)("div",{className:d().missed,children:_("1MissedCallLabel")}),(0,o.jsx)("div",{className:d().label,children:_("componentVoicemail")})]}),(0,o.jsxs)("div",{className:d().caller,children:[(0,o.jsx)("div",{className:d().avatar,"aria-hidden":"true",children:r||"\uD83D\uDCAC"}),(0,o.jsxs)("div",{className:d().callerText,children:[(0,o.jsx)("div",{className:d().name,children:(0,i.p0)(t)}
1),(0,o.jsxs)("div",{className:d().label,children:[L," \xb7 just now"]})]})]}),(0,o.jsxs)("div",{className:d().player,onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{type:"button",className:d().play,"aria-label":w?"Pause voicemail":"Play voicemail","aria-pressed":w,onClick:()=>{if(k.current){stop();return}S(!0),j(0);let e=0;k.current=setInterval(()=>{if((e+=.25)>=9){stop(),j(0);return}j(e)},250)},children:w?(0,o.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M7 4h4v16H7zM13 4h4v16h-4z"})}):(0,o.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M7 4.5v15l12-7.5z"})})}),(0,o.jsxs)("div",{className:d().playBody,children:[(0,o.jsx)("div",{className:d().wave,"aria-hidden":"true",children:u.map((e,t)=>(0,o.jsx)("i",{className:"".concat(d().waveBar," ").concat(t<C?d().waveBarOn:""),style:{height:e}},t))}),(0,o.jsxs)("div",{className:d().times,children:[(0,o.jsx)("span",{children:fmt(y)}),(0,o.jsx)("span",{children:fmt(9)})]})]})]}),M?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(d().label," ").concat(d().sectionLabel),children:_("voicemailTranscriptionLabel")}),(0,o.jsxs)("div",{className:d().transcript,children:["â",M,"â"]})]}):null,T?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(d().label," ").concat(d().openingLabel),children:_("realtimeChatOpenerLabel")}),(0,o.jsx)("blockquote",{className:d().opening,children:T})]}):null,(0,o.jsxs)("div",{className:d().cta,children:[(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.8 2z"})}),(0,o.jsx)("span",{className:d().ctaLabel,children:N})]})]})}},29701:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(91051),a=n(15876),r=n(87586),d=n.n(r),s=n(49617);let c=[(0,o.jsxs)("g",{children:[(0,o.jsxs)("g",{stroke:"#3a4a7a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.18",children:[(0,o.jsx)("path",{d:"M 30 250 Q 45 245 60 252 Q 75 258 88 250"}),(0,o.jsx)("path",{d:"M 95 252 Q 105 246 115 252"}),(0,o.jsx)("path",{d:"M 125 250 Q 135 256 145 250 Q 155 244 165 252"})]}),(0,o.jsxs)("g",{stroke:"#7a3a2a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.15",children:[(0,o.jsx)("path",{d:"M 180 280 Q 195 274 210 282 Q 222 288 235 280"}),(0,o.jsx)("path",{d:"M 40 305 Q 60 312 80 305 Q 95 298 110 305"})]}),(0,o.jsx)("g",{stroke:"#3a4a7a",strokeWidth:"1",strokeLinecap:"round",fill:"none",opacity:"0.12",children:(0,o.jsx)("path",{d:"M 200 320 L 215 320 M 220 320 L 240 318 M 245 320 L 260 322"})})]},"s1"),(0,o.jsxs)("g",{children:[(0,o.jsxs)("g",{stroke:"#7a3a2a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.16",children:[(0,o.jsx)("path",{d:"M 50 200 Q 65 194 80 202 Q 92 208 105 200"}),(0,o.jsx)("path",{d:"M 115 202 Q 128 208 142 200"})]}),(0,o.jsxs)("g",{stroke:"#3a4a7a",strokeWidth:"1",strokeLinecap:"round",fill:"none",opacity:"0.13",children:[(0,o.jsx)("path",{d:"M 25 240 L 45 238 M 50 240 L 70 240 M 75 240 L 95 238"}),(0,o.jsx)("path",{d:"M 160 280 Q 175 274 190 282"})]}),(0,o.jsx)("g",{stroke:"#3a5a3a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.14",children:(0,o.jsx)("path",{d:"M 200 250 Q 215 256 230 250 Q 245 244 260 252"})})]},"s2"),(0,o.jsxs)("g",{children:[(0,o.jsxs)("g",{stroke:"#3a5a3a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.16",children:[(0,o.jsx)("path",{d:"M 30 220 Q 50 226 70 220 Q 88 214 105 222"}),(0,o.jsx)("path",{d:"M 115 220 L 135 218"})]}),(0,o.jsxs)("g",{stroke:"#7a3a2a",strokeWidth:"1",strokeLinecap:"round",fill:"none",opacity:"0.12",children:[(0,o.jsx)("path",{d:"M 170 260 Q 185 266 200 260 Q 215 254 230 262"}),(0,o.jsx)("path",{d:"M 50 320 L 70 320 M 75 320 L 90 318"})]}),(0,o.jsx)("g",{stroke:"#3a4a7a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.13",children:(0,o.jsx)("path",{d:"M 180 290 Q 195 296 210 290"})})]},"s3"),(0,o.jsxs)("g",{children:[(0,o.jsxs)("g",{stroke:"#3a4a7a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.16",children:[(0,o.jsx)("path",{d:"M 40 240 Q 55 234 70 242 Q 85 248 100 240"}),(0,o.jsx)("path",{d:"M 110 242 Q 122 248 135 240"}),(0,o.jsx)("path",{d:"M 145 242 L 165 240"})]}),(0,o.jsxs)("g",{stroke:"#7a3a2a",strokeWidth:"1",strokeLinecap:"round",fill:"none",opacity:"0.12",children:[(0,o.jsx)("path",{d:"M 180 270 Q 200 276 220 270"}),(0,o.jsx)("path",{d:"M 30 290 L 50 288 M 55 290 L 75 290"})]}),(0,o.jsx)("g",{stroke:"#3a4a7a",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.14",children:(0,o.jsx)("path",{d:"M 200 310 Q 215 316 230 3
110 Q 245 304 260 312"})})]},"s4")],u=[[{type:"marker",color:"black"},{type:"marker",color:"blue"},{type:"marker",color:"red"}],[{type:"marker",color:"black"},{type:"marker",color:"red"},{type:"eraser"}],[{type:"marker",color:"blue"},{type:"marker",color:"green"},{type:"marker",color:"red"}],[{type:"marker",color:"black"},{type:"marker",color:"blue"},{type:"eraser"}],[{type:"marker",color:"black"},{type:"marker",color:"red"},{type:"marker",color:"green"}]],p=[14,28,36,50,60],v=[-1,1.2,-.6,1.5],m=["default","scheme2","scheme3","scheme4"],h={1:"Learner",2:"Teacher",3:"Client",4:"Lawyer",5:"Paralegal",6:"Patient",7:"Doctor",8:"Nurse",9:"Cook",10:"Traveler"},g={1:"Course",2:"Curriculum",3:"Case File",4:"Case File",5:"Case File",6:"Care Guide",7:"Care Guide",8:"Care Guide",9:"Recipe Book",10:"Travel Guide"};t.Z=e=>{let{title:t,description:n,premise:r,roleId:_=1,role:f,guideType:b,topicsLabel:x,topics:y=[],topicTitle:j,scribbleLine1:w,scribbleLine2:S,priceDisplay:k,moduleId:C,disableBaseTilt:L=!1}=e,M=(0,l.useMemo)(()=>(function(e){let t=String(null!=e?e:"default"),n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e)|0;return Math.abs(n)})(null!=C?C:t),[C,t]),T=(0,l.useMemo)(()=>({scheme:m[M%m.length],tilt:v[M%v.length],tray:u[(M>>2)%u.length],trayPos:p[(M>>4)%p.length],smudge:(M>>3)%c.length,dividerRotation:(M%16-8)*.1}),[M]),N=(0,l.useMemo)(()=>{let e=(0,s.Rj)(M+50),t=(0,s.tf)(e,s.R$),n="#2a7a4a",o=s.C$[t.primary]||1,l=.52*o,i=(0,s.nO)(e,-2,2),a=(0,s.nO)(e,-2,2),r=(0,s.Rj)(M+150),d=(0,s.Rj)(M+250),c=w?(0,s.XV)({text:w,color:n,fontSize:l,pairing:t,rng:r}):"",u=S?(0,s.XV)({text:S,color:n,fontSize:l,pairing:t,rng:d}):"";return{pairing:t,color:n,rotation1:i,rotation2:a,line1Html:c,line2Html:u}},[M,w,S]),{cardRef:B,onMouseEnter:D,onMouseLeave:R}=(0,i.n)(T.tilt,L),E=b||g[_]||"Course",I=f||h[_]||"Learner",q=r||n||"",z=y[0]||j||"",P=y.length>1?y.length-1:j?4:0,F="default"!==T.scheme?d()[T.scheme]:"";return(0,l.useMemo)(()=>{if(!k)return"";if(k.isFree)return"free";let e=k.subscriberPrice>0?k.subscriberPrice:k.basePrice;return"$".concat(e.toFixed(2))},[k]),(0,o.jsx)("div",{className:"".concat(d().whiteboard," ").concat(F),ref:B,onMouseEnter:D,onMouseLeave:R,children:(0,o.jsxs)("div",{className:d().wbFrame,children:[(0,o.jsxs)("div",{className:d().wbSurface,children:[(0,o.jsx)("svg",{className:d().wbSmudges,viewBox:"0 0 300 360",preserveAspectRatio:"none",children:c[T.smudge]}),(0,o.jsxs)("div",{className:d().wbRole,children:[E," \xb7 ",I]}),(0,o.jsx)("div",{className:d().wbTitle,children:(0,a.p0)(t)}),q&&(0,o.jsx)("div",{className:d().wbPremise,children:(0,a.fj)(q)}),(0,o.jsx)("div",{className:d().wbDivider,style:{transform:"rotate(".concat(T.dividerRotation,"deg)")}}),(0,o.jsx)("div",{className:d().wbTopicsLabel,children:x||"what we'll cover"}),z&&(0,o.jsx)("div",{className:d().wbFirstLesson,children:(0,a.p0)(z)}),P>0&&(0,o.jsxs)("div",{className:d().wbMore,children:["+ ",P," more"]}),(N.line1Html||N.line2Html)&&(0,o.jsxs)("div",{className:d().wbScribble,style:{fontFamily:"'".concat(N.pairing.primary,"', cursive")},children:[N.line1Html&&(0,o.jsx)("span",{className:d().wbScribbleLine,style:{color:N.color,opacity:.7,transform:"rotate(".concat(N.rotation1.toFixed(1),"deg)")},dangerouslySetInnerHTML:{__html:N.line1Html}}),N.line2Html&&(0,o.jsx)("span",{className:d().wbScribbleLine,style:{color:N.color,opacity:.7,transform:"rotate(".concat(N.rotation2.toFixed(1),"deg)")},dangerouslySetInnerHTML:{__html:N.line2Html}})]})]}),(0,o.jsx)("div",{className:d().wbMarkers,style:{right:"".concat(T.trayPos,"px")},children:T.tray.map((e,t)=>"eraser"===e.type?(0,o.jsx)("div",{className:d().wbEraser},t):(0,o.jsx)("div",{className:"".concat(d().wbMarker," ").concat(d()["wbMarker_".concat(e.color)]||"")},t))})]})})}},28119:function(e,t,n){"use strict";n.d(t,{Eb:function(){return getDescription},L2:function(){return getButtonText},O2:function(){return hasNextAvailableModal},YQ:function(){return getTitle},aT:function(){return getModulePrice},aX:function(){return getTypeIcon},g9:function(){return getDuration},hX:function(){return getButtonIcon},vf:function(){return getTypeTag}});var o=n(89312),l=n(25451);let getTypeIcon=e=>{switch(e){case"video":return"\uD83C\uDFA5";case"concept":case"exa_search":return"\uD83C\uDF10";case"related_concepts":case"search":return"\uD83D\uDD17";case"text":return"\uD83D\uDCDD";case"question":return"â";case"course":case"fable":default:return"\uD83D\uDCD6";case"expert":return"\uD83E\uDD16";case"podcast":case"fake_podcast":return"\uD83C\uDF99ï¸";case"exa_external_search":return"\uD83C\uDF0D";case"exa_image":return"\uD83D\uDDBCï¸";case"bullet":return"\uD83D\uDCCB";case"group_chat":case"chat":return"\uD83D\uDCAC";case"expert_chat":return"\uD83E\uDDD1â\uD83D\uDD2C";case"component":return"âï¸";case"article":return"\uD83D\uDCF0";case"chapter":return"\uD83D\uDCD1";case"metadata":return"\uD83D\uDE80";case"last_metadata":return"\uD83C\uDFC6"}},getTitle=(e,t,n,l)=>{var i,a,r,d,s,c,u,p,v,m,h,g,_,f,b,x,y,j,w,S,k,C,L,M,T,N,B,D,R,E;if("metadata"===t&&0===n)return(0,o.BV)("yourStartingPointLabel",l)||"Your Starting Point";if("last_metadata"===t)return(0,o.BV)("journeyCompleteTitle",l)||"Journey Complete!";
1switch(t){case"video":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.title);case"concept":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null===(a=e.data)||void 0===a?void 0:a.name)||"Concept";case"related_concepts":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.title)||"Related Concepts";case"question":return e.data.questionText;case"expert":return e.data.title;case"podcast":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.title);case"fake_podcast":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(c=e.data)||void 0===c?void 0:null===(s=c.module_json)||void 0===s?void 0:s.module_pitch)||(null==e?void 0:null===(p=e.data)||void 0===p?void 0:null===(u=p.module_json)||void 0===u?void 0:u.pitch)||"Podcast";case"search":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(v=e.data)||void 0===v?void 0:v.title)||(null==e?void 0:null===(m=e.data)||void 0===m?void 0:m.search_query);case"course":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(h=e.data)||void 0===h?void 0:h.title);case"bullet":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.bullet_title)||(null==e?void 0:e.title)||(null==e?void 0:null===(g=e.data)||void 0===g?void 0:g.title);case"group_chat":return(null==e?void 0:e.instructions)||"Group Discussion";case"text":return(null==e?void 0:null===(_=e.data)||void 0===_?void 0:_.title)||"Text";case"fable":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(f=e.data)||void 0===f?void 0:f.name)||"Fable";case"scroll":return(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(b=e.data)||void 0===b?void 0:b.scroll_topic)||(null==e?void 0:null===(x=e.data)||void 0===x?void 0:x.title)||"Scroll";case"expert_chat":case"chat":return(null==e?void 0:null===(y=e.data)||void 0===y?void 0:y.caller)||(null==e?void 0:null===(j=e.data)||void 0===j?void 0:j.persona_title)||(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||(null==e?void 0:e.title)||(null==e?void 0:null===(w=e.data)||void 0===w?void 0:w.title)||(null==e?void 0:null===(S=e.data)||void 0===S?void 0:S.expert_title)||"Chat";case"component":return(null==e?void 0:null===(k=e.data)||void 0===k?void 0:k.title)||(null==e?void 0:e.pitch)||(null==e?void 0:e.module_pitch)||(null==e?void 0:e.title)||"Component";case"article":return(null==e?void 0:e.article_title)||(null==e?void 0:null===(C=e.data)||void 0===C?void 0:C.title)||(null==e?void 0:e.title)||(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||"Article";case"chapter":return(null==e?void 0:e.title)||(null==e?void 0:null===(L=e.data)||void 0===L?void 0:L.title)||(null==e?void 0:null===(M=e.content_json)||void 0===M?void 0:M.title)||(null==e?void 0:null===(N=e.content_json)||void 0===N?void 0:null===(T=N.preview)||void 0===T?void 0:T.title)||(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||"Chapter";case"exa_search":case"exa_external_search":return(null==e?void 0:null===(D=e.data)||void 0===D?void 0:null===(B=D.content_json)||void 0===B?void 0:B.title)||(null==e?void 0:null===(R=e.content_json)||void 0===R?void 0:R.title)||(null==e?void 0:e.title)||(null==e?void 0:null===(E=e.data)||void 0===E?void 0:E.title)||(null==e?void 0:e.module_pitch)||(null==e?void 0:e.pitch)||"";default:return"Untitled"}},getDescription=(e,t,n)=>{var l,i,a,r,d;let s=(0,o.BV)("noDescriptionAvailableLabel",n)||"No description available";return"text"===t?null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.content:"component"===t?(null==e?void 0:e.generation_context)||(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.description)||(null==e?void 0:e.description)||s:"article"===t?(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.generation_context)||(null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.subtitle)||(null==e?void 0:e.description)||s:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.description)||(null==e?void 0:e.description)||s},getDuration=e=>{var t;return(null==e?void 0:e.time_estimate)?e.time_estimate:(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.t
1ime_estimate)?e.data.time_estimate:e.duration_value&&e.duration_unit?"".concat(e.duration_value," ").concat(e.duration_unit):""},getButtonText=(e,t,n)=>{let i=(0,l.H3)((0,l.Ov)(e));if(i)return i;switch(t){case"video":return(0,o.BV)("watchVideoLabel",n);case"concept":return(0,o.BV)("exploreConceptLabel",n);case"related_concepts":return(0,o.BV)("relatedConceptLabel",n);case"question":return(0,o.BV)("answerQuestionLabel",n);case"expert":return(0,o.BV)("startConversationLabel",n);case"podcast":case"fake_podcast":return(0,o.BV)("listenNowLabel",n);case"search":case"exa_search":case"exa_external_search":return(0,o.BV)("viewResourceLabel",n);case"course":return(0,o.BV)("beginCourseLabel",n);case"bullet":case"last_metadata":return(0,o.BV)("viewSummaryLabel",n);case"group_chat":return(0,o.BV)("groupChatLabel",n);case"expert_chat":case"chat":return(0,o.BV)("expertChatLabel",n);case"text":return(0,o.BV)("readNowLabel",n)||"Read Now";case"fable":return(0,o.BV)("readFableLabel",n);case"scroll":return(0,o.BV)("startScrollLabel",n);case"component":{let e=(0,o.BV)("viewSummaryLabel",n);return e&&e.trim()?e:"Read arc"}case"article":return(0,o.BV)("readArticleLabel",n);case"chapter":return(0,o.BV)("readChapterLabel",n);case"metadata":return"";default:return"Start"}},hasNextAvailableModal=(e,t)=>{if(!e||void 0===t||t>=e.length-1)return!1;for(let n=t+1;n<e.length;n++){let t=e[n],o=t.type;if("video"===o||"question"===o||"bullet"===o||"text"===o||"fable"===o||"expert"===o||"concept"===o||"related_concepts"===o||"search"===o||"expert_chat"===o||"group_chat"===o||"chat"===o||"podcast"===o||"fake_podcast"===o||"component"===o||"article"===o)return!0}return!1},getTypeTag=(e,t)=>{switch(e){case"text":return(0,o.BV)("textTypeTagLabel",t);case"bullet":return(0,o.BV)("bulletTypeTagLabel",t);case"fable":return(0,o.BV)("fableTypeTagLabel",t);case"search":return(0,o.BV)("searchTypeTagLabel",t);case"related_concepts":return(0,o.BV)("relatedConceptsTypeTagLabel",t);case"expert_chat":return(0,o.BV)("expertChatTypeTagLabel",t);case"podcast":return(0,o.BV)("podcastTypeTagLabel",t);case"fake_podcast":return(0,o.BV)("fakePodcastTypeTagLabel",t);case"chat":return(0,o.BV)("chatTypeTagLabel",t);case"course":return(0,o.BV)("courseTypeTagLabel",t);case"video":return(0,o.BV)("videoTypeTagLabel",t);case"concept":return(0,o.BV)("conceptTypeTagLabel",t);case"question":return(0,o.BV)("questionTypeTagLabel",t);case"expert":return(0,o.BV)("expertTypeTagLabel",t);case"scroll":return(0,o.BV)("scrollTypeTagLabel",t);case"component":return(0,o.BV)("componentTypeTagLabel",t);case"article":return(0,o.BV)("articleTypeTagLabel",t);case"chapter":return(0,o.BV)("chapterTypeTagLabel",t);case"page":return(0,o.BV)("pageLabel",t);case"exa_search":return(0,o.BV)("exaSearchTypeTagLabel",t);case"exa_external_search":return(0,o.BV)("exaExternalSearchTypeTagLabel",t);case"exa_image":return(0,o.BV)("exaImageTypeTagLabel",t);default:return""}},getButtonIcon=e=>{switch(e){case"text":return"â»";case"bullet":return"â±";case"fable":return"\uD83D\uDCD6";case"expert_chat":case"podcast":case"fake_podcast":return"\uD83C\uDFA4";case"chat":return"\uD83D\uDCAC";case"course":return"\uD83D\uDCDA";case"component":return"â";
1case"article":return"\uD83D\uDCF0";case"chapter":return"\uD83D\uDCD1";case"exa_search":case"exa_external_search":return"\uD83D\uDD17";default:return""}},getModulePrice=(e,t)=>{var n,o,l,i,a,r,d,s,c,u,p,v,m,h,g,_;let f=null!==(u=null!==(c=null==e?void 0:e.base_price)&&void 0!==c?c:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.base_price)&&void 0!==u?u:null===(l=null==e?void 0:e.data)||void 0===l?void 0:null===(o=l.pricing)||void 0===o?void 0:o.base_price,b=null!==(v=null!==(p=null==e?void 0:e.subscriber_price)&&void 0!==p?p:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.subscriber_price)&&void 0!==v?v:null===(r=null==e?void 0:e.data)||void 0===r?void 0:null===(a=r.pricing)||void 0===a?void 0:a.subscriber_price,x=null!==(h=null!==(m=null==e?void 0:e.status)&&void 0!==m?m:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.status)&&void 0!==h?h:"",y=null!==(_=null!==(g=null==e?void 0:e.is_generated)&&void 0!==g?g:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.is_generated)&&void 0!==_&&_,j="paid"===x||"unpaid"===x||"free"===x?x:y?"paid":void 0!==f||void 0!==b?"unpaid":null;if(null===j&&void 0===f&&void 0===b)return null;let w=parseFloat(null!=f?f:0),S=parseFloat(null!=b?b:0);if("free"===j||"paid"===j||0===w&&0===S)return{isFree:!0,basePrice:0,subscriberPrice:0,showSubscriberPrice:!1,hasSubscriberDiscount:!1,status:null!=j?j:"free"};let k=S>0?S:w;return{isFree:!1,basePrice:isNaN(w)?0:w,subscriberPrice:k,showSubscriberPrice:k>0,hasSubscriberDiscount:t&&S>0&&S<w,status:null!=j?j:"unpaid"}}},1938:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(68258),a=n(18982),r=n(15876),d=n(48817),s=n(38644),c=n.n(s),u=n(46101);let toCaptionText=e=>(0,r.p0)(e).replace(/\s+/g," ").replace(/(^|[.:;!?]\s)[-ââ*â¢]\s+/g,"$1").replace(/\s{2,}/g," ").trim(),p=/^(no\s+(content|description|title|data)\s+available|not\s+available|untitled|n\/?a|null|undefined)\.?$/i,isPlaceholder=e=>!e||!e.trim()||p.test(e.trim());t.Z=e=>{let{url:t,title:n="",className:r="",align:s="right",variant:p="trigger",barClassName:v="",contentTitle:m="",contentDescription:h=""}=e,g=(0,u.$)(),[_,f]=(0,l.useState)(!1),[b,x]=(0,l.useState)(!1),y=(0,l.useRef)(null),j=t&&/^https?:\/\//i.test(t)?t:"".concat(window.location.origin).concat(t||"");(0,l.useEffect)(()=>{if(!_)return;let onDocMouseDown=e=>{y.current&&!y.current.contains(e.target)&&f(!1)},onKey=e=>{"Escape"===e.key&&f(!1)};return document.addEventListener("mousedown",onDocMouseDown),document.addEventListener("keydown",onKey),()=>{document.removeEventListener("mousedown",onDocMouseDown),document.removeEventListener("keydown",onKey)}},[_]);let handleCopy=async()=>{try{await navigator.clipboard.writeText(j),x(!0),window.setTimeout(()=>x(!1),1600)}catch(e){}};if(!j)return null;let w="bar"===p?c().barIconBtn:c().iconBtn,S=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Dk,{url:j,className:w,resetButtonStyle:!1,"aria-label":g("shareOnFacebookLabel"),children:(0,o.jsx)("span",{className:c().iconGlyph,children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M14 8.5h2.5V5.4C16.08 5.34 14.9 5.2 13.6 5.2c-2.72 0-4.58 1.66-4.58 4.71V12.4H6.1v3.46h2.92V24h3.6v-8.14h2.8l.43-3.46h-3.23V10.0c0-1 .27-1.5 1.38-1.5z"})})})}),(0,o.jsx)(i.B,{url:j,title:n,className:w,resetButtonStyle:!1,"aria-label":g("shareOnXLabel"),children:(0,o.jsx)("span",{className:c().iconGlyph,children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})}),(0,o.jsx)(i.N0,{url:j,title:n,className:w,resetButtonStyle:!1,"aria-label":g("shareOnWhatsappLabel"),children:(0,o.jsx)("span",{className:c().iconGlyph,children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.5 2 12.04 2zm0 18.02h-.01a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.11.82.83-3.03-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.23 8.24-8.23 2.2 0 4.27.86 5.83 2.42a8.2 8.2 0 0 1 2.41 5.82c0 4.54-3.69 8.4-8.08 8.4zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.12-.16.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.48-1.38-1.73-.14-.25-.02-.38.11-.5.11-.11.25-.29.37-.43.12-.14.16-.25.25-.41.08-.17.04-.31-.02-.43-.06-.
112-.56-1.34-.76-1.84-.2-.48-.4-.41-.56-.42l-.48-.01c-.17 0-.43.06-.66.31-.23.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.24 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.14-1.18-.06-.1-.22-.16-.47-.28z"})})})}),(0,o.jsx)(i.r2,{url:j,title:n,className:w,resetButtonStyle:!1,"aria-label":g("shareOnLinkedinLabel"),children:(0,o.jsx)("span",{className:c().iconGlyph,children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3V9zm7 0h3.8v1.64h.06c.53-.95 1.83-1.95 3.76-1.95C21.4 8.69 22 11.0 22 14.0V21h-4v-6.2c0-1.48-.03-3.38-2.06-3.38-2.06 0-2.38 1.6-2.38 3.27V21h-4V9z"})})})}),(0,o.jsx)(i.cG,{url:j,subject:n,className:w,resetButtonStyle:!1,"aria-label":g("shareViaEmailLabel"),children:(0,o.jsx)("span",{className:c().iconGlyph,children:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M3.5 6.5 12 12.5l8.5-6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),(0,o.jsx)("button",{type:"button",className:w,onClick:handleCopy,"aria-label":b?"Link copied":"Copy link",title:b?"Link copied":"Copy link",children:(0,o.jsx)("span",{className:c().iconGlyph,children:b?(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,o.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]});if("bar"===p){let e=toCaptionText(h),t=isPlaceholder(e)?"":e,n=isPlaceholder(m)?"":m.trim();return(0,o.jsxs)("div",{className:"".concat(c().bar," ").concat(v),children:[(0,o.jsxs)("div",{className:c().barLabel,children:[(0,o.jsx)("span",{className:c().barLabelBig,children:n||(0,o.jsx)(a.Z,{variableName:"shareTitle",deafaultValue:"Pass it along"})}),(0,o.jsx)("span",{className:c().barLabelSmall,title:t||void 0,children:t||(0,o.jsx)(a.Z,{variableName:"shareSubtitle",deafaultValue:"a thing worth keeping"})})]}),(0,o.jsx)("div",{className:c().barIcons,children:S})]})}return(0,o.jsxs)("div",{ref:y,className:c().wrap,children:[(0,o.jsx)("button",{type:"button",className:r||c().trigger,...(0,d.BD)(()=>f(e=>!e)),"aria-label":g("shareIconMouseHover"),title:g("shareIconMouseHover"),"aria-haspopup":"true","aria-expanded":_,children:(0,o.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,o.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,o.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,o.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,o.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})}),_&&(0,o.jsxs)("div",{className:"".concat(c().popover," ").concat("left"===s?c().alignLeft:c().alignRight),role:"menu",children:[(0,o.jsx)("div",{className:c().popoverLabel,children:(0,o.jsx)(a.Z,{variableName:"shareComponentLabel"})}),(0,o.jsx)("div",{className:c().icons,children:S})]})]})}},64946:function(e,t,n){"use strict";var o=n(85893),l=n(67294),i=n(15876),a=n(46089),r=n.n(a),d=n(98456),s=n(6623),c=n(5472),u=n(2446),p=n(81758),v=n(39883),m=n(15790),h=n(18982),g=n(89312),_=n(9473),f=n(42838),b=n(11163),x=n(56360),y=n(67331),j=n(46101);t.Z=e=>{var t,n,a,w,S,k,C,L,M,T,N,B,D,R;let{isOpen:E,onClose:I,moduleNumber:q,title:z,description:P,questionId:F,phraseLabels:W,onNextModule:A,fullData:H,hasNextModule:V,inline:J=!1}=e,O=(0,j.$)(),Q=(0,_.I0)(),[Z,K]=(0,l.useState)(""),[G,Y]=(0,l.useState)(!1),[X,U]=(0,l.useState)({}),[$,ee]=(0,l.useState)(!1),[et,en]=(0,l.useState)(!1),eo=(0,l.useRef)(null),el=(0,_.v9)(e=>{var t;return null===(t=e.myLearning)||void 0===t?void 0:t.progressCount}),[ei,ea]=(0,l.useState)(!1),[er,ed]=(0,l.useState)(!1),es=(0,b.useRouter)(),{effectiveData:ec,loading:eu}=(0,x.ZP)(H,E),ep=null!=ec?ec:H;(0,l.useEffect)(()=>{let checkMobile=()=>{ed(window.innerWidth<=768)};return checkMobile(),window.addEventListener("resize",checkMobile),()=>window.removeEventListener("resize",checkMobile)},[]),(0,l.useEffect)(()=>
1{if(!J){if(E){document.body.classList.add("modal-open");let e=document.querySelector("header");e&&(e.style.display="none")}else{document.body.classList.remove("modal-open");let e=document.querySelector("header");e&&(e.style.display="")}return()=>{document.body.classList.remove("modal-open");let e=document.querySelector("header");e&&(e.style.display="")}}},[E,J]),(0,y.P)(E,I),(0,l.useEffect)(()=>{(null==X?void 0:X.correct)!==1||$||(ee(!0),(0,v.Z)({particleCount:100,spread:100,origin:{y:.6},zIndex:9999}))},[X,$]);let adjustTextareaHeight=()=>{if(eo.current){let e=eo.current,t=e.selectionStart,n=e.selectionEnd;e.style.height="auto";let o=Math.max(e.scrollHeight,e.scrollHeight);e.style.height="".concat(Math.min(o,240),"px"),e.style.overflowY=o>240?"auto":"hidden",e.setSelectionRange(t,n)}},handleClose=e=>{let t=JSON.parse(null==e?void 0:e.data);ea(!1),U(t)},handleSubmit=()=>{if(!Z){en(!0);return}ea(!0),Q((0,f.GNb)(!0));let e=new s.SSE(c.ZP+"anylearn/test-question/".concat(F,"/verify-answer"),{method:"POST",headers:(0,u.uY)(),payload:JSON.stringify({id:F,text:Z})}),t="",n=!1;return e.addEventListener("close",handleClose),e.addEventListener("message",function(e){try{Q((0,f.GNb)(!1)),Y(!0),t+=e.data;let o=(0,p.Z)(t),l=JSON.parse(o);U(l),1!==l.correct||n||(Q((0,f.ZUw)(el+1)),n=!0)}catch(e){}}),()=>{e.close()}};return E?((null==ep?void 0:null===(t=ep.learning_plan)||void 0===t?void 0:t.slug)?null==ep||null===(n=ep.learning_plan)||void 0===n||n.slug:es.query.modal,J)?(0,o.jsxs)("div",{className:"".concat(r().modalContainer," ").concat(r().inline),children:[(0,o.jsxs)("div",{className:r().courseHeader,children:[(0,o.jsxs)("button",{className:r().backButton,onClick:I,children:[(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,o.jsx)("path",{d:"M15 18l-6-6 6-6"})}),!er&&(0,o.jsx)("span",{children:O("backToResultsLabel")})]}),(0,o.jsxs)("div",{className:r().moduleInfo,children:[(0,o.jsx)("span",{className:r().moduleTypeLabel,children:O("questionTypeTagLabel")}),(0,o.jsx)("h1",{className:r().moduleTitle,children:(null==ep?void 0:ep.title)||z})]})]}),(0,o.jsx)("div",{className:r().modalContent,children:(0,o.jsx)("div",{className:"".concat(r().contentWrapper," question_modalWrapper"),children:(null==X?void 0:X.correct)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:r().contentTitle,children:O("greatJobLabel")}),(0,o.jsxs)("div",{style:{background:"#1a1d24",borderRadius:"16px",padding:"32px",border:"1px solid rgba(255, 255, 255, 0.08)",marginBottom:"32px"},children:[(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsxs)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:[(0,o.jsx)(h.Z,{variableName:"question"})," :"]}),(0,o.jsx)("p",{style:{fontSize:"18px",color:"#ffffff",lineHeight:"1.6"},children:z})]}),(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsxs)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:[(0,o.jsx)(h.Z,{variableName:"yourAnswerExpandLabel"})," :"]}),(0,o.jsx)("p",{style:{fontSize:"16px",color:"#ffffff",lineHeight:"1.6",background:"rgba(100, 255, 218, 0.05)",padding:"16px",borderRadius:"12px",border:"1px solid rgba(100, 255, 218, 0.2)"},children:Z})]}),(null==X?void 0:X.points)!==0&&(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Points Earned:"}),(0,o.jsxs)("span",{style:{display:"inline-block",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",color:"#1a1621",padding:"8px 20px",borderRadius:"24px",fontWeight:700,fontSize:"18px"},children:["+",null==X?void 0:X.points," points"]})]}),(null!==(N=null==X?void 0:X.response)&&void 0!==N?N:null==X?void 0:X.result)&&(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Feedback:"}),(0,o.jsx)("div",{style:{fontSize:"16px",color:"#ffffff",lineHeight:"1.6"},dangerouslySetInnerHTML:{__html:null!==(B=null==X?void 0:X.response)&&void 0!==B?B:null==X?void 0:X.result}})]}),(null==X?void 0:null===(M=X.concepts)||void 0===M?void 0:M.length)>0&&(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginTop:"24px",marginBottom:"16
1px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Concepts Points Distribution:"}),(0,o.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:null==X?void 0:null===(T=X.concepts)||void 0===T?void 0:T.map(e=>(0,o.jsx)("span",{style:{display:"inline-block",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",color:"#1a1621",padding:"8px 20px",borderRadius:"24px",fontWeight:700,fontSize:"18px"},children:e.name+" "+e.portion}))})]})]}),(0,o.jsx)("div",{className:r().moduleInfoSection,children:(0,o.jsx)("div",{className:r().moduleInfoContent,children:(0,o.jsx)("span",{children:O("completedLabel")})})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:r().contentDescription,style:{marginBottom:"32px"},children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[(0,o.jsx)("h1",{className:r().contentTitle,children:null==ep?void 0:null===(C=ep.data)||void 0===C?void 0:C.questionText}),F&&(0,o.jsx)("button",{style:{width:"42px",height:"42px",borderRadius:"12px",border:"2px solid rgba(255, 255, 255, 0.2)",background:"rgba(255, 255, 255, 0.05)",color:"#ffffff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},onClick:e=>{e.stopPropagation(),e.preventDefault()},"data-tooltip-id":"my-tooltip-2","data-tooltip-content":(0,g.BV)("textToSpeach",W),onMouseEnter:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.1)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.05)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.2)"},children:(0,o.jsx)("div",{style:{color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(m.Z,{id:F,targetType:"question"})})})]})}),(0,o.jsx)("div",{style:{background:"#1a1d24",borderRadius:"16px",padding:"24px",border:"2px solid rgba(255, 255, 255, 0.08)",marginBottom:et?"12px":"32px",transition:"all 0.3s ease",cursor:"text"},onClick:()=>{var e;return null===(e=eo.current)||void 0===e?void 0:e.focus()},onFocus:()=>{let e=document.getElementById("question-input-container");e&&(e.style.borderColor="rgba(251, 191, 36, 0.5)",e.style.background="rgba(26, 29, 36, 0.8)",e.style.boxShadow="0 0 0 3px rgba(251, 191, 36, 0.1)")},onBlur:()=>{let e=document.getElementById("question-input-container");e&&(e.style.borderColor="rgba(255, 255, 255, 0.08)",e.style.background="#1a1d24",e.style.boxShadow="none")},id:"question-input-container",children:(0,o.jsx)("textarea",{ref:eo,className:r().responseInput,value:Z,onChange:e=>{K(e.target.value),adjustTextareaHeight(),en(!1)},placeholder:null==ep?void 0:null===(L=ep.data)||void 0===L?void 0:L.defaultText,rows:4,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),handleSubmit())},onFocus:e=>{let t=document.getElementById("question-input-container");t&&(t.style.borderColor="rgba(251, 191, 36, 0.5)",t.style.background="rgba(26, 29, 36, 0.8)",t.style.boxShadow="0 0 0 3px rgba(251, 191, 36, 0.1)")},onBlur:e=>{let t=document.getElementById("question-input-container");t&&(t.style.borderColor="rgba(255, 255, 255, 0.08)",t.style.background="#1a1d24",t.style.boxShadow="none")},style:{width:"100%",background:"transparent",border:"none",color:"#ffffff",fontSize:"16px",lineHeight:"1.5",resize:"none",outline:"none",fontFamily:"inherit",transition:"all 0.3s ease"}})}),et&&(0,o.jsx)("div",{style:{color:"#ef4444",fontSize:"14px",marginBottom:"24px"},children:(0,o.jsx)(h.Z,{variableName:"emptyAnswerErrorLabel",deafaultValue:"Answer can not be empty!"})}),(0,o.jsxs)("div",{style:{display:"flex",gap:"16px",marginTop:"40px",justifyContent:"center",flexWrap:er?"wrap":"nowrap",flexDirection:er?"column":"row"},children:[(0,o.jsx)("button",{onClick:I,style:{padding:"16px 32px",background:"rgba(255, 255, 255, 0.05)",border:"2px solid rgba(255, 255, 255, 0.2)",borderRadius:"12px",color:"#ffffff",fontSize:"16px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.1)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.05)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.2)"},children:"Skip for Now"}),(0,o.jsx)("button",{onClick:handleSubmit,disabled:ei,style:{padding:"16px 32px",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",border:"none",borderRadius:"12px",color:"#1a1621",fontSize:"16px",fontWeight:700,cursor:ei?"not-allowed":"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",opacity:ei?.7:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{ei||(e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(251, 191, 36, 0.3)")},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="none"},children:ei?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{size:20,style:{color:"#1a1621"}}),(0,o.jsx)("span",{children:O("submittingLabel")})]}):"Submit Response"}),V&&A&&(0,o.jsxs)("button",{onClick:A,style:{padding:"16px 32px",background:"linear-gradient(135deg, #10b981, #059669)",border:"none",borderRadius:"12px",color:"#ffffff",fontSize:"16px",fontWeight:700,cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(16, 185, 129, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="none"},children:[(0,o.jsx)("span",{children:O("nextModuleLabel")}),(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,o.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})]})})})]}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"".concat(r().modalOverlay," ").concat(E?r().active:""),onClick:I,children:(0,o.jsxs)("div",{className:r().modalContainer,onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)("div",{className:r().courseHeader,children:[(0,o.jsxs)("button",{className:r().backButton,onClick:I,children:[(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,o.jsx)("path",{d:"M15 18l-6-6 6-6"})}),!er&&(0,o.jsx)("span",{children:O("backToResultsLabel")})]}),(0,o.jsxs)("div",{className:r().moduleInfo,children:[(0,o.jsx)("span",{className:r().moduleTypeLabel,children:O("questionTypeTagLabel")}),(0,o.jsx)("h1",{className:r().moduleTitle,children:(null==ep?void 0:ep.title)||z})]}),(0,o.jsxs)("div",{className:r().rightSection,children:[(0,o.jsx)("button",{className:r().skipButton,onClick:I,style:{padding:"8px 20px",background:"rgba(255, 255, 255, 0.05)",border:"1px solid rgba(255, 255, 255, 0.15)",borderRadius:"8px",color:"#b8b8c8",fontSize:"14px",fontWeight:"500",cursor:"pointer",transition:"all 0.2s",whiteSpace:"nowrap"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.1)",e.currentTarget.style.color="#ffffff"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.05)",e.currentTarget.style.color="#b8b8c8"},children:"Skip"}),V&&A&&(null==X?void 0:X.correct)?(0,o.jsx)("button",{className:r().nextButton,onClick:A,children:"Next Module â"}):(0,o.jsx)("button",{className:r().nextButton,onClick:(null==X?void 0:X.correct)?I:handleSubmit,disabled:ei,style:{background:(null==X?void 0:X.correct)?"linear-gradient(135deg, #10b981, #059669)":"linear-gradient(135deg, #fbbf24, #f59e0b)",opacity:ei?.7:1,cursor:ei?"not-allowed":"pointer"},children:ei?(0,o.jsx)(d.Z,{size:20,style:{color:"white"}}):(null==X?void 0:X.correct)?"Complete":"Submit"})]})]}),(0,o.jsxs)("div",{style:{display:"none",background:"linear-gradient(135deg, #3b82f6, #6366f1)",borderRadius:"16px",padding:"32px",marginBottom:"32px",color:"#ffffff",textAlign:"center",maxWidth:"1080px",marginTop:"32px",margin:"0 auto"},children:[(0,o.jsx)("h2",{style:{fontSize:"28px",fontWeight:700,marginBottom:"12px"},children:null==ep?void 0:ep.title}
1),(0,o.jsx)("p",{style:{fontSize:"16px",opacity:.9,lineHeight:"1.6"},children:(0,i.fj)(null==ep?void 0:ep.description)})]}),(0,o.jsx)("div",{className:r().modalContent,children:(0,o.jsx)("div",{className:"".concat(r().contentWrapper," question_modalWrapper"),children:(null==X?void 0:X.correct)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:r().contentTitle,children:O("greatJobLabel")}),(0,o.jsxs)("div",{style:{background:"#1a1d24",borderRadius:"16px",padding:"32px",border:"1px solid rgba(255, 255, 255, 0.08)",marginBottom:"32px"},children:[(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsxs)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:[(0,o.jsx)(h.Z,{variableName:"question"})," :"]}),(0,o.jsx)("p",{style:{fontSize:"18px",color:"#ffffff",lineHeight:"1.6"},children:z})]}),(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsxs)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:[(0,o.jsx)(h.Z,{variableName:"yourAnswerExpandLabel"})," :"]}),(0,o.jsx)("p",{style:{fontSize:"16px",color:"#ffffff",lineHeight:"1.6",background:"rgba(100, 255, 218, 0.05)",padding:"16px",borderRadius:"12px",border:"1px solid rgba(100, 255, 218, 0.2)"},children:Z})]}),(null==X?void 0:X.points)!==0&&(0,o.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Points Earned:"}),(0,o.jsxs)("span",{style:{display:"inline-block",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",color:"#1a1621",padding:"8px 20px",borderRadius:"24px",fontWeight:700,fontSize:"18px"},children:["+",null==X?void 0:X.points," points"]})]}),(null!==(D=null==X?void 0:X.response)&&void 0!==D?D:null==X?void 0:X.result)&&(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Feedback:"}),(0,o.jsx)("div",{style:{fontSize:"16px",color:"#ffffff",lineHeight:"1.6"},dangerouslySetInnerHTML:{__html:null!==(R=null==X?void 0:X.response)&&void 0!==R?R:null==X?void 0:X.result}})]}),(null==X?void 0:null===(S=X.concepts)||void 0===S?void 0:S.length)>0&&(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{style:{fontSize:"14px",fontWeight:600,color:"#94a3b8",marginTop:"24px",marginBottom:"16px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Concepts Points Distribution:"}),(0,o.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:null==X?void 0:null===(k=X.concepts)||void 0===k?void 0:k.map(e=>(0,o.jsx)("span",{style:{display:"inline-block",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",color:"#1a1621",padding:"8px 20px",borderRadius:"24px",fontWeight:700,fontSize:"18px"},children:e.name+" "+e.portion}))})]})]}),(0,o.jsx)("div",{className:r().moduleInfoSection,children:(0,o.jsx)("div",{className:r().moduleInfoContent,children:(0,o.jsx)("span",{children:O("completedLabel")})})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:r().contentDescription,style:{marginBottom:"32px"},children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[(0,o.jsx)("h1",{className:r().contentTitle,children:null==ep?void 0:null===(a=ep.data)||void 0===a?void 0:a.questionText}),F&&(0,o.jsx)("button",{style:{width:"48px",height:"48px",borderRadius:"12px",border:"2px solid rgba(255, 255, 255, 0.2)",background:"rgba(255, 255, 255, 0.05)",color:"#ffffff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},onClick:e=>{e.stopPropagation(),e.preventDefault()},"data-tooltip-id":"my-tooltip-2","data-tooltip-content":(0,g.BV)("textToSpeach",W),onMouseEnter:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.1)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.05)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.2)"},children:(0,o.jsx)("div",{style:{color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(m.Z,{id:F,targetType:"question"})})})]})}),(0,o.jsx)("div",{style:{background:"#1a1d24",borderRadius:"16px",padding:"24px",border:"2px s
1olid rgba(255, 255, 255, 0.08)",marginBottom:et?"12px":"32px",transition:"all 0.3s ease",cursor:"text"},onClick:()=>{var e;return null===(e=eo.current)||void 0===e?void 0:e.focus()},onFocus:()=>{let e=document.getElementById("question-input-container");e&&(e.style.borderColor="rgba(251, 191, 36, 0.5)",e.style.background="rgba(26, 29, 36, 0.8)",e.style.boxShadow="0 0 0 3px rgba(251, 191, 36, 0.1)")},onBlur:()=>{let e=document.getElementById("question-input-container");e&&(e.style.borderColor="rgba(255, 255, 255, 0.08)",e.style.background="#1a1d24",e.style.boxShadow="none")},id:"question-input-container",children:(0,o.jsx)("textarea",{ref:eo,className:r().responseInput,value:Z,onChange:e=>{K(e.target.value),adjustTextareaHeight(),en(!1)},placeholder:null==ep?void 0:null===(w=ep.data)||void 0===w?void 0:w.defaultText,rows:4,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),handleSubmit())},onFocus:e=>{let t=document.getElementById("question-input-container");t&&(t.style.borderColor="rgba(251, 191, 36, 0.5)",t.style.background="rgba(26, 29, 36, 0.8)",t.style.boxShadow="0 0 0 3px rgba(251, 191, 36, 0.1)")},onBlur:e=>{let t=document.getElementById("question-input-container");t&&(t.style.borderColor="rgba(255, 255, 255, 0.08)",t.style.background="#1a1d24",t.style.boxShadow="none")},style:{width:"100%",background:"transparent",border:"none",color:"#ffffff",fontSize:"16px",lineHeight:"1.5",resize:"none",outline:"none",fontFamily:"inherit",transition:"all 0.3s ease"}})}),et&&(0,o.jsx)("div",{style:{color:"#ef4444",fontSize:"14px",marginBottom:"24px"},children:(0,o.jsx)(h.Z,{variableName:"emptyAnswerErrorLabel",deafaultValue:"Answer can not be empty!"})}),(0,o.jsxs)("div",{style:{display:"flex",gap:"16px",marginTop:"40px",justifyContent:"center",flexWrap:er?"wrap":"nowrap",flexDirection:er?"column":"row"},children:[(0,o.jsx)("button",{onClick:I,style:{padding:"16px 32px",background:"rgba(255, 255, 255, 0.05)",border:"2px solid rgba(255, 255, 255, 0.2)",borderRadius:"12px",color:"#ffffff",fontSize:"16px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.1)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.05)",e.currentTarget.style.borderColor="rgba(255, 255, 255, 0.2)"},children:"Skip for Now"}),(0,o.jsx)("button",{onClick:handleSubmit,disabled:ei,style:{padding:"16px 32px",background:"linear-gradient(135deg, #fbbf24, #f59e0b)",border:"none",borderRadius:"12px",color:"#1a1621",fontSize:"16px",fontWeight:700,cursor:ei?"not-allowed":"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",opacity:ei?.7:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{ei||(e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(251, 191, 36, 0.3)")},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="none"},children:ei?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{size:20,style:{color:"#1a1621"}}),(0,o.jsx)("span",{children:O("submittingLabel")})]}):"Submit Response"}),V&&A&&(0,o.jsxs)("button",{onClick:A,style:{padding:"16px 32px",background:"linear-gradient(135deg, #10b981, #059669)",border:"none",borderRadius:"12px",color:"#ffffff",fontSize:"16px",fontWeight:700,cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase",letterSpacing:"0.5px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:er?"100%":"auto",minWidth:er?"100%":"200px"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(16, 185, 129, 0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="none"},children:[(0,o.jsx)("span",{children:O("nextModuleLabel")}),(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,o.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})]})})})]})})}):null}},62724:function(e,t,n){"use strict";n.d(t,{rc:function(){return showsCardProvenance}});var o=n(85893);n(67294);let l=new Set(["REAL_PHOTO","VIDEO_EMBED","SEARCH_QUERY"]),normalizeType=e=>String(null!=e?e:"").trim().toUpperCase().replace(/[\s-]+/g,"_"),showsCardProvenance=(e,t)=>"external"===t||l.has(normalizeType(e));t.ZP=e=>{let{grouping:t,componentType:n}=e,i="external"===t||l.has(normalizeType(n)),a=i?"#6b1f2a":"#7c8b33";return(0,o.jsxs)("span",{"data-provenance-badge":"",style:{display:"inline-flex",alignItems:"center",gap:3,fontFamily:"'Bricolage Grotesque', sans-serif",fontWeight:700,lineHeight:1,fontSize:9,padding:"2.5px 4px",border:"1.1px solid ".concat(a),borderRadius:3,letterSpacing:"0.03em",textTransform:"lowercase",color:a,flexShrink:0,whiteSpace:"nowrap"},children:[i?(0,o.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.2,style:{display:"block"},children:[(0,o.jsx)("circle",{cx:"8",cy:"8",r:"5.8"}),(0,o.jsx)("ellipse",{cx:"8",cy:"8",rx:"2.5",ry:"5.8"}),(0,o.jsx)("path",{d:"M2.3 8h11.4"})]}):(0,o.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block"}
1,children:[(0,o.jsx)("rect",{x:"3.5",y:"6",width:"9",height:"6.5",rx:"1.5"}),(0,o.jsx)("path",{d:"M8 6V3.6"}),(0,o.jsx)("circle",{cx:"8",cy:"2.9",r:"1"}),(0,o.jsx)("path",{d:"M6 9h.01M10 9h.01"})]}),i?"web":"ai"]})}},91142:function(e,t,n){"use strict";n.d(t,{g:function(){return useReaderPinch}});var o=n(67294);function useReaderPinch(e){let{getStartScale:t,setScale:n,clamp:l}=e,[i,a]=(0,o.useState)(null),r=(0,o.useRef)({getStartScale:t,setScale:n,clamp:l});return r.current={getStartScale:t,setScale:n,clamp:l},(0,o.useEffect)(()=>{if(!i)return;let e=i.style.touchAction;i.style.touchAction="pan-x pan-y";let t="ongesturestart"in window,n=0,o=1,dist=e=>Math.hypot(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY),findScroller=()=>{let e=i;for(;e;){let{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t||"overlay"===t)&&e.scrollHeight>e.clientHeight+1)return e;e=e.parentElement}return document.scrollingElement||document.documentElement},l=null,a=0,applyAnchor=()=>{a=0;let e=l;if(!e)return;if(i.scrollHeight===e.elScrollHeight&&e.tries<4){e.tries++,a=requestAnimationFrame(applyAnc
1hor);return}if(l=null,e.elScrollHeight<=0)return;let t=i.getBoundingClientRect(),n=e.elScrollTop+e.focalY-e.elTop,o=n*(i.scrollHeight/e.elScrollHeight),r=t.top+o-(e.elIsScroller?i.scrollTop:0),d=r-e.focalY;Math.abs(d)>=.5&&(e.scroller.scrollTop+=d)},setScaleAnchored=(e,t)=>{let{setScale:n,clamp:o}=r.current,d=findScroller(),s=d===i;l={focalY:t,elTop:i.getBoundingClientRect().top,elScrollTop:s?i.scrollTop:0,elScrollHeight:i.scrollHeight,scroller:d,elIsScroller:s,tries:0},n(o(e)),a&&cancelAnimationFrame(a),a=requestAnimationFrame(applyAnchor)},onTouchStart=e=>{t||2!==e.touches.length||(n=dist(e.touches),o=r.current.getStartScale())},onTouchMove=e=>{!t&&2===e.touches.length&&n&&(e.preventDefault(),setScaleAnchored(o*(dist(e.touches)/n),(e.touches[0].clientY+e.touches[1].clientY)/2))},onTouchEnd=e=>{e.touches.length<2&&(n=0)},onGestureStart=e=>{e.preventDefault(),o=r.current.getStartScale()},onGestureChange=e=>{e.preventDefault();let t=e.clientY;if("number"!=typeof t){let e=i.getBoundingClientRect();t=(Math.max(e.top,0)+Math.min(e.bottom,window.innerHeight))/2}setScaleAnchored(o*e.scale,t)},onWheel=e=>{if(!e.ctrlKey)return;e.preventDefault();let{getStartScale:t}=r.current,n=Math.max(-40,Math.min(40,e.deltaY));setScaleAnchored(t()*Math.exp(-(.01*n)),e.clientY)};return i.addEventListener("touchstart",onTouchStart,{passive:!1}),i.addEventListener("touchmove",onTouchMove,{passive:!1}),i.addEventListener("touchend",onTouchEnd),i.addEventListener("touchcancel",onTouchEnd),i.addEventListener("wheel",onWheel,{passive:!1}),t&&(i.addEventListener("gesturestart",onGestureStart,{passive:!1}),i.addEventListener("gesturechange",onGestureChange,{passive:!1})),()=>{a&&cancelAnimationFrame(a),l=null,i.style.touchAction=e,i.removeEventListener("touchstart",onTouchStart),i.removeEventListener("touchmove",onTouchMove),i.removeEventListener("touchend",onTouchEnd),i.removeEventListener("touchcancel",onTouchEnd),i.removeEventListener("wheel",onWheel),t&&(i.removeEventListener("gesturestart",onGestureStart),i.removeEventListener("gesturechange",onGestureChange))}},[i]),a}},34524:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _id_}});var o=n(85893),l=n(67294),i=n(11163),a=n(9473),r=n(20684),d=n(48845),s=n.n(d),c=n(45082),u=n(89626),p=n(42838),v=n(5472),m=n(2446),h=n(6623),g=n(13132),_=n(41064),f=n(89312),b=n(14585),x=n.n(b),QuantumJourney_RejectTopicModal=e=>{let{message:t,suggestions:n,onStayHere:l,onSuggestionClick:i}=e,r=(0,a.v9)(e=>{var t;return null===(t=e.myLearning)||void 0===t?void 0:t.phraseLabels}),d=Array.isArray(n)&&n.length>0;return(0,o.jsx)("div",{className:x().modalOverlay,children:(0,o.jsxs)("div",{className:x().modalContent,children:[(0,o.jsx)("p",{className:x().modalMessage,children:t}),d&&(0,o.jsxs)("div",{className:x().topicSuggestionSection,children:[(0,o.jsx)("p",{className:x().topicSuggestionLabel,children:(0,f.BV)("trySuggestionsLabel",r)}),n.map(e=>(0,o.jsx)("button",{type:"button",className:x().topicSuggestionButton,onClick:()=>i(e),children:e},e))]}),(0,o.jsx)("div",{className:x().modalActions,children:(0,o.jsx)("button",{type:"button",className:x().stayHereButton,onClick:l,children:(0,f.BV)("stayHereLabel",r)})})]})})},QuantumJourney_RedirectTopicModal=e=>{let{message:t,newTopicQuery:n,onStayHere:l,onNewTopic:i}=e,r=(0,a.v9)(e=>{var t;return null===(t=e.myLearning)||void 0===t?void 0:t.phraseLabels});return(0,o.jsx)("div",{className:x().modalOverlay,children:(0,o.jsxs)("div",{className:x().modalContent,children:[(0,o.jsx)("p",{className:x().modalMessage,children:t}),n&&(0,o.jsxs)("div",{className:x().topicSuggestionSection,children:[(0,o.jsx)("p",{className:x().topicSuggestionLabel,children:(0,f.BV)("topicSuggestionLabel",r)}),(0,o.jsx)("button",{className:x().topicSuggestionButton,onClick:i,children:n})]}),(0,o.jsxs)("div",{className:x().modalActions,children:[(0,o.jsx)("button",{className:x().stayHereButton,onClick:l,children:(0,f.BV)("stayHereLabel",r)}),n&&(0,o.jsx)("button",{className:x().newTopicButton,onClick:i,children:(0,f.BV)("startNewTopicLabel",r)})]})]})})},y=n(39666),j=n(60223),w=n(29800),S=n(46101);function guessEmoji(e){let t=e.toLowerCase();return t.includes("black hole")?"â«":t.includes("spanish")?"\uD83C\uDDEA\uD83C\uDDF8":t.includes("salary")||t.includes("negot")?"\uD83D\uDCB0":t.includes("french")?"\uD83C\uDDEB\uD83C\uDDF7":t.includes("machine learning")||t.includes("ai")?"\uD83E\uDD16":t.includes("stoic")?"\uD83C\uDFDBï¸":"\uD83C\uDFAF"}var QuantumJourney_JourneySection=e=>{var t,n,r,d,b,x,k,C,L,M;let{title:T,modules:N=[],selectedDurationData:B,onJourneyParamsChange:D,activeFilter:R,isLoading:E=!1,onClose:I,variant:q="dashboard",setActiveTab:z,sidebarOpen:P=!1,isScrollingDown:F=!1}=e,W=(0,S.$)(),A=(0,a.I0)(),H=(0,i.useRouter)(),{duration_id:V,familiarity_id:J}=H.query,[O,Q]=(0,l.useState)(!1),Z=E||O,K=(0,a.v9)(e=>e.myLearning.familiarities),G=(0,a.v9)(e=>e.myLearning.conceptData),Y=(0,a.v9)(e=>e.myLearning.learningPlansById),X=(0,a.v9)(e=>e.myLearning.durationData);(0,a.v9)(e=>e.myLearning.suggestionData);let U=(0,a.v9)(e=>{var t,n;return null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(t=n.user)||void 0===t?void 0:t.isAuth}),[$,ee]=(0,l.useState)([]),et=H.pathname.includes("/concept"),en=(0,a.v9)(e=>e.myLearning.phraseLabels),[eo,el]=(0,l.useState)(et?4:null!==(C=null==Y?void 0:Y.duration_id)&&void 0!==C?C:V),[ei,ea]=(0,l.useState)(null==K?void 0:K.familiarities),[er,ed]=(0,l.useState)(null!==(M=Number(et?2:null!==(L=null==Y?void 0:Y.familiarity_id)&&void 0!==L?L:J))&&void 0!==M?M:1),es=(0,l.useRef)(null);(0,l.useRef)(null);let[ec,eu]=(0,l.useState)(!1),[ep,ev]=(0,l.useState)(null),em=(0,l.useRef)(!1),[eh,eg]=(0,l.useState)(!1),e_=(0,l.useRef)(!1),ef=(0,l.useRef)(null),eb=(0,l.useRef)(null),ex=(0,l.useRef)(null),[ey,ej]=(0,l.useState)(""),ew=(0,l.useRef)(null),[eS,ek]=(0,l.useState)(!1),[eC,eL]=(0,l.useState)(null),eM=(0,l.useRef)(null),[eT,eN]=(0,l.useState)(!1),[eB,eD]=(0,l.useState)(null),[eR,eE]=(0,l.useState)(null),[eI,eq]=(0,l.useState)(!1),[ez,eP]=(0,l.useState)(null),{selectedModuleIds:eF,setSelectedModuleIds:eW}=(0,w.u)(),[eA,eH]=(0,l.useState)(!1),[eV,eJ]=(0,l.useState)([]),[eO,eQ]=(0,l.useState)([]),eZ=(0,l.useRef)(null),eK=(0,l.useRef)(null),eG=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=window.innerWidth<=767;if(!e)return;let clearScrollBlockingStyles=()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.height="",document.documentElement.style.overflow="",document.documentElement.style.position=""};clearScrollBlockingStyles();let t=setTimeout(clearScrollBlockingStyles,100);return document.body.classList.add("enable-scroll-mobile"),document.documentElement.classList.add("enable-scroll-mobile"),()=>{clearTimeout(t),document.body.classList.remove("enable-scroll-mobile"),document.documentElement.classList.remove("enable-scroll-mobile")}},[]),(0,l.useEffect)(()=>
1{let e=window.visualViewport;if(!e)return;let updateViewportOffset=()=>{if(document.body.classList.contains("keyboard-open")){let t=e.offsetTop+e.height,n=window.innerHeight-t;document.documentElement.style.setProperty("--keyboard-offset","".concat(Math.max(0,n),"px")),document.documentElement.style.setProperty("--viewport-offset","0px");return}document.documentElement.style.setProperty("--keyboard-offset","0px");let t=window.innerHeight,n=e.height,o=e.offsetTop+n,l=t-o;document.documentElement.style.setProperty("--viewport-offset","".concat(l>1?l:0,"px"))};return updateViewportOffset(),e.addEventListener("resize",updateViewportOffset),e.addEventListener("scroll",updateViewportOffset),()=>{e.removeEventListener("resize",updateViewportOffset),e.removeEventListener("scroll",updateViewportOffset),document.documentElement.style.removeProperty("--viewport-offset"),document.documentElement.style.removeProperty("--keyboard-offset")}},[]),(0,l.useEffect)(()=>{let e=window.visualViewport;if(!e){eS?(document.body.classList.add("keyboard-open"),document.documentElement.classList.add("keyboard-open"),document.documentElement.style.setProperty("--viewport-offset","0px")):(document.body.classList.remove("keyboard-open"),document.documentElement.classList.remove("keyboard-open"));return}let t=window.innerHeight,checkKeyboardState=()=>{let n=t-e.height,o=eS&&n>100;o?(document.body.classList.add("keyboard-open"),document.documentElement.classList.add("keyboard-open"),document.documentElement.style.setProperty("--viewport-offset","0px")):(document.body.classList.remove("keyboard-open"),document.documentElement.classList.remove("keyboard-open"))};return checkKeyboardState(),e.addEventListener("resize",checkKeyboardState),()=>{e.removeEventListener("resize",checkKeyboardState),document.body.classList.remove("keyboard-open"),document.documentElement.classList.remove("keyboard-open")}},[eS]);let eY=(0,l.useRef)(new Map),eX=(0,l.useRef)(new Set),eU=(0,l.useRef)(new Map),e$=(0,l.useCallback)(e=>t=>{t?eU.current.set(e,t):eU.current.delete(e)},[]),e0=(0,l.useCallback)(e=>{if(eX.current.has(e))return;eX.current.add(e);let t=eY.current.get(e);t&&(clearInterval(t),eY.current.delete(e))},[]),e1=(0,l.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1900;if(!e)return;let n=eY.current.get(e);n&&(clearInterval(n),eY.current.delete(e)),eX.current.delete(e);let o=setTimeout(()=>{e.scrollLeft=0;let handleStop=()=>e0(e);e.addEventListener("pointerdown",handleStop),e.addEventListener("wheel",e=>{Math.abs(e.deltaX)>5&&Math.abs(e.deltaX)>2*Math.abs(e.deltaY)&&handleStop()},{passive:!0});let t=0;e.addEventListener("touchstart",e=>{t=e.touches[0].clientX},{passive:!0}),e.addEventListener("touchmove",e=>{let n=Math.abs(e.touches[0].clientX-t);n>10&&handleStop()},{passive:!0});let n=window.setInterval(()=>{if(eX.current.has(e)){clearInterval(n),eY.current.delete(e);return}let t=e.scrollWidth-e.clientWidth;if(t<=0||e.scrollLeft>=t-5){clearInterval(n),eY.current.delete(e),eX.current.has(e)||setTimeout(()=>{eX.current.has(e)||e.scrollTo({left:0,behavior:"smooth"})},400);return}e.scrollLeft+=1},16);eY.current.set(e,n)},t);return()=>{clearTimeout(o),e0(e)}},[e0]),e2=(0,l.useCallback)(()=>{eY.current.forEach(e=>{clearInterval(e)}),eY.current.clear()},[]);(0,l.useEffect)(()=>()=>{e2()},[e2]);let e5=(0,l.useCallback)(e=>{let{smooth:t=!0,delay:n=50}=e||{};setTimeout(()=>{let e,n,o=eG.current;if(!o){let e=document.querySelectorAll(".".concat(s().contentSection));e.length>0&&(o=e[e.length-1])}if(!o)return;let l=o.querySelector(".".concat(s().stickyHeader));if(l){n=l.getBoundingClientRect();let t=n.top+window.scrollY;e=t-145}else{n=o.getBoundingClientRect();let t=n.top+window.scrollY;e=t-145}o.getBoundingClientRect();let i=document.querySelector(".".concat(s().gameBoard));null==i||i.getBoundingClientRect(),window.getComputedStyle(o),l&&window.getComputedStyle(l),o.firstElementChild,window.scrollTo({top:Math.max(0,e),behavior:t?"smooth":"auto"}),setTimeout(()=>{null==l||l.getBoundingClientRect(),null==o||o.getBoundingClientRect()},t?500:100)},n)},[]),e4=(0,l.useMemo)(()=>{var e,t,n;if(eM.current)return eM.current;let o=null==Y?void 0:null===(e=Y.learning_requests)||void 0===e?void 0:e.find(e=>"close_data"===e.type),l=(null==o?void 0:null===(n=o.data)||void 0===n?void 0:null===(t=n.closeData)||void 0===t?void 0:t.t
1itle)||T||(null==Y?void 0:Y.user_input)||"",i="Learning Quest"===l?"":l;return i&&!eM.current&&(eM.current=i),i},[Y,T]);(0,l.useEffect)(()=>{let e;if(eR)return;let t=null==Y?void 0:Y.learning_requests;if(Array.isArray(t)){for(let o=t.length-1;o>=0;o--){let l=t[o];if((null==l?void 0:l.type)==="close_data"){var n;e=null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.closeData;break}}(null==e?void 0:e.action)==="redirect"&&(null==e?void 0:e.new_topic_query)&&eE({new_topic_query:e.new_topic_query})}},[Y,eR]);let e3=(0,l.useMemo)(()=>{let e;if(null==eR?void 0:eR.new_topic_query)return[eR.new_topic_query];let t=null==Y?void 0:Y.learning_requests;if(!Array.isArray(t))return[];for(let o=t.length-1;o>=0;o--){let l=t[o];if((null==l?void 0:l.type)==="close_data"){var n;e=null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.closeData;break}}if((null==e?void 0:e.action)==="redirect"&&(null==e?void 0:e.new_topic_query))return[e.new_topic_query];let o=null==e?void 0:e.suggested_replies;return Array.isArray(o)?o:[]},[Y,eR]),e8=(0,l.useMemo)(()=>{var e;return N&&0!==N.length?((null===(e=N.find(e=>"metadata"===e.type))||void 0===e?void 0:e.data)||null==Y||Y.metadata,N):[]},[N,Y]),e6=(0,l.useCallback)(()=>{let e=document.querySelectorAll(".".concat(s().scribbleArea,", .scribbleArea"));e.forEach((e,t)=>{var n;let o=e.querySelector(".".concat(s().handwrittenText,", .handwrittenText"));if(!o)return;let l=o.querySelector(".".concat(s().scribbleLine1,", .scribbleLine1")),i=o.querySelector(".".concat(s().scribbleLine2,", .scribbleLine2")),a=(null==l?void 0:l.textContent)||"",r=(null==i?void 0:i.textContent)||"",d=Math.max(a.length,r.length),c=e.offsetHeight,u=e.closest("[data-type]")||e.closest(".card"),p=(null==u?void 0:u.getAttribute("data-type"))||(null===(n=Array.from((null==u?void 0:u.classList)||[]).find(e=>e.includes("Card")))||void 0===n?void 0:n.replace("Card","").toLowerCase())||"concept",v={concept:{size:1.65,ratio:.88},text:{size:1.65,ratio:.88},quickhit:{size:1.65,ratio:.88},related_concepts:{size:1.35,ratio:.85},scroll:{size:1.35,ratio:.85},bullet:{size:1.35,ratio:.85},question:{size:1.35,ratio:.85},story:{size:1.15,ratio:.88},fable:{size:1.15,ratio:.88},satire:{size:1.25,ratio:.88},search:{size:1.25,ratio:.88},video:{size:1.25,ratio:.88},voice:{size:1.1,ratio:.85},chat:{size:1.1,ratio:.85},expert:{size:1.1,ratio:.85},expert_chat:{size:1.1,ratio:.85},group_chat:{size:1.1,ratio:.85},podcast:{size:1.1,ratio:.85},course:{size:1.3,ratio:.9},component:{size:1,ratio:.9}}[p]||{size:1.4,ratio:.85},m=v.size,h=v.ratio,g=1;d<12?g=1.2:d<18?g=1.1:d<25?g=1:d>40?g=.75:d>32&&(g=.85);let _=1;c>140?_=1.5:c>110?_=1.35:c>85?_=1.22:c>65?_=1.12:c>50&&(_=1.05);let f=m*g*_*1.5,b=f*h,x="left",y=0;if(d<18){let e=["left","center","left","center","left"];if("left"===(x=e[t%e.length])){let e=[8,24,12,32,16,28,20,4];y=e[t%e.length]}}else if(d<26){let e=[4,12,8,16,6,10];y=e[t%e.length]}else y=t%2==0?0:4;let getSeededRandom=(e,t)=>{let n=0,o=e+t.toString();for(let e=0;e<o.length;e++){let t=o.charCodeAt(e);n=(n<<5)-n+t,n&=n}return Math.abs(n)%1e3/1e3},j=(5*getSeededRandom(a||"card-".concat(t,"-line1"),1)-2.5).toFixed(1),w=(5*getSeededRandom(r||"card-".concat(t,"-line2"),2)-2.5).toFixed(1);if(l&&(l.style.fontSize="".concat(f,"rem"),l.style.setProperty("--line1-rotation","".concat(j,"deg"))),i){if(i.style.fontSize="".concat(b,"rem"),i.style.setProperty("--line2-rotation","".concat(w,"deg")),"left"===x){let e=[12,20,8,28,16,24,10,32,18,14];i.style.marginLeft="".concat(e[t%e.length],"px")}else i.style.marginLeft="0"}o.style.textAlign=x,o.style.paddingLeft="".concat(y,"px");let S="center"===x?"center center":"left center";l&&(l.style.transformOrigin=S),i&&(i.style.transformOrigin=S)})},[]);(0,l.useEffect)(()=>{let e=setTimeout(e6,50),handleResize=()=>setTimeout(e6,100);return window.addEventListener("resize",handleResize),()=>{clearTimeout(e),window.removeEventListener("resize",handleResize)}},[e6,null==Y?void 0:Y.learning_requests]);let handleNextModule=e=>{};(0,l.useEffect)(()=>{if(H.isReady&&H.query.modal&&H.query.slug&&U){let e=String(H.query.modal);eb.current!==e&&(eb.current=e,(0,_.Q)(H.query.slug))}},[H.isReady,H.query.modal,H.query.slug,U]),(0,l.useEffect)(()=>{var e;ec&&null!==ep&&(null===(e=H.query)||void 0===e?void 0:e.slug)&&U&&ex.current!==ep&&(ex.current=ep,(0,_.Q)(H.query.slug))},[ec,ep,null===(t=H.query)||void 0===t?void 0:t.slug,U]);let handleInputSubmit=e=>{var t,n;let o=null!=e?e:ey;if(!o||!o.trim()||Z||eh)return;if((eV.length>0||eO.length>0)&&0===eF.size){(0,g.C)({type:"error",title:(0,f.BV)("selectModuleComponentMessage",en),duration:5e3});return}let l=o.trim();ej(""),ew.current&&(ew.current.textContent=""),eL(l),e2(),U&&(null===(t=H.query)||void 0===t?void 0:t.slug)&&(0,_.Q)(H.query.slug),(null===(n=H.query
1)||void 0===n?void 0:n.slug)&&handleSubmit(null,{url:"".concat(v.ZP,"user-request/").concat(H.query.slug,"/deep-dive"),type:"quest",user_message:l})},handleNewTopicQueryClick=async e=>{if(!Z&&!eh&&e.trim())try{var t,n,o;Q(!0),eg(!0),eE(null);let l=Array.from(eF),i=l.filter(e=>eV.includes(e)),a=l.filter(e=>eO.includes(e)),r={input:e.trim(),description:"",icon:guessEmoji(e),style:"mixed"};i.length>0&&(r.modules=i),a.length>0&&(r.components=a);let d=await (0,y.di)(r),s=(null==d?void 0:null===(n=d.data)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.slug)||(null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.slug);if(s){try{sessionStorage.setItem("quest_created_".concat(s),JSON.stringify({name:e.trim(),emoji:guessEmoji(e)})),(i.length>0||a.length>0)&&sessionStorage.setItem("quest_modules_".concat(s),JSON.stringify({modules:i,components:a}))}catch(e){}await H.push("/quest/".concat(s,"?metatitle=").concat(encodeURIComponent(e.trim())),void 0,{scroll:!1})}else(0,g.C)({type:"error",title:(0,f.BV)("createQuestErrorLabel",en),duration:5e3})}catch(e){(0,g.C)({type:"error",title:(0,f.BV)("createQuestErrorLabel",en),duration:5e3})}finally{Q(!1),eg(!1)}};(0,l.useEffect)(()=>{var e,t,n,o;ea((null==K?void 0:K.familiarities)||[]),ee(X);let l=null==e8?void 0:e8.find(e=>"close_data"===e.type),i=null==l?void 0:null===(t=l.data)||void 0===t?void 0:null===(e=t.closeData)||void 0===e?void 0:e.duration_id,a=null==$?void 0:$.find(e=>String(e.id)===String(i));a&&el(a.id);let r=null==l?void 0:null===(o=l.data)||void 0===o?void 0:null===(n=o.closeData)||void 0===n?void 0:n.familiarity_id,d=null==ei?void 0:ei.find(e=>String(e.id)===String(r));if(d){ed(null==d?void 0:d.id);return}},[K,X,e8]),(0,l.useEffect)(()=>{var e,t,n,o;if(H.isReady&&(null===(e=H.query)||void 0===e?void 0:e.slug)){let e=H.query.slug,l=null==Y?void 0:null===(t=Y.learning_requests)||void 0===t?void 0:t.find(e=>"close_data"===e.type),i=null==l?void 0:null===(o=l.data)||void 0===o?void 0:null===(n=o.closeData)||void 0===n?void 0:n.slug;i&&i!==e&&(A((0,p.wBo)({learning_requests:[]})),eE(null))}},[null===(n=H.query)||void 0===n?void 0:n.slug,H.isReady,A]);let e9=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e,t,n,o;if(H.isReady&&(null===(e=H.query)||void 0===e?void 0:e.slug)){let e=H.query.slug,l=e!==e9.current;if(et)handleSubmit(null,{duration_id:Number(eo),input:"",familiarity_id:Number(er)}),e9.current=e;else{let i=null==Y?void 0:null===(t=Y.learning_requests)||void 0===t?void 0:t.find(e=>"close_data"===e.type),a=null==i?void 0:null===(o=i.data)||void 0===o?void 0:null===(n=o.closeData)||void 0===n?void 0:n.slug;l&&e!==a?(e9.current=e,eL(null),eM.current=null,handleSubmit(null,{url:"".concat(v.ZP,"user-request/").concat(e,"/deep-dive"),type:"quest"})):l||!T||"Learning Quest"===T||eM.current&&"Learning Quest"!==eM.current||(eM.current=T,eL(T))}}},[null===(r=H.query)||void 0===r?void 0:r.slug,T]),(0,l.useEffect)(()=>()=>{if(eM.current=null,e9.current=null,ef.current){try{ef.current.close()}catch(e){}ef.current=null}e_.current=!1},[null===(d=H.query)||void 0===d?void 0:d.slug]);let handleSubmit=(e,t)=>{var n,o,l,i,a,r;e&&"function"==typeof e.preventDefault&&e.preventDefault(),Q(!0);let d=(null==t?void 0:t.type)==="quest"&&!(null==t?void 0:t.user_message);if(d){if(ef.current){try{ef.current.close()}catch(e){}ef.current=null}e_.current=!1,eg(!1)}else if(e_.current||eh)return;e_.current=!0,eg(!0),e7.find(e=>"close_data"===e.type);let s=Array.from(eF),c=s.filter(e=>eV.includes(e)),u=s.filter(e=>eO.includes(e));if(0===c.length&&0===u.length&&(null===(n=H.query)||void 0===n?void 0:n.slug))try{let e="quest_modules_".concat(H.query.slug),t=sessionStorage.getItem(e);if(t){let n=JSON.parse(t);c=n.modules||[],u=n.components||[],sessionStorage.removeItem(e)}}catch(e){}let _=localStorage.getItem("languageId"),b=new h.SSE((null==t?void 0:t.type)==="quest"?null==t?void 0:t.url:"".concat(v.ZP,"learning-plans-v2?").concat(et?"concept_id":"input","=").concat(et?null==G?void 0:G.id:encodeURIComponent(null!==(r=null==Y?void 0:Y.user_input)&&void 0!==r?r:T),"&familiarity_id=").concat(null==t?void 0:t.familiarity_id,"&duration_id=").concat(null==t?void 0:t.duration_id),{headers:(0,m.uY)(),...(null==t?void 0:t.type)==="quest"&&{method:"POST",payload:JSON.stringify({user_message:(null==t?void 0:t.user_message)||"",...c.length>0&&{modules:c},...u.length>0&&{components:u},..._?{language_id:_}:{}})}});ef.current=b,A((0,p.pMB)(void 0));
1let x=null===(o=H.query)||void 0===o?void 0:o.slug,y=null==Y?void 0:null===(l=Y.learning_requests)||void 0===l?void 0:l.find(e=>"close_data"===e.type),j=null==y?void 0:null===(a=y.data)||void 0===a?void 0:null===(i=a.closeData)||void 0===i?void 0:i.slug,w=[];if(j&&j===x){let e=(null==Y?void 0:Y.learning_requests)||[];w=[...e],(null==t?void 0:t.user_message)&&(null==t?void 0:t.user_message.trim())&&(w.push({type:"user_message",data:{message:t.user_message},id:Date.now(),duration_value:"0",duration_unit:"min",description:t.user_message}),A((0,p.wBo)({learning_requests:[...w]})))}else A((0,p.wBo)({learning_requests:[]})),w=[];b.addEventListener("slug",function(e){}),b.addEventListener("json",function(e){try{let t=JSON.parse(e.data);eg(!1),(null==t?void 0:t.type)==="description"||((null==t?void 0:t.type)==="video"||(null==t?void 0:t.type)==="search"||(null==t?void 0:t.type)==="question"||(null==t?void 0:t.type)==="expert"||(null==t?void 0:t.type)==="concept"||(null==t?void 0:t.type)==="related_concepts"||(null==t?void 0:t.type)==="course"||(null==t?void 0:t.type)==="podcast"||(null==t?void 0:t.type)==="fake_podcast"||(null==t?void 0:t.type)==="aspect"||(null==t?void 0:t.type)==="bullet"||(null==t?void 0:t.type)==="fable"||(null==t?void 0:t.type)==="scroll"||(null==t?void 0:t.type)==="group_chat"||(null==t?void 0:t.type)==="expert_chat"||(null==t?void 0:t.type)==="chat"||(null==t?void 0:t.type)==="metadata"||(null==t?void 0:t.type)==="text"||(null==t?void 0:t.type)==="user_message"||(null==t?void 0:t.type)==="component")&&(w.push(t),A((0,p.wBo)({learning_requests:[...w]})),setTimeout(e6,50))}catch(e){}}),b.addEventListener("branched_here",function(e){var t,n,o,l,i,a,r,d;let s=null;try{s=(null==e?void 0:e.data)?JSON.parse(e.data):null}catch(e){}let c=null!==(i=null!==(l=null==s?void 0:s.module_batch_id)&&void 0!==l?l:null==s?void 0:s.moduleBatchId)&&void 0!==i?i:null==s?void 0:s.id,u=w[w.length-1],v=(null==u?void 0:u.type)==="batch_start"?null!==(r=null!==(a=null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.module_batch_id)&&void 0!==a?a:null==u?void 0:null===(n=u.data)||void 0===n?void 0:n.moduleBatchId)&&void 0!==r?r:null==u?void 0:null===(o=u.data)||void 0===o?void 0:o.id:void 0;if((null==u?void 0:u.type)==="batch_start"&&(null==c||v===c))return;let m=(null==s?void 0:s.message)||(null==s?void 0:s.label)||(0,f.BV)("branchedHereLabel",en);w.push({type:"batch_start",data:{...s,module_batch_id:c,message:m,label:null!==(d=null==s?void 0:s.label)&&void 0!==d?d:m},id:Date.now(),duration_value:"0",duration_unit:"min",description:m}),A((0,p.wBo)({learning_requests:[...w]}))});let S=null;return b.addEventListener("close",e=>{var t,n,o,l,i,a,r,d,s,c;try{if(S=e.data?JSON.parse(e.data):null,Q(!1),(null==S?void 0:null===(o=S.data)||void 0===o?void 0:o.action)==="reject"||(null==S?void 0:S.action)==="reject"){let e=(null==S?void 0:null===(i=S.data)||void 0===i?void 0:i.message)||(null==S?void 0:S.message)||"",t=(null==S?void 0:null===(a=S.data)||void 0===a?void 0:a.suggestions)||(null==S?void 0:S.suggestions)||[];e&&(eD({message:e,suggestions:Array.isArray(t)?t:[]}),eN(!0)),eg(!1),e_.current=!1;return}if((null==S?void 0:null===(l=S.data)||void 0===l?void 0:l.action)==="redirect"||(null==S?void 0:S.action)==="redirect"){let e=(null==S?void 0:null===(r=S.data)||void 0===r?void 0:r.message)||(null==S?void 0:S.message)||"",t=(null==S?void 0:null===(d=S.data)||void 0===d?void 0:d.new_topic_query)||(null==S?void 0:S.new_topic_query);e&&(eP({message:e,new_topic_query:t}),eq(!0)),t&&eE({new_topic_query:t}),eg(!1),e_.current=!1,w.push({type:"last_metadata",data:{ending_description:null===(c=w.find(e=>"metadata"===e.type))||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:s.ending_description}}),w.push({type:"close_data",data:{closeData:S}}),A((0,p.wBo)({learning_requests:[...w]})),w=[],eL(null),setTimeout(e6,100);return}(null==S?void 0:S.success)||(0,g.C)({type:"error",title:null==S?void 0:S.message,duration:5e3})}catch(e){}w.push({type:"last_metadata",data:{ending_description:null===(n=w.find(e=>"metadata"===e.type))||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.ending_description}}),w.push({type:"close_data",data:{closeData:S}}),A((0,p.wBo)({learning_requests:[...w]})),w=[],eg(!1),e_.current=!1,eL(null),setTimeout(e6,100)}),b.addEventListener("error",e=>{Q(!1),eg(!1),e_.current=!1,b.close()}),()=>{Q(!1),b.close()}},e7=(0,l.useMemo)(()=>{var e,t,n,o,l,i,a,r,d;if(!Array.isArray(e8))return[];let s=[...e8].filter(e=>"close_data"!==e.type&&"last_metadata"!==e.type&&"starting_metadata"!==e.type&&"ending_metadata"!==e.type&&"metadata"!==e.type),c=s.find(e=>"metadata"===e.type);if((null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.starting_description)&&(s=s.filter(e=>"metadata"!==e.type&&"last_metadata"!==e.type)),null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.ending_description){let e={type:"ending_metadata",data:{title:"Journey Complete",description:(null==c?void 0:null===(l=c.data)||void 0===l?void 0:l.ending_description)||(0,f.BV)("journeyCompleteLabel",en),ending_description:null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.ending_description,id:(null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.id)||"end"}
1,duration_value:"0",duration_unit:"min",description:(null==c?void 0:null===(r=c.data)||void 0===r?void 0:r.ending_description)||(0,f.BV)("journeyCompleteLabel",en)};(null==c?void 0:null===(d=c.data)||void 0===d?void 0:d.starting_description)||(s=s.filter(e=>"metadata"!==e.type&&"last_metadata"!==e.type));let t=s.findIndex(e=>"close_data"===e.type);-1!==t?s.splice(t,0,e):s.push(e)}if((null==c?void 0:null===(n=c.data)||void 0===n?void 0:n.starting_description)||(null==c?void 0:null===(o=c.data)||void 0===o?void 0:o.ending_description)||(s=s.filter(e=>"metadata"!==e.type&&"last_metadata"!==e.type)),!R||"all"===R)return s;let u="fake_podcast"===R?"podcast":R;return s.filter(e=>{if("starting_metadata"===e.type||"ending_metadata"===e.type||"close_data"===e.type)return!1;if("user_message"===e.type||"batch_start"===e.type)return!0;let t="fake_podcast"===e.type?"podcast":e.type;return t===u})},[e8,R]),te=(0,l.useMemo)(()=>{var e;let t=null!==(e=null==Y?void 0:Y.learning_requests)&&void 0!==e?e:[];return t.map((e,t)=>{var n,o,l,i,a,r,d,s;let c=null!==(s=null!==(d=null!==(r=null!==(a=null!==(i=null==e?void 0:e.slug)&&void 0!==i?i:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.slug)&&void 0!==a?a:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.id)&&void 0!==r?r:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.videoId)&&void 0!==d?d:null==e?void 0:e.id)&&void 0!==s?s:"".concat(null==e?void 0:e.type,"-").concat(t),u=String(c).toLowerCase().replace(/[^a-z0-9_-]/gi,"-").slice(0,120);return{...e,slug:u,originalIndex:t}})},[null==Y?void 0:Y.learning_requests]),{initialModules:tt,followUpBatches:tn}=(0,l.useMemo)(()=>{let e=[],t=[],n=null,o=!1;return te.forEach((l,i)=>{if("close_data"!==l.type&&"metadata"!==l.type&&"last_metadata"!==l.type){if("batch_start"===l.type){o?n&&n.modules.push(l):e.push(l);return}if("user_message"===l.type){var a;o=!0,n&&t.push(n),n={userMessage:(null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.message)||(null==l?void 0:l.description)||"
1User message",modules:[],batchId:"batch-".concat(i,"-").concat(l.id||Date.now()),isInitial:!1}}else o?n&&n.modules.push(l):e.push(l)}}),n&&t.push(n),{initialModules:e,followUpBatches:t}},[te]),to=(0,l.useCallback)(e=>{let t=[],n=Array.isArray(e)?e:[],o={divider:null,modules:[]};for(let e of n){if((null==e?void 0:e.type)==="batch_start"){(o.divider||o.modules.length)&&t.push(o),o={divider:e,modules:[]};continue}o.modules.push(e)}return(o.divider||o.modules.length)&&t.push(o),t},[]);(0,l.useEffect)(()=>{if(H.query.modal||Z||eh||"dashboard"!==q)return;let e=[],t=to(tt);return t.forEach((t,n)=>{if(!t.modules.length)return;let o=eU.current.get("initial-seg-".concat(n));if(o){let l=100*t.modules.length+300+300*n,i=e1(o,l);i&&e.push(i)}}),tn.forEach((t,n)=>{let o=to(t.modules);o.forEach((o,l)=>{if(!o.modules.length)return;let i="".concat(t.batchId,"-seg-").concat(l),a=eU.current.get(i);if(a){let t=100*o.modules.length+300+500*n+300*l,i=e1(a,t);i&&e.push(i)}})}),()=>{e.forEach(e=>e())}},[q,H.query.modal,Z,eh,tt.length,tn,e1,to]);let tl=(0,l.useRef)(0),ti=(0,l.useRef)(null),ta=(0,l.useRef)(!1),tr=(0,l.useRef)(null),td=(0,l.useMemo)(()=>{var e,t,n,o,l;let i=null===(e=H.query)||void 0===e?void 0:e.slug;if(!i)return!1;let a=null==Y?void 0:null===(t=Y.learning_requests)||void 0===t?void 0:t.find(e=>"close_data"===e.type);if(!a)return!1;let r=(null==a?void 0:null===(o=a.data)||void 0===o?void 0:null===(n=o.closeData)||void 0===n?void 0:n.slug)||(null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.slug);return r===i},[null==Y?void 0:Y.learning_requests,null===(b=H.query)||void 0===b?void 0:b.slug]);(0,l.useEffect)(()=>{var e;if(!H.isReady||H.query.modal||"dashboard"!==q)return;let t=null===(e=H.query)||void 0===e?void 0:e.slug,n=tn.length,o=t!==ti.current;o&&(ti.current=t,tl.current=0,ta.current=!1,tr.current&&(clearTimeout(tr.current),tr.current=null));let attemptScroll=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=document.querySelectorAll(".".concat(s().contentSection)),o=Array.from(n).some(e=>e.querySelector(".".concat(s().stickyHeader)))||(null===(e=eG.current)||void 0===e?void 0:e.querySelector(".".concat(s().stickyHeader)));o?(requestAnimationFrame(()=>{e5({smooth:!1,delay:0})}),ta.current=!0):t<10&&(tr.current=setTimeout(()=>{attemptScroll(t+1)},150))};return o&&!ta.current&&attemptScroll(),!ta.current&&td&&(tt.length>0||tn.length>0)&&attemptScroll(),!ta.current&&eC&&(Z||eh)&&(tr.current=setTimeout(()=>{attemptScroll()},100)),n>tl.current&&(tl.current=n,requestAnimationFrame(()=>{e5({smooth:!0,delay:50})})),()=>{tr.current&&clearTimeout(tr.current)}},[H.isReady,H.query.modal,null===(x=H.query)||void 0===x?void 0:x.slug,q,tn.length,tt.length,eC,Z,eh,td,e5]);let getDisplayNumber=(e,t)=>{let n=t+1,isCountedModule=e=>(null==e?void 0:e.type)!=="close_data"&&(null==e?void 0:e.type)!=="batch_start";if("starting_metadata"===e.type)n=1;else if("ending_metadata"===e.type){let e=e7.filter(isCountedModule);n=e.length}else{let e=e7.some(e=>"starting_metadata"===e.type);if(e){let e=e7.slice(0,t).filter(isCountedModule);n=e.length+1}}return n},ts=(0,l.useCallback)(()=>{var e;let t=null===(e=H.query)||void 0===e?void 0:e.module,n=Array.isArray(t)?t[0]:t;return n?String(n):void 0},[null===(k=H.query)||void 0===k?void 0:k.module]),tc=(0,l.useCallback)(e=>{var t;let n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.slug;return n?String(n):(null==e?void 0:e.slug)?String(e.slug):void 0},[]),tu=(0,l.useCallback)(e=>{var t,n,o,l,i;let a=null!==(i=null!==(l=null!==(o=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.id)&&void 0!==o?o:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.slug)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==i?i:null==e?void 0:e.slug;return a?String(a):void 0},[]),tp=(0,l.useCallback)(e=>{if(!e){eu(!1);return}if(!te||0===te.length)return;let t=te.findIndex(t=>{let n=tu(t),o=tc(t);return o&&o===e||n&&n===e||(null==t?void 0:t.slug)&&String(t.slug)===e});if(-1===t){eu(!1),ev(null);return}ev(t),eu(!0)},[tu,tc,te]),tv=(0,l.useCallback)(e=>{if(!H.isReady)return;let t=ts();if(null===e){if(!t)return;let e={...H.query};delete e.module,H.replace({pathname:H.pathname,query:e},void 0,{shallow:!0,scroll:!1});return}let n=tc(te[e]);if(!n||t===n)return;let o={...H.query,module:n};H.push({pathname:H.pathname,query:o},void 0,{shallow:!0,scroll:!1})},[ts,tc,te,H]),openInSidebar=e=>{em.current=!1,ev(e),eu(!0),tv(e)};(0,l.useEffect)(()=>
1{if(!H.isReady)return;let e=ts();if(em.current){e||(em.current=!1);return}tp(e)},[tp,ts,H.isReady]),(0,l.useEffect)(()=>{let onPop=()=>{let e=new URLSearchParams(window.location.search).get("module")||void 0;em.current=!1,tp(e)};return window.addEventListener("popstate",onPop),()=>window.removeEventListener("popstate",onPop)},[tp]);let{prev:tm,next:th}=(e=>{let isVisible=e=>{let t=null==e?void 0:e.type;return t&&"close_data"!==t&&"metadata"!==t&&"last_metadata"!==t&&"user_message"!==t&&"batch_start"!==t&&"starting_metadata"!==t&&"ending_metadata"!==t};if(null===e||e<0)return{prev:null,next:null};let t=null;for(let n=e-1;n>=0;n--)if(isVisible(te[n])){t=n;break}let n=null;for(let t=e+1;t<te.length;t++)if(isVisible(te[t])){n=t;break}return{prev:t,next:n}})(ep),tg=null!==ep?te[ep]:null,t_=(null==tg?void 0:tg.type)||null,tf=tg&&"number"==typeof tg.originalIndex?getDisplayNumber(tg,tg.originalIndex):null,handleRedirectNewTopic=async()=>{if(!(null==ez?void 0:ez.new_topic_query))return;eq(!1);let e=ez.new_topic_query;eP(null),eE(null),await handleNewTopicQueryClick(e)};return(0,o.jsxs)("div",{ref:eZ,className:"".concat(s().container," ").concat("scrollcard"===q?s().scrollCardContainer:""," scrollTabModuleContainer"),children:[(0,o.jsx)("div",{className:"".concat(s().journeySection," ").concat("scrollcard"===q?s().scrollCardJourneySection:""),children:(0,o.jsx)("div",{className:"".concat(s().moduleRow," ").concat("scrollcard"===q?s().scrollCardModuleRow:""),children:(0,o.jsxs)("div",{className:"".concat(s().gameBoard," ").concat("scrollcard"===q?s().scrollCardGameBoard:""," scrollCardGameBoard"),ref:es,children:[(0,o.jsx)(u.default,{isOpen:ec,module:tg,moduleType:t_,moduleNumber:tf,onClose:()=>{em.current=!0,eu(!1),tv(null)},hasPrev:null!==tm,hasNext:null!==th,onPrev:()=>{null!==tm&&openInSidebar(tm)},onNext:()=>{null!==th&&openInSidebar(th)},onModuleUpdated:e=>{var t,n,o,l,i;let a=null!==(o=null==Y?void 0:Y.learning_requests)&&void 0!==o?o:[],r=null!==(l=null==e?void 0:e.id)&&void 0!==l?l:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.id,d=null!==(i=null==e?void 0:e.slug)&&void 0!==i?i:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.slug,s=a.map(t=>{var n,o,l,i;let a=null!==(l=null==t?void 0:t.id)&&void 0!==l?l:null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.id,s=null!==(i=null==t?void 0:t.slug)&&void 0!==i?i:null==t?void 0:null===(o=t.data)||void 0===o?void 0:o.slug;return a===r||s===d?{...t,...e,status:"paid",is_generated:!0}:t});A((0,p.wBo)({...Y,learning_requests:s}))}}),!H.query.modal&&(0,o.jsxs)(o.Fragment,{children:[(tt.length>0||eC&&(Z||eh))&&(0,o.jsxs)("div",{className:s().contentSection,ref:0===tn.length?eG:void 0,children:[e4&&(0,o.jsx)("div",{className:s().stickyHeader,children:(0,o.jsx)("div",{className:s().topicQueryBubble,children:e4})}),(()=>{let e=to(tt),t=(()=>{for(let o=e.length-1;o>=0;o--){var t,n;if(null===(n=e[o])||void 0===n?void 0:null===(t=n.modules)||void 0===t?void 0:t.length)return o}return -1})();return(0,o.jsxs)(o.Fragment,{children:[e.map((e,n)=>{var i,a,r,d,u,p,v,m;return(0,o.jsxs)(l.Fragment,{children:[e.divider&&(0,o.jsx)("div",{className:s().branchDivider,children:(0,o.jsxs)("span",{className:s().branchDividerText,children:[(0,o.jsx)("span",{"aria-hidden":"true",children:"â³"}),(0,o.jsx)("span",{children:null!==(m=null!==(v=null!==(p=null==e?void 0:null===(a=e.divider)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.message)&&void 0!==p?p:null==e?void 0:null===(d=e.divider)||void 0===d?void 0:null===(r=d.data)||void 0===r?void 0:r.label)&&void 0!==v?v:null==e?void 0:null===(u=e.divider)||void 0===u?void 0:u.description)&&void 0!==m?m:(0,f.BV)("branchedHereLabel",en)})]})}),e.modules.length>0&&(0,o.jsxs)("div",{className:s().modulesGrid,ref:e$("initial-seg-".concat(n)),children:[e.modules.map(e=>{var t;let n=getDisplayNumber(e,e.originalIndex);return(0,o.jsx)(c.default,{number:n,module:e,modules:te,currentIndex:e.originalIndex,onNextModule:handleNextModule,activeFilter:R,setActiveTab:z,openInSidebar:!0,onOpenInSidebar:openInSidebar},"".concat(e.type,"-").concat(e.slug||(null===(t=e.data)||void 0===t?void 0:t.id)||e.originalIndex))}),(Z||eh)&&0===tn.length&&n===t&&(0,o.jsxs)("div",{className:s().moduleSkeletonCard,children:[(0,o.jsx)("div",{className:s().moduleSkeletonHeader,children:(0,o.jsx)("div",{className:s().moduleSkeletonTitle})}),(0,o.jsxs)("div",{className:s().moduleSkeletonBody,children:[(0,o.jsx)("div",{className:s().moduleSkeletonPreview}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLineShort})]}),(0,o.jsx)("div",{className:s().moduleSkeletonFooter,children:(0,o.jsx)("div",{className:s().moduleSkeletonButton})})]})]})]},"initial-seg-frag-".concat(n))}),(Z||eh)&&0===tn.length&&-1===t&&(0,o.jsx)("div",{className:s().modulesGrid,ref:e$("initial-seg-0"),children:(0,o.jsxs)("div",{className:s().moduleSkeletonCard,children:[(0,o.jsx)("div",{className:s().moduleSkeletonHeader,children:(0,o.jsx)("div",{className:s().moduleSkeletonTitle})}),(0,o.jsxs)("div",{className:s().moduleSkeletonBody,children:[(0,o.jsx)("div",{className:s().moduleSkeletonPreview}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLineShort})]}),(0,o.jsx)("div",{className:s().moduleSkeletonFooter,children:(0,o.jsx)("div",{className:s().moduleSkeletonButton})})]})})]})})()]}),tn.map((e,t)=>
1(0,o.jsxs)("div",{className:s().contentSection,ref:t===tn.length-1?eG:void 0,children:[(0,o.jsx)("div",{className:s().stickyHeader,children:(0,o.jsx)("div",{className:s().userMessageBubble,children:e.userMessage})}),(()=>{let n=to(e.modules),i=t===tn.length-1,a=(()=>{for(let o=n.length-1;o>=0;o--){var e,t;if(null===(t=n[o])||void 0===t?void 0:null===(e=t.modules)||void 0===e?void 0:e.length)return o}return -1})();return(0,o.jsxs)(o.Fragment,{children:[n.map((t,n)=>{var r,d,u,p,v;return(0,o.jsxs)(l.Fragment,{children:[t.divider&&(0,o.jsx)("div",{className:s().branchDivider,children:(0,o.jsxs)("span",{className:s().branchDividerText,children:[(0,o.jsx)("span",{"aria-hidden":"true",children:"â³"}),(0,o.jsx)("span",{children:null!==(v=null!==(p=null==t?void 0:null===(d=t.divider)||void 0===d?void 0:null===(r=d.data)||void 0===r?void 0:r.label)&&void 0!==p?p:null==t?void 0:null===(u=t.divider)||void 0===u?void 0:u.description)&&void 0!==v?v:(0,f.BV)("branchedHereLabel",en)})]})}),t.modules.length>0&&(0,o.jsxs)("div",{className:s().modulesGrid,ref:e$("".concat(e.batchId,"-seg-").concat(n)),children:[t.modules.map(e=>{var t;let n=getDisplayNumber(e,e.originalIndex);return(0,o.jsx)(c.default,{number:n,module:e,modules:te,currentIndex:e.originalIndex,onNextModule:handleNextModule,activeFilter:R,setActiveTab:z,openInSidebar:!0,onOpenInSidebar:openInSidebar},"".concat(e.type,"-").concat(e.slug||(null===(t=e.data)||void 0===t?void 0:t.id)||e.originalIndex))}),(Z||eh)&&i&&n===a&&(0,o.jsxs)("div",{className:s().moduleSkeletonCard,children:[(0,o.jsx)("div",{className:s().moduleSkeletonHeader,children:(0,o.jsx)("div",{className:s().moduleSkeletonTitle})}),(0,o.jsxs)("div",{className:s().moduleSkeletonBody,children:[(0,o.jsx)("div",{className:s().moduleSkeletonPreview}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLineShort})]}),(0,o.jsx)("div",{className:s().moduleSkeletonFooter,children:(0,o.jsx)("div",{className:s().moduleSkeletonButton})})]})]})]},"".concat(e.batchId,"-seg-frag-").concat(n))}),(Z||eh)&&i&&-1===a&&(0,o.jsx)("div",{className:s().modulesGrid,ref:e$("".concat(e.batchId,"-seg-0")),children:(0,o.jsxs)("div",{className:s().moduleSkeletonCard,children:[(0,o.jsx)("div",{className:s().moduleSkeletonHeader,children:(0,o.jsx)("div",{className:s().moduleSkeletonTitle})}),(0,o.jsxs)("div",{className:s().moduleSkeletonBody,children:[(0,o.jsx)("div",{className:s().moduleSkeletonPreview}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLine}),(0,o.jsx)("div",{className:s().moduleSkeletonLineShort})]}),(0,o.jsx)("div",{className:s().moduleSkeletonFooter,children:(0,o.jsx)("div",{className:s().moduleSkeletonButton})})]})})]})})()]},e.batchId))]}),(0,o.jsx)("div",{ref:eK}),H.isReady&&H.query.modal&&(null==te?void 0:te.map((e,t)=>{var n,l,i,a,r,d,s,u,p,v,m,h;if(!e||!e.type)return null;let g=null!==(v=null!==(u=null!==(s=null!==(d=null==e?void 0:e.slug)&&void 0!==d?d:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.id)&&void 0!==s?s:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.title)&&void 0!==u?u:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.name)&&void 0!==v?v:"".concat(null==e?void 0:e.type,"-").concat(null!==(p=null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.id)&&void 0!==p?p:""),_=String(g).toLowerCase().replace(/[^a-z0-9_-]/gi,"-").slice(0,120),f=Array.isArray(H.query.modal)?H.query.modal[0]:H.query.modal,b=!!f&&String(f)===_;if(!b)return null;let x=getDisplayNumber(e,null!==(m=e.originalIndex)&&void 0!==m?m:t);return(0,o.jsx)(c.default,{number:x,module:e,modules:te,currentIndex:null!==(h=e.originalIndex)&&void 0!==h?h:t,onNextModule:handleNextModule,activeFilter:R,setActiveTab:z},"modal-".concat(e.type,"-").concat(e.slug||(null===(r=e.data)||void 0===r?void 0:r.id)||e.originalIndex||t))}))]})})}),!H.query.modal&&(0,o.jsxs)("div",{className:"".concat(s().browseInputContainer," ").concat(F?s().browseInputContainerHidden:""),children:["dashboard"===q&&e3.length>0&&(0,o.jsx)("div",{className:s().suggestedRepliesWrapper,children:(0,o.jsx)("div",{className:s().suggestedRepliesRow,children:e3.map(e=>{let t=(null==eR?void 0:eR.new_topic_query)===e;return(0,o.jsx)("button",{type:"button",className:s().suggestedReplyChip,disabled:Z||eh,onClick:()=>{Z||eh||(t?handleNewTopicQueryClick(e):handleInputSubmit(e))},children:e},e)})})}),(0,o.jsxs)("div",{className:s().inputWrapper,children:[(0,o.jsx)(j.Z,{isOpen:eA,onClose:()=>eH(!1),selectedModuleIds:eF,onSelectionChange:eW,onModuleTypesLoaded:e=>{let{moduleIds:t,componentIds:n}=e;eJ(t),eQ(n)},openUp:!0}),(0,o.jsx)("div",{ref:ew,contentEditable:!0,className:s().browseInput,onInput:e=>ej(e.currentTarget.textContent||""),onFocus:()=>ek(!0),onBlur:()=>ek(!1),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ey.trim()&&!(Z||eh)&&handleInputSubmit())},"data-placeholder":(0,f.BV)("insultTheseResultsLabel",en)||"Insult these results.",suppressContentEditableWarning:!0}),(0,o.jsxs)("div",{className:s().inputActions,children:[(0,o.jsxs)("button",{type:"button",className:"".concat(s().moduleMenuBtn," ").concat(eA?s().moduleMenuBtnActive:""),onClick:()=>eH(e=>!e),"aria-label":W("selectModuleTypesAriaLabel"),"aria-expanded":eA,disabled:Z||eh,children:[eF.size>0&&(0,o.jsx)("span",{className:s().moduleMenuBadge,children:eF.size}),(0,o.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,o.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,o.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,o.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]})]}),(0,o.jsx)("button",{className:s().sendBtn,onMouseDown:e=>{e.preventDefault(),ey&&ey.trim()&&handleInputSubmit()},disabled:Z||eh||!(null==ey?void 0:ey.trim()),children:Z||eh?(0,o.jsx)("span",{className:s().sendSpinner,"aria-label":W("loadingLabel")}):(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:(0,o.jsx)("path",{d:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"})})})]})]})]}),eT&&eB&&(0,o.jsx)(QuantumJourney_RejectTopicModal,{message:eB.message,onStayHere:()=>{eN(!1),eD(null)},suggestions:eB.suggestions,onSuggestionClick:e=>{eN(!1),eD(null),handleInputSubmit(e)}}),eI&&ez&&(0,o.jsx)(QuantumJourney_RedirectTopicModal,{message:ez.message,newTopicQuery:ez.new_topic_query,onStayHere:()=>
1{eq(!1),eP(null)},onNewTopic:handleRedirectNewTopic})]})},k=n(9008),C=n.n(k),_id_=e=>{var t,n,d,s,c,u,p;let v=(0,S.$)(),m=(0,i.useRouter)(),h=null!==(u=null===(t=m.query)||void 0===t?void 0:t.id)&&void 0!==u?u:null==e?void 0:e.id;(0,a.I0)();let g=(0,a.v9)(e=>e.myLearning.learningPlansById),_=(0,a.v9)(e=>e.myLearning.learningPlansLoader),f=null===(n=(0,a.v9)(e=>e.myLearning.suggestionData))||void 0===n?void 0:n.suggestions,b=(0,a.v9)(e=>e.myLearning.durationData),x=(0,a.v9)(e=>e.myLearning.familiarities),y=null==b?void 0:b.find(e=>e.id===(null==g?void 0:g.duration_id)),j=null==x?void 0:null===(d=x.familiarities)||void 0===d?void 0:d.find(e=>e.id===(null==g?void 0:g.familiarity_id)),[w,k]=(0,l.useState)(null),[L,M]=(0,l.useState)(null),[T,N]=(0,l.useState)(null);(0,l.useEffect)(()=>{var e,t;N(null==f?void 0:null===(t=f.find(e=>"close_data"===e.type))||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.closeData)},[f,b,x]);let{id:B,duration:D}=(e=>{if(!e||"string"!=typeof e)return{id:null,duration:null};let t=e.split("&"),n=t[0],o=t.find(e=>e.startsWith("duration=")),l=o?o.split("=")[1]:null;return{id:n,duration:l}})(h);return((0,l.useEffect)(()=>{let fetchLearningPlanData=async()=>{try{M(null)}catch(e){M("Failed to load learning plan data")}};B&&fetchLearningPlanData()},[m]),(0,l.useEffect)(()=>{let e=[];e.push(null==g?void 0:g.learning_requests),e.push({type:"close_data",data:{closeData:{duration_id:null==g?void 0:g.duration_id,familiarity_id:null==g?void 0:g.familiarity_id}}}),k(null==g?void 0:g.learning_requests),g&&Array.isArray(g)&&g.length},[g]),_)?(0,o.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),(0,o.jsx)("p",{className:"mt-4 text-gray-600",children:v("loadingLearningPlanLabel")})]})}):L?(0,o.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("div",{className:"text-red-600 text-xl mb-4",children:"â ï¸"}),(0,o.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:v("toastKindErrorLabel")}),(0,o.jsx)("p",{className:"text-gray-600",children:L}),(0,o.jsx)("button",{onClick:()=>m.push("/"),className:"mt-4 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors",children:"Go Back"})]})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(C(),{children:[(0,o.jsxs)("title",{children:[null==g?void 0:g.user_input," | A ",null==y?void 0:y.duration_value," ",null==y?void 0:y.duration_unit," learning plan for a ",null==j?void 0:j.label," | Poisonal"]}),(0,o.jsx)("meta",{property:"og:title",content:"Poisonal | Privacy Policy"}),(0,o.jsx)("meta",{property:"title",content:"Poisonal | Privacy Policy"}),(0,o.jsx)("meta",{name:"twitter:title",content:"Poisonal | Privacy Policy"}),(0,o.jsx)("meta",{property:"og:image",content:"https://poisonal.com/meta-poisonal.png"}),(0,o.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,o.jsx)("meta",{property:"og:image:height",content:"630"}),(0,o.jsx)("meta",{property:"twitter:image",content:"https://poisonal.com/meta-poisonal.png"}),(0,o.jsx)("meta",{name:"twitter:image:width",content:"1200"}),(0,o.jsx)("meta",{name:"twitter:image:height",content:"630"}),(0,o.jsx)("meta",{property:"og:site_name",content:"Poisonal"}),(0,o.jsx)("meta",{property:"og:type",content:"artificial intelligence"}),(0,o.jsx)("meta",{name:"twitter:image",content:"https://poisonal.com/meta-poisonal.png"}),(0,o.jsx)("meta",{name:"twitter:creator",content:"@PoisonalAI"})]}),(0,o.jsxs)("div",{className:"min-h-screen pb-8 bg-[#1A1621]",children:[(0,o.jsx)(r.u,{id:"my-tooltip"}),(0,o.jsx)("div",{className:"",children:(0,o.jsx)(QuantumJourney_JourneySection,{title:null!==(p=null==f?void 0:null===(c=f[0])||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:s.title)&&void 0!==p?p:"",modules:D?w:f,selectedDurationData:3})})]})]})}},25451:function(e,t,n){"use strict";n.d(t,{H3:function(){return capComponentCtaText},Ov:function(){return extractComponentCta},_X:function(){return collectComponentCtas},jY:function(){return pickComponentCtaText},kF:function(){return pickBackendCtaText}
1,pE:function(){return resolveComponentCtaText}});var o=n(89312),l=n(15876);let i=/\{\s*(?:type|name)\s*\}/gi,a=/\{\s*(?:type|name)\s*\}/i,componentCtaPhraseName=e=>{let t=String(null!=e?e:"").trim();if(!t)return"";let n=t.replace(/[^a-zA-Z0-9]+/g," ").trim().toLowerCase().split(/\s+/).filter(Boolean);if(!n.length)return"";let o=n.map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("");return"".concat(o,"Cta")},collectComponentCtas=e=>{var t,n,o,i,a,r,d,s,c,u,p,v;if(!e||"object"!=typeof e)return[];let m=e.data||e.content_json||e,h=[null==m?void 0:null===(t=m.preview)||void 0===t?void 0:t.cta,null===(o=e.content_json)||void 0===o?void 0:null===(n=o.preview)||void 0===n?void 0:n.cta,null==m?void 0:null===(i=m.card_json)||void 0===i?void 0:i.cta,null==m?void 0:null===(r=m.preview)||void 0===r?void 0:null===(a=r.card_json)||void 0===a?void 0:a.cta,null===(s=e.content_json)||void 0===s?void 0:null===(d=s.card_json)||void 0===d?void 0:d.cta,e.cta,null==m?void 0:m.cta,null==m?void 0:null===(c=m.component_data)||void 0===c?void 0:c.cta,null===(u=e.content_json)||void 0===u?void 0:u.cta,null===(v=e.data)||void 0===v?void 0:null===(p=v.content_json)||void 0===p?void 0:p.cta],g=new Set,_=[];for(let e of h){if("string"!=typeof e)continue;let t=(0,l.p0)(e).trim();t&&!g.has(t)&&(g.add(t),_.push(t))}return _},extractComponentCta=e=>collectComponentCtas(e)[0]||"",capComponentCtaText=e=>{let t=String(null!=e?e:"").trim().replace(/\s+/g," ");if(t.length<=120)return t;let n=t.slice(0,121),o=n.lastIndexOf(" "),l=o>0?n.slice(0,o).replace(/[\s,;:.\-\u2013\u2014]+$/,""):"",i=l.length>=8?l:t.slice(0,119).trimEnd();return"".concat(i,"â¦")},pickBackendCtaText=e=>{let t=e.map(e=>String(null!=e?e:"").trim()).filter(Boolean);return t[0]||""},pickComponentCtaText=e=>{let t=e.map(e=>String(null!=e?e:"").trim()).filter(Boolean);return t.length?capComponentCtaText(t[0]):""},humanizeComponentTypeName=e=>String(null!=e?e:"").replace(/[\s_-]+/g," ").trim().toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),asSentenceCase=e=>/[a-z]/.test(e)?e:humanizeComponentTypeName(e),resolveComponentCtaText=e=>{let{typeKey:t,typeName:n,backendCta:r,expandable:d=!0,phraseLabels:s}=e,c="string"==typeof r?(0,l.p0)(r).trim():"";if(!d)return capComponentCtaText(c);let u=componentCtaPhraseName(t),p=u?String((0,o.BV)(u,s)||"").trim():"",v=asSentenceCase(String(n||"").trim())||humanizeComponentTypeName(t),m=String((0,o.BV)("componentGenericCta",s)||"").trim(),h="";return m&&(v?h=m.replace(i,v):a.test(m)||(h=m)),pickComponentCtaText([c,p,h])}},77843:function(e,t,n){"use strict";function isResolvedConceptSlug(e){let t="string"==typeof e?e.trim():"";return!(!t||/[A-Z]/.test(t)||/^\d+$/.test(t))}function readResolvedConceptSlug(e){var t;let n=[null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.slug,null==e?void 0:e.slug],o=n.find(isResolvedConceptSlug);return"string"==typeof o?o.trim():""}n.d(t,{Q:function(){return readResolvedConceptSlug},q:function(){return isResolvedConceptSlug}})},15876:function(e,t,n){"use strict";n.d(t,{_D:function(){return renderInlineMarkupTruncated},be:function(){return truncateInlineMarkup},dt:function(){return stripCitationMarkers},fj:function(){return renderInlineMarkup},p0:function(){return stripInlineMarkup}});var o=n(67294);let l=/\s*\(\(\s*cite:[\s\S]*?\)\)/g,i=/\*\*([^*]+)\*\*/,a=/\/\/([^/]+)\/\//,r=/\*([^*\n]+)\*/,d=/~~([^~]+)~~/,s=/<(?:b|strong)\b[^>]*>([\s\S]*?)<\/(?:b|strong)\s*>/i,c=/<(?:i|em)\b[^>]*>([\s\S]*?)<\/(?:i|em)\s*>/i,u=/<(?:s|del|strike)\b[^>]*>([\s\S]*?)<\/(?:s|del|strike)\s*>/i,p="<\\/?(?:".concat("p|br|i|em|b|strong|u|s|del|strike|ins|mark|small|sup|sub|span|div|section|article|a|ul|ol|li|dl|dt|dd|h[1-6]|blockquote|code|pre|hr|img|figure|figcaption|table|thead|tbody|tfoot|tr|td|th|caption",")\\b[^>]*>"),v=RegExp(p,"gi"),m=RegExp(p,"i"),h=/<\s*(?:br\s*\/?|\/\s*(?:p|div|li|h[1-6]|blockquote))\s*>/gi,g={lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",ndash:"â",mdash:"â",hellip:"â¦",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â"},_=/&(?:#(\d+)|#[xX]([0-9a-fA-F]+)|([a-zA-Z]+));/g,f=/&(?:#\d+|#[xX][0-9a-fA-F]+|[a-zA-Z]+);/,fromCodePoint=(e,t)=>
1Number.isFinite(e)&&e>0&&e<=1114111?String.fromCodePoint(e):t,decodeEntities=e=>-1===e.indexOf("&")?e:e.replace(_,(e,t,n,o)=>{var l;if(t)return fromCodePoint(Number(t),e);if(n)return fromCodePoint(parseInt(n,16),e);let i=String(o).toLowerCase();return"amp"===i?e:null!==(l=g[i])&&void 0!==l?l:e}).replace(/&/gi,"&"),cleanText=e=>decodeEntities(-1===e.indexOf("<")?e:e.replace(v,"")),hasInlineMarkup=e=>-1!==e.indexOf("((")||-1!==e.indexOf("[[")||-1!==e.indexOf("**")||-1!==e.indexOf("*")||-1!==e.indexOf("~~")||-1!==e.indexOf("//")||-1!==e.indexOf("<")&&m.test(e)||-1!==e.indexOf("&")&&f.test(e),unwrapNonRenderable=e=>e.replace(l,"").replace(/\[\[([\s\S]+?)\]\]/g,"$1").replace(h," "),slashItalicIsSafe=e=>-1===e.indexOf("://"),tokenizeInlineMarkup=e=>{let t=splitTokens(e);return t.map((e,n)=>{if("text"===e.kind)return e;let o=t[n-1],l=t[n+1];return{...e,lead:e.lead||isWordChar(o?o.text.slice(-1):""),trail:e.trail||isWordChar(l?l.text.charAt(0):"")}})},splitTokens=e=>{let t=slashItalicIsSafe(e),n=[],o=e;for(;o;){let e=[],push=(t,n)=>{t&&void 0!==t.index&&e.push({index:t.index,length:t[0].length,inner:t[1],kind:n})};if(push(o.match(i),"bold"),t&&push(o.match(a),"italic"),push(o.match(r),"italic"),push(o.match(d),"strike"),push(o.match(s),"bold"),push(o.match(c),"italic"),push(o.match(u),"strike"),!e.length){n.push({kind:"text",text:cleanText(o)});break}e.sort((e,t)=>e.index-t.index||t.length-e.length);let l=e[0],p=cleanText(l.inner).trim();if(!p){n.push({kind:"text",text:cleanText(o.slice(0,l.index+l.length))}),o=o.slice(l.index+l.length);continue}l.index>0&&n.push({kind:"text",text:cleanText(o.slice(0,l.index))}),n.push({kind:l.kind,text:p,lead:/^\s/.test(l.inner),trail:/\s$/.test(l.inner)}),o=o.slice(l.index+l.length)}return n},isWordChar=e=>!!e&&/[A-Za-z0-9]/.test(e),stripCitationMarkers=e=>{if(null==e)return"";let t="string"==typeof e?e:String(e);return -1===t.indexOf("((")?t:t.replace(l,"")},stripInlineMarkup=e=>{if(null==e)return"";let t="string"==typeof e?e:String(e);if(!t||!hasInlineMarkup(t))return t;let n=tokenizeInlineMarkup(unwrapNonRenderable(t)),o=n.map(e=>"text"===e.kind?e.text:"".concat(e.lead?" ":"").concat(e.text).concat(e.trail?" ":"")).join("");return o.replace(/[ \t]{2,}/g," ").trim()},truncateInlineMarkup=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"â¦";if(null==e)return"";let o=unwrapNonRenderable("string"==typeof e?e:String(e)).replace(/\s+/g," ").trim();if(!o)return"";if(!hasInlineMarkup(o))return o.length<=t?o:"".concat(o.slice(0,Math.max(0,t-1)).trim()).concat(n);let l={bold:"**",italic:"*",strike:"~~"},i=tokenizeInlineMarkup(o),a=0,r="";for(let e of i){let o=t-a;if(o<=0)return"".concat(r.trim()).concat(n);if("text"===e.kind){if(e.text.length<=o){r+=e.text,a+=e.text.length;continue}return"".concat((r+e.text.slice(0,o)).trim()).concat(n)}let i=l[e.kind],d=e.lead?" ":"",s=e.trail?" ":"";if(e.text.length<=o){r+="".concat(d).concat(i).concat(e.text).concat(i).concat(s),a+=e.text.length+d.length+s.length;continue}let c=e.text.slice(0,o).trim();return c?"".concat(r).concat(d).concat(i).concat(c).concat(i).concat(n):"".concat(r.trim()).concat(n)}return r.trim()},renderInlineMarkup=e=>{if(null==e||""===e)return null;let t="string"==typeof e?e:String(e);if(!hasInlineMarkup(t))return t;let n=tokenizeInlineMarkup(unwrapNonRenderable(t));if(n.every(e=>"text"===e.kind))return n.map(e=>e.text).join("");let l=[];return n.forEach((e,t)=>{if("text"===e.kind){l.push(e.text);return}e.lead&&l.push(" ");let n="bold"===e.kind?"strong":"italic"===e.kind?"em":"del";l.push(o.createElement(n,{key:"im-".concat(t)},e.text)),e.trail&&l.push(" ")}),o.createElement(o.Fragment,null,...l)},renderInlineMarkupTruncated=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"â¦";return renderInlineMarkup(truncateInlineMarkup(e,t,n))}},32353:function(e,t,n){"use strict";n.d(t,{$C:function(){return resolvePageCardArtifact},JJ:function(){return v},Nf:function(){return resolvePageDepth},TH:function(){return getPageFormTheme},XL:function(){return resolvePageVariant},aE:function(){return pageFormLabelFromModule},bK:function(){return l},jj:function(){return c},lZ:function(){return readPageFormFromModule},m5:function(){return normalizePageKey},pU:function(){return resolvePageFormLabel},z5:function(){return readPageDepthFromModule}});let o={discover:"discover",discovery:"discover",deepen:"deepen",deep_dive:"deepen",deeper:"deepen",practice:"practice",drill:"practice",drills:"practice",exercise:"practice",w
1orksheet:"practice",master:"master",mastery:"master",advanced:"master",lesson:"lesson",teaching:"lesson",lesson_plan:"lesson_plan",teaching_plan:"lesson_plan",curriculum:"lesson_plan",overview:"overview",primer:"overview",summary:"overview",map:"overview",explainer:"explainer",guide:"explainer",how_to:"how_to",howto:"how_to",instructions:"how_to",tutorial:"how_to",walkthrough:"walkthrough",step_by_step:"walkthrough",strategy_guide:"walkthrough",cheat_sheet:"cheat_sheet",cheatsheet:"cheat_sheet",quick_reference:"cheat_sheet",crib_sheet:"cheat_sheet",quiz:"quiz",test:"quiz",exam:"quiz",assessment:"quiz",playbook:"playbook",tactics:"playbook",plays:"playbook",reference:"reference",catalog:"reference",glossary:"reference",lookup:"reference",reading_list:"reading_list",bibliography:"reading_list",syllabus:"reading_list",further_reading:"reading_list",pros_cons:"pros_cons",pros_and_cons:"pros_cons",tradeoffs:"pros_cons",debate:"pros_cons",buyers_guide:"buyers_guide",buyer_guide:"buyers_guide",buying_guide:"buyers_guide",product_guide:"buyers_guide",comparison:"buyers_guide",legal_guide:"legal_guide",legal:"legal_guide",law_guide:"legal_guide",legal_brief:"legal_guide",medical_guide:"medical_guide",medical:"medical_guide",health_guide:"medical_guide",symptom_guide:"medical_guide",recipe:"recipe",dish:"recipe",cooking:"recipe",travel_guide:"travel_guide",travel:"travel_guide",itinerary:"travel_guide",destination:"travel_guide",workout_plan:"workout_plan",workout:"workout_plan",training_plan:"workout_plan",fitness_plan:"workout_plan",fiction:"fiction",story:"fiction",novel:"fiction",short_story:"fiction",news_article:"news_article",news:"news_article",article:"news_article",dispatch:"news_article",case_report:"case_report",case_file:"case_report",case_study:"case_report",case:"case_report",field_entry:"field_entry",field_log:"field_entry",field_note:"field_entry",field_journal:"field_entry",history:"history",historical:"history",chronicle:"history",timeline:"history",profile:"profile",biography:"profile",bio:"profile",portrait:"profile",editorial:"editorial",opinion:"editorial",op_ed:"editorial",column:"editorial",essay:"essay",long_read:"essay",treatise:"essay",qa:"qa",q_and_a:"qa",question_answer:"qa",advice:"qa",advice_column:"qa",faq:"qa",conversation:"conversation",dialogue:"conversation",thread:"conversation",chat_page:"conversation",scenario:"scenario",simulation:"scenario",roleplay:"scenario",what_if:"scenario",games:"games",game:"games",play:"games",puzzle:"games"},l={discover:{label:"Discover",cta:"strike it",accent:"#1f4d3a"},deepen:{label:"Deepen",cta:"go deeper",accent:"#8a2f27"},practice:{label:"Practice",cta:"run the drills",accent:"#3a5f9e"},master:{label:"Master",cta:"take me all the way",accent:"#17335e"},lesson:{label:"Lesson",cta:"teach me",accent:"#3c6e50"},lesson_plan:{label:"Lesson Plan",cta:"teach it",accent:"#3c6e50"},overview:{label:"Overview",cta:"see the shape",accent:"#1c1712"},explainer:{label:"Explainer",cta:"explain it to me",accent:"#1c1712"},how_to:{label:"How To",cta:"show me how",accent:"#1f4d8f"},walkthrough:{label:"Walkthrough",cta:"walk me through",accent:"#4a3a20"},cheat_sheet:{label:"Cheat Sheet",cta:"unfold it",accent:"#8a2f27"},quiz:{label:"Quiz",cta:"take the test",accent:"#101820"},playbook:{label:"Playbook",cta:"run the play",accent:"#1f4d3a"},reference:{label:"Reference",cta:"look it up",accent:"#8a2f27"},reading_list:{label:"Reading List",cta:"check it out",accent:"#2c3f8a"},pros_cons:{label:"Pros & Cons",cta:"weigh it",accent:"#1c1712"},buyers_guide:{label:"Buyer's Guide",cta:"see the verdict",accent:"#a3372b"},legal_guide:{label:"Legal Guide",cta:"know your rights",accent:"#8a6a12"},medical_guide:{label:"Medical Guide",cta:"decode yours",accent:"#a3372b"},recipe:{label:"Recipe",cta:"cook it",accent:"#a3372b"},travel_guide:{label:"Travel Guide",cta:"take me there",accent:"#17607a"},workout_plan:{label:"Workout Plan",cta:"start week 1",accent:"#1f4d8f"},fiction:{label:"Fiction",cta:"start reading",accent:"#b8452e"},news_article:{label:"News",cta:"read the story",accent:"#1c1712"},case_report:{label:"Case File",cta:"open the file",accent:"#7a2c22"},field_entry:{label:"Field Log",cta:"read the log",accent:"#4a3a20"},history:{label:"History",cta:"open the archive",accent:"#6b4a1f"},profile:{label:"Profile",cta:"meet them",accent:"#3a5f9e"},editorial:{label:"Opinion",cta:"hear the argument",accent:"#a3372b"},essay:{label:"Essay",cta:"read it",accent:"#1c1712"},qa:{label:"Q&A",cta:"get answers",accent:"#1f4d3a"},conversation:{label:"Conversation",cta:"join in",accent:"#1f4d8f"},scenario:{label:"Scenario",cta:"run the scenario",accent:"#6b2f2f"},games:{label:"Game",cta:"press start",accent:"#7b2d8e"}},i={news_article:"clipping",case_report:"folder",field_entry:"field_notebook",profile:"rolodex",editorial:"typed_page",reference:"catalog_c
1ard",discover:"open_door",deepen:"strata",master:"star_chart",practice:"drill_sheet",fiction:"paperback",recipe:"index_card",how_to:"manual",history:"ticket_strip",qa:"advice_column",travel_guide:"boarding_pass",lesson_plan:"plan_book",quiz:"exam_book",cheat_sheet:"crib_note",pros_cons:"fight_bill",essay:"typescript",conversation:"text_thread",workout_plan:"whiteboard",buyers_guide:"test_report",walkthrough:"graph_work",reading_list:"shelf",playbook:"chalk_play",games:"arcade",scenario:"radar",lesson:"composition",overview:"atlas",legal_guide:"legal_pad",medical_guide:"clipboard",explainer:"open_door"},a=new Set(Object.values(i));function resolvePageCardArtifact(e,t){var n;let o=normalizePageKey(t);return o&&a.has(o)?o:null!==(n=i[e])&&void 0!==n?n:"open_door"}function readPageFormFromModule(e){var t,n,o,l,i,a,r,d,s,c,u,p,v,m,h,g,_,f,b,x,y,j,w,S;if(!e||"object"!=typeof e)return"";let k=[null===(n=e.content_json)||void 0===n?void 0:null===(t=n.preview)||void 0===t?void 0:t.page_type,null===(o=e.content_json)||void 0===o?void 0:o.page_type,null===(a=e.data)||void 0===a?void 0:null===(i=a.content_json)||void 0===i?void 0:null===(l=i.preview)||void 0===l?void 0:l.page_type,null===(d=e.data)||void 0===d?void 0:null===(r=d.content_json)||void 0===r?void 0:r.page_type,null===(c=e.data)||void 0===c?void 0:null===(s=c.preview)||void 0===s?void 0:s.page_type,null===(u=e.data)||void 0===u?void 0:u.page_type,null===(p=e.preview)||void 0===p?void 0:p.page_type,e.page_type,null===(m=e.content_json)||void 0===m?void 0:null===(v=m.preview)||void 0===v?void 0:v.form,null===(h=e.content_json)||void 0===h?void 0:h.form,null===(f=e.data)||void 0===f?void 0:null===(_=f.content_json)||void 0===_?void 0:null===(g=_.preview)||void 0===g?void 0:g.form,null===(b=e.data)||void 0===b?void 0:b.form,e.form,null===(y=e.content_json)||void 0===y?void 0:null===(x=y.preview)||void 0===x?void 0:x.mode,null===(j=e.content_json)||void 0===j?void 0:j.mode,null===(w=e.data)||void 0===w?void 0:w.chapter_mode,null===(S=e.data)||void 0===S?void 0:S.mode];for(let e of k){let t=String(null!=e?e:"").trim();if(t)return t}return""}function normalizePageKey(e){return String(null!=e?e:"").trim().toLowerCase().replace(/[\s-]+/g,"_")}let r=new Set(["discover","deepen","practice","master"]);function resolvePageVariant(e,t){let n=normalizePageKey(e),l=normalizePageKey(t),i=l?o[l]:void 0;if(n&&o[n]){let e=o[n];return"explainer"===e&&i&&r.has(i)?i:e}return i||"explainer"}let d={qa:"Q&A",q_and_a:"Q&A",question_answer:"Q&A",faq:"FAQ",op_ed:"Op-Ed",pros_cons:"Pros & Cons",pros_and_cons:"Pros & Cons",buyers_guide:"Buyer's Guide",buyer_guide:"Buyer's Guide",buying_guide:"Buyer's Guide",how_to:"How To",howto:"How To",step_by_step:"Step by Step",what_if:"What If"};function titleCasePageKey(e){let t=normalizePageKey(e);return t?d[t]?d[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""}function resolvePageFormLabel(e,t){let n=normalizePageKey(e);if(n)return titleCasePageKey(e);let l=normalizePageKey(t);return l&&o[l]?titleCasePageKey(t):""}let s=["discover","deepen","practice","master"];function resolvePageDepth(e){let t=normalizePageKey(e);return s.includes(t)?t:null}let c={discover:"lesson",deepen:"ledger",master:"bill",practice:"spiral",lesson:"lesson",lesson_plan:"planbook",overview:"plain",explainer:"plain",how_to:"manual",walkthrough:"graph",cheat_sheet:"crib",quiz:"bluebook",playbook:"playbook",reference:"rolodex",reading_list:"rolodex",pros_cons:"bill",buyers_guide:"report",legal_guide:"legal",medical_guide:"chart",recipe:"index",travel_guide:"boarding",workout_plan:"marker",fiction:"pulp",news_article:"news",case_report:"manila",field_entry:"manila",history:"ledger",profile:"rolodex",editorial:"typescript",essay:"typescript",qa:"column",conversation:"conversation",scenario:"briefing",games:"arcade"},u={plain:{paper:"#f2ede2",accent:"#5a1f1a"},lesson:{paper:"#f4f0e6",accent:"#1f6e5a"},playbook:{paper:"#f2ede2",accent:"#1f4d3a"},rolodex:{paper:"#f4f2ea",accent:"#3a5f9e"},graph:{paper:"#f5f6f2",accent:"#17335e"},briefing:{paper:"#efece3",accent:"#1f4d8f"},spiral:{paper:"#fcfaf4",accent:"#3a5f9e"},bluebook:{paper:"#dde4ec",accent:"#101820"},arcade:{paper:"#f6efd8",accent:"#c2402e"},planbook:{paper:"#eef0e4",accent:"#3c6e50"},index:{paper:"#fbf7ea",accent:"#9a2c26"},manual:{paper:"#eae6da",accent:"#1c1712"},marker:{paper:"#f7f8f8",accent:"#1f4d8f"},crib:{paper:"#fbf8ee",accent:"#8a2f27"},news:{paper:"#e9e4d5",accent:"#1c1712"},column:{paper:"#ece7d8",accent:"#8a2f27"},typescript:{paper:"#f6f2e7",accent:"#a3372b"},manila:{paper:"#e8d9b0",accent:"#7a2c22"},ledger:{paper:"#efe4c4",accent:"#5a1f1a"},boarding:{paper:"#f2ede2",accent:"#5a1f1a"},report:{paper:"#f4f1e6",accent:"#a3372b"},bill:{paper:"#f2ede2",accent:"#5a1f1a"},pulp:{paper:"#f0e8d4",accent:"#b8452e"},conversation:{paper:"#e4e6e9",accent:"#1f4d8f"},legal:{paper:"#f5e07a",accent:"#8a2f27"},chart:{paper:"#fbfaf5",accent:"#a3372b"}},p="#c1b9a4",v={"--bg":p,"--nav-bg":p,"--content-bg":p,"--strip-bg":p,"--bg2":"#b6ad97","--bg3":"#aca38b","--bg4":"rgba(43, 36, 24, 0.18)","--bg-page":p,"--rule":"rgba(43, 36, 24, 0.18)","--rule-strong":"rgba(43, 36, 24, 0.34)","--border":"rgba(43, 36, 24, 0.18)","--bl":"rgba(43, 36, 24, 0.34)","--ink3":"#5f5646","--ink4":"#7d7462","--tm":"#5f5646","--td":"#7d7462","--tdd":"#9a917e"};function getPageFormTheme(e){var t;let n=null!==(t=u[c[e]])&&void 0!==t?t:u.plain;return{...n,board:p}}function readPageDepthFromModule(e){var t,n,o,l,i,a,r,d,s,c,u,p,v,m,h,g;if(!e||"object"!=typeof e)return"";let _=[null===(n=e.content_json)||void 0===n?void 0:null===(t=n.preview)||void 0===t?void 0:t.depth,null===(o=e.content_json)||void 0===o?void 0:o.depth,null===(a=e.data)||void 0===a?void 0:null===(i=a.content_json)||void 0===i?void 0:null===(l=i.preview)||void 0===l?void 0:l.depth,null===(d=e.data)||void 0===d?void 0:null===(r=d.content_json)||void 0===r?void 0:r.depth,null===(c=e.content_json)||void 0===c?void 0:null===(s=c.preview)||void 0===s?void 0:s.mode,null===(u=e.content_json)||void 0===u?void 0:u.mode,null===(m=e.data)||void 0===m?void 0:null===(v=m.content_json)||void 0===v?void 0:null===(p=v.preview)||void 0===p?void 0:p.mode,null===(h=e.data)||void 0===h?void 0:h.chapter_mode,null===(g=e.data)||void 0===g?void 0:g.mode];for(let e of _){let t=String(null!=e?e:"").trim();if(t)return t}return""}function pageFormLabelFromModule(e){var t,n,o,i,a,r,d;let s=null!==(r=null!==(a=null!==(i=null==e?void 0:null===(t=e.content_json)||void 0===t?void 0:t.preview)&&void 0!==i?i:null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(n=o.content_json)||void 0===n?void 0:n.preview)&&void 0!==a?a:null==e?void 0:e.preview)&&void 0!==r?r:null,c=String(null!==(d=null==s?void 0:s.form_label)&&void 0!==d?d:"").trim();if(c)return c;let u=readPageFormFromModule(e),p=readPageDepthFromModule(e);return resolvePageFormLabel(u,p)||l[resolvePageVariant(u,p)].label}},38644:function(e){e.exports={wrap:"ComponentSocialShare_wrap__dQ6Io",trigger:"ComponentSocialShare_trigger__7ZOjY",popover:"ComponentSocialShare_popover__XP4We",componentSharePopIn:"ComponentSocialShare_componentSharePopIn__034lB",alignRight:"ComponentSocialShare_alignRight__zogxy",alignLeft:"ComponentSocialShare_alignLeft__K31mo",popoverLabel:"ComponentSocialShare_popoverLabel__uT29I",icons:"ComponentSocialShare_icons__TgVby",bar:"ComponentSocialShare_bar__jfV4k",barLabel:"ComponentSocialShare_barLabel__PJFRs",barLabelBig:"ComponentSocialShare_barLabelBig__YNPnE",barLabelSmall:"ComponentSocialShare_barLabelSmall__F8zGD",barIcons:"ComponentSocialShare_barIcons__G7hbG",barIconBtn:"ComponentSocialShare_barIconBtn__6uSoq",iconBtn:"ComponentSocialShare_iconBtn__CHPKc",iconGlyph:"ComponentSocialShare_iconGlyph__0lZtu"}},46089:function(e){e.exports={modalOverlay:"LearningModal_modalOverlay__a9Q99",active:"LearningModal_active__C66Zc",modalContainer:"LearningModal_modalContainer__GG0Vm",inline:"LearningModal_inline__k7eWy",courseHeader:"LearningModal_courseHeader__o8sis",backButton:"LearningModal_backButton__eHODv",moduleInfo:"LearningModal_moduleInfo__MjwPw",moduleTypeLabel:"LearningModal_moduleTypeLabel__SEJ2_",moduleTitle:"LearningModal_moduleTitle__mmVka",rightSection:"LearningModal_rightSection__O1b48",iconButton:"LearningModal_iconButton__3Nd6T",nextButton:"LearningModal_nextButton__s2Ojh",menuButton:"LearningModal_menuButton___V_uE",dropdownMenu:"LearningModal_dropdownMenu__RdEOX",menuItem:"LearningModal_menuItem__jWFU4",bookmarkButton:"LearningModal_bookmarkButton__fpkRt",modalHeader:"LearningModal_modalHeader__BHYQc",modalProgressBar:"LearningModal_modalProgressBar__k_EON",modalProgressFill:"LearningModal_modalProgressFill__XtUtH",modalHeaderContent:"LearningModal_modalHeaderContent__sCLda",modal
1Nav:"LearningModal_modalNav__WT07L",modalBack:"LearningModal_modalBack__m4_BF",modalBreadcrumb:"LearningModal_modalBreadcrumb__zMQYH",modalBreadcrumbSeparator:"LearningModal_modalBreadcrumbSeparator__7Veiv",modalBreadcrumbCurrent:"LearningModal_modalBreadcrumbCurrent__vQp52",modalInfo:"LearningModal_modalInfo__Je4nn",modalTimer:"LearningModal_modalTimer__AB8vZ",complete:"LearningModal_complete__zas8w",modalActions:"LearningModal_modalActions__3eabo",modalActionBtn:"LearningModal_modalActionBtn__Rafkj",primary:"LearningModal_primary__sEgwA",secondary:"LearningModal_secondary__3K9Ig",modalContent:"LearningModal_modalContent__NzB02",contentWrapper:"LearningModal_contentWrapper__zQ5nV",contentTitle:"LearningModal_contentTitle__bl_5g",contentDescription:"LearningModal_contentDescription__GLWpZ",videoContainer:"LearningModal_videoContainer__mrBQp",spotifyContainer:"LearningModal_spotifyContainer__5QZxC",spotifyEmbed:"LearningModal_spotifyEmbed__jCCdZ",spotifyIframe:"LearningModal_spotifyIframe__alviU",podcastImage:"LearningModal_podcastImage__x5GpL",podcastThumbnail:"LearningModal_podcastThumbnail__H1t4H",spotifyLink:"LearningModal_spotifyLink__yFM07",autoplayNote:"LearningModal_autoplayNote__EymXs",moduleInfoSection:"LearningModal_moduleInfoSection__jzO0R",moduleInfoContent:"LearningModal_moduleInfoContent__wRlHe",moduleTag:"LearningModal_moduleTag__BEoBK",video:"LearningModal_video__hu3KI",course:"LearningModal_course__zEbJp",tutor:"LearningModal_tutor__wwi9_",question:"LearningModal_question__BYfu6",concept:"LearningModal_concept__oKX_r",podcast:"LearningModal_podcast__TgWJI",titleContainer:"LearningModal_titleContainer__Hiu7B",infoIcon:"LearningModal_infoIcon__aHrWq",infoModalOverlay:"LearningModal_infoModalOverlay__OgljV",infoModal:"LearningModal_infoModal__J_DFl",modalSlideIn:"LearningModal_modalSlideIn__Xkdm3",infoModalHeader:"LearningModal_infoModalHeader__q9v7h",infoModalClose:"LearningModal_infoModalClose__SCVOo",infoModalContent:"LearningModal_infoModalContent__7AJOB",infoSection:"LearningModal_infoSection__9PzFE",unmutePrompt:"LearningModal_unmutePrompt__LU1FU",fadeIn:"LearningModal_fadeIn__Q7KfU",unmutePromptContent:"LearningModal_unmutePromptContent__ThIm0",unmuteIcon:"LearningModal_unmuteIcon__PKYxT",unmuteText:"LearningModal_unmuteText__FkQC9",unmuteButton:"LearningModal_unmuteButton__niTzD"}},65482:function(e){e.exports={zoomControl:"ReaderZoomControl_zoomControl__BfKkL",zoomLabel:"ReaderZoomControl_zoomLabel__2Cbpy",zoomLabelLg:"ReaderZoomControl_zoomLabelLg__ZjdzF",zoomLabelSm:"ReaderZoomControl_zoomLabelSm__Jb30m",zoomTrack:"ReaderZoomControl_zoomTrack__lHYN4",zoomTrackFill:"ReaderZoomControl_zoomTrackFill__sjBl6",zoomThumb:"ReaderZoomControl_zoomThumb__VR4Sm",zoomReadout:"ReaderZoomControl_zoomReadout__Yg0Mx",newspaper:"ReaderZoomControl_newspaper__vOK34",fiction:"ReaderZoomControl_fiction__DkW2N",nonfiction:"ReaderZoomControl_nonfiction__me6E0"}},8697:function(e){e.exports={svgFilters:"ArticleCard_svgFilters__AC2eM",tornCard:"ArticleCard_tornCard__FHK2s",paper:"ArticleCard_paper__z2EQb",sectionBar:"ArticleCard_sectionBar__Ph99O",sectionName:"ArticleCard_sectionName__gl54D",sectionMeta:"ArticleCard_sectionMeta__8BLAe",price:"ArticleCard_price__CLwiN",priceFree:"ArticleCard_priceFree__uKChO",thinRule:"ArticleCard_thinRule__qArMN",headline:"ArticleCard_headline__nUt_Y",anchorText:"ArticleCard_anchorText__r5pLa",subtitle:"ArticleCard_subtitle__W41aj",scribble:"ArticleCard_scribble__4G72e",scribbleLine:"ArticleCard_scribbleLine__dQzry",cardFooter:"ArticleCard_cardFooter__kyjwI",footerAction:"ArticleCard_footerAction__i0DZs",footerActionLabel:"ArticleCard_footerActionLabel__PZre5",footerActionIcon:"ArticleCard_footerActionIcon__ON_Rt",footerPrice:"ArticleCard_footerPrice__lXOBk",footerPriceFree:"ArticleCard_footerPriceFree__Tytjp",footerDuration:"ArticleCard_footerDuration__okoKu",connectorSvg:"ArticleCard_connectorSvg__Czib7"}},71739:function(e){e.exports={chapter:"ChapterCard_chapter__6BZlf",leaf:"ChapterCard_leaf__aR6zI",spine:"ChapterCard_spine__Zlx83",ribbon:"ChapterCard_ribbon__nzgYB",head:"ChapterCard_head__YP_HO",numeral:"ChapterCard_numeral__pUznK",modeDot:"ChapterCard_modeDot__zvvCm",mode:"ChapterCard_mode__5T87i",headRule:"ChapterCard_headRule___su3b",title:"ChapterCard_title__Mla__",deck:"ChapterCard_deck__Kea6L",scribble:"ChapterCard_scribble__paZJN",scribbleLine:"ChapterCard_scribbleLine__nMRrO",foot:"ChapterCard_foot__2HbcK",meta:"ChapterCard_meta__Fb1_L",metaSep:"ChapterCard_metaSep__nFEh9",free:"ChapterCard_free__Uxg7b",cta:"ChapterCard_cta__J7wk8",ctaLabel:"ChapterCard_ctaLabel__1zeJ2",ctaArrow:"ChapterCard_ctaArrow__A8j3Y",curl:"ChapterCard_curl__JBH_B",stack:"ChapterCard_stack__DqVSH",stack2:"ChapterCard_stack2__c482m"}},48845:function(e){e.exports={container:"JourneySection_container__5l9KU",bgGlow:"JourneySection_bgGlow__GZsl9",float1:"JourneySection_float1__bCjBT",float2:"JourneySection_float2__1s6xF",journeySection:"JourneySection_journeySection__QnM1N",browseInputContainer:"JourneySection_browseInputContainer__EF0WQ",browseInputContainerHidden:"JourneySection_browseInputContainerHidden__NKYsX",suggestedRepliesWrapper:"JourneySection_suggestedRepliesWrapper__Fd6D1",showLeftFade:"JourneySection_showLeftFade__kK_Fa",showRightFade:"JourneySection_showRightFade__zK8_u",suggestedRepliesRow:"JourneySection_suggestedRepliesRow__Tg22N",suggestedReplyChip:"JourneySection_suggestedReplyChip__rawXT",inputWrapper:"JourneySection_inputWrapper__AGwEI",browseInput:"JourneySection_browseInput__h4IbB",browseInputDisabled:"JourneySection_browseInputDisabled__PhkKv",inputA
1ctions:"JourneySection_inputActions__fp_pC",moduleMenuBtn:"JourneySection_moduleMenuBtn__2tt_O",moduleMenuBtnActive:"JourneySection_moduleMenuBtnActive__cQBQ4",moduleMenuBadge:"JourneySection_moduleMenuBadge__Yc7nK",sendBtn:"JourneySection_sendBtn__U0CrW",sendSpinner:"JourneySection_sendSpinner__qO8j5",spin:"JourneySection_spin__gGKmx",sectionHeader:"JourneySection_sectionHeader__lGYe3",sectionTitle:"JourneySection_sectionTitle__wt0pH",gradientShift:"JourneySection_gradientShift__nnPkx",dropdownSection:"JourneySection_dropdownSection__7NaoI",dropdownWrapper:"JourneySection_dropdownWrapper__yQ04j",dropdown:"JourneySection_dropdown__x8d_P",dropdownLoader:"JourneySection_dropdownLoader__mqiry",spinner:"JourneySection_spinner__EX_u9",commitButton:"JourneySection_commitButton__fcbUJ",moduleRow:"JourneySection_moduleRow__9xdOM",gameBoard:"JourneySection_gameBoard___jlzW",conversationThread:"JourneySection_conversationThread__zIb7C",contentSection:"JourneySection_contentSection__W1mrn",stickyHeader:"JourneySection_stickyHeader___BfRx",topicQueryBubble:"JourneySection_topicQueryBubble__cOXfR",userMessageBubble:"JourneySection_userMessageBubble__6hmat",conversationTurn:"JourneySection_conversationTurn__cZlN_",inherited:"JourneySection_inherited__6m8Td",modulesGrid:"JourneySection_modulesGrid__Hk7qR",branchDivider:"JourneySection_branchDivider__Mk8l7",branchDividerText:"JourneySection_branchDividerText__h0PfK",dark:"JourneySection_dark__9B78O",userMessageContainer:"JourneySection_userMessageContainer__lY1DN",messageIn:"JourneySection_messageIn__vfKcg",userMessageText:"JourneySection_userMessageText__QoVeY",userMessageTime:"JourneySection_userMessageTime__HVbno",pathSvg:"JourneySection_pathSvg___9Rh_",pathLine:"JourneySection_pathLine__onSn2",active:"JourneySection_active__0BWT3",pathFlow:"JourneySection_pathFlow__VYun5",progressBar:"JourneySection_progressBar__36_sl",progressContent:"JourneySection_progressContent__inZ3_",progressTrack:"JourneySection_progressTrack__qKRp7",progressFill:"JourneySection_progressFill__gGNvE",progressStats:"JourneySection_progressStats___IDdn",progressStat:"JourneySection_progressStat__5zcNg",continueBtn:"JourneySection_continueBtn__eX0jd",scrollCardContainer:"JourneySection_scrollCardContainer__GN6xZ",scrollCardJourneySection:"JourneySection_scrollCardJourneySection__m6x5h",scrollCardModuleRow:"JourneySection_scrollCardModuleRow__3a7mD",scrollCardGameBoard:"JourneySection_scrollCardGameBoard__HdsAy",moduleSkeletonCard:"JourneySection_moduleSkeletonCard__njwx9",skeletonPulse:"JourneySection_skeletonPulse__E5Btw",moduleSkeletonHeader:"JourneySection_moduleSkeletonHeader__1dIxq",moduleSkeletonTitle:"JourneySection_moduleSkeletonTitle__XTWtb",shimmer:"JourneySection_shimmer__NmdQX",moduleSkeletonTag:"JourneySection_moduleSkeletonTag__QHU9C",moduleSkeletonBody:"JourneySection_moduleSkeletonBody__94uBl",moduleSkeletonPreview:"JourneySection_moduleSkeletonPreview___X062",moduleSkeletonLine:"JourneySection_moduleSkeletonLine__KTRR7",moduleSkeletonLineShort:"JourneySection_moduleSkeletonLineShort__3sLAs",moduleSkeletonFooter:"JourneySection_moduleSkeletonFooter__oZ83W",moduleSkeletonButton:"JourneySection_moduleSkeletonButton___0R1U"}},14585:function(e){e.exports={modalOverlay:"RejectTopicModal_modalOverlay__sGvRR",modalContent:"RejectTopicModal_modalContent__S0ug5",modalMessage:"RejectTopicModal_modalMessage__zppsE",topicHighlight:"RejectTopicModal_topicHighlight__nKzdy",topicSuggestionSection:"RejectTopicModal_topicSuggestionSection__fk27B",topicSuggestionLabel:"RejectTopicModal_topicSuggestionLabel__u_raw",topicSuggestionButton:"RejectTopicModal_topicSuggestionButton__i7KBO",modalActions:"RejectTopicModal_modalActions__PF0Qr",stayHereButton:"RejectTopicModal_stayHereButton__K1at8",newTopicButton:"RejectTopicModal_newTopicButton__F_guC"}},87586:function(e){e.exports={whiteboard:"WhiteboardCourseCard_whiteboard__LXUNd",wbFrame:"WhiteboardCourseCard_wbFrame__DNlhz",wbMarkers:"WhiteboardCourseCard_wbMarkers__tqABi",wbMarker:"WhiteboardCourseCard_wbMarker__j8A1e",wbMarker_black:"WhiteboardCourseCard_wbMarker_black__1ppoa",wbMarker_blue:"WhiteboardCourseCard_wbMarker_blue__l7RVN",wbMarker_red:"WhiteboardCourseCard_wbMarker_red__q8lXP",wbMarker_green:"WhiteboardCourseCard_wbMarker_green__sAVyB",wbEraser:"WhiteboardCourseCard_wbEraser___a9z_",wbSurface:"WhiteboardCourseCard_wbSurface__6rbKz",wbSmudges:"WhiteboardCourseCard_wbSmudges__rtLlb",wbRole:"WhiteboardCourseCard_wbRole__l42lC",wbTitle:"WhiteboardCourseCard_wbTitle__JylQM",wbPremise:"WhiteboardCourseCard_wbPremise__YdBFw",wbDivider:"WhiteboardCourseCard_wbDivider__MpHcA",wbTopicsLabel:"WhiteboardCourseCard_wbTopicsLabel__xhNSY",wbFirstLesson:"WhiteboardCourseCard_wbFirstLesson__nUhat",wbMore:"WhiteboardCourseCard_wbMore__kl1t7",wbScribble:"WhiteboardCourseCard_wbScribble__wAMl6",wbScribbleLine:"WhiteboardCourseCard_wbScribbleLine__ffypz",wbPrice:"WhiteboardCourseCard_wbPrice__gNJE9",wbPriceFree:"WhiteboardCourseCard_wbPriceFree__Hcnk9",wbPricePaid:"WhiteboardCourseCard_wbPricePaid__FWfMa",scheme2:"WhiteboardCourseCard_scheme2__MThYf",scheme3:"WhiteboardCourseCard_scheme3___3dTA",scheme4:"WhiteboardCourseCard_scheme4__7Zwd_"}}}]);
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.